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

Side by Side Diff: samples/image_diff_png.h

Issue 950113002: Backport PNG output format to origin/master branch. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Add missing image_diff files. 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 | « samples/image_diff.cc ('k') | samples/image_diff_png.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdlib.h> // for size_t.
9
10 #include <vector>
11
12 namespace image_diff_png {
13
14 // Decode a PNG into an RGBA pixel array.
15 bool DecodePNG(const unsigned char* input, size_t input_size,
16 std::vector<unsigned char>* output,
17 int* width, int* height);
18
19 // Encode an RGBA pixel array into a PNG.
20 bool EncodeRGBAPNG(const unsigned char* input,
21 int width,
22 int height,
23 int row_byte_width,
24 std::vector<unsigned char>* output);
25
26 // Encode an BGRA pixel array into a PNG.
27 bool EncodeBGRAPNG(const unsigned char* input,
28 int width,
29 int height,
30 int row_byte_width,
31 bool discard_transparency,
32 std::vector<unsigned char>* output);
33
34 } // namespace image_diff_png
35
36 #endif // TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_
OLDNEW
« no previous file with comments | « samples/image_diff.cc ('k') | samples/image_diff_png.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698