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

Side by Side Diff: content/common/gpu/media/v4l2_video_decode_accelerator.h

Issue 1566533003: V4L2(S)VDA: Check if device handles profile for supported fourccs on init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 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 CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 9 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_
10 #define CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 10 #define CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 443
444 // EGL state 444 // EGL state
445 EGLDisplay egl_display_; 445 EGLDisplay egl_display_;
446 EGLContext egl_context_; 446 EGLContext egl_context_;
447 447
448 // The codec we'll be decoding for. 448 // The codec we'll be decoding for.
449 media::VideoCodecProfile video_profile_; 449 media::VideoCodecProfile video_profile_;
450 // Chosen output format. 450 // Chosen output format.
451 uint32_t output_format_fourcc_; 451 uint32_t output_format_fourcc_;
452 452
453 // Input format V4L2 fourccs this class supports.
454 static const uint32_t supported_input_fourccs_[];
455
453 // The WeakPtrFactory for |weak_this_|. 456 // The WeakPtrFactory for |weak_this_|.
454 base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_; 457 base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_;
455 458
456 DISALLOW_COPY_AND_ASSIGN(V4L2VideoDecodeAccelerator); 459 DISALLOW_COPY_AND_ASSIGN(V4L2VideoDecodeAccelerator);
457 }; 460 };
458 461
459 } // namespace content 462 } // namespace content
460 463
461 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 464 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698