FFmpeg
|
avxsynth_c.h
Go to the documentation of this file.
197 { return ((p->pixel_type & AVS_CS_YV12) == AVS_CS_YV12)||((p->pixel_type & AVS_CS_I420) == AVS_CS_I420); }
232 { return pixels * (avs_bits_per_pixel(p)>>3); } // Will work on planar images, but will return only luma planes
238 { if (avs_is_planar(vi)) {int p = vi->height * ((avs_row_size(vi)+3) & ~3); p+=p>>1; return p; } return vi->height * ((avs_row_size(vi)+3) & ~3); }
259 { return ((INT64)(frames) * p->audio_samples_per_second * p->fps_denominator / p->fps_numerator); }
262 { return (int)(samples * (INT64)p->fps_numerator / (INT64)p->fps_denominator / (INT64)p->audio_samples_per_second); }
332 int offset, pitch, row_size, height, offsetU, offsetV, pitchUV; // U&V offsets are from top of picture.
659 AVSC_API(int, avs_set_global_var)(AVS_ScriptEnvironment *, const char* name, const AVS_Value val);
689 AVSC_API(void, avs_bit_blt)(AVS_ScriptEnvironment *, unsigned char* dstp, int dst_pitch, const unsigned char* srcp, int src_pitch, int row_size, int height);
692 AVSC_API(void, avs_at_exit)(AVS_ScriptEnvironment *, AVS_ShutdownFunc function, void * user_data);
694 AVSC_API(AVS_VideoFrame *, avs_subframe)(AVS_ScriptEnvironment *, AVS_VideoFrame * src, int rel_offset, int new_pitch, int new_row_size, int new_height);
721 AVSC_API(AVS_VideoFrame *, avs_subframe_planar)(AVS_ScriptEnvironment *, AVS_VideoFrame * src, int rel_offset, int new_pitch, int new_row_size, int new_height, int rel_offsetU, int rel_offsetV, int new_pitchUV);
struct AVS_VideoFrameBuffer AVS_VideoFrameBuffer
AVSC_INLINE AVS_Value avs_new_value_clip(AVS_Clip *v0)
Definition: avxsynth_c.h:525
AVSC_INLINE int avs_samples_per_second(const AVS_VideoInfo *p)
Definition: avxsynth_c.h:240
Definition: avxsynth_c.h:93
Definition: avxsynth_c.h:91
Definition: avxsynth_c.h:141
AVSC_INLINE int avs_frames_from_audio_samples(const AVS_VideoInfo *p, INT64 samples)
Definition: avxsynth_c.h:261
AVSC_INLINE int avs_bytes_from_pixels(const AVS_VideoInfo *p, int pixels)
Definition: avxsynth_c.h:231
AVSC_INLINE AVS_Value avs_array_elt(AVS_Value v, int index)
Definition: avxsynth_c.h:509
AVSC_INLINE INT64 avs_bytes_from_audio_samples(const AVS_VideoInfo *p, INT64 samples)
Definition: avxsynth_c.h:267
Definition: avisynth_c.h:606
Definition: avisynth_c.h:503
AVSC_INLINE INT64 avs_audio_samples_from_frames(const AVS_VideoInfo *p, INT64 frames)
Definition: avxsynth_c.h:258
Definition: avxsynth_c.h:117
Definition: avxsynth_c.h:133
Definition: avxsynth_c.h:94
Definition: avxsynth_c.h:127
AVSC_INLINE void avs_set_property(AVS_VideoInfo *p, int property)
Definition: avxsynth_c.h:277
Definition: avxsynth_c.h:111
struct AVS_VideoFrame AVS_VideoFrame
Definition: avxsynth_c.h:135
AVSC_INLINE AVS_Value avs_new_value_string(const char *v0)
Definition: avxsynth_c.h:518
Definition: avxsynth_c.h:121
Definition: avisynth_c.h:385
AVSC_INLINE void avs_set_fps(AVS_VideoInfo *p, unsigned numerator, unsigned denominator)
Definition: avxsynth_c.h:286
Definition: avxsynth_c.h:624
Definition: avxsynth_c.h:134
AVSC_INLINE int avs_get_pitch_p(const AVS_VideoFrame *p, int plane)
Definition: avxsynth_c.h:339
struct AVS_VideoInfo AVS_VideoInfo
Definition: avxsynth_c.h:143
Definition: avxsynth_c.h:87
Definition: avxsynth_c.h:85
Definition: avxsynth_c.h:116
Definition: avxsynth_c.h:110
Definition: avxsynth_c.h:106
Definition: avxsynth_c.h:108
Definition: avxsynth_c.h:138
Definition: avxsynth_c.h:126
AVSC_INLINE const unsigned char * avs_get_read_ptr(const AVS_VideoFrame *p)
Definition: avxsynth_c.h:380
Definition: avxsynth_c.h:109
AVSC_INLINE int avs_get_row_size(const AVS_VideoFrame *p)
Definition: avxsynth_c.h:344
Definition: avxsynth_c.h:122
AVSC_INLINE int avs_is_property(const AVS_VideoInfo *p, int property)
Definition: avxsynth_c.h:202
AVSC_INLINE int avs_is_parity_known(const AVS_VideoInfo *p)
Definition: avxsynth_c.h:211
AVSC_INLINE int avs_is_color_space(const AVS_VideoInfo *p, int c_space)
Definition: avxsynth_c.h:199
Definition: avxsynth_c.h:620
Definition: avxsynth_c.h:98
union AVS_Value::@12 d
Definition: avxsynth_c.h:84
AVSC_INLINE int avs_audio_channels(const AVS_VideoInfo *p)
Definition: avxsynth_c.h:270
AVSC_INLINE int avs_bytes_per_channel_sample(const AVS_VideoInfo *p)
Definition: avxsynth_c.h:244
Definition: avxsynth_c.h:129
Definition: avisynth_c.h:371
AVSC_INLINE unsigned char * avs_get_write_ptr_p(const AVS_VideoFrame *p, int plane)
Definition: avxsynth_c.h:403
Definition: avisynth_c.h:201
AVS_ScriptEnvironment AVS_Clip *AVSC_INLINE int avs_as_bool(AVS_Value v)
Definition: avxsynth_c.h:495
Definition: avxsynth_c.h:618
Definition: avxsynth_c.h:617
Definition: avxsynth_c.h:120
Definition: avxsynth_c.h:86
Definition: avxsynth_c.h:619
AVSC_INLINE int avs_bits_per_pixel(const AVS_VideoInfo *p)
Definition: avxsynth_c.h:220
AVSC_EXPORT const char *AVSC_CC avisynth_c_plugin_init(AVS_ScriptEnvironment *env)
AVSC_INLINE const unsigned char * avs_get_read_ptr_p(const AVS_VideoFrame *p, int plane)
Definition: avxsynth_c.h:383
Definition: avxsynth_c.h:623
Definition: avxsynth_c.h:125
Definition: avxsynth_c.h:124
#define type
Definition: avxsynth_c.h:622
Definition: avxsynth_c.h:115
Definition: avxsynth_c.h:89
Definition: avxsynth_c.h:625
Definition: avxsynth_c.h:105
Definition: avxsynth_c.h:139
static double clip(void *opaque, double val)
Clip value val in the minval - maxval range.
Definition: vf_lut.c:139
AVSC_INLINE AVS_VideoFrame * avs_new_video_frame(AVS_ScriptEnvironment *env, const AVS_VideoInfo *vi)
Definition: avxsynth_c.h:673
AVSC_INLINE int avs_is_same_colorspace(AVS_VideoInfo *x, AVS_VideoInfo *y)
Definition: avxsynth_c.h:296
Definition: avxsynth_c.h:132
Definition: avxsynth_c.h:107
Definition: avxsynth_c.h:142
Definition: avxsynth_c.h:92
AVSC_INLINE int avs_is_field_based(const AVS_VideoInfo *p)
Definition: avxsynth_c.h:208
AVSC_INLINE int avs_bytes_per_audio_sample(const AVS_VideoInfo *p)
Definition: avxsynth_c.h:255
Definition: avxsynth_c.h:128
Definition: avxsynth_c.h:90
AVSC_INLINE int avs_get_height_p(const AVS_VideoFrame *p, int plane)
Definition: avxsynth_c.h:372
AVSC_INLINE AVS_Value avs_new_value_array(AVS_Value *v0, int size)
Definition: avxsynth_c.h:528
AVSC_INLINE AVS_VideoFrame * avs_copy_frame(AVS_VideoFrame *f)
Definition: avxsynth_c.h:433
AVSC_INLINE AVS_Value avs_new_value_error(const char *v0)
Definition: avxsynth_c.h:522
Definition: avxsynth_c.h:621
Definition: avxsynth_c.h:100
AVSC_INLINE void avs_set_field_based(AVS_VideoInfo *p, int isfieldbased)
Definition: avxsynth_c.h:283
Definition: avxsynth_c.h:140
Filter the word “frame” indicates either a video frame or a group of audio samples
Definition: filter_design.txt:2
AVSC_INLINE INT64 avs_audio_samples_from_bytes(const AVS_VideoInfo *p, INT64 bytes)
Definition: avxsynth_c.h:264
Definition: avxsynth_c.h:83
Definition: avxsynth_c.h:101
Definition: avxsynth_c.h:123
AVSC_INLINE int avs_get_row_size_p(const AVS_VideoFrame *p, int plane)
Definition: avxsynth_c.h:347
void(AVSC_CC * AVS_ShutdownFunc)(void *user_data, AVS_ScriptEnvironment *env)
Definition: avxsynth_c.h:691
static int get_parity(uint8_t value)
Get parity bit of bit 2..7.
Definition: libavcodec/g729dec.c:186
AVSC_INLINE void avs_clear_property(AVS_VideoInfo *p, int property)
Definition: avxsynth_c.h:280
Definition: avxsynth_c.h:99
AVSC_INLINE AVS_VideoFrame * avs_new_frame(AVS_ScriptEnvironment *env, const AVS_VideoInfo *vi)
Definition: avxsynth_c.h:678
Definition: avxsynth_c.h:95
Definition: avxsynth_c.h:80
AVSC_INLINE unsigned char * avs_get_write_ptr(const AVS_VideoFrame *p)
Definition: avxsynth_c.h:394
Generated on Fri Dec 20 2024 06:55:58 for FFmpeg by 1.8.11