libavcodec/amr.h File Reference

#include <string.h>
#include "avcodec.h"

Go to the source code of this file.

Defines

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


Define 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 
) [inline, static]

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:
out pointer to the frame struct
size the size in bytes of the frame struct
data input bitstream after the frame header
ord_table the reordering table as above

Definition at line 51 of file amr.h.

Referenced by amrwb_decode_frame(), and unpack_bitstream().


Generated on Fri Oct 26 02:50:04 2012 for FFmpeg by  doxygen 1.5.8