World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Stereo3D types and functions
+ Граф связей класса Stereo3D types and functions:

Классы

struct  AVStereo3D
 

Определения типов

typedef struct AVStereo3D AVStereo3D
 

Перечисления

enum  AVStereo3DType {
  AV_STEREO3D_2D, AV_STEREO3D_SIDEBYSIDE, AV_STEREO3D_TOPBOTTOM, AV_STEREO3D_FRAMESEQUENCE,
  AV_STEREO3D_CHECKERBOARD, AV_STEREO3D_SIDEBYSIDE_QUINCUNX, AV_STEREO3D_LINES, AV_STEREO3D_COLUMNS
}
 
enum  AVStereo3DView { AV_STEREO3D_VIEW_PACKED, AV_STEREO3D_VIEW_LEFT, AV_STEREO3D_VIEW_RIGHT }
 

Функции

AVStereo3Dav_stereo3d_alloc (void)
 
AVStereo3Dav_stereo3d_create_side_data (AVFrame *frame)
 
const char * av_stereo3d_type_name (unsigned int type)
 
int av_stereo3d_from_name (const char *name)
 

Подробное описание

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

typedef struct AVStereo3D AVStereo3D

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/stereo3d.h>

Stereo 3D type: this structure describes how two videos are packed within a single video surface, with additional information as needed.

Заметки
The struct must be allocated with av_stereo3d_alloc() and its size is not a part of the public ABI.

Перечисления

◆ AVStereo3DType

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/stereo3d.h>

List of possible 3D Types

Элементы перечислений
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
...

См. определение в файле stereo3d.h строка 51

◆ AVStereo3DView

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/stereo3d.h>

List of possible view types.

Элементы перечислений
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.

См. определение в файле stereo3d.h строка 147

147  {
152 
157 
162 };

Функции

◆ av_stereo3d_alloc()

AVStereo3D* av_stereo3d_alloc ( void  )

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/stereo3d.h>

Allocate an AVStereo3D structure and set its fields to default values. The resulting struct can be freed using av_freep().

Возвращает
An AVStereo3D filled with default values or NULL on failure.

◆ av_stereo3d_create_side_data()

AVStereo3D* av_stereo3d_create_side_data ( AVFrame frame)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/stereo3d.h>

Allocate a complete AVFrameSideData and add it to the frame.

Аргументы
frameThe frame which side data is added to.
Возвращает
The AVStereo3D structure to be filled by caller.

◆ av_stereo3d_type_name()

const char* av_stereo3d_type_name ( unsigned int  type)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/stereo3d.h>

Provide a human-readable name of a given stereo3d type.

Аргументы
typeThe input stereo3d type value.
Возвращает
The name of the stereo3d value, or "unknown".

◆ av_stereo3d_from_name()

int av_stereo3d_from_name ( const char *  name)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/stereo3d.h>

Get the AVStereo3DType form a human-readable name.

Аргументы
nameThe input string.
Возвращает
The AVStereo3DType value, or -1 if not found.
AV_STEREO3D_VIEW_LEFT
@ AV_STEREO3D_VIEW_LEFT
Definition: stereo3d.h:156
AV_STEREO3D_SIDEBYSIDE_QUINCUNX
@ AV_STEREO3D_SIDEBYSIDE_QUINCUNX
Definition: stereo3d.h:117
AV_STEREO3D_VIEW_RIGHT
@ AV_STEREO3D_VIEW_RIGHT
Definition: stereo3d.h:161
AV_STEREO3D_SIDEBYSIDE
@ AV_STEREO3D_SIDEBYSIDE
Definition: stereo3d.h:67
AV_STEREO3D_VIEW_PACKED
@ AV_STEREO3D_VIEW_PACKED
Definition: stereo3d.h:151
AV_STEREO3D_2D
@ AV_STEREO3D_2D
Definition: stereo3d.h:55
AV_STEREO3D_FRAMESEQUENCE
@ AV_STEREO3D_FRAMESEQUENCE
Definition: stereo3d.h:92
AV_STEREO3D_LINES
@ AV_STEREO3D_LINES
Definition: stereo3d.h:129
AV_STEREO3D_CHECKERBOARD
@ AV_STEREO3D_CHECKERBOARD
Definition: stereo3d.h:104
AV_STEREO3D_TOPBOTTOM
@ AV_STEREO3D_TOPBOTTOM
Definition: stereo3d.h:79
AV_STEREO3D_COLUMNS
@ AV_STEREO3D_COLUMNS
Definition: stereo3d.h:141