OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 VideoDecodeAccelerator | 5 // This file contains an implementation of VideoDecodeAccelerator |
6 // that utilizes hardware video decoders, which expose Video4Linux 2 API | 6 // that utilizes hardware video decoders, which expose Video4Linux 2 API |
7 // (http://linuxtv.org/downloads/v4l-dvb-apis/). | 7 // (http://linuxtv.org/downloads/v4l-dvb-apis/). |
8 | 8 |
9 #ifndef MEDIA_GPU_V4L2_VIDEO_DECODE_ACCELERATOR_H_ | 9 #ifndef MEDIA_GPU_V4L2_VIDEO_DECODE_ACCELERATOR_H_ |
10 #define MEDIA_GPU_V4L2_VIDEO_DECODE_ACCELERATOR_H_ | 10 #define MEDIA_GPU_V4L2_VIDEO_DECODE_ACCELERATOR_H_ |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 // EGL state | 520 // EGL state |
521 EGLDisplay egl_display_; | 521 EGLDisplay egl_display_; |
522 | 522 |
523 // Callback to get current GLContext. | 523 // Callback to get current GLContext. |
524 GetGLContextCallback get_gl_context_cb_; | 524 GetGLContextCallback get_gl_context_cb_; |
525 // Callback to set the correct gl context. | 525 // Callback to set the correct gl context. |
526 MakeGLContextCurrentCallback make_context_current_cb_; | 526 MakeGLContextCurrentCallback make_context_current_cb_; |
527 | 527 |
528 // The codec we'll be decoding for. | 528 // The codec we'll be decoding for. |
529 VideoCodecProfile video_profile_; | 529 VideoCodecProfile video_profile_; |
| 530 // Chosen input format for video_profile_. |
| 531 uint32_t input_format_fourcc_; |
530 // Chosen output format. | 532 // Chosen output format. |
531 uint32_t output_format_fourcc_; | 533 uint32_t output_format_fourcc_; |
532 | 534 |
533 // Image processor device, if one is in use. | 535 // Image processor device, if one is in use. |
534 scoped_refptr<V4L2Device> image_processor_device_; | 536 scoped_refptr<V4L2Device> image_processor_device_; |
535 // Image processor. Accessed on |decoder_thread_|. | 537 // Image processor. Accessed on |decoder_thread_|. |
536 std::unique_ptr<V4L2ImageProcessor> image_processor_; | 538 std::unique_ptr<V4L2ImageProcessor> image_processor_; |
537 | 539 |
538 // The V4L2Device EGLImage is created from. | 540 // The V4L2Device EGLImage is created from. |
539 scoped_refptr<V4L2Device> egl_image_device_; | 541 scoped_refptr<V4L2Device> egl_image_device_; |
(...skipping 14 matching lines...) Expand all Loading... |
554 | 556 |
555 // The WeakPtrFactory for |weak_this_|. | 557 // The WeakPtrFactory for |weak_this_|. |
556 base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_; | 558 base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_; |
557 | 559 |
558 DISALLOW_COPY_AND_ASSIGN(V4L2VideoDecodeAccelerator); | 560 DISALLOW_COPY_AND_ASSIGN(V4L2VideoDecodeAccelerator); |
559 }; | 561 }; |
560 | 562 |
561 } // namespace media | 563 } // namespace media |
562 | 564 |
563 #endif // MEDIA_GPU_V4L2_VIDEO_DECODE_ACCELERATOR_H_ | 565 #endif // MEDIA_GPU_V4L2_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |