FFmpeg
Functions | Variables
stereo3d.c File Reference
#include <string.h>
#include "avstring.h"
#include "frame.h"
#include "macros.h"
#include "mem.h"
#include "stereo3d.h"

Go to the source code of this file.

Functions

static void get_defaults (AVStereo3D *stereo)
 
AVStereo3Dav_stereo3d_alloc (void)
 Allocate an AVStereo3D structure and set its fields to default values. More...
 
AVStereo3Dav_stereo3d_alloc_size (size_t *size)
 Allocate an AVStereo3D structure and set its fields to default values. More...
 
AVStereo3Dav_stereo3d_create_side_data (AVFrame *frame)
 Allocate a complete AVFrameSideData and add it to the frame. More...
 
const char * av_stereo3d_type_name (unsigned int type)
 Provide a human-readable name of a given stereo3d type. More...
 
int av_stereo3d_from_name (const char *name)
 Get the AVStereo3DType form a human-readable name. More...
 
const char * av_stereo3d_view_name (unsigned int view)
 Provide a human-readable name of a given stereo3d view. More...
 
int av_stereo3d_view_from_name (const char *name)
 Get the AVStereo3DView form a human-readable name. More...
 
const char * av_stereo3d_primary_eye_name (unsigned int eye)
 Provide a human-readable name of a given stereo3d primary eye. More...
 
int av_stereo3d_primary_eye_from_name (const char *name)
 Get the AVStereo3DPrimaryEye form a human-readable name. More...
 

Variables

static const char *const stereo3d_type_names []
 
static const char *const stereo3d_view_names []
 
static const char *const stereo3d_primary_eye_names []
 

Function Documentation

◆ get_defaults()

static void get_defaults ( AVStereo3D stereo)
static

Definition at line 29 of file stereo3d.c.

Referenced by av_stereo3d_alloc_size(), and av_stereo3d_create_side_data().

Variable Documentation

◆ stereo3d_type_names

const char* const stereo3d_type_names[]
static
Initial value:
= {
[AV_STEREO3D_2D] = "2D",
[AV_STEREO3D_SIDEBYSIDE] = "side by side",
[AV_STEREO3D_TOPBOTTOM] = "top and bottom",
[AV_STEREO3D_FRAMESEQUENCE] = "frame alternate",
[AV_STEREO3D_CHECKERBOARD] = "checkerboard",
[AV_STEREO3D_SIDEBYSIDE_QUINCUNX] = "side by side (quincunx subsampling)",
[AV_STEREO3D_LINES] = "interleaved lines",
[AV_STEREO3D_COLUMNS] = "interleaved columns",
[AV_STEREO3D_UNSPEC] = "unspecified",
}

Definition at line 68 of file stereo3d.c.

Referenced by av_stereo3d_from_name(), and av_stereo3d_type_name().

◆ stereo3d_view_names

const char* const stereo3d_view_names[]
static
Initial value:
= {
[AV_STEREO3D_VIEW_UNSPEC] = "unspecified",
}

Definition at line 80 of file stereo3d.c.

Referenced by av_stereo3d_view_from_name(), and av_stereo3d_view_name().

◆ stereo3d_primary_eye_names

const char* const stereo3d_primary_eye_names[]
static
Initial value:
= {
[AV_PRIMARY_EYE_NONE] = "none",
[AV_PRIMARY_EYE_LEFT] = "left",
[AV_PRIMARY_EYE_RIGHT] = "right",
}

Definition at line 87 of file stereo3d.c.

Referenced by av_stereo3d_primary_eye_from_name(), and av_stereo3d_primary_eye_name().

AV_PRIMARY_EYE_RIGHT
@ AV_PRIMARY_EYE_RIGHT
Right eye.
Definition: stereo3d.h:188
AV_STEREO3D_VIEW_LEFT
@ AV_STEREO3D_VIEW_LEFT
Frame contains only the left view.
Definition: stereo3d.h:158
AV_STEREO3D_SIDEBYSIDE_QUINCUNX
@ AV_STEREO3D_SIDEBYSIDE_QUINCUNX
Views are next to each other, but when upscaling apply a checkerboard pattern.
Definition: stereo3d.h:114
AV_STEREO3D_VIEW_RIGHT
@ AV_STEREO3D_VIEW_RIGHT
Frame contains only the right view.
Definition: stereo3d.h:163
AV_STEREO3D_VIEW_UNSPEC
@ AV_STEREO3D_VIEW_UNSPEC
Content is unspecified.
Definition: stereo3d.h:168
AV_STEREO3D_UNSPEC
@ AV_STEREO3D_UNSPEC
Video is stereoscopic but the packing is unspecified.
Definition: stereo3d.h:143
AV_STEREO3D_SIDEBYSIDE
@ AV_STEREO3D_SIDEBYSIDE
Views are next to each other.
Definition: stereo3d.h:64
AV_STEREO3D_VIEW_PACKED
@ AV_STEREO3D_VIEW_PACKED
Frame contains two packed views.
Definition: stereo3d.h:153
AV_STEREO3D_2D
@ AV_STEREO3D_2D
Video is not stereoscopic (and metadata has to be there).
Definition: stereo3d.h:52
AV_STEREO3D_FRAMESEQUENCE
@ AV_STEREO3D_FRAMESEQUENCE
Views are alternated temporally.
Definition: stereo3d.h:89
AV_STEREO3D_LINES
@ AV_STEREO3D_LINES
Views are packed per line, as if interlaced.
Definition: stereo3d.h:126
AV_PRIMARY_EYE_LEFT
@ AV_PRIMARY_EYE_LEFT
Left eye.
Definition: stereo3d.h:183
AV_STEREO3D_CHECKERBOARD
@ AV_STEREO3D_CHECKERBOARD
Views are packed in a checkerboard-like structure per pixel.
Definition: stereo3d.h:101
AV_PRIMARY_EYE_NONE
@ AV_PRIMARY_EYE_NONE
Neither eye.
Definition: stereo3d.h:178
AV_STEREO3D_TOPBOTTOM
@ AV_STEREO3D_TOPBOTTOM
Views are on top of each other.
Definition: stereo3d.h:76
AV_STEREO3D_COLUMNS
@ AV_STEREO3D_COLUMNS
Views are packed per column.
Definition: stereo3d.h:138