94                "Left and right sizes differ (%dx%d vs %dx%d).\n",
   100                "Left and right time bases differ (%d/%d vs %d/%d).\n",
   101                time_base.
num, time_base.
den,
   107                "Left and right framerates differ (%d/%d vs %d/%d).\n",
   108                frame_rate.
num, frame_rate.
den,
   163             if (plane == 1 || plane == 2) {
   167             for (i = 0; i < lines; i++) {
   174                 for (j = 0; j < 
length; j++) {
   178                         (plane == 1 || plane == 2)) {
   179                         *dstp++ = (*leftp + *rightp) / 2;
   180                         *dstp++ = (*leftp + *rightp) / 2;
   191         for (i = 0; i < 2; i++) {
   201             dst[1] = out->
data[1] + i * sub_w;
   202             dst[2] = out->
data[2] + i * sub_w;
   220     for (i = 0; i < 2; i++) {
   233                  (interleaved + sub_h * (1 - interleaved));
   235                  (interleaved + sub_h * (1 - interleaved));
   295     for (i = 0; i < 2; i++) {
   318         for (i = 0; i < 2; i++) {
   351         for (i = 0; i < 2; i++)
   366 #define OFFSET(x) offsetof(FramepackContext, x)   367 #define V AV_OPT_FLAG_VIDEO_PARAM   416     .priv_class    = &framepack_class,
   418     .
inputs        = framepack_inputs,
 
static int filter_frame_right(AVFilterLink *inlink, AVFrame *frame)
 
#define AVERROR_INVALIDDATA
Invalid data found when processing input. 
 
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
 
This structure describes decoded (raw) audio or video data. 
 
enum AVStereo3DView view
Determines which views are packed. 
 
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples) 
 
Main libavfilter public API header. 
 
int h
agreed upon image height 
 
static int try_push_frame(AVFilterContext *ctx)
 
Frame contains only the right view. 
 
static enum AVPixelFormat formats_supported[]
 
Views are next to each other. 
 
AVFrame * ff_get_video_buffer(AVFilterLink *link, int w, int h)
Request a picture buffer with a specific set of permissions. 
 
static void vertical_frame_pack(AVFilterLink *outlink, AVFrame *out, int interleaved)
 
uint8_t log2_chroma_w
Amount to shift the luma width right to find the chroma width. 
 
Frame contains only the left view. 
 
const char * name
Pad name. 
 
AVFilterLink ** inputs
array of pointers to input links 
 
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter. 
 
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples) 
 
AVFILTER_DEFINE_CLASS(framepack)
 
static av_cold int uninit(AVCodecContext *avctx)
 
Stereo 3D type: this structure describes how two videos are packed within a single video surface...
 
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user). 
 
static int query_formats(AVFilterContext *ctx)
 
planar YUV 4:4:0 full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV440P and setting color_range...
 
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting col...
 
static void horizontal_frame_pack(AVFilterLink *outlink, AVFrame *out, int interleaved)
 
A filter pad used for either input or output. 
 
A link between two filters. 
 
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered. 
 
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. 
 
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g. 
 
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
 
Views are packed per line, as if interlaced. 
 
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...
 
int64_t double_pts
new pts for frameseq mode 
 
static int filter_frame_left(AVFilterLink *inlink, AVFrame *frame)
 
void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4], const uint8_t *src_data[4], const int src_linesizes[4], enum AVPixelFormat pix_fmt, int width, int height)
Copy image in src_data to dst_data. 
 
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples) 
 
AVStereo3D * av_stereo3d_create_side_data(AVFrame *frame)
Allocate a complete AVFrameSideData and add it to the frame. 
 
int w
agreed upon image width 
 
Views are alternated temporally. 
 
uint8_t nb_components
The number of components each pixel has, (1-4) 
 
AVStereo3DType
List of possible 3D Types. 
 
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
 
AVFrame * input_views[2]
input frames 
 
AVFilterContext * src
source filter 
 
static const AVFilterPad inputs[]
 
static const AVFilterPad outputs[]
 
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...
 
enum AVStereo3DType type
How views are packed within the video. 
 
Views are on top of each other. 
 
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...
 
enum AVStereo3DType format
frame pack type output 
 
#define AVERROR_BUG
Internal bug, also see AVERROR_BUG2. 
 
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples) 
 
Describe the class of an AVClass context structure. 
 
Rational number (pair of numerator and denominator). 
 
static int request_frame(AVFilterLink *outlink)
 
static const AVFilterPad framepack_inputs[]
 
const char * name
Filter name. 
 
AVFilterLink ** outputs
array of pointers to output links 
 
const AVPixFmtDescriptor * pix_desc
agreed pixel format 
 
static int config_output(AVFilterLink *outlink)
 
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes. 
 
static av_cold void framepack_uninit(AVFilterContext *ctx)
 
static int av_cmp_q(AVRational a, AVRational b)
Compare two rationals. 
 
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples) 
 
common internal and external API header 
 
Utilties for rational number calculation. 
 
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting col...
 
Views are packed per column. 
 
AVFilterContext * dst
dest filter 
 
static const AVOption framepack_options[]
 
static const AVFilterPad framepack_outputs[]
 
static av_always_inline void spatial_frame_pack(AVFilterLink *outlink, AVFrame *dst)
 
int ff_request_frame(AVFilterLink *link)
Request an input frame from the filter at the other end of the link. 
 
AVPixelFormat
Pixel format. 
 
int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
Copy only "metadata" fields from src to dst. 
 
#define AV_NOPTS_VALUE
Undefined timestamp value. 
 
#define AV_CEIL_RSHIFT(a, b)