FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
amr.h File Reference
#include <string.h>
#include "avcodec.h"

Go to the source code of this file.

Macros

#define R_TABLE_TYPE   uint8_t
 

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...
 

Macro Definition Documentation

#define R_TABLE_TYPE   uint8_t

Definition at line 33 of file amr.h.

Function Documentation

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().