49 uint32_t plane_checksum[4] = {0}, checksum = 0;
52 for (plane = 0; frame->
data[plane] && plane < 4; plane++) {
55 int h = plane == 1 || plane == 2 ? inlink->
h >> vsub : inlink->
h;
57 for (i = 0; i < h; i++) {
65 "n:%d pts:%"PRId64
" pts_time:%f pos:%"PRId64
" "
66 "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c "
67 "checksum:%u plane_checksum:[%u %u %u %u]\n",
77 checksum, plane_checksum[0], plane_checksum[1], plane_checksum[2], plane_checksum[3]);
109 .
inputs = avfilter_vf_showinfo_inputs,
111 .
outputs = avfilter_vf_showinfo_outputs,
int av_image_get_linesize(enum AVPixelFormat pix_fmt, int width, int plane)
Compute the size of an image line with format pix_fmt and width width for the plane plane...
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
AVFilterBufferRefVideoProps * video
video buffer specific properties
int linesize[8]
number of bytes per line
static const AVFilterPad outputs[]
int h
agreed upon image height
int ff_filter_frame(AVFilterLink *link, AVFilterBufferRef *frame)
Send a frame of data to the next filter.
AVFilter avfilter_vf_showinfo
static const AVFilterPad avfilter_vf_showinfo_inputs[]
#define AV_PERM_READ
can read from the buffer
const char * name
Pad name.
int top_field_first
field order
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,...)
common internal API header
static av_cold int init(AVFilterContext *ctx, const char *args)
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 avfilter_vf_showinfo_outputs[]
enum AVPictureType pict_type
picture type of the frame
static const AVFilterPad inputs[]
const char * name
filter name
AVFilterLink ** outputs
array of pointers to output links
int interlaced
is frame interlaced
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *frame)
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 * ff_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)