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

Side by Side Diff: media/gpu/android_video_decode_accelerator.h

Issue 2106133003: [M52] Make AVDA fall back to software decoding if needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 5 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 gfx::ScopedJavaSurface surface_; 203 gfx::ScopedJavaSurface surface_;
204 204
205 // The MediaCrypto object is used in the MediaCodec.configure() in case of 205 // The MediaCrypto object is used in the MediaCodec.configure() in case of
206 // an encrypted stream. 206 // an encrypted stream.
207 media::MediaDrmBridgeCdmContext::JavaObjectPtr media_crypto_; 207 media::MediaDrmBridgeCdmContext::JavaObjectPtr media_crypto_;
208 208
209 // Initial coded size. The actual size might change at any time, so this 209 // Initial coded size. The actual size might change at any time, so this
210 // is only a hint. 210 // is only a hint.
211 gfx::Size initial_expected_coded_size_; 211 gfx::Size initial_expected_coded_size_;
212 212
213 // Should we allow MediaCodec to autodetect the codec type (true), or
214 // select a software decoder manually (false). This is because fallback to
215 // software when autodetecting can sometimes hang mediaserver.
216 bool allow_autodetection_ = false;
217
218 // Should we notify AVDATimerManager when codec configuration completes?
219 bool notify_completion_ = false;
220
213 protected: 221 protected:
214 friend class base::RefCountedThreadSafe<CodecConfig>; 222 friend class base::RefCountedThreadSafe<CodecConfig>;
215 virtual ~CodecConfig(); 223 virtual ~CodecConfig();
216 224
217 private: 225 private:
218 DISALLOW_COPY_AND_ASSIGN(CodecConfig); 226 DISALLOW_COPY_AND_ASSIGN(CodecConfig);
219 }; 227 };
220 228
221 // Callback that is called when the SurfaceView becomes available, if it's 229 // Callback that is called when the SurfaceView becomes available, if it's
222 // not during Initialize. |success| is true if it is now available, false 230 // not during Initialize. |success| is true if it is now available, false
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 476
469 // WeakPtrFactory for posting tasks back to |this|. 477 // WeakPtrFactory for posting tasks back to |this|.
470 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; 478 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
471 479
472 friend class AndroidVideoDecodeAcceleratorTest; 480 friend class AndroidVideoDecodeAcceleratorTest;
473 }; 481 };
474 482
475 } // namespace media 483 } // namespace media
476 484
477 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 485 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/base/android/sdk_media_codec_bridge.cc ('k') | media/gpu/android_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698