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

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

Issue 137023008: Add support for Tegra V4L2 VDA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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_
11 11
12 #include <queue> 12 #include <queue>
13 #include <vector> 13 #include <vector>
14 #include <linux/videodev2.h>
14 15
15 #include "base/callback_forward.h" 16 #include "base/callback_forward.h"
16 #include "base/memory/linked_ptr.h" 17 #include "base/memory/linked_ptr.h"
17 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
18 #include "base/synchronization/waitable_event.h" 19 #include "base/synchronization/waitable_event.h"
19 #include "base/threading/thread.h" 20 #include "base/threading/thread.h"
20 #include "content/common/content_export.h" 21 #include "content/common/content_export.h"
21 #include "content/common/gpu/media/v4l2_video_device.h" 22 #include "content/common/gpu/media/v4l2_video_device.h"
22 #include "content/common/gpu/media/video_decode_accelerator_impl.h" 23 #include "content/common/gpu/media/video_decode_accelerator_impl.h"
23 #include "media/base/limits.h" 24 #include "media/base/limits.h"
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 420
420 // Make our context current before running any EGL entry points. 421 // Make our context current before running any EGL entry points.
421 base::Callback<bool(void)> make_context_current_; 422 base::Callback<bool(void)> make_context_current_;
422 423
423 // EGL state 424 // EGL state
424 EGLDisplay egl_display_; 425 EGLDisplay egl_display_;
425 426
426 // The codec we'll be decoding for. 427 // The codec we'll be decoding for.
427 media::VideoCodecProfile video_profile_; 428 media::VideoCodecProfile video_profile_;
428 429
430 // Stores the current format. This is used to check against
431 // the format received when we dequeue a RESOLUTION_CHANGE event.
432 // Resolution change sequence is only executed if the new format is different
433 // than the current_format_.
434 struct v4l2_format current_format_;
435
429 DISALLOW_COPY_AND_ASSIGN(V4L2VideoDecodeAccelerator); 436 DISALLOW_COPY_AND_ASSIGN(V4L2VideoDecodeAccelerator);
430 }; 437 };
431 438
432 } // namespace content 439 } // namespace content
433 440
434 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_ 441 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698