FFmpeg  4.0
Typedefs | Functions
amr.h File Reference
#include <string.h>
#include "avcodec.h"

Go to the source code of this file.

Typedefs

typedef uint8_t R_TABLE_TYPE
 

Functions

static void ff_amr_bit_reorder (uint16_t *out, int size, const uint8_t *data, const R_TABLE_TYPE *ord_table)
 Fill the frame structure variables from bitstream by parsing the given reordering table that uses the following format: More...
 

Typedef Documentation

◆ R_TABLE_TYPE

Definition at line 33 of file amr.h.

Function Documentation

◆ ff_amr_bit_reorder()

static void ff_amr_bit_reorder ( uint16_t *  out,
int  size,
const uint8_t data,
const R_TABLE_TYPE ord_table 
)
inlinestatic

Fill the frame structure variables from bitstream by parsing the given reordering table that uses the following format:

Each field (16 bits) in the AMR Frame is stored as:

  • one byte for the number of bits in the field
  • one byte for the field index
  • then, one byte for each bit of the field (from most-significant to least) of the position of that bit in the AMR frame.
Parameters
outpointer to the frame struct
sizethe size in bytes of the frame struct
datainput bitstream after the frame header
ord_tablethe reordering table as above

Definition at line 51 of file amr.h.

Referenced by amrwb_decode_frame(), and unpack_bitstream().