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