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

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

Issue 1254293003: MediaCodecPlayer implementation (stage 4 - preroll) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mtplayer-browserseek
Patch Set: Removed unused var, fixed unit test compilation Created 5 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
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_MEDIA_CODEC_AUDIO_DECODER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_AUDIO_DECODER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_AUDIO_DECODER_H_
7 7
8 #include "media/base/android/media_codec_decoder.h" 8 #include "media/base/android/media_codec_decoder.h"
9 9
10 namespace media { 10 namespace media {
11 11
12 class AudioTimestampHelper; 12 class AudioTimestampHelper;
13 13
14 // Audio decoder for MediaCodecPlayer 14 // Audio decoder for MediaCodecPlayer
15 class MediaCodecAudioDecoder : public MediaCodecDecoder { 15 class MediaCodecAudioDecoder : public MediaCodecDecoder {
16 public: 16 public:
17 // For parameters see media_codec_decoder.h 17 // For parameters see media_codec_decoder.h
18 // update_current_time_cb: callback that reports current playback time. 18 // update_current_time_cb: callback that reports current playback time.
19 // Called for each rendered frame. 19 // Called for each rendered frame.
20 MediaCodecAudioDecoder( 20 MediaCodecAudioDecoder(
21 const scoped_refptr<base::SingleThreadTaskRunner>& media_runner, 21 const scoped_refptr<base::SingleThreadTaskRunner>& media_runner,
22 const base::Closure& request_data_cb, 22 const base::Closure& request_data_cb,
23 const base::Closure& starvation_cb, 23 const base::Closure& starvation_cb,
24 const base::Closure& preroll_done_cb,
24 const base::Closure& stop_done_cb, 25 const base::Closure& stop_done_cb,
25 const base::Closure& error_cb, 26 const base::Closure& error_cb,
26 const SetTimeCallback& update_current_time_cb); 27 const SetTimeCallback& update_current_time_cb);
27 ~MediaCodecAudioDecoder() override; 28 ~MediaCodecAudioDecoder() override;
28 29
29 const char* class_name() const override; 30 const char* class_name() const override;
30 31
31 bool HasStream() const override; 32 bool HasStream() const override;
32 void SetDemuxerConfigs(const DemuxerConfigs& configs) override; 33 void SetDemuxerConfigs(const DemuxerConfigs& configs) override;
33 void Flush() override; 34 void Flush() override;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 83
83 // Reports current playback time to the callee. 84 // Reports current playback time to the callee.
84 SetTimeCallback update_current_time_cb_; 85 SetTimeCallback update_current_time_cb_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(MediaCodecAudioDecoder); 87 DISALLOW_COPY_AND_ASSIGN(MediaCodecAudioDecoder);
87 }; 88 };
88 89
89 } // namespace media 90 } // namespace media
90 91
91 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_DECODER_H_ 92 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/android/media_codec_audio_decoder.cc » ('j') | media/base/android/media_codec_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698