25 #include "libavutil/adler32.h"
26 #include "libavutil/imgutils.h"
28 #include "libavutil/pixdesc.h"
29 #include "libavutil/timestamp.h"
38 uint32_t plane_checksum[4] = {0}, checksum = 0;
41 for (plane = 0; plane < 4 && frame->
data[plane] && frame->
linesize[plane]; plane++) {
44 int h = plane == 1 || plane == 2 ?
FF_CEIL_RSHIFT(inlink->
h, vsub) : inlink->
h;
49 for (i = 0; i < h; i++) {
57 "n:%"PRId64
" pts:%s pts_time:%s pos:%"PRId64
" "
58 "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c "
59 "checksum:%08X plane_checksum:[%08X",
69 checksum, plane_checksum[0]);
71 for (plane = 1; plane < 4 && frame->
data[plane] && frame->
linesize[plane]; plane++)
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...
This structure describes decoded (raw) audio or video data.
const char * name
Filter name.
#define av_ts2timestr(ts, tb)
Convenience macro, the return value should be used only directly in function arguments but never stan...
int h
agreed upon image height
AVFilter avfilter_vf_showinfo
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
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.
unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, unsigned int len) av_pure
Calculate the Adler32 checksum of a buffer.
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
#define FF_CEIL_RSHIFT(a, b)
char av_get_picture_type_char(enum AVPictureType pict_type)
Return a single letter to describe the given picture type pict_type.
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. ...
AVRational time_base
Define the time base used by the PTS of the frames/samples which will pass through this link...
common internal API header
enum AVPictureType pict_type
Picture type of the frame.
int format
agreed upon media format
Main libavfilter public API header.
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
AVFilterLink ** outputs
array of pointers to output links
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.
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[]
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
AVFilterContext * dst
dest filter
int top_field_first
If the content is interlaced, is top field displayed first.
int key_frame
1 -> keyframe, 0-> not
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
#define av_ts2str(ts)
Convenience macro, the return value should be used only directly in function arguments but never stan...
int64_t av_frame_get_pkt_pos(const AVFrame *frame)
int64_t frame_count
Number of past frames sent through the link.