FFmpeg
|
dirac_parser.c File Reference
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "parser.h"
Include dependency graph for dirac_parser.c:
Go to the source code of this file.
Data Structures | |
struct | DiracParseContext |
Find the end of the current frame in the bitstream. More... | |
struct | DiracParseUnit |
Macros | |
#define | DIRAC_PARSE_INFO_PREFIX 0x42424344 |
Typedefs | |
typedef struct DiracParseContext | DiracParseContext |
Find the end of the current frame in the bitstream. More... | |
typedef struct DiracParseUnit | DiracParseUnit |
Functions | |
static int | find_frame_end (DiracParseContext *pc, const uint8_t *buf, int buf_size) |
static int | unpack_parse_unit (DiracParseUnit *pu, DiracParseContext *pc, int offset) |
static int | dirac_combine_frame (AVCodecParserContext *s, AVCodecContext *avctx, int next, const uint8_t **buf, int *buf_size) |
static int | dirac_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) |
static void | dirac_parse_close (AVCodecParserContext *s) |
Variables | |
AVCodecParser | ff_dirac_parser |
Detailed Description
Dirac Parser.
Definition in file dirac_parser.c.
Macro Definition Documentation
#define DIRAC_PARSE_INFO_PREFIX 0x42424344 |
Definition at line 36 of file dirac_parser.c.
Referenced by find_frame_end().
Typedef Documentation
typedef struct DiracParseContext DiracParseContext |
Find the end of the current frame in the bitstream.
- Returns
- the position of the first byte of the next frame or -1
typedef struct DiracParseUnit DiracParseUnit |
Function Documentation
|
static |
Definition at line 118 of file dirac_parser.c.
Referenced by dirac_parse().
|
static |
Definition at line 215 of file dirac_parser.c.
|
static |
Definition at line 247 of file dirac_parser.c.
|
static |
Definition at line 55 of file dirac_parser.c.
Referenced by dirac_parse().
|
static |
Definition at line 100 of file dirac_parser.c.
Referenced by dirac_combine_frame().
Variable Documentation
AVCodecParser ff_dirac_parser |
Initial value:
= {
.codec_ids = { AV_CODEC_ID_DIRAC },
.priv_data_size = sizeof(DiracParseContext),
.parser_parse = dirac_parse,
.parser_close = dirac_parse_close,
}
Definition: libavcodec/avcodec.h:219
static void dirac_parse_close(AVCodecParserContext *s)
Definition: dirac_parser.c:247
static int dirac_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: dirac_parser.c:215
struct DiracParseContext DiracParseContext
Find the end of the current frame in the bitstream.
Definition at line 255 of file dirac_parser.c.
Generated on Mon Nov 18 2024 06:52:05 for FFmpeg by 1.8.11