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

Side by Side Diff: third_party/libopenjpeg20/0000-use-colorspace.patch

Issue 1196523002: Reapply Foxit's libopenjpeg modifications. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: with test Created 5 years, 3 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 diff -u a/jp2.c b/jp2.c
2 --- a/jp2.c
3 +++ b/jp2.c
4 @@ -1429,7 +1429,7 @@
5 /* Part 1, I.5.3.4: Either both or none : */
6 if( !jp2->color.jp2_pclr->cmap)
7 opj_jp2_free_pclr(&(jp2->color));
8 - else
9 + else if (p_image->pdfium_use_colorspace)
10 opj_jp2_apply_pclr(p_image, &(jp2->color));
11 }
12
13 diff -u a/openjpeg.h b/openjpeg.h
14 --- a/openjpeg.h
15 +++ b/openjpeg.h
16 @@ -677,6 +677,9 @@
17 OPJ_BYTE *icc_profile_buf;
18 /** size of ICC profile */
19 OPJ_UINT32 icc_profile_len;
20 +
21 + /** Whether to apply PCLR or not */
22 + OPJ_BOOL pdfium_use_colorspace;
23 } opj_image_t;
24
25
OLDNEW
« no previous file with comments | « testing/resources/pixel/bug_71_expected.pdf.0.png ('k') | third_party/libopenjpeg20/README.pdfium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698