FFmpeg
Data Structures | Macros | Functions | Variables
xbm_parser.c File Reference
#include "libavutil/common.h"
#include "parser.h"

Go to the source code of this file.

Data Structures

struct  XBMParseContext
 

Macros

#define KEY
 
#define END   ((';' << 8) | ('\n' << 0))
 

Functions

static int xbm_init (AVCodecParserContext *s)
 
static int xbm_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 

Variables

const AVCodecParser ff_xbm_parser
 

Detailed Description

XBM parser

Definition in file xbm_parser.c.

Macro Definition Documentation

◆ KEY

#define KEY
Value:
(((uint64_t)'\n' << 56) | ((uint64_t)'#' << 48) | \
((uint64_t)'d' << 40) | ((uint64_t)'e' << 32) | \
((uint64_t)'f' << 24) | ('i' << 16) | ('n' << 8) | \
('e' << 0))

Definition at line 37 of file xbm_parser.c.

◆ END

#define END   ((';' << 8) | ('\n' << 0))

Definition at line 42 of file xbm_parser.c.

Function Documentation

◆ xbm_init()

static int xbm_init ( AVCodecParserContext s)
static

Definition at line 44 of file xbm_parser.c.

◆ xbm_parse()

static int xbm_parse ( AVCodecParserContext s,
AVCodecContext avctx,
const uint8_t **  poutbuf,
int *  poutbuf_size,
const uint8_t *  buf,
int  buf_size 
)
static

Definition at line 53 of file xbm_parser.c.

Variable Documentation

◆ ff_xbm_parser

const AVCodecParser ff_xbm_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_XBM },
.priv_data_size = sizeof(XBMParseContext),
.parser_init = xbm_init,
.parser_parse = xbm_parse,
.parser_close = ff_parse_close,
}

Definition at line 100 of file xbm_parser.c.

ff_parse_close
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:290
XBMParseContext
Definition: xbm_parser.c:31
xbm_parse
static int xbm_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: xbm_parser.c:53
xbm_init
static int xbm_init(AVCodecParserContext *s)
Definition: xbm_parser.c:44
AV_CODEC_ID_XBM
@ AV_CODEC_ID_XBM
Definition: codec_id.h:214