FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
sbc.c File Reference

SBC common functions for the encoder and decoder. More...

#include "avcodec.h"
#include "sbc.h"

Go to the source code of this file.

Functions

uint8_t ff_sbc_crc8 (const AVCRC *ctx, const uint8_t *data, size_t len)
 
void ff_sbc_calculate_bits (const struct sbc_frame *frame, int(*bits)[8])
 

Variables

static const int sbc_offset4 [4][4]
 
static const int sbc_offset8 [4][8]
 

Detailed Description

SBC common functions for the encoder and decoder.

Definition in file sbc.c.

Function Documentation

uint8_t ff_sbc_crc8 ( const AVCRC ctx,
const uint8_t data,
size_t  len 
)

Definition at line 55 of file sbc.c.

Referenced by sbc_pack_frame(), and sbc_unpack_frame().

void ff_sbc_calculate_bits ( const struct sbc_frame frame,
int(*)  bits[8] 
)

Definition at line 79 of file sbc.c.

Referenced by sbc_pack_frame(), and sbc_unpack_frame().

Variable Documentation

const int sbc_offset4[4][4]
static
Initial value:
= {
{ -1, 0, 0, 0 },
{ -2, 0, 0, 1 },
{ -2, 0, 0, 1 },
{ -2, 0, 0, 1 }
}

Definition at line 37 of file sbc.c.

Referenced by ff_sbc_calculate_bits().

const int sbc_offset8[4][8]
static
Initial value:
= {
{ -2, 0, 0, 0, 0, 0, 0, 1 },
{ -3, 0, 0, 0, 0, 0, 1, 2 },
{ -4, 0, 0, 0, 0, 0, 1, 2 },
{ -4, 0, 0, 0, 0, 0, 1, 2 }
}

Definition at line 45 of file sbc.c.

Referenced by ff_sbc_calculate_bits().