| OLD | NEW |
| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 gl::ScopedJavaSurface surface_; | 196 gl::ScopedJavaSurface surface_; |
| 197 | 197 |
| 198 // The MediaCrypto object is used in the MediaCodec.configure() in case of | 198 // The MediaCrypto object is used in the MediaCodec.configure() in case of |
| 199 // an encrypted stream. | 199 // an encrypted stream. |
| 200 MediaDrmBridgeCdmContext::JavaObjectPtr media_crypto_; | 200 MediaDrmBridgeCdmContext::JavaObjectPtr media_crypto_; |
| 201 | 201 |
| 202 // Initial coded size. The actual size might change at any time, so this | 202 // Initial coded size. The actual size might change at any time, so this |
| 203 // is only a hint. | 203 // is only a hint. |
| 204 gfx::Size initial_expected_coded_size_; | 204 gfx::Size initial_expected_coded_size_; |
| 205 | 205 |
| 206 // Should we allow MediaCodec to autodetect the codec type (true), or |
| 207 // select a software decoder manually (false). This is because fallback to |
| 208 // software when autodetecting can sometimes hang mediaserver. |
| 209 bool allow_autodetection_ = false; |
| 210 |
| 211 // Should we notify AVDATimerManager when codec configuration completes? |
| 212 bool notify_completion_ = false; |
| 213 |
| 206 protected: | 214 protected: |
| 207 friend class base::RefCountedThreadSafe<CodecConfig>; | 215 friend class base::RefCountedThreadSafe<CodecConfig>; |
| 208 virtual ~CodecConfig(); | 216 virtual ~CodecConfig(); |
| 209 | 217 |
| 210 private: | 218 private: |
| 211 DISALLOW_COPY_AND_ASSIGN(CodecConfig); | 219 DISALLOW_COPY_AND_ASSIGN(CodecConfig); |
| 212 }; | 220 }; |
| 213 | 221 |
| 214 // Callback that is called when the SurfaceView becomes available, if it's | 222 // Callback that is called when the SurfaceView becomes available, if it's |
| 215 // not during Initialize. |success| is true if it is now available, false | 223 // not during Initialize. |success| is true if it is now available, false |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 | 467 |
| 460 // WeakPtrFactory for posting tasks back to |this|. | 468 // WeakPtrFactory for posting tasks back to |this|. |
| 461 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 469 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
| 462 | 470 |
| 463 friend class AndroidVideoDecodeAcceleratorTest; | 471 friend class AndroidVideoDecodeAcceleratorTest; |
| 464 }; | 472 }; |
| 465 | 473 |
| 466 } // namespace media | 474 } // namespace media |
| 467 | 475 |
| 468 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 476 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |