Searched refs:bitrate (Results 1 - 25 of 38) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dbitenc.h34 Word32 bitrate; member in struct:BITSTREAMENCODER_INIT
H A Dpsy_configuration.h94 Word16 InitPsyConfigurationLong(Word32 bitrate,
99 Word16 InitPsyConfigurationShort(Word32 bitrate,
H A Dtns_func.h31 Word16 InitTnsConfigurationLong(Word32 bitrate,
38 Word16 InitTnsConfigurationShort(Word32 bitrate,
H A Dqc_data.h73 Word32 bitrate; member in struct:QC_INIT
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
H A Dmp3reader.cpp81 // Disallow "free" bitrate.
114 int bitrate = local
120 *out_bitrate = bitrate;
123 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4;
146 int bitrate; local
148 bitrate = (layer == 2 /* L2 */)
158 bitrate = kBitrateV2[bitrate_index - 1];
165 *out_bitrate = bitrate;
169 *frame_size = 144000 * bitrate / sampling_rate + padding;
173 *frame_size = tmp * bitrate / sampling_rat
294 uint32_t sample_rate, num_channels, bitrate; local
379 uint32_t bitrate; local
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dpsy_configuration.c193 const Word32 bitrate,
203 if (bitrate > 22000)
278 static void initMinSnr(const Word32 bitrate, argument
296 pePerWindow = bits2pe(extract_l((bitrate * numLines) / samplerate));
345 Word16 InitPsyConfigurationLong(Word32 bitrate, argument
388 bitrate,
411 initMinSnr(bitrate,
429 Word16 InitPsyConfigurationShort(Word32 bitrate, argument
470 bitrate,
495 initMinSnr(bitrate,
187 initSpreading(Word16 numPb, Word16 *pbBarcValue, Word16 *pbMaskLoFactor, Word16 *pbMaskHiFactor, Word16 *pbMaskLoFactorSprEn, Word16 *pbMaskHiFactorSprEn, const Word32 bitrate, const Word16 blockType) argument
[all...]
H A Daacenc.c323 int ret, i, bitrate, tmp; local
365 /* check the bitrate */
381 bitrate = config.bitRate / config.nChannelsOut;
382 bitrate = bitrate * tmp / config.sampleRate;
386 if (rates[i] >= bitrate)
448 bitrate = config.bitRate / config.nChannelsOut;
449 bitrate = bitrate * tmp / config.sampleRate;
453 if (rates[i] >= bitrate)
[all...]
H A Daacenc_core.c120 qcInit.bitrate = config.bitRate;
128 hAacEnc->bseInit.bitrate = config.bitRate;
173 /* adjust bitrate and frame length */
/frameworks/av/media/libstagefright/codecs/avc/enc/test/
H A Dh264_enc_test.cpp84 " <frame rate> <bitrate in kbps>\n", argv[0]);
88 fprintf(stderr, "Max bitrate %d kbps\n", kMaxBitrate);
117 int32_t bitrate; local
118 bitrate = atoi(argv[6]);
119 if (bitrate > kMaxBitrate || bitrate <= 0) {
120 fprintf(stderr, "Unsupported bitrate %d\n", bitrate);
123 bitrate *= 1024; // kbps to bps.
196 encParams.bitrate
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/
H A Dm4v_h263_enc_test.cpp50 "<height> <frame rate> <bitrate in kbps>\n", argv[0]);
55 fprintf(stderr, "Max bitrate %d kbps\n", kMaxBitrate);
94 // Read bitrate.
95 int32_t bitrate; local
96 bitrate = atoi(argv[7]);
97 if (bitrate > kMaxBitrate || bitrate <= 0) {
98 fprintf(stderr, "Unsupported bitrate %d\n", bitrate);
158 encParams.bitRate[0] = bitrate * 102
[all...]
/frameworks/av/media/libstagefright/
H A DMP3Extractor.cpp43 // protection, bitrate, padding, private bits, mode, mode extension,
148 int sample_rate, num_channels, bitrate; local
151 &sample_rate, &num_channels, &bitrate)) {
303 // result in an extra 1152 samples being output. In addition, the bitrate
310 int bitrate; local
312 header, &frame_size, &sample_rate, &num_channels, &bitrate);
325 int bitrate; local
327 header, &frame_size, &sample_rate, &num_channels, &bitrate);
346 mMeta->setInt32(kKeyBitRate, bitrate * 1000);
359 durationUs = 8000LL * dataLength / bitrate;
506 int32_t bitrate; local
532 int bitrate; local
[all...]
H A DNuMediaExtractor.cpp208 int32_t bitrate; local
209 if (!meta->findInt32(kKeyBitRate, &bitrate)) {
212 ALOGV("track of type '%s' does not publish bitrate", mime);
216 mTotalBitrate += bitrate;
611 bool NuMediaExtractor::getTotalBitrate(int64_t *bitrate) const {
613 *bitrate = mTotalBitrate;
619 *bitrate = size * 8000000ll / mDurationUs; // in bits/sec
631 int64_t bitrate; local
641 && getTotalBitrate(&bitrate)) {
649 *durationUs = cachedDataRemaining * 8000000ll / bitrate;
[all...]
H A Davc_utils.cpp664 // Disallow "free" bitrate.
697 int bitrate = local
703 *out_bitrate = bitrate;
706 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4;
729 int bitrate; local
731 bitrate = (layer == 2 /* L2 */)
741 bitrate = kBitrateV2[bitrate_index - 1];
748 *out_bitrate = bitrate;
752 *frame_size = 144000 * bitrate / sampling_rate + padding;
756 *frame_size = tmp * bitrate / sampling_rat
[all...]
H A DMediaCodecListOverrides.cpp75 static void getMeasureBitrate(sp<MediaCodecInfo::Capabilities> caps, int32_t *bitrate) { argument
78 *bitrate = 200000;
80 if (!caps->getDetails()->findString("bitrate-range", &bitrateRange)) {
89 *bitrate = strtol(minBitrate.c_str(), NULL, 10);
98 int32_t bitrate = 0; local
99 getMeasureBitrate(caps, &bitrate);
100 format->setInt32("bitrate", bitrate);
H A DACodec.cpp1737 // FLAC encoder doesn't need a bitrate, other encoders do
1739 && !msg->findInt32("bitrate", &bitRate)) {
1743 // propagate bitrate to the output so that the muxer has it
1744 if (encoder && msg->findInt32("bitrate", &bitRate)) {
1745 // Technically ISO spec says that 'bitrate' should be 0 for VBR even though it is the
1746 // average bitrate. We've been setting both bitrate and max-bitrate to this same value.
1747 outputFormat->setInt32("bitrate", bitRate);
1748 outputFormat->setInt32("max-bitrate", bitRat
2806 setupAMRCodec(bool encoder, bool isWAMR, int32_t bitrate) argument
3602 int32_t width, height, bitrate; local
3820 int32_t bitrate, iFrameInterval; local
3901 int32_t bitrate, iFrameInterval; local
3977 getAVCLevelFor( int width, int height, int rate, int bitrate, OMX_VIDEO_AVCPROFILETYPE profile) argument
4029 int32_t bitrate, iFrameInterval; local
4153 int32_t bitrate, iFrameInterval; local
4209 int32_t bitrate; local
4322 configureBitrate( int32_t bitrate, OMX_VIDEO_CONTROLRATETYPE bitrateMode) argument
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Drate_control.cpp41 PV_STATUS RC_UpdateBXRCParams(void *input); Parameters update for target bitrate or framerate change
79 rc[n]->bitrate = LayerBitRate[n];
85 rc[n]->max_BitVariance_num = (Int)((rc[n]->Bs - video->encParams->maxFrameSize) / 2 / (rc[n]->bitrate / rc[n]->framerate / 10.0)) - 5;
107 rc[n]->bitrate = LayerBitRate[n] - LayerBitRate[n-1];
116 pMP[n]->counter_BTsrc = (Int)((rc[n]->Bs / 2.0 - rc[n]->Bs / 3.0) / (rc[n]->bitrate / rc[n]->framerate / 10.0));
117 rc[n]->TMN_W = (Int)(rc[n]->VBV_fullness + pMP[n]->counter_BTsrc * (rc[n]->bitrate / rc[n]->framerate / 10.0));
124 rc[n]->VBV_fullness = rc[n]->Bs - (Int)(video->encParams->VBV_delay * rc[n]->bitrate);
135 /* Setting the bitrate and framerate */
136 pMP[n]->bitrate = rc[n]->bitrate;
[all...]
H A Drate_control.h85 Int max_BitVariance_num; /* the number of the maximum bit variance within the given buffer with the unit of 10% of bitrate/framerate*/
88 Int bitrate; member in struct:__anon488
/frameworks/av/media/libstagefright/codecs/on2/enc/
H A DSoftVPXEncoder.cpp78 mBitrateControlMode(VPX_VBR), // variable bitrate
170 // bitrate - expressed as percentage of the target bitrate.
173 // bitrate - expressed as percentage of the target bitrate.
257 // Set bitrate values for each layer
373 OMX_VIDEO_PARAM_BITRATETYPE *bitrate = local
376 if (!isValidOMXParam(bitrate)) {
380 if (bitrate->nPortIndex != kOutputPortIndex) {
384 bitrate
607 internalSetBitrateParams( const OMX_VIDEO_PARAM_BITRATETYPE* bitrate) argument
[all...]
H A DSoftVPXEncoder.h41 // - target bitrate
158 // If a request for a change it bitrate has been received.
232 // Updates bitrate to reflect port settings.
234 const OMX_VIDEO_PARAM_BITRATETYPE* bitrate);
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Davcenc_api.h150 uint32 bitrate; /* target encoding bit rate in bits/second */ member in struct:tagAVCEncParam
312 OSCL_IMPORT_REF AVCEnc_Status PVAVCEncUpdateBitRate(AVCHandle *avcHandle, uint32 bitrate);
H A Drate_control.cpp241 /* Setting the bitrate and framerate */
242 rateCtrl->pMP->bitrate = rateCtrl->bitRate;
244 rateCtrl->pMP->target_bits_per_frame = rateCtrl->pMP->bitrate / rateCtrl->pMP->framerate;
378 pMP->bitrate = rateCtrl->bitRate; /* calculated in RCVopQPSetting */
607 /* Second, set another upper bound for current bit allocation: 4-5*bitrate/framerate */
820 (pMP->bitrate / (pMP->framerate + 0.0001) + 0.0001) / 0.1);
826 rateCtrl->TMN_TH -= (int)((OsclFloat)pMP->bitrate / (pMP->framerate + 0.0001) * (diff_BTCounter * 0.1));
H A Davcenc_int.h170 int bitrate; /* bitrate for current frame */ member in struct:tagMultiPass
196 /* For target bitrate or framerate update */
197 OsclFloat target_bits_per_frame; /* = C = bitrate/framerate */
219 /* bitrate-robustness tradeoff */
313 int max_BitVariance_num; /* the number of the maximum bit variance within the given buffer with the unit of 10% of bitrate/framerate*/
/frameworks/av/media/libstagefright/wifi-display/source/
H A DConverter.h71 void setVideoBitrate(int32_t bitrate);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.h126 int64_t bitrate,
180 int64_t bitrate,
H A DGenericSource.cpp276 int32_t bitrate; local
277 if (totalBitrate >= 0 && meta->findInt32(kKeyBitRate, &bitrate)) {
278 totalBitrate += bitrate;
1532 int64_t bitrate,
1535 prepare_l(cachedSource, wvmExtractor, durationUs, bitrate, isStreaming);
1541 -1 /* bitrate */, false /* isStreaming */);
1597 int64_t bitrate,
1606 mBitrate = bitrate;
1745 int64_t bitrate = 0ll; local
1747 // |bitrate| use
1528 prepare( const sp<NuCachedSource2> &cachedSource, const sp<WVMExtractor> &wvmExtractor, int64_t durationUs, int64_t bitrate, bool isStreaming) argument
1593 prepare_l( const sp<NuCachedSource2> &cachedSource, const sp<WVMExtractor> &wvmExtractor, int64_t durationUs, int64_t bitrate, bool isStreaming) argument
[all...]

Completed in 1755 milliseconds

12