FFmpeg
Functions | Variables
sbc.c File Reference
#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

◆ ff_sbc_crc8()

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

Definition at line 54 of file sbc.c.

Referenced by sbc_pack_frame(), and sbc_unpack_frame().

◆ ff_sbc_calculate_bits()

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

Definition at line 78 of file sbc.c.

Referenced by sbc_pack_frame(), and sbc_unpack_frame().

Variable Documentation

◆ sbc_offset4

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 36 of file sbc.c.

Referenced by ff_sbc_calculate_bits().

◆ sbc_offset8

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 44 of file sbc.c.

Referenced by ff_sbc_calculate_bits().