60 outlink->
w, outlink->
h);
64 for (i = 0; i < 4; i++) {
67 if (outpicref->
data[i]) {
76 memcpy(outpicref->
data[1], outpicref->
data[1], 256*4);
86 int i, c, w = inlink->
w;
93 for (i = y1; i < y1 + h1; i++) {
112 .
name =
"pixdesctest",
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 avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src)
Copy properties of src to dst, without copying the actual data.
int h
agreed upon image height
static av_cold void uninit(AVFilterContext *ctx)
AVFilterBufferRef * out_buf
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
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.
static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
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.
static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)
#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.
const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB]
The array of all the pixel format descriptors.
int w
agreed upon image width
uint8_t nb_components
The number of components each pixel has, (1-4)
AVFilter avfilter_vf_pixdesctest
void avfilter_draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
Send a slice to the next filter.
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...
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
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.
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...
#define AV_PERM_WRITE
can write to the buffer
AVFilterContext * dst
dest filter
uint8_t * data[8]
picture/audio data for each plane
const AVPixFmtDescriptor * pix_desc
AVFilterBufferRef * cur_buf