/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
D | audio_decoder_unittest.cc | 294 WebRtcIlbcfix_EncoderCreate(&encoder_); in AudioDecoderIlbcTest() 298 WebRtcIlbcfix_EncoderFree(encoder_); in ~AudioDecoderIlbcTest() 302 ASSERT_EQ(0, WebRtcIlbcfix_EncoderInit(encoder_, 30)); // 30 ms. in InitEncoder() 308 WebRtcIlbcfix_Encode(encoder_, input, in EncodeFrame() 329 iLBC_encinst_t* encoder_; member in webrtc::AudioDecoderIlbcTest 340 WebRtcIsac_Create(&encoder_); in AudioDecoderIsacFloatTest() 341 WebRtcIsac_SetEncSampRate(encoder_, 16000); in AudioDecoderIsacFloatTest() 345 WebRtcIsac_Free(encoder_); in ~AudioDecoderIsacFloatTest() 349 ASSERT_EQ(0, WebRtcIsac_EncoderInit(encoder_, 1)); // Fixed mode. in InitEncoder() 350 ASSERT_EQ(0, WebRtcIsac_Control(encoder_, 32000, 30)); // 32 kbps, 30 ms. in InitEncoder() [all …]
|
/external/chromium_org/third_party/libvpx/source/libvpx/test/ |
D | encode_test_driver.h | 53 : encoder_(encoder), iter_(NULL) {} in CxDataIterator() 56 return vpx_codec_get_cx_data(encoder_, &iter_); in Next() 60 vpx_codec_ctx_t *encoder_; 96 memset(&encoder_, 0, sizeof(encoder_)); in Encoder() 100 vpx_codec_destroy(&encoder_); in ~Encoder() 104 return CxDataIterator(&encoder_); in GetCxData() 108 return vpx_codec_get_preview_frame(&encoder_); in GetPreviewFrame() 120 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); in Control() 125 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); in Control() 130 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); in Control() [all …]
|
D | encode_test_driver.cc | 43 if (!encoder_.priv) { in EncodeFrameInternal() 48 res = vpx_codec_enc_init(&encoder_, CodecInterface(), &cfg_, in EncodeFrameInternal() 57 res = vpx_codec_enc_config_set(&encoder_, &cfg_); in EncodeFrameInternal() 63 res = vpx_codec_encode(&encoder_, in EncodeFrameInternal() 70 const vpx_codec_err_t res = vpx_codec_encode(&encoder_, NULL, 0, 0, 0, in Flush()
|
/external/libvpx/libvpx/test/ |
D | encode_test_driver.h | 53 : encoder_(encoder), iter_(NULL) {} in CxDataIterator() 56 return vpx_codec_get_cx_data(encoder_, &iter_); in Next() 60 vpx_codec_ctx_t *encoder_; 96 memset(&encoder_, 0, sizeof(encoder_)); in Encoder() 100 vpx_codec_destroy(&encoder_); in ~Encoder() 104 return CxDataIterator(&encoder_); in GetCxData() 108 return vpx_codec_get_preview_frame(&encoder_); in GetPreviewFrame() 120 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); in Control() 125 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); in Control() 130 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); in Control() [all …]
|
D | encode_test_driver.cc | 43 if (!encoder_.priv) { in EncodeFrameInternal() 48 res = vpx_codec_enc_init(&encoder_, CodecInterface(), &cfg_, in EncodeFrameInternal() 57 res = vpx_codec_enc_config_set(&encoder_, &cfg_); in EncodeFrameInternal() 63 res = vpx_codec_encode(&encoder_, in EncodeFrameInternal() 70 const vpx_codec_err_t res = vpx_codec_encode(&encoder_, NULL, 0, 0, 0, in Flush()
|
/external/chromium_org/content/common/gpu/media/ |
D | gpu_video_encode_accelerator.cc | 56 DCHECK(!encoder_); in ~GpuVideoEncodeAccelerator() 70 DCHECK(!encoder_); in Initialize() 90 if (!encoder_) { in Initialize() 96 if (!encoder_->Initialize(input_format, in Initialize() 152 encoder_.reset(); in OnWillDestroyStub() 172 DCHECK(!encoder_); in CreateEncoder() 178 encoder_.reset(new V4L2VideoEncodeAccelerator(device.Pass())); in CreateEncoder() 180 encoder_.reset(new AndroidVideoEncodeAccelerator()); in CreateEncoder() 191 if (!encoder_) in OnEncode() 236 encoder_->Encode(frame, force_keyframe); in OnEncode() [all …]
|
/external/chromium_org/content/browser/speech/ |
D | audio_encoder.cc | 40 FLAC__StreamEncoder* encoder_; member in content::__anon82814d180111::FLACEncoder 54 DCHECK(me->encoder_ == encoder); in WriteCallback() 63 encoder_(FLAC__stream_encoder_new()), in FLACEncoder() 65 FLAC__stream_encoder_set_channels(encoder_, 1); in FLACEncoder() 66 FLAC__stream_encoder_set_bits_per_sample(encoder_, bits_per_sample); in FLACEncoder() 67 FLAC__stream_encoder_set_sample_rate(encoder_, sampling_rate); in FLACEncoder() 68 FLAC__stream_encoder_set_compression_level(encoder_, kFLACCompressionLevel); in FLACEncoder() 76 FLAC__stream_encoder_delete(encoder_); in ~FLACEncoder() 83 FLAC__stream_encoder_init_stream(encoder_, WriteCallback, NULL, NULL, in Encode() 96 FLAC__stream_encoder_process(encoder_, &flac_samples_ptr, num_samples); in Encode() [all …]
|
D | google_one_shot_remote_engine.cc | 209 encoder_.reset(AudioEncoder::Create(kDefaultAudioCodec, in StartRecognition() 212 DCHECK(encoder_.get()); in StartRecognition() 217 url_fetcher_->SetChunkedUpload(encoder_->mime_type()); in StartRecognition() 237 DCHECK(encoder_.get()); in TakeAudioChunk() 239 encoder_->Encode(data); in TakeAudioChunk() 240 scoped_refptr<AudioChunk> encoded_data(encoder_->GetEncodedDataAndClear()); in TakeAudioChunk() 246 DCHECK(encoder_.get()); in AudioChunksEnded() 255 encoder_->bits_per_sample() / 8)); in AudioChunksEnded() 256 encoder_->Encode(*dummy_chunk.get()); in AudioChunksEnded() 257 encoder_->Flush(); in AudioChunksEnded() [all …]
|
D | google_streaming_remote_engine.cc | 294 encoder_.reset(AudioEncoder::Create(kDefaultAudioCodec, in ConnectBothStreams() 297 DCHECK(encoder_.get()); in ConnectBothStreams() 352 upstream_fetcher_->SetChunkedUpload(encoder_->mime_type()); in ConnectBothStreams() 371 encoder_->Encode(audio); in TransmitAudioUpstream() 372 scoped_refptr<AudioChunk> encoded_data(encoder_->GetEncodedDataAndClear()); in TransmitAudioUpstream() 468 DCHECK(encoder_.get()); in CloseUpstreamAndWaitForResults() 479 encoder_->bits_per_sample() / 8); in CloseUpstreamAndWaitForResults() 480 encoder_->Encode(*dummy_chunk.get()); in CloseUpstreamAndWaitForResults() 481 encoder_->Flush(); in CloseUpstreamAndWaitForResults() 483 encoder_->GetEncodedDataAndClear(); in CloseUpstreamAndWaitForResults() [all …]
|
/external/chromium_org/sdch/open-vcdiff/src/ |
D | vcencoder_test.cc | 134 VCDiffStreamingEncoder encoder_; member in open_vcdiff::__anon08ec64c30111::VCDiffEncoderTest 163 encoder_(&hashed_dictionary_, in VCDiffEncoderTest() 174 EXPECT_FALSE(encoder_.EncodeChunk(kTarget, strlen(kTarget), delta())); in TEST_F() 178 EXPECT_FALSE(encoder_.FinishEncoding(delta())); in TEST_F() 266 EXPECT_TRUE(encoder_.StartEncoding(delta())); in TEST_F() 267 EXPECT_TRUE(encoder_.EncodeChunk(kTarget, strlen(kTarget), delta())); in TEST_F() 268 EXPECT_TRUE(encoder_.FinishEncoding(delta())); in TEST_F() 288 EXPECT_TRUE(encoder_.StartEncoding(&delta_start)); in TEST_F() 289 EXPECT_TRUE(encoder_.EncodeChunk(kTarget, strlen(kTarget), &delta_encode)); in TEST_F() 290 EXPECT_TRUE(encoder_.FinishEncoding(&delta_finish)); in TEST_F() [all …]
|
D | vcencoder.cc | 178 if (!encoder_) { in EncodeToInterface() 183 encoder_ = new VCDiffStreamingEncoder(&dictionary_, in EncodeToInterface() 187 if (!encoder_->StartEncodingToInterface(out)) { in EncodeToInterface() 190 if (!encoder_->EncodeChunkToInterface(target_data, target_len, out)) { in EncodeToInterface() 193 return encoder_->FinishEncodingToInterface(out); in EncodeToInterface()
|
/external/chromium_org/remoting/codec/ |
D | video_decoder_vpx_unittest.cc | 19 scoped_ptr<VideoEncoderVpx> encoder_; member in remoting::__anonacd19ccc0111::VideoDecoderVpxTest 22 VideoDecoderVpxTest() : encoder_(VideoEncoderVpx::CreateForVP8()), in VideoDecoderVpxTest() 30 encoder_.get(), decoder_.get(), in TestGradient() 40 encoder_ = VideoEncoderVpx::CreateForVP8(); in VideoDecoderVp8Test() 48 encoder_ = VideoEncoderVpx::CreateForVP9(); in VideoDecoderVp9Test() 60 TestVideoEncoderDecoder(encoder_.get(), decoder_.get(), false); in TEST_F() 110 TestVideoEncoderDecoder(encoder_.get(), decoder_.get(), false); in TEST_F()
|
D | audio_encoder_opus.cc | 45 encoder_(NULL), in AudioEncoderOpus() 57 DCHECK(!encoder_); in InitEncoder() 59 encoder_ = opus_encoder_create(kOpusSamplingRate, channels_, in InitEncoder() 61 if (!encoder_) { in InitEncoder() 66 opus_encoder_ctl(encoder_, OPUS_SET_BITRATE(kOutputBitrateBps)); in InitEncoder() 94 if (encoder_) { in DestroyEncoder() 95 opus_encoder_destroy(encoder_); in DestroyEncoder() 96 encoder_ = NULL; in DestroyEncoder() 121 return encoder_ != NULL; in ResetForPacket() 199 int result = opus_encode(encoder_, pcm_buffer, kFrameSamples, in Encode()
|
D | audio_encoder_opus_unittest.cc | 132 encoder_.reset(new AudioEncoderOpus()); in TestEncodeDecode() 141 encoder_->Encode(source_packet.Pass()); in TestEncodeDecode() 165 scoped_ptr<AudioEncoderOpus> encoder_; member in remoting::OpusAudioEncoderTest
|
/external/chromium_org/third_party/webrtc/modules/video_coding/codecs/vp8/test/ |
D | vp8_impl_unittest.cc | 102 encoder_.reset(VP8Encoder::Create()); in SetUp() 109 encoder_->RegisterEncodeCompleteCallback(encode_complete_callback_.get()); in SetUp() 147 encoder_->InitEncode(&codec_inst_, 1, 1440)); in SetUpEncodeDecode() 187 scoped_ptr<VideoEncoder> encoder_; member in webrtc::TestVp8Impl 197 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, encoder_->Release()); in TEST_F() 199 unittest.SetEncoder(encoder_.get()); in TEST_F() 219 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, encoder_->Release()); in TEST_F() 222 encoder_->SetRates(bit_rate, codec_inst_.maxFramerate)); in TEST_F() 225 encoder_->InitEncode(&codec_inst_, 1, 1440)); in TEST_F() 235 encoder_->Encode(input_frame_, NULL, NULL); in TEST_F() [all …]
|
/external/chromium_org/media/cast/video_sender/codecs/vp8/ |
D | vp8_encoder.cc | 63 vpx_codec_destroy(encoder_.get()); in ~Vp8Encoder() 70 encoder_.reset(new vpx_codec_ctx_t()); in Initialize() 125 encoder_.get(), vpx_codec_vp8_cx(), config_.get(), flags)) { in InitEncode() 127 encoder_.reset(); in InitEncode() 130 vpx_codec_control(encoder_.get(), VP8E_SET_STATIC_THRESHOLD, 1); in InitEncode() 131 vpx_codec_control(encoder_.get(), VP8E_SET_NOISE_SENSITIVITY, 0); in InitEncode() 132 vpx_codec_control(encoder_.get(), VP8E_SET_CPUUSED, -6); in InitEncode() 134 encoder_.get(), VP8E_SET_MAX_INTRA_BITRATE_PCT, rc_max_intra_target); in InitEncode() 189 if (vpx_codec_encode(encoder_.get(), in Encode() 203 while ((pkt = vpx_codec_get_cx_data(encoder_.get(), &iter)) != NULL) { in Encode() [all …]
|
/external/chromium_org/media/cast/video_sender/ |
D | video_encoder_impl.cc | 74 encoder_.reset(new Vp8Encoder(video_config, max_unacked_frames)); in VideoEncoderImpl() 79 encoder_.get())); in VideoEncoderImpl() 82 encoder_.reset(new FakeSoftwareVideoEncoder(video_config)); in VideoEncoderImpl() 95 if (encoder_) { in ~VideoEncoderImpl() 100 encoder_.release())); in ~VideoEncoderImpl() 113 encoder_.get(), in EncodeVideoFrame()
|
/external/chromium_org/net/spdy/ |
D | hpack_encoder_test.cc | 40 : encoder_(encoder) {} in HpackEncoderPeer() 43 return &encoder_->header_table_; in table() 49 return encoder_->allow_huffman_compression_; in allow_huffman_compression() 52 encoder_->allow_huffman_compression_ = allow; in set_allow_huffman_compression() 55 encoder_->EmitString(str); in EmitString() 58 encoder_->output_stream_.TakeString(out); in TakeString() 61 encoder_->UpdateCharacterCounts(str); in UpdateCharacterCounts() 75 HpackEncoder* encoder_; member in net::test::HpackEncoderPeer 90 : encoder_(ObtainHpackHuffmanTable()), in HpackEncoderTest() 91 peer_(&encoder_) {} in HpackEncoderTest() [all …]
|
D | hpack_round_trip_test.cc | 28 : encoder_(ObtainHpackHuffmanTable()), in HpackRoundTripTest() 33 encoder_.ApplyHeaderTableSizeSetting(256); in SetUp() 39 encoder_.EncodeHeaderSet(header_set, &encoded); in RoundTrip() 54 HpackEncoder encoder_; member in net::__anon7c4d7d530111::HpackRoundTripTest
|
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/ |
D | pairingsession.cc | 32 encoder_(NULL), in PairingSession() 47 if (encoder_) { in ~PairingSession() 48 delete encoder_; in ~PairingSession() 156 size_t bytes_needed = nonce_length / encoder_->symbols_per_byte(); in DoOutputPairing() 193 if (encoder_) { in SetConfiguration() 194 delete encoder_; in SetConfiguration() 195 encoder_ = NULL; in SetConfiguration() 200 encoder_ = new encoding::HexadecimalEncoder(); in SetConfiguration()
|
/external/chromium_org/remoting/host/ |
D | video_scheduler_unittest.cc | 94 MockVideoEncoder* encoder_; member in remoting::VideoSchedulerTest 106 : encoder_(NULL), in VideoSchedulerTest() 114 encoder_ = new MockVideoEncoder(); in SetUp() 124 scoped_ptr<VideoEncoder>(encoder_), in StartVideoScheduler() 169 EXPECT_CALL(*encoder_, EncodePtr(_)) in TEST_F()
|
D | video_scheduler.cc | 51 encoder_(encoder.Pass()), in VideoScheduler() 61 DCHECK(encoder_); in VideoScheduler() 179 encoder_->SetLosslessEncode(want_lossless); in SetLosslessEncode() 191 encoder_->SetLosslessColor(want_lossless); in SetLosslessColor() 348 scoped_ptr<VideoPacket> packet = encoder_->Encode(*frame); in EncodeFrame()
|
/external/chromium_org/third_party/webrtc/modules/video_coding/codecs/vp8/ |
D | vp8_impl.cc | 50 encoder_(NULL), in VP8EncoderImpl() 68 if (encoder_ != NULL) { in Release() 69 if (vpx_codec_destroy(encoder_)) { in Release() 72 delete encoder_; in Release() 73 encoder_ = NULL; in Release() 94 if (encoder_->err) { in SetRates() 110 if (vpx_codec_enc_config_set(encoder_, config_)) { in SetRates() 141 if (encoder_ == NULL) { in InitEncode() 142 encoder_ = new vpx_codec_ctx_t; in InitEncode() 284 if (vpx_codec_enc_init(encoder_, vpx_codec_vp8_cx(), config_, flags)) { in InitAndSetControlSettings() [all …]
|
/external/chromium_org/sdch/open-vcdiff/src/google/ |
D | vcencoder.h | 213 encoder_(NULL), in VCDiffEncoder() 218 delete encoder_; in ~VCDiffEncoder() local 250 VCDiffStreamingEncoder* encoder_; variable
|
/external/chromium_org/third_party/webrtc/modules/video_coding/codecs/test/ |
D | videoprocessor.cc | 48 : encoder_(encoder), in VideoProcessorImpl() 93 encoder_->RegisterEncodeCompleteCallback(encode_callback_); in Init() 111 encoder_->InitEncode(config_.codec_settings, nbr_of_cores, in Init() 142 encoder_->RegisterEncodeCompleteCallback(NULL); in ~VideoProcessorImpl() 150 int set_rates_result = encoder_->SetRates(bit_rate, frame_rate); in SetRates() 213 int32_t encode_result = encoder_->Encode(source_frame_, NULL, &frame_types); in ProcessFrame()
|