58 for (
i = 0;
i < 4;
i ++) {
59 int vsub =
i == 1 ||
i == 2 ?
flip->vsub : 0;
76 uint8_t *inrow = in->
data[0], *outrow;
89 outrow =
out->data[0] +
out->linesize[0] * (outlink->
h - 2);
90 for (
i = 0;
i < outlink->
h >> 1;
i++) {
91 memcpy(outrow, inrow,
width);
94 outrow -= 2 *
out->linesize[0];
108 for (
i = 0;
i < 4;
i ++) {
109 int vsub =
i == 1 ||
i == 2 ?
flip->vsub : 0;
static int config_input(AVFilterLink *inlink)
const FFFilter ff_vf_vflip
static AVFrame * get_video_buffer(AVFilterLink *inlink, int w, int h)
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
Main libavfilter public API header.
#define i(width, name, range_min, range_max)
#define AV_CEIL_RSHIFT(a, b)
static int filter_frame(DBEDecodeContext *s, AVFrame *frame)
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
Copy only "metadata" fields from src to dst.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static void flip(AVCodecContext *avctx, AVFrame *frame)
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
#define AV_PIX_FMT_FLAG_BAYER
The pixel format is following a Bayer pattern.
int step
Number of elements between 2 horizontally consecutive pixels.
void * priv
private data for use by the filter
AVFilterLink ** outputs
array of pointers to output links
A link between two filters.
int w
agreed upon image width
int h
agreed upon image height
AVFilterContext * dst
dest filter
int format
agreed upon media format
A filter pad used for either input or output.
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int linesize[AV_NUM_DATA_POINTERS]
For video, a positive or negative value, which is typically indicating the size in bytes of each pict...
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
AVComponentDescriptor comp[4]
Parameters that describe how pixels are packed.
int vsub
vertical chroma subsampling
static AVFormatContext * ctx
static int flip_bayer(AVFilterLink *link, AVFrame *in)
static AVFrame * get_video_buffer(AVFilterLink *link, int w, int h)
static const AVFilterPad avfilter_vf_vflip_inputs[]
static int filter_frame(AVFilterLink *link, AVFrame *frame)
static int config_input(AVFilterLink *link)
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
AVFrame * ff_get_video_buffer(AVFilterLink *link, int w, int h)
Request a picture buffer with a specific set of permissions.