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

Side by Side Diff: third_party/libwebp/enc/histogram.h

Issue 116213006: Update libwebp to 0.4.0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: After Blink Roll Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « third_party/libwebp/enc/frame.c ('k') | third_party/libwebp/enc/histogram.c » ('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 2012 Google Inc. All Rights Reserved. 1 // Copyright 2012 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 // Author: Jyrki Alakuijala (jyrki@google.com) 10 // Author: Jyrki Alakuijala (jyrki@google.com)
11 // 11 //
12 // Models the histograms of literal and distance codes. 12 // Models the histograms of literal and distance codes.
13 13
14 #ifndef WEBP_ENC_HISTOGRAM_H_ 14 #ifndef WEBP_ENC_HISTOGRAM_H_
15 #define WEBP_ENC_HISTOGRAM_H_ 15 #define WEBP_ENC_HISTOGRAM_H_
16 16
17 #include <assert.h> 17 #include <assert.h>
18 #include <stddef.h> 18 #include <stddef.h>
19 #include <stdlib.h> 19 #include <stdlib.h>
20 #include <stdio.h> 20 #include <stdio.h>
21 #include <string.h> 21 #include <string.h>
22 22
23 #include "./backward_references.h" 23 #include "./backward_references.h"
24 #include "../webp/format_constants.h" 24 #include "../webp/format_constants.h"
25 #include "../webp/types.h" 25 #include "../webp/types.h"
26 26
27 #if defined(__cplusplus) || defined(c_plusplus) 27 #ifdef __cplusplus
28 extern "C" { 28 extern "C" {
29 #endif 29 #endif
30 30
31 // A simple container for histograms of data. 31 // A simple container for histograms of data.
32 typedef struct { 32 typedef struct {
33 // literal_ contains green literal, palette-code and 33 // literal_ contains green literal, palette-code and
34 // copy-length-prefix histogram 34 // copy-length-prefix histogram
35 int literal_[PIX_OR_COPY_CODES_MAX]; 35 int literal_[PIX_OR_COPY_CODES_MAX];
36 int red_[256]; 36 int red_[256];
37 int blue_[256]; 37 int blue_[256];
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 ((p->palette_code_bits_ > 0) ? (1 << p->palette_code_bits_) : 0); 87 ((p->palette_code_bits_ > 0) ? (1 << p->palette_code_bits_) : 0);
88 } 88 }
89 89
90 // Builds the histogram image. 90 // Builds the histogram image.
91 int VP8LGetHistoImageSymbols(int xsize, int ysize, 91 int VP8LGetHistoImageSymbols(int xsize, int ysize,
92 const VP8LBackwardRefs* const refs, 92 const VP8LBackwardRefs* const refs,
93 int quality, int histogram_bits, int cache_bits, 93 int quality, int histogram_bits, int cache_bits,
94 VP8LHistogramSet* const image_in, 94 VP8LHistogramSet* const image_in,
95 uint16_t* const histogram_symbols); 95 uint16_t* const histogram_symbols);
96 96
97 #if defined(__cplusplus) || defined(c_plusplus) 97 #ifdef __cplusplus
98 } 98 }
99 #endif 99 #endif
100 100
101 #endif // WEBP_ENC_HISTOGRAM_H_ 101 #endif // WEBP_ENC_HISTOGRAM_H_
OLDNEW
« no previous file with comments | « third_party/libwebp/enc/frame.c ('k') | third_party/libwebp/enc/histogram.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698