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

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

Issue 825863002: WIP: Add hardware jpeg decode on tegra platform Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 5 years, 12 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
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // This file contains the implementation of TegraV4L2Device used on
6 // Tegra platform.
7
8 #ifndef CONTENT_COMMON_GPU_MEDIA_TEGRA_V4L2_VIDEO_DEVICE_H_
9 #define CONTENT_COMMON_GPU_MEDIA_TEGRA_V4L2_VIDEO_DEVICE_H_
10
11 //#define TEGRA_ACCELERATE
12
13 #include "content/common/gpu/media/jpeg_codec.h"
14 #include "ui/gl/gl_bindings.h"
15
16
17 namespace content {
18
19 // This class implements the V4L2Device interface for Tegra platform.
20 // It interfaces with libtegrav4l2 library which provides API that exhibit the
21 // V4L2 specification via the library API instead of system calls.
22 class TegraJpegCodecDevice : public JPEGCodec {
23 public:
24 explicit TegraJpegCodecDevice(Type type);
25 virtual ~TegraJpegCodecDevice();
26
27 virtual bool Initialize() override;
28 virtual bool Decode(const unsigned char* input, size_t input_size,
29 unsigned char** output_buffer, unsigned* w, unsigned* h,
30 unsigned* row_bytes) override;
31
32 private:
33 const Type type_;
34 long int hDecoder_;
35
36 DISALLOW_COPY_AND_ASSIGN(TegraJpegCodecDevice);
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_COMMON_GPU_MEDIA_TEGRA_V4L2_VIDEO_DEVICE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/jpeg_codec_unittest.cc ('k') | content/common/gpu/media/tegra_jpeg_codec_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698