| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file contains an implementation of VideoDecoderAccelerator | 5 // This file contains an implementation of VideoDecoderAccelerator |
| 6 // that utilizes the hardware video decoder present on the Exynos SoC. | 6 // that utilizes the hardware video decoder present on the Exynos SoC. |
| 7 | 7 |
| 8 #ifndef CONTENT_COMMON_GPU_MEDIA_EXYNOS_VIDEO_DECODE_ACCELERATOR_H_ | 8 #ifndef CONTENT_COMMON_GPU_MEDIA_EXYNOS_VIDEO_DECODE_ACCELERATOR_H_ |
| 9 #define CONTENT_COMMON_GPU_MEDIA_EXYNOS_VIDEO_DECODE_ACCELERATOR_H_ | 9 #define CONTENT_COMMON_GPU_MEDIA_EXYNOS_VIDEO_DECODE_ACCELERATOR_H_ |
| 10 | 10 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // Record for GSC output buffers. | 170 // Record for GSC output buffers. |
| 171 struct GscOutputRecord { | 171 struct GscOutputRecord { |
| 172 GscOutputRecord(); | 172 GscOutputRecord(); |
| 173 ~GscOutputRecord(); | 173 ~GscOutputRecord(); |
| 174 bool at_device; // held by device. | 174 bool at_device; // held by device. |
| 175 bool at_client; // held by client. | 175 bool at_client; // held by client. |
| 176 int fd; // file descriptor from backing EGLImage. | 176 int fd; // file descriptor from backing EGLImage. |
| 177 EGLImageKHR egl_image; // backing EGLImage. | 177 EGLImageKHR egl_image; // backing EGLImage. |
| 178 EGLSyncKHR egl_sync; // sync the compositor's use of the EGLImage. | 178 EGLSyncKHR egl_sync; // sync the compositor's use of the EGLImage. |
| 179 int32 picture_id; // picture buffer id as returned to PictureReady(). | 179 int32 picture_id; // picture buffer id as returned to PictureReady(). |
| 180 bool cleared; // the texture has been cleared |
| 180 }; | 181 }; |
| 181 | 182 |
| 182 // | 183 // |
| 183 // Decoding tasks, to be run on decode_thread_. | 184 // Decoding tasks, to be run on decode_thread_. |
| 184 // | 185 // |
| 185 | 186 |
| 186 // Enqueue a BitstreamBuffer to decode. This will enqueue a buffer to the | 187 // Enqueue a BitstreamBuffer to decode. This will enqueue a buffer to the |
| 187 // decoder_input_queue_, then queue a DecodeBufferTask() to actually decode | 188 // decoder_input_queue_, then queue a DecodeBufferTask() to actually decode |
| 188 // the buffer. | 189 // the buffer. |
| 189 void DecodeTask(const media::BitstreamBuffer& bitstream_buffer); | 190 void DecodeTask(const media::BitstreamBuffer& bitstream_buffer); |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 464 |
| 464 // The codec we'll be decoding for. | 465 // The codec we'll be decoding for. |
| 465 media::VideoCodecProfile video_profile_; | 466 media::VideoCodecProfile video_profile_; |
| 466 | 467 |
| 467 DISALLOW_COPY_AND_ASSIGN(ExynosVideoDecodeAccelerator); | 468 DISALLOW_COPY_AND_ASSIGN(ExynosVideoDecodeAccelerator); |
| 468 }; | 469 }; |
| 469 | 470 |
| 470 } // namespace content | 471 } // namespace content |
| 471 | 472 |
| 472 #endif // CONTENT_COMMON_GPU_MEDIA_EXYNOS_VIDEO_DECODE_ACCELERATOR_H_ | 473 #endif // CONTENT_COMMON_GPU_MEDIA_EXYNOS_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |