53 for (i = 0; i < 4; i ++) {
54 int vsub = i == 1 || i == 2 ? flip->
vsub : 0;
56 if (picref->
data[i]) {
57 picref->
data[i] += ((h >> vsub)-1) * picref->
linesize[i];
71 for (i = 0; i < 4; i ++) {
72 int vsub = i == 1 || i == 2 ? flip->
vsub : 0;
74 if (outpicref->
data[i]) {
75 outpicref->
data[i] += ((link->
h >> vsub)-1) * outpicref->
linesize[i];
AVFilterBufferRef * avfilter_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
Request a picture buffer with a specific set of permissions.
int linesize[8]
number of bytes per line
static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
int h
agreed upon image height
A filter pad used for either input or output.
A link between two filters.
uint8_t log2_chroma_h
Amount to shift the luma height right to find the chroma height.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void * priv
private data for use by the filter
AVFilterBufferRef * avfilter_default_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
default handler for get_video_buffer() for video inputs
const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB]
The array of all the pixel format descriptors.
AVFilter avfilter_vf_vflip
void avfilter_draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
Send a slice to the next filter.
static AVFilterBufferRef * get_video_buffer(AVFilterLink *link, int perms, int w, int h)
static int config_input(AVFilterLink *link)
int format
agreed upon media format
A reference to an AVFilterBuffer.
AVFilterBufferRef * avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask)
Add a new reference to a buffer.
void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
Notify the next filter of the start of a frame.
static void start_frame(AVFilterLink *link, AVFilterBufferRef *inpicref)
const char * name
filter name
AVFilterLink ** outputs
array of pointers to output links
static void flip(AVCodecContext *avctx, AVPicture *picture)
AVFilterContext * dst
dest filter
uint8_t * data[8]
picture/audio data for each plane
int vsub
chroma subsampling
#define AV_PERM_NEG_LINESIZES
the buffer requested can have negative linesizes