48 #define OFFSET(x) offsetof(IlContext, x) 49 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM 118 int dst_linesize,
int src_linesize,
123 const int m = h >> 1;
128 for (y = 0; y < m; y++) {
129 memcpy(dst + dst_linesize * y , src + src_linesize * (y * 2 + a), w);
130 memcpy(dst + dst_linesize * (y + m), src + src_linesize * (y * 2 + b), w);
134 for (y = 0; y < m; y++) {
135 memcpy(dst + dst_linesize * y * 2 , src + src_linesize * (y * 2 + a), w);
136 memcpy(dst + dst_linesize * (y * 2 + 1), src + src_linesize * (y * 2 + b), w);
140 for (y = 0; y < m; y++) {
141 memcpy(dst + dst_linesize * (y * 2 + a), src + src_linesize * y , w);
142 memcpy(dst + dst_linesize * (y * 2 + b), src + src_linesize * (y + m), w);
211 .priv_class = &il_class,
#define AV_PIX_FMT_FLAG_PAL
Pixel format has a palette in data[1], values are indexes in this palette.
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
int alpha_mode
FilterMode.
This structure describes decoded (raw) audio or video data.
static int query_formats(AVFilterContext *ctx)
int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt)
Main libavfilter public API header.
int h
agreed upon image height
AVFrame * ff_get_video_buffer(AVFilterLink *link, int w, int h)
Request a picture buffer with a specific set of permissions.
AVFILTER_DEFINE_CLASS(il)
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
const char * name
Pad name.
static void interleave(uint8_t *dst, uint8_t *src, int w, int h, int dst_linesize, int src_linesize, enum FilterMode mode, int swap)
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
#define AV_PIX_FMT_FLAG_ALPHA
The pixel format has an alpha channel.
static const AVOption il_options[]
static int config_input(AVFilterLink *inlink)
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.
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
#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
#define AV_PIX_FMT_FLAG_HWACCEL
Pixel format is an HW accelerated format.
int w
agreed upon image width
uint64_t flags
Combination of AV_PIX_FMT_FLAG_...
int format
agreed upon media format
static const AVFilterPad outputs[]
static void comp(unsigned char *dst, ptrdiff_t dst_stride, unsigned char *src, ptrdiff_t src_stride, int add)
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...
Describe the class of an AVClass context structure.
int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int width)
Fill plane linesizes for an image with pixel format pix_fmt and width width.
const char * name
Filter name.
AVFilterLink ** outputs
array of pointers to output links
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
AVFilterContext * dst
dest filter
static const AVFilterPad inputs[]
mode
Use these values in ebur128_init (or'ed).
static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
Copy only "metadata" fields from src to dst.
#define AV_CEIL_RSHIFT(a, b)