Home
last modified time | relevance | path

Searched refs:bitrate (Results 1 – 25 of 222) sorted by relevance

123456789

/external/chromium_org/third_party/webrtc/modules/remote_bitrate_estimator/
Drate_statistics_unittest.cc55 uint32_t bitrate = stats_.Rate(now_ms); in TEST_F() local
56 EXPECT_EQ(0u, bitrate); in TEST_F()
61 if (new_bitrate != bitrate) { in TEST_F()
63 EXPECT_GT(new_bitrate, bitrate); in TEST_F()
66 EXPECT_NEAR(8000000u, bitrate, 80000u); in TEST_F()
69 bitrate = new_bitrate; in TEST_F()
74 bitrate = stats_.Rate(now_ms); in TEST_F()
75 EXPECT_NEAR(8000000u, bitrate, 80000u); in TEST_F()
81 if (new_bitrate != bitrate) { in TEST_F()
83 EXPECT_LT(new_bitrate, bitrate); in TEST_F()
[all …]
/external/chromium_org/third_party/webrtc/modules/bitrate_controller/
Dbitrate_controller_impl.cc30 virtual void OnReceivedEstimatedBitrate(const uint32_t bitrate) OVERRIDE { in OnReceivedEstimatedBitrate() argument
31 owner_->OnReceivedEstimatedBitrate(bitrate); in OnReceivedEstimatedBitrate()
220 void BitrateControllerImpl::OnReceivedEstimatedBitrate(const uint32_t bitrate) { in OnReceivedEstimatedBitrate() argument
222 bandwidth_estimation_.UpdateReceiverEstimate(bitrate); in OnReceivedEstimatedBitrate()
258 uint32_t bitrate; in MaybeTriggerOnNetworkChanged() local
261 bandwidth_estimation_.CurrentEstimate(&bitrate, &fraction_loss, &rtt); in MaybeTriggerOnNetworkChanged()
262 bitrate -= std::min(bitrate, reserved_bitrate_bps_); in MaybeTriggerOnNetworkChanged()
265 bitrate != last_bitrate_bps_ || in MaybeTriggerOnNetworkChanged()
270 last_bitrate_bps_ = bitrate; in MaybeTriggerOnNetworkChanged()
276 OnNetworkChanged(bitrate, fraction_loss, rtt); in MaybeTriggerOnNetworkChanged()
[all …]
Dbitrate_controller_impl.h69 uint32_t bitrate) in ObserverConfiguration()
71 min_bitrate_(bitrate) { in ObserverConfiguration()
83 void OnReceivedEstimatedBitrate(const uint32_t bitrate);
92 void OnNetworkChanged(const uint32_t bitrate,
97 void NormalRateAllocation(uint32_t bitrate,
103 void LowRateAllocation(uint32_t bitrate,
Dsend_side_bandwidth_estimation.cc63 void SendSideBandwidthEstimation::SetSendBitrate(uint32_t bitrate) { in SetSendBitrate() argument
64 bitrate_ = bitrate; in SetSendBitrate()
81 void SendSideBandwidthEstimation::CurrentEstimate(uint32_t* bitrate, in CurrentEstimate() argument
84 *bitrate = bitrate_; in CurrentEstimate()
/external/chromium_org/media/cast/sender/
Dcongestion_control_unittest.cc74 uint32 bitrate = congestion_control_->GetBitrate( in TEST_F() local
78 safe_bitrate / kTargetEmptyBufferFraction, bitrate, safe_bitrate * 0.05); in TEST_F()
80 bitrate = congestion_control_->GetBitrate( in TEST_F()
84 bitrate, in TEST_F()
87 bitrate = congestion_control_->GetBitrate( in TEST_F()
91 bitrate, in TEST_F()
99 bitrate = congestion_control_->GetBitrate( in TEST_F()
103 bitrate, in TEST_F()
111 bitrate = congestion_control_->GetBitrate( in TEST_F()
115 bitrate, in TEST_F()
Dcongestion_control.cc70 base::TimeTicks EstimatedAckTime(uint32 frame_id, double bitrate);
74 base::TimeTicks EstimatedSendingTime(uint32 frame_id, double bitrate);
93 FixedCongestionControl(uint32 bitrate) : bitrate_(bitrate) {} in FixedCongestionControl() argument
132 CongestionControl* NewFixedCongestionControl(uint32 bitrate) { in NewFixedCongestionControl() argument
133 return new FixedCongestionControl(bitrate); in NewFixedCongestionControl()
257 double bitrate) { in EstimatedAckTime() argument
262 base::TimeTicks ret = EstimatedSendingTime(frame_id, bitrate); in EstimatedAckTime()
263 ret += base::TimeDelta::FromSecondsD(frame_stats->frame_size / bitrate); in EstimatedAckTime()
283 double bitrate) { in EstimatedSendingTime() argument
286 base::TimeTicks ret = EstimatedAckTime(frame_id - 1, bitrate) - rtt_; in EstimatedSendingTime()
Dvideo_sender.cc175 uint32 bitrate = congestion_control_->GetBitrate( in InsertRawVideoFrame() local
177 if (bitrate != last_bitrate_) { in InsertRawVideoFrame()
178 video_encoder_->SetBitRate(bitrate); in InsertRawVideoFrame()
179 last_bitrate_ = bitrate; in InsertRawVideoFrame()
187 bitrate))) { in InsertRawVideoFrame()
Daudio_encoder.cc206 int bitrate, in OpusImpl() argument
228 if (bitrate <= 0) { in OpusImpl()
233 bitrate = OPUS_AUTO; in OpusImpl()
235 CHECK_EQ(opus_encoder_ctl(opus_encoder_, OPUS_SET_BITRATE(bitrate)), in OpusImpl()
344 int bitrate, in AudioEncoder() argument
356 bitrate, in AudioEncoder()
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/test/
DRTPencode.cc74 …ar * name, webrtc::NetEqDecoder *codec, int *PT, int frameLen, int *fs, int *bitrate, int *useRed);
75 int NetEQTest_init_coders(webrtc::NetEqDecoder coder, int enc_frameSize, int bitrate, int sampfreq …
78 …Len, unsigned char * encoded,int sampleRate , int * vad, int useVAD, int bitrate, int numChannels);
248 int bitrate = 0; in main() local
422 NetEQTest_GetCodec_and_PT(argv[4], &usedCodec, &payloadType, packet_size, &fs, &bitrate, &useRed); in main()
475 bitrate = 32000; in main()
481 bitrate = 56000; in main()
488 bitrate = atoi(argv[6]); in main()
491 if ((bitrate < 10000) || (bitrate > 32000)) in main()
495 bitrate); in main()
[all …]
/external/chromium_org/device/serial/
Dserial_io_handler_posix.cc20 bool BitrateToSpeedConstant(int bitrate, speed_t* speed) { in BitrateToSpeedConstant() argument
25 switch (bitrate) { in BitrateToSpeedConstant()
58 bool SpeedConstantToBitrate(speed_t speed, int* bitrate) { in SpeedConstantToBitrate() argument
61 *bitrate = x; \ in SpeedConstantToBitrate()
96 int bitrate) { in SetCustomBitrate() argument
103 serial.custom_divisor = serial.baud_base / bitrate; in SetCustomBitrate()
111 speed_t speed = static_cast<speed_t>(bitrate); in SetCustomBitrate()
249 if (options.bitrate) { in ConfigurePort()
251 if (BitrateToSpeedConstant(options.bitrate, &bitrate_opt)) { in ConfigurePort()
257 file().GetPlatformFile(), &config, options.bitrate)) { in ConfigurePort()
[all …]
Dtest_serial_io_handler.cc35 if (options.bitrate) in ConfigurePort()
36 info_.bitrate = options.bitrate; in ConfigurePort()
/external/chromium_org/media/cast/test/
Dcast_benchmarks.cc170 : bitrate(bitrate_), in MeasuringPoint()
174 return bitrate >= other.bitrate && latency <= other.latency && in operator <=()
178 return bitrate <= other.bitrate && latency >= other.latency && in operator >=()
184 "%f Mbit/s %f ms %f %% ", bitrate, latency, percent_packet_drop); in AsString()
187 double bitrate; member
234 audio_sender_config_.bitrate = kDefaultAudioEncoderBitrate; in Configure()
378 scoped_ptr<test::PacketPipe> pipe = test::NewBuffer(65536, p.bitrate); in CreateSimplePipe()
386 available_bitrate_ = p.bitrate; in Run()
398 VLOG(1) << "Bitrate: " << p.bitrate << " mbit/s"; in Run()
549 ret.bitrate = bitrate.blend(other.bitrate, factor); in blend()
[all …]
/external/chromium_org/third_party/webrtc/modules/video_coding/codecs/test_framework/
DplotBenchmark.m85 bitrate = sscanf(tline(delim(1):end),',%f'); variable
131 resolution, 'frameRate', frameRate, 'bitrate', bitrate, 'psnr', psnr, ...
187 simIndx = find(abs(cases(i).bitrate - [cases(i).bitrate(2:end) ; 0]) < 10);
189 diffIndx = setdiff(1:length(cases(i).bitrate), simIndx);
191 cases(i).bitrate = cases(i).bitrate(diffIndx);
192 simIndx = find(abs(cases(i).bitrate - [cases(i).bitrate(2:end) ; 0]) < 10);
216 [cases, hLine, codec, sequences] = plotOneCodec(cases, 'bitrate', 'psnr', i, sequences, 1);
255 simIndx = find(abs(cases(i).bitrate - [cases(i).bitrate(2:end) ; 0]) < 10);
257 diffIndx = setdiff(1:length(cases(i).bitrate), simIndx);
259 cases(i).bitrate = cases(i).bitrate(diffIndx);
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/adaptivestreaming/
DAbstractManifestWriter.java66 long bitrate = 0; in getBitrate() local
68 bitrate += sample.limit(); in getBitrate()
70 bitrate *= 8; // from bytes to bits in getBitrate()
71bitrate /= ((double) getDuration(track)) / track.getTrackMetaData().getTimescale(); // per second in getBitrate()
72 return bitrate; in getBitrate()
/external/chromium_org/media/formats/mpeg/
Dmpeg1_audio_stream_parser.cc149 int bitrate = kBitrateMap[bitrate_index][kVersionLayerMap[version][layer]]; in ParseHeader() local
151 if (bitrate == 0) { in ParseHeader()
159 DVLOG(2) << " bitrate " << bitrate; in ParseHeader()
201 header->frame_size = 4 * (12 * bitrate * 1000 / frame_sample_rate); in ParseHeader()
204 ((samples_per_frame / 8) * bitrate * 1000) / frame_sample_rate; in ParseHeader()
/external/chromium_org/media/tools/player_x11/
Ddata_source_logger.cc54 void DataSourceLogger::SetBitrate(int bitrate) { in SetBitrate() argument
55 VLOG(1) << "SetBitrate(" << bitrate << ")"; in SetBitrate()
56 data_source_->SetBitrate(bitrate); in SetBitrate()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
DEC3TrackImpl.java30 int bitrate; field in EC3TrackImpl
108 bitrate += bsi.bitrate; in parse()
112 ec3.setDataRate(bitrate / 1000); in parse()
387 entry.bitrate = (int) (((double) entry.samplerate) / 1536.0 * entry.frameSize * 8); in readVariables()
410 public int bitrate; field in EC3TrackImpl.BitStreamInfo
420 ", bitrate=" + bitrate + in toString()
431 "bitrate=" + bitrate + in toString()
/external/chromium_org/third_party/libjingle/source/talk/media/base/
Dcodec.h149 int bitrate; member
155 bitrate(br), in AudioCodec()
160 AudioCodec() : Codec(), bitrate(0), channels(0) {} in AudioCodec()
175 bitrate = c.bitrate;
187 bitrate == c.bitrate &&
Dcodec.cc151 (codec.bitrate == 0 || bitrate <= 0 || bitrate == codec.bitrate) && in Matches()
157 os << "AudioCodec[" << id << ":" << name << ":" << clockrate << ":" << bitrate in ToString()
/external/chromium_org/media/blink/
Dbuffered_resource_loader.cc57 static void ComputeTargetBufferWindow(float playback_rate, int bitrate, in ComputeTargetBufferWindow() argument
67 if (bitrate <= 0) in ComputeTargetBufferWindow()
68 bitrate = kDefaultBitrate; in ComputeTargetBufferWindow()
69 bitrate = std::min(bitrate, kMaxBitrate); in ComputeTargetBufferWindow()
82 int bytes_per_second = (bitrate / 8.0) * playback_rate; in ComputeTargetBufferWindow()
103 int bitrate, in BufferedResourceLoader() argument
125 bitrate_(bitrate), in BufferedResourceLoader()
584 void BufferedResourceLoader::SetBitrate(int bitrate) { in SetBitrate() argument
585 DCHECK(bitrate >= 0); in SetBitrate()
586 bitrate_ = bitrate; in SetBitrate()
/external/chromium_org/third_party/webrtc/examples/android/media_demo/src/org/webrtc/webrtcdemo/
DVideoDecodeEncodeObserver.java14 void incomingRate(int videoChannel, int framerate, int bitrate); in incomingRate() argument
23 void outgoingRate(int videoChannel, int framerate, int bitrate); in outgoingRate() argument
DVideoCodecInst.java40 public native void setStartBitRate(int bitrate); in setStartBitRate() argument
42 public native void setMaxBitRate(int bitrate); in setMaxBitRate() argument
/external/chromium_org/third_party/webrtc/video_engine/test/auto_test/automated/
Dvie_video_verification_test.cc129 int bitrate; member
151 parameter_table_[i].bitrate = 300; in SetUp()
169 parameter_table_[i].bitrate = 300; in SetUp()
187 parameter_table_[i].bitrate = 300; in SetUp()
205 parameter_table_[i].bitrate = 300; in SetUp()
269 const int kBitRateKbps = parameter_table_[GetParam()].bitrate; in TEST_P()
/external/chromium_org/third_party/webrtc/video_engine/include/
Dvie_codec.h37 const unsigned int bitrate) = 0;
62 const unsigned int bitrate) = 0;
149 unsigned int* bitrate) const = 0;
/external/chromium_org/third_party/webrtc/video_engine/
Dvie_remb.cc98 unsigned int bitrate) { in OnReceiveBitrateChanged() argument
103 unsigned int new_remb_bitrate = last_send_bitrate_ - bitrate_ + bitrate; in OnReceiveBitrateChanged()
111 bitrate_ = bitrate; in OnReceiveBitrateChanged()

123456789