World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Файл dirac.h

См. исходные тексты.

Классы

struct  DiracVersionInfo
 
struct  AVDiracSeqHeader
 

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

typedef struct DiracVersionInfo DiracVersionInfo
 
typedef struct AVDiracSeqHeader AVDiracSeqHeader
 

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

enum  DiracParseCodes {
  DIRAC_PCODE_SEQ_HEADER = 0x00, DIRAC_PCODE_END_SEQ = 0x10, DIRAC_PCODE_AUX = 0x20, DIRAC_PCODE_PAD = 0x30,
  DIRAC_PCODE_PICTURE_CODED = 0x08, DIRAC_PCODE_PICTURE_RAW = 0x48, DIRAC_PCODE_PICTURE_LOW_DEL = 0xC8, DIRAC_PCODE_PICTURE_HQ = 0xE8,
  DIRAC_PCODE_INTER_NOREF_CO1 = 0x0A, DIRAC_PCODE_INTER_NOREF_CO2 = 0x09, DIRAC_PCODE_INTER_REF_CO1 = 0x0D, DIRAC_PCODE_INTER_REF_CO2 = 0x0E,
  DIRAC_PCODE_INTRA_REF_CO = 0x0C, DIRAC_PCODE_INTRA_REF_RAW = 0x4C, DIRAC_PCODE_INTRA_REF_PICT = 0xCC, DIRAC_PCODE_MAGIC = 0x42424344
}
 

Функции

int av_dirac_parse_sequence_header (AVDiracSeqHeader **dsh, const uint8_t *buf, size_t buf_size, void *log_ctx)
 

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

Interface to Dirac Decoder/Encoder

Автор
Marco Gerards marco.nosp@m.@gnu.nosp@m..org
David Conrad
Jordi Ortiz

См. определение в файле dirac.h

Типы

◆ DiracVersionInfo

◆ AVDiracSeqHeader

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

◆ DiracParseCodes

Parse code values:

Dirac Specification -> 9.6.1 Table 9.1

VC-2 Specification -> 10.4.1 Table 10.1

Элементы перечислений
DIRAC_PCODE_SEQ_HEADER 
DIRAC_PCODE_END_SEQ 
DIRAC_PCODE_AUX 
DIRAC_PCODE_PAD 
DIRAC_PCODE_PICTURE_CODED 
DIRAC_PCODE_PICTURE_RAW 
DIRAC_PCODE_PICTURE_LOW_DEL 
DIRAC_PCODE_PICTURE_HQ 
DIRAC_PCODE_INTER_NOREF_CO1 
DIRAC_PCODE_INTER_NOREF_CO2 
DIRAC_PCODE_INTER_REF_CO1 
DIRAC_PCODE_INTER_REF_CO2 
DIRAC_PCODE_INTRA_REF_CO 
DIRAC_PCODE_INTRA_REF_RAW 
DIRAC_PCODE_INTRA_REF_PICT 
DIRAC_PCODE_MAGIC 

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

57  {
59  DIRAC_PCODE_END_SEQ = 0x10,
60  DIRAC_PCODE_AUX = 0x20,
61  DIRAC_PCODE_PAD = 0x30,
73  DIRAC_PCODE_MAGIC = 0x42424344,
74 };

Функции

◆ av_dirac_parse_sequence_header()

int av_dirac_parse_sequence_header ( AVDiracSeqHeader **  dsh,
const uint8_t buf,
size_t  buf_size,
void log_ctx 
)

Parse a Dirac sequence header.

Аргументы
dshthis function will allocate and fill an AVDiracSeqHeader struct and write it into this pointer. The caller must free it with av_free().
bufthe data buffer
buf_sizethe size of the data buffer in bytes
log_ctxif non-NULL, this function will log errors here
Возвращает
0 on success, a negative AVERROR code on failure
DIRAC_PCODE_PAD
@ DIRAC_PCODE_PAD
Definition: dirac.h:61
DIRAC_PCODE_PICTURE_CODED
@ DIRAC_PCODE_PICTURE_CODED
Definition: dirac.h:62
DIRAC_PCODE_INTER_NOREF_CO2
@ DIRAC_PCODE_INTER_NOREF_CO2
Definition: dirac.h:67
DIRAC_PCODE_MAGIC
@ DIRAC_PCODE_MAGIC
Definition: dirac.h:73
DIRAC_PCODE_PICTURE_RAW
@ DIRAC_PCODE_PICTURE_RAW
Definition: dirac.h:63
DIRAC_PCODE_INTER_REF_CO1
@ DIRAC_PCODE_INTER_REF_CO1
Definition: dirac.h:68
DIRAC_PCODE_INTER_NOREF_CO1
@ DIRAC_PCODE_INTER_NOREF_CO1
Definition: dirac.h:66
DIRAC_PCODE_PICTURE_LOW_DEL
@ DIRAC_PCODE_PICTURE_LOW_DEL
Definition: dirac.h:64
DIRAC_PCODE_AUX
@ DIRAC_PCODE_AUX
Definition: dirac.h:60
DIRAC_PCODE_SEQ_HEADER
@ DIRAC_PCODE_SEQ_HEADER
Definition: dirac.h:58
DIRAC_PCODE_INTRA_REF_CO
@ DIRAC_PCODE_INTRA_REF_CO
Definition: dirac.h:70
DIRAC_PCODE_END_SEQ
@ DIRAC_PCODE_END_SEQ
Definition: dirac.h:59
DIRAC_PCODE_INTER_REF_CO2
@ DIRAC_PCODE_INTER_REF_CO2
Definition: dirac.h:69
DIRAC_PCODE_INTRA_REF_RAW
@ DIRAC_PCODE_INTRA_REF_RAW
Definition: dirac.h:71
DIRAC_PCODE_PICTURE_HQ
@ DIRAC_PCODE_PICTURE_HQ
Definition: dirac.h:65
DIRAC_PCODE_INTRA_REF_PICT
@ DIRAC_PCODE_INTRA_REF_PICT
Definition: dirac.h:72