46 uint32_t plane_checksum[4] = {0}, checksum = 0;
49 for (plane = 0; picref->
data[plane] && plane < 4; plane++) {
52 int h = plane == 1 || plane == 2 ? inlink->
h >> vsub : inlink->
h;
54 for (i = 0; i < h; i++) {
62 "n:%d pts:%"PRId64
" pts_time:%f pos:%"PRId64
" "
63 "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c "
64 "checksum:%u plane_checksum:[%u %u %u %u]\n",
74 checksum, plane_checksum[0], plane_checksum[1], plane_checksum[2], plane_checksum[3]);
static void end_frame(AVFilterLink *inlink)
AVFilterBufferRefVideoProps * video
video buffer specific properties
int linesize[8]
number of bytes per line
int h
agreed upon image height
AVFilter avfilter_vf_showinfo
#define AV_PERM_READ
can read from the buffer
int top_field_first
field order
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
void avfilter_end_frame(AVFilterLink *link)
Notifie the next filter that the current frame has finished.
static double av_q2d(AVRational a)
Convert rational to double.
int key_frame
1 -> keyframe, 0-> not
char av_get_picture_type_char(enum AVPictureType pict_type)
Return a single letter to describe the given picture type pict_type.
unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, unsigned int len)
Calculate the Adler32 checksum of a buffer.
AVRational pixel_aspect
pixel aspect ratio
int64_t pts
presentation timestamp.
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.
#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
AVRational time_base
Define the time base used by the PTS of the frames/samples which will pass through this link...
void av_log(void *avcl, int level, const char *fmt,...)
const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB]
The array of all the pixel format descriptors.
int av_image_get_linesize(enum PixelFormat pix_fmt, int width, int plane)
Compute the size of an image line with format pix_fmt and width width for the plane plane...
int format
agreed upon media format
A reference to an AVFilterBuffer.
enum AVPictureType pict_type
picture type of the frame
void avfilter_null_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
start_frame() handler for filters which simply pass video along
const char * name
filter name
AVFilterBufferRef * avfilter_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
get_video_buffer() handler for filters which simply pass video along
AVFilterLink ** outputs
array of pointers to output links
int interlaced
is frame interlaced
int64_t pos
byte position in stream, -1 if unknown
AVFilterContext * dst
dest filter
uint8_t * data[8]
picture/audio data for each plane
AVFilterBufferRef * cur_buf