FFmpeg
Data Structures | Macros | Functions
dolby_e.h File Reference
#include <stdint.h>
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  DolbyEHeaderInfo
 
struct  DBEContext
 

Macros

#define FRAME_SAMPLES   1792
 
#define MAX_PROG_CONF   23
 
#define MAX_PROGRAMS   8
 
#define MAX_CHANNELS   8
 

Functions

int ff_dolby_e_convert_input (DBEContext *s, int nb_words, int key)
 Use the provided key to transform the input into data (put into s->buffer) suitable for further processing and initialize s->gb to read said data. More...
 
int ff_dolby_e_parse_header (DBEContext *s, const uint8_t *buf, int buf_size)
 Initialize DBEContext and parse Dolby E metadata. More...
 

Macro Definition Documentation

◆ FRAME_SAMPLES

#define FRAME_SAMPLES   1792

Definition at line 27 of file dolby_e.h.

◆ MAX_PROG_CONF

#define MAX_PROG_CONF   23

Definition at line 29 of file dolby_e.h.

◆ MAX_PROGRAMS

#define MAX_PROGRAMS   8

Definition at line 30 of file dolby_e.h.

◆ MAX_CHANNELS

#define MAX_CHANNELS   8

Definition at line 31 of file dolby_e.h.

Function Documentation

◆ ff_dolby_e_convert_input()

int ff_dolby_e_convert_input ( DBEContext s,
int  nb_words,
int  key 
)

Use the provided key to transform the input into data (put into s->buffer) suitable for further processing and initialize s->gb to read said data.

Definition at line 60 of file dolby_e_parse.c.

Referenced by ff_dolby_e_parse_header(), and parse_audio().

◆ ff_dolby_e_parse_header()

int ff_dolby_e_parse_header ( DBEContext s,
const uint8_t *  buf,
int  buf_size 
)

Initialize DBEContext and parse Dolby E metadata.

Set word_bits/word_bytes, input, input_size, key_present and parse the header up to the end_gain element.

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

Definition at line 97 of file dolby_e_parse.c.

Referenced by dolby_e_decode_frame(), and dolby_e_parse().