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

Side by Side Diff: media/base/android/audio_media_codec_decoder.h

Issue 1682923003: Rename browser side MediaCodec-based decoders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reformatted to make bots happy Created 4 years, 10 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
« no previous file with comments | « media/base/android/BUILD.gn ('k') | media/base/android/audio_media_codec_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BASE_ANDROID_MEDIA_CODEC_AUDIO_DECODER_H_ 5 #ifndef MEDIA_BASE_ANDROID_AUDIO_MEDIA_CODEC_DECODER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_AUDIO_DECODER_H_ 6 #define MEDIA_BASE_ANDROID_AUDIO_MEDIA_CODEC_DECODER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "media/base/android/media_codec_decoder.h" 12 #include "media/base/android/media_codec_decoder.h"
13 13
14 namespace media { 14 namespace media {
15 15
16 class AudioTimestampHelper; 16 class AudioTimestampHelper;
17 17
18 // Audio decoder for MediaCodecPlayer 18 // Audio decoder for MediaCodecPlayer
19 class MediaCodecAudioDecoder : public MediaCodecDecoder { 19 class AudioMediaCodecDecoder : public MediaCodecDecoder {
20 public: 20 public:
21 // For parameters see media_codec_decoder.h 21 // For parameters see media_codec_decoder.h
22 // update_current_time_cb: callback that reports current playback time. 22 // update_current_time_cb: callback that reports current playback time.
23 // Called for each rendered frame. 23 // Called for each rendered frame.
24 MediaCodecAudioDecoder( 24 AudioMediaCodecDecoder(
25 const scoped_refptr<base::SingleThreadTaskRunner>& media_runner, 25 const scoped_refptr<base::SingleThreadTaskRunner>& media_runner,
26 FrameStatistics* frame_statistics, 26 FrameStatistics* frame_statistics,
27 const base::Closure& request_data_cb, 27 const base::Closure& request_data_cb,
28 const base::Closure& starvation_cb, 28 const base::Closure& starvation_cb,
29 const base::Closure& decoder_drained_cb, 29 const base::Closure& decoder_drained_cb,
30 const base::Closure& stop_done_cb, 30 const base::Closure& stop_done_cb,
31 const base::Closure& waiting_for_decryption_key_cb, 31 const base::Closure& waiting_for_decryption_key_cb,
32 const base::Closure& error_cb, 32 const base::Closure& error_cb,
33 const SetTimeCallback& update_current_time_cb); 33 const SetTimeCallback& update_current_time_cb);
34 ~MediaCodecAudioDecoder() override; 34 ~AudioMediaCodecDecoder() override;
35 35
36 const char* class_name() const override; 36 const char* class_name() const override;
37 37
38 bool HasStream() const override; 38 bool HasStream() const override;
39 void SetDemuxerConfigs(const DemuxerConfigs& configs) override; 39 void SetDemuxerConfigs(const DemuxerConfigs& configs) override;
40 bool IsContentEncrypted() const override; 40 bool IsContentEncrypted() const override;
41 void ReleaseDecoderResources() override; 41 void ReleaseDecoderResources() override;
42 void Flush() override; 42 void Flush() override;
43 43
44 // Sets the volume of the audio output. 44 // Sets the volume of the audio output.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Object to calculate the current audio timestamp for A/V sync. 89 // Object to calculate the current audio timestamp for A/V sync.
90 scoped_ptr<AudioTimestampHelper> audio_timestamp_helper_; 90 scoped_ptr<AudioTimestampHelper> audio_timestamp_helper_;
91 91
92 // Reports current playback time to the callee. 92 // Reports current playback time to the callee.
93 SetTimeCallback update_current_time_cb_; 93 SetTimeCallback update_current_time_cb_;
94 94
95 // The time limit for the next frame to avoid underrun. 95 // The time limit for the next frame to avoid underrun.
96 base::TimeTicks next_frame_time_limit_; 96 base::TimeTicks next_frame_time_limit_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(MediaCodecAudioDecoder); 98 DISALLOW_COPY_AND_ASSIGN(AudioMediaCodecDecoder);
99 }; 99 };
100 100
101 } // namespace media 101 } // namespace media
102 102
103 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_DECODER_H_ 103 #endif // MEDIA_BASE_ANDROID_AUDIO_MEDIA_CODEC_DECODER_H_
OLDNEW
« no previous file with comments | « media/base/android/BUILD.gn ('k') | media/base/android/audio_media_codec_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698