• Home
  • Raw
  • Download

Lines Matching refs:frame

43 uint32_t OI_SBC_MaxBitpool(OI_CODEC_SBC_FRAME_INFO* frame) {  in OI_SBC_MaxBitpool()  argument
44 switch (frame->mode) { in OI_SBC_MaxBitpool()
47 return 16 * frame->nrof_subbands; in OI_SBC_MaxBitpool()
50 return 32 * frame->nrof_subbands; in OI_SBC_MaxBitpool()
53 ERROR(("Invalid frame mode %d", frame->mode)); in OI_SBC_MaxBitpool()
58 PRIVATE uint16_t internal_CalculateFramelen(OI_CODEC_SBC_FRAME_INFO* frame) { in internal_CalculateFramelen() argument
59 uint16_t nbits = frame->nrof_blocks * frame->bitpool; in internal_CalculateFramelen()
60 uint16_t nrof_subbands = frame->nrof_subbands; in internal_CalculateFramelen()
63 if (frame->mode == SBC_JOINT_STEREO) { in internal_CalculateFramelen()
66 if (frame->mode == SBC_DUAL_CHANNEL) { in internal_CalculateFramelen()
69 if (frame->mode == SBC_MONO) { in internal_CalculateFramelen()
78 PRIVATE uint32_t internal_CalculateBitrate(OI_CODEC_SBC_FRAME_INFO* frame) { in internal_CalculateBitrate() argument
80 blocksbands = frame->nrof_subbands * frame->nrof_blocks; in internal_CalculateBitrate()
82 return DIVIDE(8 * internal_CalculateFramelen(frame) * frame->frequency, in internal_CalculateBitrate()
87 OI_CODEC_SBC_FRAME_INFO* frame, OI_UINT* headerLen_) { in OI_SBC_CalculateFrameAndHeaderlen() argument
89 SBC_HEADER_LEN + frame->nrof_subbands * frame->nrof_channels / 2; in OI_SBC_CalculateFrameAndHeaderlen()
91 if (frame->mode == SBC_JOINT_STEREO) { in OI_SBC_CalculateFrameAndHeaderlen()
96 return internal_CalculateFramelen(frame); in OI_SBC_CalculateFrameAndHeaderlen()