FFmpeg
|
avisynth_c.h
Go to the documentation of this file.
135 AVS_CS_PLANAR_MASK = AVS_CS_PLANAR | AVS_CS_INTERLEAVED | AVS_CS_YUV | AVS_CS_BGR | AVS_CS_SAMPLE_BITS_MASK | AVS_CS_SUB_HEIGHT_MASK | AVS_CS_SUB_WIDTH_MASK,
148 AVS_CS_YV24 = AVS_CS_PLANAR | AVS_CS_YUV | AVS_CS_SAMPLE_BITS_8 | AVS_CS_VPLANEFIRST | AVS_CS_SUB_HEIGHT_1 | AVS_CS_SUB_WIDTH_1, // YVU 4:4:4 planar
149 AVS_CS_YV16 = AVS_CS_PLANAR | AVS_CS_YUV | AVS_CS_SAMPLE_BITS_8 | AVS_CS_VPLANEFIRST | AVS_CS_SUB_HEIGHT_1 | AVS_CS_SUB_WIDTH_2, // YVU 4:2:2 planar
150 AVS_CS_YV12 = AVS_CS_PLANAR | AVS_CS_YUV | AVS_CS_SAMPLE_BITS_8 | AVS_CS_VPLANEFIRST | AVS_CS_SUB_HEIGHT_2 | AVS_CS_SUB_WIDTH_2, // YVU 4:2:0 planar
151 AVS_CS_I420 = AVS_CS_PLANAR | AVS_CS_YUV | AVS_CS_SAMPLE_BITS_8 | AVS_CS_UPLANEFIRST | AVS_CS_SUB_HEIGHT_2 | AVS_CS_SUB_WIDTH_2, // YUV 4:2:0 planar
153 AVS_CS_YV411 = AVS_CS_PLANAR | AVS_CS_YUV | AVS_CS_SAMPLE_BITS_8 | AVS_CS_VPLANEFIRST | AVS_CS_SUB_HEIGHT_1 | AVS_CS_SUB_WIDTH_4, // YVU 4:1:1 planar
154 AVS_CS_YUV9 = AVS_CS_PLANAR | AVS_CS_YUV | AVS_CS_SAMPLE_BITS_8 | AVS_CS_VPLANEFIRST | AVS_CS_SUB_HEIGHT_4 | AVS_CS_SUB_WIDTH_4, // YVU 4:1:0 planar
155 AVS_CS_Y8 = AVS_CS_PLANAR | AVS_CS_INTERLEAVED | AVS_CS_YUV | AVS_CS_SAMPLE_BITS_8 // Y 4:0:0 planar
262 { return avs_is_planar(p) ? ((p->pixel_type & AVS_CS_PLANAR_MASK) == (c_space & AVS_CS_PLANAR_FILTER)) : ((p->pixel_type & c_space) == c_space); }
288 { return pixels * (avs_bits_per_pixel(p)>>3); } // Will work on planar images, but will return only luma planes
294 { 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); }
315 { return ((INT64)(frames) * p->audio_samples_per_second * p->fps_denominator / p->fps_numerator); }
318 { return (int)(samples * (INT64)p->fps_numerator / (INT64)p->fps_denominator / (INT64)p->audio_samples_per_second); }
388 int offset, pitch, row_size, height, offsetU, offsetV, pitchUV; // U&V offsets are from top of picture.
689 AVSC_API(int, avs_set_global_var)(AVS_ScriptEnvironment *, const char* name, const AVS_Value val);
713 AVSC_API(void, avs_bit_blt)(AVS_ScriptEnvironment *, BYTE* dstp, int dst_pitch, const BYTE* srcp, int src_pitch, int row_size, int height);
716 AVSC_API(void, avs_at_exit)(AVS_ScriptEnvironment *, AVS_ShutdownFunc function, void * user_data);
718 AVSC_API(AVS_VideoFrame *, avs_subframe)(AVS_ScriptEnvironment *, AVS_VideoFrame * src, int rel_offset, int new_pitch, int new_row_size, int new_height);
738 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);
742 // use LoadLibrary and related functions to dynamically load Avisynth instead of declspec(dllimport)
Definition: avisynth_c.h:104
Definition: avisynth_c.h:159
struct AVS_VideoFrame AVS_VideoFrame
Definition: avisynth_c.h:653
AVSC_INLINE AVS_VideoFrame * avs_new_video_frame(AVS_ScriptEnvironment *env, const AVS_VideoInfo *vi)
Definition: avisynth_c.h:700
AVSC_INLINE int avs_is_same_colorspace(AVS_VideoInfo *x, AVS_VideoInfo *y)
Definition: avisynth_c.h:352
Definition: avisynth_c.h:165
Definition: avisynth_c.h:130
Definition: avisynth_c.h:92
Definition: avisynth_c.h:173
Definition: avisynth_c.h:122
Definition: avisynth_c.h:142
AVSC_INLINE int avs_bytes_per_audio_sample(const AVS_VideoInfo *p)
Definition: avisynth_c.h:311
AVSC_INLINE int avs_get_height_p(const AVS_VideoFrame *p, int plane)
Definition: avisynth_c.h:429
Definition: avisynth_c.h:141
AVSC_INLINE AVS_VideoFrame * avs_copy_frame(AVS_VideoFrame *f)
Definition: avisynth_c.h:484
AVSC_INLINE AVS_Value avs_new_value_error(const char *v0)
Definition: avisynth_c.h:565
Definition: avisynth_c.h:606
AVSC_INLINE int avs_get_row_size_p(const AVS_VideoFrame *p, int plane)
Definition: avisynth_c.h:404
Definition: avisynth_c.h:167
Definition: avisynth_c.h:503
AVSC_INLINE INT64 avs_audio_samples_from_bytes(const AVS_VideoInfo *p, INT64 bytes)
Definition: avisynth_c.h:320
AVSC_INLINE void avs_set_fps(AVS_VideoInfo *p, unsigned numerator, unsigned denominator)
Definition: avisynth_c.h:342
Definition: avisynth_c.h:651
Definition: avisynth_c.h:177
Definition: avisynth_c.h:187
Definition: avisynth_c.h:87
Definition: avisynth_c.h:101
Definition: avisynth_c.h:646
Definition: avisynth_c.h:648
AVSC_INLINE BYTE * avs_get_write_ptr(const AVS_VideoFrame *p)
Definition: avisynth_c.h:451
AVSC_INLINE int avs_is_parity_known(const AVS_VideoInfo *p)
Definition: avisynth_c.h:267
Definition: avisynth_c.h:126
Definition: avisynth_c.h:113
Definition: avisynth_c.h:89
Definition: avisynth_c.h:171
Definition: avisynth_c.h:660
Definition: avisynth_c.h:119
Definition: avisynth_c.h:148
AVSC_INLINE int avs_audio_channels(const AVS_VideoInfo *p)
Definition: avisynth_c.h:326
Definition: avisynth_c.h:85
AVSC_INLINE int avs_samples_per_second(const AVS_VideoInfo *p)
Definition: avisynth_c.h:296
AVSC_INLINE int avs_is_property(const AVS_VideoInfo *p, int property)
Definition: avisynth_c.h:255
AVSC_INLINE int avs_is_color_space(const AVS_VideoInfo *p, int c_space)
Definition: avisynth_c.h:261
Definition: avisynth_c.h:184
AVSC_INLINE int avs_bytes_from_pixels(const AVS_VideoInfo *p, int pixels)
Definition: avisynth_c.h:287
AVSC_INLINE AVS_Value avs_array_elt(AVS_Value v, int index)
Definition: avisynth_c.h:552
AVSC_INLINE INT64 avs_bytes_from_audio_samples(const AVS_VideoInfo *p, INT64 samples)
Definition: avisynth_c.h:323
Definition: avisynth_c.h:183
Definition: avisynth_c.h:164
Definition: avisynth_c.h:102
AVSC_INLINE const BYTE * avs_get_read_ptr(const AVS_VideoFrame *p)
Definition: avisynth_c.h:437
AVSC_INLINE const BYTE * avs_get_read_ptr_p(const AVS_VideoFrame *p, int plane)
Definition: avisynth_c.h:440
Definition: avisynth_c.h:94
Definition: avisynth_c.h:385
Definition: avisynth_c.h:88
Definition: avisynth_c.h:170
Definition: avisynth_c.h:168
Definition: avisynth_c.h:109
Definition: avisynth_c.h:166
Definition: avisynth_c.h:131
AVSC_EXPORT const char *AVSC_CC avisynth_c_plugin_init(AVS_ScriptEnvironment *env)
Definition: avisynth_c.h:176
AVSC_INLINE void avs_set_property(AVS_VideoInfo *p, int property)
Definition: avisynth_c.h:333
Definition: avisynth_c.h:154
Definition: avisynth_c.h:117
Definition: avisynth_c.h:125
Definition: avisynth_c.h:182
Definition: avisynth_c.h:172
Definition: avisynth_c.h:146
Definition: avisynth_c.h:186
union AVS_Value::@12 d
Definition: avisynth_c.h:105
Definition: avisynth_c.h:160
Definition: avisynth_c.h:371
Definition: avisynth_c.h:118
AVSC_INLINE AVS_Value avs_new_value_string(const char *v0)
Definition: avisynth_c.h:561
Definition: avisynth_c.h:201
Definition: avisynth_c.h:111
AVSC_INLINE int avs_get_pitch_p(const AVS_VideoFrame *p, int plane)
Definition: avisynth_c.h:396
Definition: avisynth_c.h:143
Definition: avisynth_c.h:128
Definition: avisynth_c.h:185
Definition: avisynth_c.h:97
Definition: avisynth_c.h:123
AVSC_INLINE BYTE * avs_get_write_ptr_p(const AVS_VideoFrame *p, int plane)
Definition: avisynth_c.h:460
Definition: avisynth_c.h:114
Definition: avisynth_c.h:103
struct AVS_VideoInfo AVS_VideoInfo
Definition: avisynth_c.h:133
AVSC_INLINE int avs_get_row_size(const AVS_VideoFrame *p)
Definition: avisynth_c.h:401
Definition: avisynth_c.h:650
Definition: avisynth_c.h:100
Definition: avisynth_c.h:95
Definition: avisynth_c.h:656
Definition: avisynth_c.h:86
Definition: avisynth_c.h:150
Definition: avisynth_c.h:115
AVSC_INLINE int avs_is_field_based(const AVS_VideoInfo *p)
Definition: avisynth_c.h:264
Definition: avisynth_c.h:110
Definition: avisynth_c.h:132
AVSC_INLINE AVS_Value avs_new_value_array(AVS_Value *v0, int size)
Definition: avisynth_c.h:571
Definition: avisynth_c.h:99
Definition: avisynth_c.h:151
AVSC_INLINE int avs_bytes_per_channel_sample(const AVS_VideoInfo *p)
Definition: avisynth_c.h:300
AVSC_INLINE void avs_set_field_based(AVS_VideoInfo *p, int isfieldbased)
Definition: avisynth_c.h:339
Definition: avisynth_c.h:169
Definition: avisynth_c.h:98
AVS_ScriptEnvironment AVS_Clip *AVSC_INLINE int avs_as_bool(AVS_Value v)
Definition: avisynth_c.h:538
Definition: avisynth_c.h:82
void(AVSC_CC * AVS_ShutdownFunc)(void *user_data, AVS_ScriptEnvironment *env)
Definition: avisynth_c.h:715
AVSC_INLINE void avs_clear_property(AVS_VideoInfo *p, int property)
Definition: avisynth_c.h:336
Definition: avisynth_c.h:179
AVSC_INLINE AVS_VideoFrame * avs_new_frame(AVS_ScriptEnvironment *env, const AVS_VideoInfo *vi)
Definition: avisynth_c.h:705
Definition: avisynth_c.h:93
struct AVS_VideoFrameBuffer AVS_VideoFrameBuffer
AVSC_INLINE int avs_bits_per_pixel(const AVS_VideoInfo *p)
Definition: avisynth_c.h:276
AVSC_INLINE AVS_Value avs_new_value_clip(AVS_Clip *v0)
Definition: avisynth_c.h:568
Definition: avisynth_c.h:649
Definition: avisynth_c.h:161
AVSC_INLINE int avs_frames_from_audio_samples(const AVS_VideoInfo *p, INT64 samples)
Definition: avisynth_c.h:317
Definition: avisynth_c.h:127
Definition: avisynth_c.h:155
Definition: avisynth_c.h:654
Definition: avisynth_c.h:657
Definition: avisynth_c.h:135
Definition: avisynth_c.h:178
Definition: avisynth_c.h:120
AVSC_INLINE INT64 avs_audio_samples_from_frames(const AVS_VideoInfo *p, INT64 frames)
Definition: avisynth_c.h:314
Definition: avisynth_c.h:140
Filter the word “frame” indicates either a video frame or a group of audio samples
Definition: filter_design.txt:2
Definition: avisynth_c.h:108
Definition: avisynth_c.h:136
Definition: avisynth_c.h:91
Definition: avisynth_c.h:652
Definition: avisynth_c.h:659
Definition: avisynth_c.h:658
static int get_parity(uint8_t value)
Get parity bit of bit 2..7.
Definition: libavcodec/g729dec.c:186
Definition: avisynth_c.h:647
Definition: avisynth_c.h:153
Definition: avisynth_c.h:149
Definition: avisynth_c.h:96
Definition: avisynth_c.h:152
MUSIC TECHNOLOGY GROUP UNIVERSITAT POMPEU FABRA Free Non Commercial Binary License Agreement UNIVERSITAT POMPEU OR INDICATING ACCEPTANCE BY SELECTING THE ACCEPT BUTTON ON ANY DOWNLOAD OR INSTALL YOU ACCEPT THE TERMS OF THE LICENSE SUMMARY TABLE Software MELODIA Melody Extraction vamp plug in Licensor Music Technology Group Universitat Pompeu Plaça de la Spain Permitted purposes Non commercial internal research and validation and educational purposes only All commercial uses in a production either internal or are prohibited by this license and require an additional commercial exploitation license TERMS AND CONDITIONS SOFTWARE Software means the software programs identified herein in binary any other machine readable any updates or error corrections provided by and any user programming guides and other documentation provided to you by UPF under this Agreement LICENSE Subject to the terms and conditions of this UPF grants you a royalty free
Definition: MELODIA - License.txt:16
Generated on Fri Dec 20 2024 06:55:58 for FFmpeg by 1.8.11