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

Side by Side Diff: samples/image_diff_png.h

Issue 870203005: XFA: Support PNG format in pdfium_test and add image diffing (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: rename executable 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_
6 #define TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_
7
8 #include <string>
Lei Zhang 2015/02/05 22:11:08 not needed
Tom Sepez 2015/02/05 22:58:21 Done.
9 #include <vector>
10
11 namespace image_diff_png {
12
13 // Decode a PNG into an RGBA pixel array.
14 bool DecodePNG(const unsigned char* input, size_t input_size,
15 std::vector<unsigned char>* output,
16 int* width, int* height);
17
18 // Encode an RGBA pixel array into a PNG.
19 bool EncodeRGBAPNG(const unsigned char* input,
20 int width,
21 int height,
22 int row_byte_width,
23 std::vector<unsigned char>* output);
24
25 // Encode an BGRA pixel array into a PNG.
26 bool EncodeBGRAPNG(const unsigned char* input,
27 int width,
28 int height,
29 int row_byte_width,
30 bool discard_transparency,
31 std::vector<unsigned char>* output);
32
33 } // namespace image_diff_png
34
35 #endif // TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698