OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2011 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 int ARGBAttenuate(const uint8* src_argb, int src_stride_argb, | 377 int ARGBAttenuate(const uint8* src_argb, int src_stride_argb, |
378 uint8* dst_argb, int dst_stride_argb, | 378 uint8* dst_argb, int dst_stride_argb, |
379 int width, int height); | 379 int width, int height); |
380 | 380 |
381 // Convert preattentuated ARGB to unattenuated ARGB. | 381 // Convert preattentuated ARGB to unattenuated ARGB. |
382 LIBYUV_API | 382 LIBYUV_API |
383 int ARGBUnattenuate(const uint8* src_argb, int src_stride_argb, | 383 int ARGBUnattenuate(const uint8* src_argb, int src_stride_argb, |
384 uint8* dst_argb, int dst_stride_argb, | 384 uint8* dst_argb, int dst_stride_argb, |
385 int width, int height); | 385 int width, int height); |
386 | 386 |
387 // Convert MJPG to ARGB. | |
388 LIBYUV_API | |
389 int MJPGToARGB(const uint8* sample, size_t sample_size, | |
390 uint8* argb, int argb_stride, | |
391 int w, int h, int dw, int dh); | |
392 | |
393 // Internal function - do not call directly. | 387 // Internal function - do not call directly. |
394 // Computes table of cumulative sum for image where the value is the sum | 388 // Computes table of cumulative sum for image where the value is the sum |
395 // of all values above and to the left of the entry. Used by ARGBBlur. | 389 // of all values above and to the left of the entry. Used by ARGBBlur. |
396 LIBYUV_API | 390 LIBYUV_API |
397 int ARGBComputeCumulativeSum(const uint8* src_argb, int src_stride_argb, | 391 int ARGBComputeCumulativeSum(const uint8* src_argb, int src_stride_argb, |
398 int32* dst_cumsum, int dst_stride32_cumsum, | 392 int32* dst_cumsum, int dst_stride32_cumsum, |
399 int width, int height); | 393 int width, int height); |
400 | 394 |
401 // Blur ARGB image. | 395 // Blur ARGB image. |
402 // dst_cumsum table of width * (height + 1) * 16 bytes aligned to | 396 // dst_cumsum table of width * (height + 1) * 16 bytes aligned to |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 int ARGBSobelXY(const uint8* src_argb, int src_stride_argb, | 486 int ARGBSobelXY(const uint8* src_argb, int src_stride_argb, |
493 uint8* dst_argb, int dst_stride_argb, | 487 uint8* dst_argb, int dst_stride_argb, |
494 int width, int height); | 488 int width, int height); |
495 | 489 |
496 #ifdef __cplusplus | 490 #ifdef __cplusplus |
497 } // extern "C" | 491 } // extern "C" |
498 } // namespace libyuv | 492 } // namespace libyuv |
499 #endif | 493 #endif |
500 | 494 |
501 #endif // INCLUDE_LIBYUV_PLANAR_FUNCTIONS_H_ NOLINT | 495 #endif // INCLUDE_LIBYUV_PLANAR_FUNCTIONS_H_ NOLINT |
OLD | NEW |