FFmpeg
stereo3d.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Vittorio Giovara <vittorio.giovara@gmail.com>
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
26 #ifndef AVUTIL_STEREO3D_H
27 #define AVUTIL_STEREO3D_H
28 
29 #include <stdint.h>
30 
31 #include "frame.h"
32 
56 
68 
80 
93 
105 
118 
130 
142 };
143 
152 
157 
162 };
163 
167 #define AV_STEREO3D_FLAG_INVERT (1 << 0)
168 
176 typedef struct AVStereo3D {
181 
185  int flags;
186 
191 } AVStereo3D;
192 
200 
209 
217 const char *av_stereo3d_type_name(unsigned int type);
218 
226 int av_stereo3d_from_name(const char *name);
227 
233 #endif /* AVUTIL_STEREO3D_H */
This structure describes decoded (raw) audio or video data.
Definition: frame.h:218
enum AVStereo3DView view
Determines which views are packed.
Definition: stereo3d.h:190
Views are next to each other, but when upscaling apply a checkerboard pattern.
Definition: stereo3d.h:117
Frame contains only the right view.
Definition: stereo3d.h:161
struct AVStereo3D AVStereo3D
Stereo 3D type: this structure describes how two videos are packed within a single video surface...
Views are next to each other.
Definition: stereo3d.h:67
AVStereo3D * av_stereo3d_alloc(void)
Allocate an AVStereo3D structure and set its fields to default values.
Definition: stereo3d.c:28
Frame contains only the left view.
Definition: stereo3d.h:156
Stereo 3D type: this structure describes how two videos are packed within a single video surface...
Definition: stereo3d.h:176
const char * av_stereo3d_type_name(unsigned int type)
Provide a human-readable name of a given stereo3d type.
Definition: stereo3d.c:57
Video is not stereoscopic (and metadata has to be there).
Definition: stereo3d.h:55
int flags
Additional information about the frame packing.
Definition: stereo3d.h:185
Frame contains two packed views.
Definition: stereo3d.h:151
Views are packed per line, as if interlaced.
Definition: stereo3d.h:129
reference-counted frame API
AVStereo3D * av_stereo3d_create_side_data(AVFrame *frame)
Allocate a complete AVFrameSideData and add it to the frame.
Definition: stereo3d.c:33
Views are alternated temporally.
Definition: stereo3d.h:92
AVStereo3DType
List of possible 3D Types.
Definition: stereo3d.h:51
int av_stereo3d_from_name(const char *name)
Get the AVStereo3DType form a human-readable name.
Definition: stereo3d.c:65
enum AVStereo3DType type
How views are packed within the video.
Definition: stereo3d.h:180
Views are packed in a checkerboard-like structure per pixel.
Definition: stereo3d.h:104
Views are on top of each other.
Definition: stereo3d.h:79
Views are packed per column.
Definition: stereo3d.h:141
AVStereo3DView
List of possible view types.
Definition: stereo3d.h:147