Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(671)

Unified Diff: media/cast/receiver/audio_decoder.cc

Issue 388663003: Cast: Reshuffle files under media/cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing includes Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/receiver/audio_decoder.h ('k') | media/cast/receiver/audio_decoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/receiver/audio_decoder.cc
diff --git a/media/cast/receiver/audio_decoder.cc b/media/cast/receiver/audio_decoder.cc
index b63b200db79bcaa9137c8d65668dd2b1645a38b2..dac0a5e9a1181815a197dacfa85b041fb7f984d0 100644
--- a/media/cast/receiver/audio_decoder.cc
+++ b/media/cast/receiver/audio_decoder.cc
@@ -23,7 +23,7 @@ class AudioDecoder::ImplBase
: public base::RefCountedThreadSafe<AudioDecoder::ImplBase> {
public:
ImplBase(const scoped_refptr<CastEnvironment>& cast_environment,
- transport::Codec codec,
+ Codec codec,
int num_channels,
int sampling_rate)
: cast_environment_(cast_environment),
@@ -39,7 +39,7 @@ class AudioDecoder::ImplBase
return cast_initialization_status_;
}
- void DecodeFrame(scoped_ptr<transport::EncodedFrame> encoded_frame,
+ void DecodeFrame(scoped_ptr<EncodedFrame> encoded_frame,
const DecodeFrameCallback& callback) {
DCHECK_EQ(cast_initialization_status_, STATUS_AUDIO_INITIALIZED);
@@ -77,7 +77,7 @@ class AudioDecoder::ImplBase
virtual scoped_ptr<AudioBus> Decode(uint8* data, int len) = 0;
const scoped_refptr<CastEnvironment> cast_environment_;
- const transport::Codec codec_;
+ const Codec codec_;
const int num_channels_;
// Subclass' ctor is expected to set this to STATUS_AUDIO_INITIALIZED.
@@ -96,7 +96,7 @@ class AudioDecoder::OpusImpl : public AudioDecoder::ImplBase {
int num_channels,
int sampling_rate)
: ImplBase(cast_environment,
- transport::CODEC_AUDIO_OPUS,
+ CODEC_AUDIO_OPUS,
num_channels,
sampling_rate),
decoder_memory_(new uint8[opus_decoder_get_size(num_channels)]),
@@ -166,7 +166,7 @@ class AudioDecoder::Pcm16Impl : public AudioDecoder::ImplBase {
int num_channels,
int sampling_rate)
: ImplBase(cast_environment,
- transport::CODEC_AUDIO_PCM16,
+ CODEC_AUDIO_PCM16,
num_channels,
sampling_rate) {
if (ImplBase::cast_initialization_status_ != STATUS_AUDIO_UNINITIALIZED)
@@ -202,13 +202,13 @@ AudioDecoder::AudioDecoder(
const scoped_refptr<CastEnvironment>& cast_environment,
int channels,
int sampling_rate,
- transport::Codec codec)
+ Codec codec)
: cast_environment_(cast_environment) {
switch (codec) {
- case transport::CODEC_AUDIO_OPUS:
+ case CODEC_AUDIO_OPUS:
impl_ = new OpusImpl(cast_environment, channels, sampling_rate);
break;
- case transport::CODEC_AUDIO_PCM16:
+ case CODEC_AUDIO_PCM16:
impl_ = new Pcm16Impl(cast_environment, channels, sampling_rate);
break;
default:
@@ -226,7 +226,7 @@ CastInitializationStatus AudioDecoder::InitializationResult() const {
}
void AudioDecoder::DecodeFrame(
- scoped_ptr<transport::EncodedFrame> encoded_frame,
+ scoped_ptr<EncodedFrame> encoded_frame,
const DecodeFrameCallback& callback) {
DCHECK(encoded_frame.get());
DCHECK(!callback.is_null());
« no previous file with comments | « media/cast/receiver/audio_decoder.h ('k') | media/cast/receiver/audio_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698