FFmpeg
Data Structures | Functions | Variables
gsm_parser.c File Reference
#include "libavutil/avassert.h"
#include "parser.h"
#include "gsm.h"

Go to the source code of this file.

Data Structures

struct  GSMParseContext
 

Functions

static int gsm_parse (AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 

Variables

const AVCodecParser ff_gsm_parser
 

Detailed Description

GSM audio parser

Splits packets into individual blocks.

Definition in file gsm_parser.c.

Function Documentation

◆ gsm_parse()

static int gsm_parse ( AVCodecParserContext s1,
AVCodecContext avctx,
const uint8_t **  poutbuf,
int poutbuf_size,
const uint8_t *  buf,
int  buf_size 
)
static

Definition at line 39 of file gsm_parser.c.

Variable Documentation

◆ ff_gsm_parser

const AVCodecParser ff_gsm_parser
Initial value:
= {
.priv_data_size = sizeof(GSMParseContext),
.parser_parse = gsm_parse,
.parser_close = ff_parse_close,
}

Definition at line 86 of file gsm_parser.c.

ff_parse_close
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:289
GSMParseContext
Definition: gsm_parser.c:32
AV_CODEC_ID_GSM
@ AV_CODEC_ID_GSM
as in Berlin toast format
Definition: codec_id.h:458
gsm_parse
static int gsm_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: gsm_parser.c:39
AV_CODEC_ID_GSM_MS
@ AV_CODEC_ID_GSM_MS
Definition: codec_id.h:470