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

Side by Side Diff: media/filters/ffmpeg_audio_decoder.h

Issue 7523051: Create media.dll / libmedia.so for the component build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_
6 #define MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ 6 #define MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_
7 7
8 #include "media/filters/decoder_base.h" 8 #include "media/filters/decoder_base.h"
9 9
10 struct AVCodecContext; 10 struct AVCodecContext;
11 11
12 namespace media { 12 namespace media {
13 13
14 // Forward declaration for scoped_ptr_malloc. 14 // Forward declaration for scoped_ptr_malloc.
15 class ScopedPtrAVFree; 15 class ScopedPtrAVFree;
16 16
17 class FFmpegAudioDecoder : public DecoderBase<AudioDecoder, Buffer> { 17 class MEDIA_API FFmpegAudioDecoder : public DecoderBase<AudioDecoder, Buffer> {
18 public: 18 public:
19 explicit FFmpegAudioDecoder(MessageLoop* message_loop); 19 explicit FFmpegAudioDecoder(MessageLoop* message_loop);
20 virtual ~FFmpegAudioDecoder(); 20 virtual ~FFmpegAudioDecoder();
21 21
22 // AudioDecoder implementation. 22 // AudioDecoder implementation.
23 virtual AudioDecoderConfig config(); 23 virtual AudioDecoderConfig config();
24 virtual void ProduceAudioSamples(scoped_refptr<Buffer> output); 24 virtual void ProduceAudioSamples(scoped_refptr<Buffer> output);
25 25
26 protected: 26 protected:
27 virtual void DoInitialize(DemuxerStream* demuxer_stream, bool* success, 27 virtual void DoInitialize(DemuxerStream* demuxer_stream, bool* success,
(...skipping 22 matching lines...) Expand all
50 scoped_ptr_malloc<uint8, ScopedPtrAVFree> output_buffer_; 50 scoped_ptr_malloc<uint8, ScopedPtrAVFree> output_buffer_;
51 51
52 static const size_t kOutputBufferSize; 52 static const size_t kOutputBufferSize;
53 53
54 DISALLOW_COPY_AND_ASSIGN(FFmpegAudioDecoder); 54 DISALLOW_COPY_AND_ASSIGN(FFmpegAudioDecoder);
55 }; 55 };
56 56
57 } // namespace media 57 } // namespace media
58 58
59 #endif // MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ 59 #endif // MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698