47 if (sd->
size <
sizeof(*stereo)) {
55 switch (stereo->
type) {
64 "(quincunx subsampling)");
break;
77 uint32_t plane_checksum[4] = {0}, checksum = 0;
80 for (plane = 0; frame->
data[plane] && plane < 4; plane++) {
82 int h = plane == 1 || plane == 2 ? inlink->
h >> vsub : inlink->
h;
87 for (i = 0; i < h; i++) {
95 "n:%d pts:%"PRId64
" pts_time:%f " 96 "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c " 97 "checksum:%"PRIu32
" plane_checksum:[%"PRIu32
" %"PRIu32
" %"PRIu32
" %"PRIu32
"]\n",
107 checksum, plane_checksum[0], plane_checksum[1], plane_checksum[2], plane_checksum[3]);
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...
Views are packed per line, as if interlaced.
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
This structure describes decoded (raw) audio or video data.
Views are alternated temporally.
Views are next to each other, but when upscaling apply a checkerboard pattern.
#define AV_LOG_WARNING
Something somehow does not look correct.
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)
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
Stereo 3D type: this structure describes how two videos are packed within a single video surface...
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.
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.
int interlaced_frame
The content of the picture is interlaced.
Active Format Description data consisting of a single byte as specified in ETSI TS 101 154 using enum...
AVFrameSideData ** side_data
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.
#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
ATSC A53 Part 4 Closed Captions.
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,...)
Video is not stereoscopic (and metadata has to be there).
common internal API header
enum AVPictureType pict_type
Picture type of the frame.
static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd)
#define AV_STEREO3D_FLAG_INVERT
Inverted views, Right/Bottom represents the left view.
int format
agreed upon media format
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.
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
Views are on top of each other.
enum AVFrameSideDataType type
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
Views are next to each other.
struct AVFilterPad AVFilterPad
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.
AVFilterContext * dst
dest filter
Views are packed in a checkerboard-like structure per pixel.
int key_frame
1 -> keyframe, 0-> not
Views are packed per column.
Stereoscopic 3d metadata.