| OLD | NEW |
| (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_ |
| OLD | NEW |