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

Классы

struct  AVCodecParserContext
 
struct  AVCodecParser
 

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

typedef struct AVCodecParserContext AVCodecParserContext
 
typedef struct AVCodecParser AVCodecParser
 

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

enum  AVPictureStructure { AV_PICTURE_STRUCTURE_UNKNOWN, AV_PICTURE_STRUCTURE_TOP_FIELD, AV_PICTURE_STRUCTURE_BOTTOM_FIELD, AV_PICTURE_STRUCTURE_FRAME }
 

Функции

const AVCodecParserav_parser_iterate (void **opaque)
 
attribute_deprecated AVCodecParserav_parser_next (const AVCodecParser *c)
 
attribute_deprecated void av_register_codec_parser (AVCodecParser *parser)
 
AVCodecParserContextav_parser_init (int codec_id)
 
int av_parser_parse2 (AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts, int64_t pos)
 
int av_parser_change (AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
 
void av_parser_close (AVCodecParserContext *s)
 

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

Типы

◆ AVCodecParserContext

◆ AVCodecParser

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

◆ AVPictureStructure

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

Элементы перечислений
AV_PICTURE_STRUCTURE_UNKNOWN 
AV_PICTURE_STRUCTURE_TOP_FIELD 
AV_PICTURE_STRUCTURE_BOTTOM_FIELD 
AV_PICTURE_STRUCTURE_FRAME 

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

5101  {
5102  AV_PICTURE_STRUCTURE_UNKNOWN, //< unknown
5103  AV_PICTURE_STRUCTURE_TOP_FIELD, //< coded as top field
5104  AV_PICTURE_STRUCTURE_BOTTOM_FIELD, //< coded as bottom field
5105  AV_PICTURE_STRUCTURE_FRAME, //< coded as frame
5106 };

Функции

◆ av_parser_iterate()

const AVCodecParser* av_parser_iterate ( void **  opaque)

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

Iterate over all registered codec parsers.

Аргументы
opaquea pointer where libavcodec will store the iteration state. Must point to NULL to start the iteration.
Возвращает
the next registered codec parser or NULL when the iteration is finished

◆ av_parser_next()

◆ av_register_codec_parser()

attribute_deprecated void av_register_codec_parser ( AVCodecParser parser)

◆ av_parser_init()

◆ av_parser_parse2()

int av_parser_parse2 ( AVCodecParserContext s,
AVCodecContext avctx,
uint8_t **  poutbuf,
int *  poutbuf_size,
const uint8_t buf,
int  buf_size,
int64_t  pts,
int64_t  dts,
int64_t  pos 
)

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

Parse a packet.

Аргументы
sparser context.
avctxcodec context.
poutbufset to pointer to parsed buffer or NULL if not yet finished.
poutbuf_sizeset to size of parsed buffer or zero if not yet finished.
bufinput buffer.
buf_sizebuffer size in bytes without the padding. I.e. the full buffer size is assumed to be buf_size + AV_INPUT_BUFFER_PADDING_SIZE. To signal EOF, this should be 0 (so that the last frame can be output).
ptsinput presentation timestamp.
dtsinput decoding timestamp.
posinput byte position in stream.
Возвращает
the number of bytes of the input bitstream used.

Example:

while(in_len){
in_data, in_len,
pts, dts, pos);
in_data += len;
in_len -= len;
if(size)
decode_frame(data, size);
}

◆ av_parser_change()

int av_parser_change ( AVCodecParserContext s,
AVCodecContext avctx,
uint8_t **  poutbuf,
int *  poutbuf_size,
const uint8_t buf,
int  buf_size,
int  keyframe 
)

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

Возвращает
0 if the output buffer is a subset of the input, 1 if it is allocated and must be freed
Уст.:
use AVBitStreamFilter

◆ av_parser_close()

AVCodecContext
Definition: avcodec.h:1565
AV_PICTURE_STRUCTURE_UNKNOWN
@ AV_PICTURE_STRUCTURE_UNKNOWN
Definition: avcodec.h:5102
AV_PICTURE_STRUCTURE_FRAME
@ AV_PICTURE_STRUCTURE_FRAME
Definition: avcodec.h:5105
len
GLenum GLsizei len
Definition: SDL_opengl_glext.h:2929
AV_PICTURE_STRUCTURE_BOTTOM_FIELD
@ AV_PICTURE_STRUCTURE_BOTTOM_FIELD
Definition: avcodec.h:5104
AV_PICTURE_STRUCTURE_TOP_FIELD
@ AV_PICTURE_STRUCTURE_TOP_FIELD
Definition: avcodec.h:5103
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: SDL_opengl.h:1974
av_parser_parse2
int av_parser_parse2(AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts, int64_t pos)
size
GLsizeiptr size
Definition: SDL_opengl_glext.h:540