libosmocodec  1.4.0
Osmocom codec library
gsm620.c File Reference

GSM 06.20 - GSM HR codec. More...

#include <stdint.h>
#include <stdbool.h>
#include <osmocom/core/bitvec.h>
#include <osmocom/core/utils.h>
#include <osmocom/codec/codec.h>

Functions

static uint16_t mask (const uint8_t msb)
 
bool osmo_hr_check_sid (const uint8_t *rtp_payload, size_t payload_len)
 Check whether RTP frame contains HR SID code word according to TS 101 318 §5.2.2. More...
 

Variables

const uint16_t gsm620_unvoiced_bitorder [112]
 
const uint16_t gsm620_voiced_bitorder [112]
 

Detailed Description

GSM 06.20 - GSM HR codec.

Function Documentation

◆ mask()

static uint16_t mask ( const uint8_t  msb)
inlinestatic

Referenced by osmo_hr_check_sid().

◆ osmo_hr_check_sid()

bool osmo_hr_check_sid ( const uint8_t *  rtp_payload,
size_t  payload_len 
)

Check whether RTP frame contains HR SID code word according to TS 101 318 §5.2.2.

Parameters
[in]rtp_payloadBuffer with RTP payload
[in]payload_lenLength of payload
Returns
true if code word is found, false otherwise

References ARRAY_SIZE, bitvec_get_uint(), bitvec::cur_bit, bitvec::data, bitvec::data_len, and mask().

Variable Documentation

◆ gsm620_unvoiced_bitorder

const uint16_t gsm620_unvoiced_bitorder[112]

◆ gsm620_voiced_bitorder

const uint16_t gsm620_voiced_bitorder[112]