50 #if FF_API_ERROR_FRAME
75 desc->nb_components < 3 ||
76 (
desc->comp[1].depth !=
desc->comp[2].depth))
78 for (
i = 0;
i <
desc->nb_components;
i++) {
79 if (
desc->comp[
i].offset != 0 ||
80 desc->comp[
i].shift != 0 ||
125 .priv_class = &swapuv_class,
static const AVFilterPad inputs[]
static const AVFilterPad outputs[]
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
Main libavfilter public API header.
#define flags(name, subs,...)
#define FFSWAP(type, a, b)
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define FF_DISABLE_DEPRECATION_WARNINGS
#define FF_ENABLE_DEPRECATION_WARNINGS
Libavutil version macros.
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
#define AV_PIX_FMT_FLAG_ALPHA
The pixel format has an alpha channel.
#define AV_PIX_FMT_FLAG_PLANAR
At least one pixel component is not in the first data plane.
#define AV_PIX_FMT_FLAG_BE
Pixel format is big-endian.
A reference to a data buffer.
Describe the class of an AVClass context structure.
AVFilterLink ** outputs
array of pointers to output links
A link between two filters.
AVFilterContext * dst
dest filter
A filter pad used for either input or output.
const char * name
Pad name.
const char * name
Filter name.
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
attribute_deprecated uint64_t error[AV_NUM_DATA_POINTERS]
AVBufferRef * buf[AV_NUM_DATA_POINTERS]
AVBuffer references backing the data for this frame.
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
static AVFrame * get_video_buffer(AVFilterLink *link, int w, int h)
static const AVOption swapuv_options[]
static int query_formats(AVFilterContext *ctx)
static void do_swap(AVFrame *frame)
static const AVFilterPad swapuv_outputs[]
static const AVFilterPad swapuv_inputs[]
static int filter_frame(AVFilterLink *link, AVFrame *inpicref)
static int is_planar_yuv(const AVPixFmtDescriptor *desc)
AVFILTER_DEFINE_CLASS(swapuv)
AVFrame * ff_default_get_video_buffer(AVFilterLink *link, int w, int h)