| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 // Initial coded size. The actual size might change at any time, so this | 120 // Initial coded size. The actual size might change at any time, so this |
| 121 // is only a hint. | 121 // is only a hint. |
| 122 gfx::Size initial_expected_coded_size_; | 122 gfx::Size initial_expected_coded_size_; |
| 123 | 123 |
| 124 // The type of allocation to use for this. We use this to select the right | 124 // The type of allocation to use for this. We use this to select the right |
| 125 // thread for construction / destruction, and to decide if we should | 125 // thread for construction / destruction, and to decide if we should |
| 126 // restrict the codec to be software only. | 126 // restrict the codec to be software only. |
| 127 AVDACodecAllocator::TaskType task_type_; | 127 AVDACodecAllocator::TaskType task_type_; |
| 128 | 128 |
| 129 // Codec specific data (SPS and PPS for H264). |
| 130 std::vector<uint8_t> csd0_; |
| 131 std::vector<uint8_t> csd1_; |
| 132 |
| 129 protected: | 133 protected: |
| 130 friend class base::RefCountedThreadSafe<CodecConfig>; | 134 friend class base::RefCountedThreadSafe<CodecConfig>; |
| 131 virtual ~CodecConfig(); | 135 virtual ~CodecConfig(); |
| 132 | 136 |
| 133 private: | 137 private: |
| 134 DISALLOW_COPY_AND_ASSIGN(CodecConfig); | 138 DISALLOW_COPY_AND_ASSIGN(CodecConfig); |
| 135 }; | 139 }; |
| 136 | 140 |
| 137 // Callback that is called when the SurfaceView becomes available, if it's | 141 // Callback that is called when the SurfaceView becomes available, if it's |
| 138 // not during Initialize. |success| is true if it is now available, false | 142 // not during Initialize. |success| is true if it is now available, false |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 | 390 |
| 387 // WeakPtrFactory for posting tasks back to |this|. | 391 // WeakPtrFactory for posting tasks back to |this|. |
| 388 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 392 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
| 389 | 393 |
| 390 friend class AndroidVideoDecodeAcceleratorTest; | 394 friend class AndroidVideoDecodeAcceleratorTest; |
| 391 }; | 395 }; |
| 392 | 396 |
| 393 } // namespace media | 397 } // namespace media |
| 394 | 398 |
| 395 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 399 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |