Home
last modified time | relevance | path

Searched refs:frameInfo (Results 1 – 9 of 9) sorted by relevance

/system/bt/embdrv/sbc/decoder/srce/
Dframing-sbc.c40 void OI_CODEC_SBC_DumpConfig(OI_CODEC_SBC_FRAME_INFO *frameInfo) in OI_CODEC_SBC_DumpConfig() argument
43 printf(" enhanced: %s\n", frameInfo->enhanced ? "TRUE" : "FALSE"); in OI_CODEC_SBC_DumpConfig()
44 printf(" frequency: %d\n", frameInfo->frequency); in OI_CODEC_SBC_DumpConfig()
45 printf(" subbands: %d\n", frameInfo->nrof_subbands); in OI_CODEC_SBC_DumpConfig()
46 printf(" blocks: %d\n", frameInfo->nrof_blocks); in OI_CODEC_SBC_DumpConfig()
47 printf(" channels: %d\n", frameInfo->nrof_channels); in OI_CODEC_SBC_DumpConfig()
48 printf(" mode: %s\n", OI_CODEC_SBC_ModeText[frameInfo->mode]); in OI_CODEC_SBC_DumpConfig()
49 printf(" alloc: %s\n", OI_CODEC_SBC_AllocText[frameInfo->alloc]); in OI_CODEC_SBC_DumpConfig()
50 printf(" bitpool: %d\n", frameInfo->bitpool); in OI_CODEC_SBC_DumpConfig()
Ddecoder-sbc.c70 context->common.frameInfo.enhanced = (**frameData == OI_SBC_ENHANCED_SYNCWORD); in FindSyncword()
87 context->common.frameInfo.enhanced = FALSE; in FindSyncword()
105 …OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * context->common.frameInfo.nrof_subb… in DecodeBody()
116 …} else if (*pcmBytes < sizeof (OI_INT16) * context->common.frameInfo.nrof_subbands * context->comm… in DecodeBody()
130 if (context->common.frameInfo.mode == SBC_JOINT_STEREO) { in DecodeBody()
136 context->bufferedBlocks = context->common.frameInfo.nrof_blocks; in DecodeBody()
140 …*pcmBytes / sizeof(OI_INT16) / context->common.pcmStride / context->common.frameInfo.nrof_subbands; in DecodeBody()
147 decode_block_count = context->common.frameInfo.nrof_blocks; in DecodeBody()
152 OI_UINT start_block = context->common.frameInfo.nrof_blocks - context->bufferedBlocks; in DecodeBody()
159 frameSamples = decode_block_count * context->common.frameInfo.nrof_subbands; in DecodeBody()
[all …]
Ddecoder-oina.c79 context->common.frameInfo.enhanced = enhanced; in OI_CODEC_SBC_DecoderConfigureRaw()
81 context->common.frameInfo.enhanced = FALSE; in OI_CODEC_SBC_DecoderConfigureRaw()
83 context->common.frameInfo.freqIndex = frequency; in OI_CODEC_SBC_DecoderConfigureRaw()
84 context->common.frameInfo.mode = mode; in OI_CODEC_SBC_DecoderConfigureRaw()
85 context->common.frameInfo.subbands = subbands; in OI_CODEC_SBC_DecoderConfigureRaw()
86 context->common.frameInfo.blocks = blocks; in OI_CODEC_SBC_DecoderConfigureRaw()
87 context->common.frameInfo.alloc = alloc; in OI_CODEC_SBC_DecoderConfigureRaw()
88 context->common.frameInfo.bitpool = maxBitpool; in OI_CODEC_SBC_DecoderConfigureRaw()
90 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in OI_CODEC_SBC_DecoderConfigureRaw()
92 if (context->common.frameInfo.nrof_channels >= context->common.pcmStride) { in OI_CODEC_SBC_DecoderConfigureRaw()
Ddecoder-private.c74 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in internal_DecoderReset()
90 OI_CODEC_SBC_FRAME_INFO *frame = &common->frameInfo; in OI_SBC_ReadHeader()
138 OI_UINT i = common->frameInfo.nrof_subbands * common->frameInfo.nrof_channels; in OI_SBC_ReadScalefactors()
142 if (common->frameInfo.nrof_subbands == 8 || common->frameInfo.mode != SBC_JOINT_STEREO) { in OI_SBC_ReadScalefactors()
143 if (common->frameInfo.mode == SBC_JOINT_STEREO) { in OI_SBC_ReadScalefactors()
144 common->frameInfo.join = *b++; in OI_SBC_ReadScalefactors()
146 common->frameInfo.join = 0; in OI_SBC_ReadScalefactors()
159 … OI_ASSERT(common->frameInfo.nrof_subbands == 4 && common->frameInfo.mode == SBC_JOINT_STEREO); in OI_SBC_ReadScalefactors()
160 common->frameInfo.join = HIGH(f = *b++); in OI_SBC_ReadScalefactors()
181 OI_UINT nrof_blocks = common->frameInfo.nrof_blocks; in OI_SBC_ReadSamples()
[all …]
Dbitalloc-sbc.c51 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in stereoBitAllocation()
65 …bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds.uint32, 2 * nrof_subbands, bitc… in stereoBitAllocation()
101 OI_ASSERT(common->frameInfo.bitpool <= OI_SBC_MaxBitpool(&common->frameInfo)); in OI_SBC_ComputeBitAllocation()
102 OI_ASSERT(common->frameInfo.mode < OI_ARRAYSIZE(balloc)); in OI_SBC_ComputeBitAllocation()
108 balloc[common->frameInfo.mode](common); in OI_SBC_ComputeBitAllocation()
156 …return sizeof(OI_INT16) * common->pcmStride * common->frameInfo.nrof_subbands * common->frameInfo.… in OI_CODEC_SBC_CalculatePcmBytes()
Dbitalloc.c137 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in computeBitneed()
144 if (common->frameInfo.alloc == SBC_SNR) { in computeBitneed()
158 offset = offset4[common->frameInfo.freqIndex]; in computeBitneed()
160 offset = offset8[common->frameInfo.freqIndex]; in computeBitneed()
347 const OI_UINT8 nrof_subbands = common->frameInfo.nrof_subbands; in oneChannelBitAllocation()
356 …bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds->uint32, nrof_subbands, bitcoun… in oneChannelBitAllocation()
Dsynthesis-sbc.c262 OI_UINT nrof_channels = context->common.frameInfo.nrof_channels; in OI_SBC_SynthFrame_80()
293 OI_UINT nrof_channels = context->common.frameInfo.nrof_channels; in OI_SBC_SynthFrame_4SB()
327 OI_UINT nrof_channels = context->common.frameInfo.nrof_channels; in OI_SBC_SynthFrame_Enhanced()
376 OI_UINT nrof_subbands = context->common.frameInfo.nrof_subbands; in OI_SBC_SynthFrame()
377 OI_UINT nrof_channels = context->common.frameInfo.nrof_channels; in OI_SBC_SynthFrame()
383 } else if (context->common.frameInfo.enhanced) { in OI_SBC_SynthFrame()
Dreadsamplesjoint.inc44 OI_UINT nrof_subbands = common->frameInfo.nrof_subbands;
60 OI_UINT bl = common->frameInfo.nrof_blocks;
65 OI_UINT8 jmask = common->frameInfo.join << (8 - NROF_SUBBANDS);
/system/bt/embdrv/sbc/decoder/include/
Doi_codec_sbc.h156 OI_CODEC_SBC_FRAME_INFO frameInfo; member
468 void OI_CODEC_SBC_DumpConfig(OI_CODEC_SBC_FRAME_INFO *frameInfo);