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

Side by Side Diff: third_party/libwebp/webp/decode.h

Issue 653803003: libwebp: update to 0.4.2-rc2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « third_party/libwebp/utils/utils.c ('k') | third_party/libwebp/webp/encode.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 Google Inc. All Rights Reserved. 1 // Copyright 2010 Google Inc. All Rights Reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license 3 // Use of this source code is governed by a BSD-style license
4 // that can be found in the COPYING file in the root of the source 4 // that can be found in the COPYING file in the root of the source
5 // tree. An additional intellectual property rights grant can be found 5 // tree. An additional intellectual property rights grant can be found
6 // in the file PATENTS. All contributing project authors may 6 // in the file PATENTS. All contributing project authors may
7 // be found in the AUTHORS file in the root of the source tree. 7 // be found in the AUTHORS file in the root of the source tree.
8 // ----------------------------------------------------------------------------- 8 // -----------------------------------------------------------------------------
9 // 9 //
10 // Main decoding functions for WebP images. 10 // Main decoding functions for WebP images.
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 int use_cropping; // if true, cropping is applied _first_ 437 int use_cropping; // if true, cropping is applied _first_
438 int crop_left, crop_top; // top-left position for cropping. 438 int crop_left, crop_top; // top-left position for cropping.
439 // Will be snapped to even values. 439 // Will be snapped to even values.
440 int crop_width, crop_height; // dimension of the cropping area 440 int crop_width, crop_height; // dimension of the cropping area
441 int use_scaling; // if true, scaling is applied _afterward_ 441 int use_scaling; // if true, scaling is applied _afterward_
442 int scaled_width, scaled_height; // final resolution 442 int scaled_width, scaled_height; // final resolution
443 int use_threads; // if true, use multi-threaded decoding 443 int use_threads; // if true, use multi-threaded decoding
444 int dithering_strength; // dithering strength (0=Off, 100=full) 444 int dithering_strength; // dithering strength (0=Off, 100=full)
445 #if WEBP_DECODER_ABI_VERSION > 0x0203 445 #if WEBP_DECODER_ABI_VERSION > 0x0203
446 int flip; // flip output vertically 446 int flip; // flip output vertically
447 #endif
448 #if WEBP_DECODER_ABI_VERSION > 0x0204
447 int alpha_dithering_strength; // alpha dithering strength in [0..100] 449 int alpha_dithering_strength; // alpha dithering strength in [0..100]
448 #endif 450 #endif
449 451
450 // Unused for now: 452 // Unused for now:
451 int force_rotation; // forced rotation (to be applied _last_) 453 int force_rotation; // forced rotation (to be applied _last_)
452 int no_enhancement; // if true, discard enhancement layer 454 int no_enhancement; // if true, discard enhancement layer
453 #if WEBP_DECODER_ABI_VERSION > 0x0203 455 #if WEBP_DECODER_ABI_VERSION < 0x0203
456 uint32_t pad[5]; // padding for later use
457 #elif WEBP_DECODER_ABI_VERSION < 0x0204
458 uint32_t pad[4]; // padding for later use
459 #else
454 uint32_t pad[3]; // padding for later use 460 uint32_t pad[3]; // padding for later use
455 #else
456 uint32_t pad[5]; // padding for later use
457 #endif 461 #endif
458 }; 462 };
459 463
460 // Main object storing the configuration for advanced decoding. 464 // Main object storing the configuration for advanced decoding.
461 struct WebPDecoderConfig { 465 struct WebPDecoderConfig {
462 WebPBitstreamFeatures input; // Immutable bitstream features (optional) 466 WebPBitstreamFeatures input; // Immutable bitstream features (optional)
463 WebPDecBuffer output; // Output buffer (can point to external mem) 467 WebPDecBuffer output; // Output buffer (can point to external mem)
464 WebPDecoderOptions options; // Decoding options 468 WebPDecoderOptions options; // Decoding options
465 }; 469 };
466 470
(...skipping 23 matching lines...) Expand all
490 // 'config' into account. Returns decoding status (which should be VP8_STATUS_OK 494 // 'config' into account. Returns decoding status (which should be VP8_STATUS_OK
491 // if the decoding was successful). 495 // if the decoding was successful).
492 WEBP_EXTERN(VP8StatusCode) WebPDecode(const uint8_t* data, size_t data_size, 496 WEBP_EXTERN(VP8StatusCode) WebPDecode(const uint8_t* data, size_t data_size,
493 WebPDecoderConfig* config); 497 WebPDecoderConfig* config);
494 498
495 #ifdef __cplusplus 499 #ifdef __cplusplus
496 } // extern "C" 500 } // extern "C"
497 #endif 501 #endif
498 502
499 #endif /* WEBP_WEBP_DECODE_H_ */ 503 #endif /* WEBP_WEBP_DECODE_H_ */
OLDNEW
« no previous file with comments | « third_party/libwebp/utils/utils.c ('k') | third_party/libwebp/webp/encode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698