| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifdef __cplusplus | 31 #ifdef __cplusplus |
| 32 } // extern "C" | 32 } // extern "C" |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 static const uint32 kUnknownDataSize = 0xFFFFFFFF; | 35 static const uint32 kUnknownDataSize = 0xFFFFFFFF; |
| 36 | 36 |
| 37 enum JpegSubsamplingType { | 37 enum JpegSubsamplingType { |
| 38 kJpegYuv420, | 38 kJpegYuv420, |
| 39 kJpegYuv422, | 39 kJpegYuv422, |
| 40 kJpegYuv411, | |
| 41 kJpegYuv444, | 40 kJpegYuv444, |
| 42 kJpegYuv400, | 41 kJpegYuv400, |
| 43 kJpegUnknown | 42 kJpegUnknown |
| 44 }; | 43 }; |
| 45 | 44 |
| 46 struct Buffer { | 45 struct Buffer { |
| 47 const uint8* data; | 46 const uint8* data; |
| 48 int len; | 47 int len; |
| 49 }; | 48 }; |
| 50 | 49 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 // Temporary buffer used for decoding when we can't decode directly to the | 182 // Temporary buffer used for decoding when we can't decode directly to the |
| 184 // output buffers. Large enough for just one iMCU row. | 183 // output buffers. Large enough for just one iMCU row. |
| 185 uint8** databuf_; | 184 uint8** databuf_; |
| 186 int* databuf_strides_; | 185 int* databuf_strides_; |
| 187 }; | 186 }; |
| 188 | 187 |
| 189 } // namespace libyuv | 188 } // namespace libyuv |
| 190 | 189 |
| 191 #endif // __cplusplus | 190 #endif // __cplusplus |
| 192 #endif // INCLUDE_LIBYUV_MJPEG_DECODER_H_ | 191 #endif // INCLUDE_LIBYUV_MJPEG_DECODER_H_ |
| OLD | NEW |