FFmpeg
Data Structures | Macros | Functions | Variables
xbm_parser.c File Reference
#include <stdint.h>
#include "libavutil/attributes.h"
#include "libavutil/avutil.h"
#include "parser.h"
#include "parser_internal.h"

Go to the source code of this file.

Data Structures

struct  XBMParseContext
 

Macros

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

Functions

static av_cold 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 FFCodecParser 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 41 of file xbm_parser.c.

◆ END

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

Definition at line 46 of file xbm_parser.c.

Function Documentation

◆ xbm_init()

static av_cold int xbm_init ( AVCodecParserContext s)
static

Definition at line 48 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 57 of file xbm_parser.c.

Variable Documentation

◆ ff_xbm_parser

const FFCodecParser ff_xbm_parser
Initial value:

Definition at line 104 of file xbm_parser.c.

ff_parse_close
av_cold void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:298
close
static av_cold void close(AVCodecParserContext *s)
Definition: apv_parser.c:136
xbm_init
static av_cold int xbm_init(AVCodecParserContext *s)
Definition: xbm_parser.c:48
parse
static int parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: apv_parser.c:46
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:550
XBMParseContext
Definition: xbm_parser.c:35
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:57
AV_CODEC_ID_XBM
@ AV_CODEC_ID_XBM
Definition: codec_id.h:214
PARSER_CODEC_LIST
#define PARSER_CODEC_LIST(...)
Definition: parser_internal.h:76