Lines Matching refs:pstrEncParams

1871     SBC_ENC_PARAMS *pstrEncParams = &btif_media_cb.encoder;  in btif_media_task_enc_update()  local
1882 if (!pstrEncParams->s16NumOfSubBands) in btif_media_task_enc_update()
1886 pstrEncParams->s16NumOfSubBands = SBC_MAX_NUM_OF_SUBBANDS; in btif_media_task_enc_update()
1889 if (!pstrEncParams->s16NumOfBlocks) in btif_media_task_enc_update()
1893 pstrEncParams->s16NumOfBlocks = SBC_MAX_NUM_OF_BLOCKS; in btif_media_task_enc_update()
1896 if (!pstrEncParams->s16NumOfChannels) in btif_media_task_enc_update()
1900 pstrEncParams->s16NumOfChannels = SBC_MAX_NUM_OF_CHANNELS; in btif_media_task_enc_update()
1909 pstrEncParams->u16BitRate = btif_media_task_get_sbc_rate(); in btif_media_task_enc_update()
1911 if (pstrEncParams->s16SamplingFreq == SBC_sf16000) in btif_media_task_enc_update()
1913 else if (pstrEncParams->s16SamplingFreq == SBC_sf32000) in btif_media_task_enc_update()
1915 else if (pstrEncParams->s16SamplingFreq == SBC_sf44100) in btif_media_task_enc_update()
1921 if (pstrEncParams->s16NumOfBlocks == 0 || in btif_media_task_enc_update()
1922 pstrEncParams->s16NumOfSubBands == 0 || in btif_media_task_enc_update()
1923 pstrEncParams->s16NumOfChannels == 0) { in btif_media_task_enc_update()
1927 pstrEncParams->s16NumOfBlocks, in btif_media_task_enc_update()
1928 pstrEncParams->s16NumOfSubBands, in btif_media_task_enc_update()
1929 pstrEncParams->s16NumOfChannels); in btif_media_task_enc_update()
1933 if ((pstrEncParams->s16ChannelMode == SBC_JOINT_STEREO) || in btif_media_task_enc_update()
1934 (pstrEncParams->s16ChannelMode == SBC_STEREO)) { in btif_media_task_enc_update()
1935 s16BitPool = (SINT16)((pstrEncParams->u16BitRate * in btif_media_task_enc_update()
1936 pstrEncParams->s16NumOfSubBands * 1000 / s16SamplingFreq) in btif_media_task_enc_update()
1937 - ((32 + (4 * pstrEncParams->s16NumOfSubBands * in btif_media_task_enc_update()
1938 pstrEncParams->s16NumOfChannels) in btif_media_task_enc_update()
1939 + ((pstrEncParams->s16ChannelMode - 2) * in btif_media_task_enc_update()
1940 pstrEncParams->s16NumOfSubBands)) in btif_media_task_enc_update()
1941 / pstrEncParams->s16NumOfBlocks)); in btif_media_task_enc_update()
1943 s16FrameLen = 4 + (4*pstrEncParams->s16NumOfSubBands * in btif_media_task_enc_update()
1944 pstrEncParams->s16NumOfChannels) / 8 in btif_media_task_enc_update()
1945 + (((pstrEncParams->s16ChannelMode - 2) * in btif_media_task_enc_update()
1946 pstrEncParams->s16NumOfSubBands) in btif_media_task_enc_update()
1947 + (pstrEncParams->s16NumOfBlocks * s16BitPool)) / 8; in btif_media_task_enc_update()
1950 / (pstrEncParams->s16NumOfSubBands * in btif_media_task_enc_update()
1951 pstrEncParams->s16NumOfBlocks * 1000); in btif_media_task_enc_update()
1953 if (s16BitRate > pstrEncParams->u16BitRate) in btif_media_task_enc_update()
1956 if (pstrEncParams->s16NumOfSubBands == 8) in btif_media_task_enc_update()
1961 s16BitPool = (SINT16)(((pstrEncParams->s16NumOfSubBands * in btif_media_task_enc_update()
1962 pstrEncParams->u16BitRate * 1000) in btif_media_task_enc_update()
1963 / (s16SamplingFreq * pstrEncParams->s16NumOfChannels)) in btif_media_task_enc_update()
1964 - (((32 / pstrEncParams->s16NumOfChannels) + in btif_media_task_enc_update()
1965 (4 * pstrEncParams->s16NumOfSubBands)) in btif_media_task_enc_update()
1966 / pstrEncParams->s16NumOfBlocks)); in btif_media_task_enc_update()
1968 pstrEncParams->s16BitPool = in btif_media_task_enc_update()
1969 (s16BitPool > (16 * pstrEncParams->s16NumOfSubBands)) ? in btif_media_task_enc_update()
1970 (16 * pstrEncParams->s16NumOfSubBands) : s16BitPool; in btif_media_task_enc_update()
1977 s16BitPool, pstrEncParams->u16BitRate); in btif_media_task_enc_update()
2009 pstrEncParams->s16BitPool = s16BitPool; in btif_media_task_enc_update()