60 int i, c, w = inlink->
w, h = inlink->
h;
63 outlink->
w, outlink->
h);
71 for (i = 0; i < 4; i++) {
84 memcpy(out->
data[1], in->
data[1], 256*4);
90 for (i = 0; i < h1; i++) {
129 .
name =
"pixdesctest",
135 .
inputs = avfilter_vf_pixdesctest_inputs,
137 .
outputs = avfilter_vf_pixdesctest_outputs,
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
int linesize[8]
number of bytes per line
static const AVFilterPad outputs[]
int h
agreed upon image height
static av_cold void uninit(AVFilterContext *ctx)
int ff_filter_frame(AVFilterLink *link, AVFilterBufferRef *frame)
Send a frame of data to the next filter.
uint8_t log2_chroma_w
Amount to shift the luma width right to find the chroma width.
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
#define AV_PERM_READ
can read from the buffer
const char * name
Pad name.
static const AVFilterPad avfilter_vf_pixdesctest_inputs[]
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
void av_write_image_line(const uint16_t *src, uint8_t *data[4], const int linesize[4], const AVPixFmtDescriptor *desc, int x, int y, int c, int w)
Write the values from src to the pixel format component c of an image line.
void avfilter_unref_bufferp(AVFilterBufferRef **ref)
Remove a reference to a buffer and set the pointer to NULL.
A filter pad used for either input or output.
A link between two filters.
AVFilterBufferRef * ff_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
Request a picture buffer with a specific set of permissions.
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. ...
static int config_props(AVFilterLink *inlink)
void * priv
private data for use by the filter
#define PIX_FMT_PAL
Pixel format has a palette in data[1], values are indexes in this palette.
int w
agreed upon image width
uint8_t nb_components
The number of components each pixel has, (1-4)
AVFilter avfilter_vf_pixdesctest
static const AVFilterPad avfilter_vf_pixdesctest_outputs[]
int format
agreed upon media format
A reference to an AVFilterBuffer.
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
static const AVFilterPad inputs[]
const char * name
filter name
AVFilterLink ** outputs
array of pointers to output links
void av_read_image_line(uint16_t *dst, const uint8_t *data[4], const int linesize[4], const AVPixFmtDescriptor *desc, int x, int y, int c, int w, int read_pal_component)
Read a line from an image, and write the values of the pixel format component c to dst...
common internal and external API header
void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src)
Copy properties of src to dst, without copying the actual data.
#define AV_PERM_WRITE
can write to the buffer
#define PIX_FMT_PSEUDOPAL
The pixel format is "pseudo-paletted".
AVFilterContext * dst
dest filter
uint8_t * data[8]
picture/audio data for each plane
const AVPixFmtDescriptor * pix_desc