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

Side by Side Diff: samples/image_diff_png.h

Issue 901313002: Fix build of pdfium_diff (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 10 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 | « no previous file | samples/samples.gyp » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_ 5 #ifndef TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_
6 #define TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_ 6 #define TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_
7 7
8 #include <stdlib.h> // for size_t.
9
8 #include <vector> 10 #include <vector>
9 11
10 namespace image_diff_png { 12 namespace image_diff_png {
11 13
12 // Decode a PNG into an RGBA pixel array. 14 // Decode a PNG into an RGBA pixel array.
13 bool DecodePNG(const unsigned char* input, size_t input_size, 15 bool DecodePNG(const unsigned char* input, size_t input_size,
14 std::vector<unsigned char>* output, 16 std::vector<unsigned char>* output,
15 int* width, int* height); 17 int* width, int* height);
16 18
17 // Encode an RGBA pixel array into a PNG. 19 // Encode an RGBA pixel array into a PNG.
18 bool EncodeRGBAPNG(const unsigned char* input, 20 bool EncodeRGBAPNG(const unsigned char* input,
19 int width, 21 int width,
20 int height, 22 int height,
21 int row_byte_width, 23 int row_byte_width,
22 std::vector<unsigned char>* output); 24 std::vector<unsigned char>* output);
23 25
24 // Encode an BGRA pixel array into a PNG. 26 // Encode an BGRA pixel array into a PNG.
25 bool EncodeBGRAPNG(const unsigned char* input, 27 bool EncodeBGRAPNG(const unsigned char* input,
26 int width, 28 int width,
27 int height, 29 int height,
28 int row_byte_width, 30 int row_byte_width,
29 bool discard_transparency, 31 bool discard_transparency,
30 std::vector<unsigned char>* output); 32 std::vector<unsigned char>* output);
31 33
32 } // namespace image_diff_png 34 } // namespace image_diff_png
33 35
34 #endif // TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_ 36 #endif // TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_
OLDNEW
« no previous file with comments | « no previous file | samples/samples.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698