42 uint32_t plane_checksum[4] = {0}, checksum = 0;
45 for (plane = 0; frame->
data[plane] && plane < 4; plane++) {
48 int h = plane == 1 || plane == 2 ? inlink->
h >> vsub : inlink->
h;
50 for (i = 0; i < h; i++) {
58 "n:%d pts:%"PRId64
" pts_time:%f "
59 "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c "
60 "checksum:%u plane_checksum:[%u %u %u %u]\n",
70 checksum, plane_checksum[0], plane_checksum[1], plane_checksum[2], plane_checksum[3]);
100 .
inputs = avfilter_vf_showinfo_inputs,
102 .
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)
This structure describes decoded (raw) audio or video data.
static const AVFilterPad outputs[]
Main libavfilter public API header.
int h
agreed upon image height
AVFrame * ff_null_get_video_buffer(AVFilterLink *link, int w, int h)
static const AVFilterPad avfilter_vf_showinfo_inputs[]
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
const char * name
Pad name.
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
static double av_q2d(AVRational a)
Convert rational to double.
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.
int interlaced_frame
The content of the picture is interlaced.
A filter pad used for either input or output.
A link between two filters.
int width
width and height of the video frame
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
enum AVPictureType pict_type
Picture type of the frame.
int format
agreed upon media format
int format
format of the frame, -1 if unknown or unset Values correspond to enum AVPixelFormat for video frames...
#define AV_LOG_INFO
Standard information.
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...
AVRational sample_aspect_ratio
Sample aspect ratio for the video frame, 0/1 if unknown/unspecified.
static const AVFilterPad avfilter_vf_showinfo_outputs[]
static const AVFilterPad inputs[]
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.
int top_field_first
If the content is interlaced, is top field displayed first.
AVFilterContext * dst
dest filter
int key_frame
1 -> keyframe, 0-> not