FFmpeg
Functions
dolby_e_parser_internal.h File Reference
#include "dolby_e.h"

Go to the source code of this file.

Functions

int ff_dolby_e_parse_init (DBEContext *s, const uint8_t *buf, int buf_size)
 Initialize DBEContext. More...
 
int ff_dolby_e_parse_header (DBEContext *s, DolbyEHeaderInfo *hdr)
 Parse Dolby E metadata. More...
 

Function Documentation

int ff_dolby_e_parse_init ( DBEContext s,
const uint8_t buf,
int  buf_size 
)

Initialize DBEContext.

Set word_bits/word_bytes, input, input_size, key_present.

Parameters
[out]sDBEContext.
[in]bufraw input buffer.
[in]buf_sizemust be 3 bytes at least.
Returns
Returns 0 on success, AVERROR_INVALIDDATA on error

Referenced by dolby_e_decode_frame().

int ff_dolby_e_parse_header ( DBEContext s,
DolbyEHeaderInfo hdr 
)

Parse Dolby E metadata.

Parse the header up to the end_gain element.

Parameters
[in]sDBEContext .
[out]hdrPointer to struct where header info is written.
Returns
Returns 0 on success, AVERROR_INVALIDDATA on error

Referenced by dolby_e_decode_frame().