| 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 #ifndef MEDIA_VIDEO_JPEG_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_VIDEO_JPEG_DECODE_ACCELERATOR_H_ |
| 6 #define MEDIA_VIDEO_JPEG_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_VIDEO_JPEG_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "media/base/bitstream_buffer.h" | 10 #include "media/base/bitstream_buffer.h" |
| 9 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
| 10 #include "media/base/video_frame.h" | 12 #include "media/base/video_frame.h" |
| 11 | 13 |
| 12 namespace media { | 14 namespace media { |
| 13 | 15 |
| 14 // JPEG decoder interface. | 16 // JPEG decoder interface. |
| 15 // The input are JPEG images including headers (Huffman tables may be omitted). | 17 // The input are JPEG images including headers (Huffman tables may be omitted). |
| 16 // The output color format is I420. The decoder will convert the color format | 18 // The output color format is I420. The decoder will convert the color format |
| 17 // to I420 if the color space or subsampling does not match that and if it is | 19 // to I420 if the color space or subsampling does not match that and if it is |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const scoped_refptr<media::VideoFrame>& video_frame) = 0; | 111 const scoped_refptr<media::VideoFrame>& video_frame) = 0; |
| 110 | 112 |
| 111 // Returns true when the JPEG decoder is supported. This can be called before | 113 // Returns true when the JPEG decoder is supported. This can be called before |
| 112 // Initialize(). | 114 // Initialize(). |
| 113 virtual bool IsSupported() = 0; | 115 virtual bool IsSupported() = 0; |
| 114 }; | 116 }; |
| 115 | 117 |
| 116 } // namespace media | 118 } // namespace media |
| 117 | 119 |
| 118 #endif // MEDIA_VIDEO_JPEG_DECODE_ACCELERATOR_H_ | 120 #endif // MEDIA_VIDEO_JPEG_DECODE_ACCELERATOR_H_ |
| OLD | NEW |