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

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

Issue 2548923002: media: Convert GetSupportedProfiles to IsConfigSupported in MCVD (Closed)
Patch Set: put the 4k upper limit back Created 4 years 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 | « no previous file | media/gpu/android/media_codec_video_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_GPU_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ 5 #ifndef MEDIA_GPU_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_
6 #define MEDIA_GPU_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ 6 #define MEDIA_GPU_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 16 matching lines...) Expand all
27 #include "media/gpu/media_gpu_export.h" 27 #include "media/gpu/media_gpu_export.h"
28 #include "media/video/video_decode_accelerator.h" 28 #include "media/video/video_decode_accelerator.h"
29 #include "ui/gl/android/scoped_java_surface.h" 29 #include "ui/gl/android/scoped_java_surface.h"
30 30
31 namespace media { 31 namespace media {
32 32
33 // An Android VideoDecoder that delegates to MediaCodec. 33 // An Android VideoDecoder that delegates to MediaCodec.
34 class MEDIA_GPU_EXPORT MediaCodecVideoDecoder 34 class MEDIA_GPU_EXPORT MediaCodecVideoDecoder
35 : public AVDACodecAllocatorClient { 35 : public AVDACodecAllocatorClient {
36 public: 36 public:
37 static VideoDecodeAccelerator::Capabilities GetCapabilities(
38 const gpu::GpuPreferences& gpu_preferences);
39
40 MediaCodecVideoDecoder( 37 MediaCodecVideoDecoder(
41 const MakeGLContextCurrentCallback& make_context_current_cb, 38 const MakeGLContextCurrentCallback& make_context_current_cb,
42 const GetGLES2DecoderCallback& get_gles2_decoder_cb); 39 const GetGLES2DecoderCallback& get_gles2_decoder_cb);
43 40
44 ~MediaCodecVideoDecoder() override; 41 ~MediaCodecVideoDecoder() override;
45 42
46 // VideoDecodeAccelerator implementation: 43 // VideoDecodeAccelerator implementation:
47 bool Initialize(const Config& config, Client* client) override; 44 bool Initialize(const Config& config, Client* client) override;
48 void Decode(const BitstreamBuffer& bitstream_buffer) override; 45 void Decode(const BitstreamBuffer& bitstream_buffer) override;
49 void Flush() override; 46 void Flush() override;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 247
251 // WeakPtrFactory for posting tasks back to |this|. 248 // WeakPtrFactory for posting tasks back to |this|.
252 base::WeakPtrFactory<MediaCodecVideoDecoder> weak_this_factory_; 249 base::WeakPtrFactory<MediaCodecVideoDecoder> weak_this_factory_;
253 250
254 friend class MediaCodecVideoDecoderTest; 251 friend class MediaCodecVideoDecoderTest;
255 }; 252 };
256 253
257 } // namespace media 254 } // namespace media
258 255
259 #endif // MEDIA_GPU_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ 256 #endif // MEDIA_GPU_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | media/gpu/android/media_codec_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698