44 if (sd->
size <
sizeof(*stereo)) {
52 switch (stereo->
type) {
61 "(quincunx subsampling)");
break;
73 for (i = 0; i <
len; i++) {
75 *sum2 += src[i] * src[i];
83 uint32_t plane_checksum[4] = {0}, checksum = 0;
84 int64_t sum[4] = {0}, sum2[4] = {0};
96 for (i = 0; i <
h; i++) {
101 pixelcount[
plane] += linesize;
107 "n:%4"PRId64
" pts:%7s pts_time:%-7s pos:%9"PRId64
" "
108 "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c "
109 "checksum:%08"PRIX32
" plane_checksum:[%08"PRIX32,
119 checksum, plane_checksum[0]);
125 av_log(ctx,
AV_LOG_INFO,
"%"PRId64
" ", (sum[plane] + pixelcount[plane]/2) / pixelcount[plane]);
129 sqrt((sum2[plane] - sum[plane]*(
double)sum[plane]/pixelcount[plane])/pixelcount[plane]));
169 is_out ?
"out" :
"in",
static int config_props_out(AVFilterLink *link)
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.
ptrdiff_t const GLvoid * data
#define AV_LOG_WARNING
Something somehow does not look correct.
Main libavfilter public API header.
int h
agreed upon image height
Views are next to each other.
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.
timestamp utils, mostly useful for debugging/logging purposes
Stereo 3D type: this structure describes how two videos are packed within a single video surface...
static int config_props_in(AVFilterLink *link)
unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, unsigned int len)
Calculate the Adler32 checksum of a buffer.
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
The data is the AVPanScan struct defined in libavcodec.
Structure to hold side data for an AVFrame.
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.
Views are alternated temporally.
Active Format Description data consisting of a single byte as specified in ETSI TS 101 154 using AVAc...
AVFrameSideData ** side_data
A filter pad used for either input or output.
A link between two filters.
int width
width and height of the video frame
int flags
Additional information about the frame packing.
uint8_t log2_chroma_h
Amount to shift the luma height right to find the chroma height.
AVRational frame_rate
Frame rate of the stream on the link, or 1/0 if unknown or variable; if left to 0/0, will be automatically copied from the first input of the source filter if it exists.
#define av_ts2timestr(ts, tb)
Convenience macro, the return value should be used only directly in function arguments but never stan...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
ATSC A53 Part 4 Closed Captions.
static void update_sample_stats(const uint8_t *src, int len, int64_t *sum, int64_t *sum2)
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
Views are packed per line, as if interlaced.
enum AVPictureType pict_type
Picture type of the frame.
static int config_props(AVFilterContext *ctx, AVFilterLink *link, int is_out)
static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd)
AVFilterContext * src
source filter
#define AV_STEREO3D_FLAG_INVERT
Inverted views, Right/Bottom represents the left view.
int format
agreed upon media format
Views are packed per column.
Public header for libavutil Adler32 hasher.
int format
format of the frame, -1 if unknown or unset Values correspond to enum AVPixelFormat for video frames...
enum AVStereo3DType type
How views are packed within the video.
#define AV_LOG_INFO
Standard information.
This side data contains a 3x3 transformation matrix describing an affine transformation that needs to...
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
Views are next to each other, but when upscaling apply a checkerboard pattern.
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[]
const char * name
Filter name.
AVFilterLink ** outputs
array of pointers to output links
enum AVFrameSideDataType type
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
Video is not stereoscopic (and metadata has to be there).
Views are packed in a checkerboard-like structure per pixel.
double av_display_rotation_get(const int32_t matrix[9])
The display transformation matrix specifies an affine transformation that should be applied to video ...
int top_field_first
If the content is interlaced, is top field displayed first.
#define av_ts2str(ts)
Convenience macro, the return value should be used only directly in function arguments but never stan...
AVFilterContext * dst
dest filter
int64_t av_frame_get_pkt_pos(const AVFrame *frame)
Views are on top of each other.
int key_frame
1 -> keyframe, 0-> not
Stereoscopic 3d metadata.
int64_t frame_count
Number of past frames sent through the link.
#define AV_CEIL_RSHIFT(a, b)