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

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

Issue 1341883003: Prepare MediaDrmBridge to work with MediaCodecPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug526755
Patch Set: Created 5 years, 3 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_VIDEO_DECODER_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_
7 7
8 #include <set> 8 #include <set>
9 #include "media/base/android/media_codec_decoder.h" 9 #include "media/base/android/media_codec_decoder.h"
10 #include "ui/gfx/geometry/size.h" 10 #include "ui/gfx/geometry/size.h"
(...skipping 14 matching lines...) Expand all
25 // video_size_changed_cb: reports the new video size, 25 // video_size_changed_cb: reports the new video size,
26 // codec_created_cb: reports that video codec has been created. A controller 26 // codec_created_cb: reports that video codec has been created. A controller
27 // class might use it to release more resources so that this 27 // class might use it to release more resources so that this
28 // decoder can use them. 28 // decoder can use them.
29 MediaCodecVideoDecoder( 29 MediaCodecVideoDecoder(
30 const scoped_refptr<base::SingleThreadTaskRunner>& media_runner, 30 const scoped_refptr<base::SingleThreadTaskRunner>& media_runner,
31 const base::Closure& request_data_cb, 31 const base::Closure& request_data_cb,
32 const base::Closure& starvation_cb, 32 const base::Closure& starvation_cb,
33 const base::Closure& drained_requested_cb, 33 const base::Closure& drained_requested_cb,
34 const base::Closure& stop_done_cb, 34 const base::Closure& stop_done_cb,
35 const base::Closure& key_required_cb,
35 const base::Closure& error_cb, 36 const base::Closure& error_cb,
36 const SetTimeCallback& update_current_time_cb, 37 const SetTimeCallback& update_current_time_cb,
37 const VideoSizeChangedCallback& video_size_changed_cb, 38 const VideoSizeChangedCallback& video_size_changed_cb,
38 const base::Closure& codec_created_cb); 39 const base::Closure& codec_created_cb);
39 ~MediaCodecVideoDecoder() override; 40 ~MediaCodecVideoDecoder() override;
40 41
41 const char* class_name() const override; 42 const char* class_name() const override;
42 43
43 bool HasStream() const override; 44 bool HasStream() const override;
44 void SetDemuxerConfigs(const DemuxerConfigs& configs) override; 45 void SetDemuxerConfigs(const DemuxerConfigs& configs) override;
46 bool IsContentEncrypted() const override;
45 void ReleaseDecoderResources() override; 47 void ReleaseDecoderResources() override;
46 void ReleaseMediaCodec() override; 48 void ReleaseMediaCodec() override;
47 49
48 // Stores the video surface to use with upcoming Configure() 50 // Stores the video surface to use with upcoming Configure()
49 void SetVideoSurface(gfx::ScopedJavaSurface surface); 51 void SetVideoSurface(gfx::ScopedJavaSurface surface);
50 52
51 // Returns true if there is a video surface to use. 53 // Returns true if there is a video surface to use.
52 bool HasVideoSurface() const; 54 bool HasVideoSurface() const;
53 55
54 protected: 56 protected:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 112
111 // Mantain the last seen PTS for stand-alone EOS. 113 // Mantain the last seen PTS for stand-alone EOS.
112 base::TimeDelta last_seen_pts_; 114 base::TimeDelta last_seen_pts_;
113 115
114 DISALLOW_COPY_AND_ASSIGN(MediaCodecVideoDecoder); 116 DISALLOW_COPY_AND_ASSIGN(MediaCodecVideoDecoder);
115 }; 117 };
116 118
117 } // namespace media 119 } // namespace media
118 120
119 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ 121 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698