A stereoscopic video file consists in multiple views embedded in a single frame, usually describing two views of a scene.
More...
|
| struct | AVStereo3D |
| | Stereo 3D type: this structure describes how two videos are packed within a single video surface, with additional information as needed. More...
|
| |
|
| typedef struct AVStereo3D | AVStereo3D |
| | Stereo 3D type: this structure describes how two videos are packed within a single video surface, with additional information as needed. More...
|
| |
A stereoscopic video file consists in multiple views embedded in a single frame, usually describing two views of a scene.
This file describes all possible codec-independent view arrangements.
§ AVStereo3D
Stereo 3D type: this structure describes how two videos are packed within a single video surface, with additional information as needed.
- Note
- The struct must be allocated with av_stereo3d_alloc() and its size is not a part of the public ABI.
§ AVStereo3DType
List of possible 3D Types.
| Enumerator |
|---|
| AV_STEREO3D_2D | Video is not stereoscopic (and metadata has to be there).
|
| AV_STEREO3D_SIDEBYSIDE | Views are next to each other.
LLLLRRRR LLLLRRRR LLLLRRRR ... |
| AV_STEREO3D_TOPBOTTOM | Views are on top of each other.
LLLLLLLL LLLLLLLL RRRRRRRR RRRRRRRR |
| AV_STEREO3D_FRAMESEQUENCE | Views are alternated temporally.
frame0 frame1 frame2 ... LLLLLLLL RRRRRRRR LLLLLLLL LLLLLLLL RRRRRRRR LLLLLLLL LLLLLLLL RRRRRRRR LLLLLLLL ... ... ... |
| AV_STEREO3D_CHECKERBOARD | Views are packed in a checkerboard-like structure per pixel.
LRLRLRLR RLRLRLRL LRLRLRLR ... |
| AV_STEREO3D_SIDEBYSIDE_QUINCUNX | Views are next to each other, but when upscaling apply a checkerboard pattern.
LLLLRRRR L L L L R R R R LLLLRRRR => L L L L R R R R LLLLRRRR L L L L R R R R LLLLRRRR L L L L R R R R |
| AV_STEREO3D_LINES | Views are packed per line, as if interlaced.
LLLLLLLL RRRRRRRR LLLLLLLL ... |
| AV_STEREO3D_COLUMNS | Views are packed per column.
LRLRLRLR LRLRLRLR LRLRLRLR ... |
§ AVStereo3DView
List of possible view types.
| Enumerator |
|---|
| AV_STEREO3D_VIEW_PACKED | Frame contains two packed views.
|
| AV_STEREO3D_VIEW_LEFT | Frame contains only the left view.
|
| AV_STEREO3D_VIEW_RIGHT | Frame contains only the right view.
|
§ av_stereo3d_alloc()
Allocate an AVStereo3D structure and set its fields to default values.
The resulting struct can be freed using av_freep().
- Returns
- An AVStereo3D filled with default values or NULL on failure.
§ av_stereo3d_create_side_data()
Allocate a complete AVFrameSideData and add it to the frame.
- Parameters
-
| frame | The frame which side data is added to. |
- Returns
- The AVStereo3D structure to be filled by caller.
§ av_stereo3d_from_name()
| int av_stereo3d_from_name |
( |
const char * |
name | ) |
|
Get the AVStereo3DType form a human-readable name.
- Parameters
-
- Returns
- The AVStereo3DType value, or -1 if not found.
§ av_stereo3d_type_name()
| const char* av_stereo3d_type_name |
( |
unsigned int |
type | ) |
|
Provide a human-readable name of a given stereo3d type.
- Parameters
-
| type | The input stereo3d type value. |
- Returns
- The name of the stereo3d value, or "unknown".