| @@ -18,6 +18,11 @@ · 17 unmodified lines |
| 18 | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | +/** |
| 22 | + * @file |
| 23 | + * Stereoscopic video |
| 24 | + */ |
| 25 | + |
| 21 | 26 | #ifndef AVUTIL_STEREO3D_H |
| 22 | 27 | #define AVUTIL_STEREO3D_H |
| 23 | 28 | |
| @@ -25,6 +30,21 @@ · 1 unmodified line |
| 25 | 30 | |
| 26 | 31 | #include "frame.h" |
| 27 | 32 | |
| 33 | +/** |
| 34 | + * @addtogroup lavu_video |
| 35 | + * @{ |
| 36 | + * |
| 37 | + * @defgroup lavu_video_stereo3d Stereo3D types and functions |
| 38 | + * @{ |
| 39 | + */ |
| 40 | + |
| 41 | +/** |
| 42 | + * @addtogroup lavu_video_stereo3d |
| 43 | + * A stereoscopic video file consists in multiple views embedded in a single |
| 44 | + * frame, usually describing two views of a scene. This file describes all |
| 45 | + * possible codec-independent view arrangements. |
| 46 | + * */ |
| 47 | + |
| 28 | 48 | /** |
| 29 | 49 | * List of possible 3D Types |
| 30 | 50 | */ |
| @@ -37,41 +57,49 @@ enum AVStereo3DType { · 6 unmodified lines |
| 37 | 57 | /** |
| 38 | 58 | * Views are next to each other. |
| 39 | 59 | * |
| 60 | + * @code{.unparsed} |
| 40 | 61 | * LLLLRRRR |
| 41 | 62 | * LLLLRRRR |
| 42 | 63 | * LLLLRRRR |
| 43 | 64 | * ... |
| 65 | + * @endcode |
| 44 | 66 | */ |
| 45 | 67 | AV_STEREO3D_SIDEBYSIDE, |
| 46 | 68 | |
| 47 | 69 | /** |
| 48 | 70 | * Views are on top of each other. |
| 49 | 71 | * |
| 72 | + * @code{.unparsed} |
| 50 | 73 | * LLLLLLLL |
| 51 | 74 | * LLLLLLLL |
| 52 | 75 | * RRRRRRRR |
| 53 | 76 | * RRRRRRRR |
| 77 | + * @endcode |
| 54 | 78 | */ |
| 55 | 79 | AV_STEREO3D_TOPBOTTOM, |
| 56 | 80 | |
| 57 | 81 | /** |
| 58 | 82 | * Views are alternated temporally. |
| 59 | 83 | * |
| 84 | + * @code{.unparsed} |
| 60 | 85 | * frame0 frame1 frame2 ... |
| 61 | 86 | * LLLLLLLL RRRRRRRR LLLLLLLL |
| 62 | 87 | * LLLLLLLL RRRRRRRR LLLLLLLL |
| 63 | 88 | * LLLLLLLL RRRRRRRR LLLLLLLL |
| 64 | 89 | * ... ... ... |
| 90 | + * @endcode |
| 65 | 91 | */ |
| 66 | 92 | AV_STEREO3D_FRAMESEQUENCE, |
| 67 | 93 | |
| 68 | 94 | /** |
| 69 | 95 | * Views are packed in a checkerboard-like structure per pixel. |
| 70 | 96 | * |
| 97 | + * @code{.unparsed} |
| 71 | 98 | * LRLRLRLR |
| 72 | 99 | * RLRLRLRL |
| 73 | 100 | * LRLRLRLR |
| 74 | 101 | * ... |
| 102 | + * @endcode |
| 75 | 103 | */ |
| 76 | 104 | AV_STEREO3D_CHECKERBOARD, |
| 77 | 105 | |
| @@ -79,30 +107,36 @@ enum AVStereo3DType { · 1 unmodified line |
| 79 | 107 | * Views are next to each other, but when upscaling |
| 80 | 108 | * apply a checkerboard pattern. |
| 81 | 109 | * |
| 110 | + * @code{.unparsed} |
| 82 | 111 | * LLLLRRRR L L L L R R R R |
| 83 | 112 | * LLLLRRRR => L L L L R R R R |
| 84 | 113 | * LLLLRRRR L L L L R R R R |
| 85 | 114 | * LLLLRRRR L L L L R R R R |
| 115 | + * @endcode |
| 86 | 116 | */ |
| 87 | 117 | AV_STEREO3D_SIDEBYSIDE_QUINCUNX, |
| 88 | 118 | |
| 89 | 119 | /** |
| 90 | 120 | * Views are packed per line, as if interlaced. |
| 91 | 121 | * |
| 122 | + * @code{.unparsed} |
| 92 | 123 | * LLLLLLLL |
| 93 | 124 | * RRRRRRRR |
| 94 | 125 | * LLLLLLLL |
| 95 | 126 | * ... |
| 127 | + * @endcode |
| 96 | 128 | */ |
| 97 | 129 | AV_STEREO3D_LINES, |
| 98 | 130 | |
| 99 | 131 | /** |
| 100 | 132 | * Views are packed per column. |
| 101 | 133 | * |
| 134 | + * @code{.unparsed} |
| 102 | 135 | * LRLRLRLR |
| 103 | 136 | * LRLRLRLR |
| 104 | 137 | * LRLRLRLR |
| 105 | 138 | * ... |
| 139 | + * @endcode |
| 106 | 140 | */ |
| 107 | 141 | AV_STEREO3D_COLUMNS, |
| 108 | 142 | }; |
| @@ -167,4 +201,9 @@ const char *av_stereo3d_type_name(unsigned int type); · 58 unmodified lines |
| 167 | 201 | */ |
| 168 | 202 | int av_stereo3d_from_name(const char *name); |
| 169 | 203 | |
| 204 | +/** |
| 205 | + * @} |
| 206 | + * @} |
| 207 | + */ |
| 208 | + |
| 170 | 209 | #endif /* AVUTIL_STEREO3D_H */ |