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

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

Issue 1416783002: Merge to M46: upgrade openjpeg to commit# cf352af (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@2490
Patch Set: Fix pdfium:168 since we are already half way there Created 5 years, 2 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 --git a/third_party/libopenjpeg20/jp2.c b/third_party/libopenjpeg20/jp2.c
2 index 8bf60f6..47f83a1 100644
3 --- a/third_party/libopenjpeg20/jp2.c
4 +++ b/third_party/libopenjpeg20/jp2.c
5 @@ -1508,7 +1508,7 @@ OPJ_BOOL opj_jp2_decode(opj_jp2_t *jp2,
6 /* Part 1, I.5.3.4: Either both or none : */
7 if( !jp2->color.jp2_pclr->cmap)
8 opj_jp2_free_pclr(&(jp2->color));
9 - else
10 + else if (p_image->pdfium_use_colorspace)
11 opj_jp2_apply_pclr(p_image, &(jp2->color));
12 }
13
14 diff --git a/third_party/libopenjpeg20/openjpeg.h b/third_party/libopenjpeg20/op enjpeg.h
15 index c07e9c8..e571672 100644
16 --- a/third_party/libopenjpeg20/openjpeg.h
17 +++ b/third_party/libopenjpeg20/openjpeg.h
18 @@ -677,6 +677,9 @@ typedef struct opj_image {
19 OPJ_BYTE *icc_profile_buf;
20 /** size of ICC profile */
21 OPJ_UINT32 icc_profile_len;
22 +
23 + /** Whether to apply PCLR or not */
24 + OPJ_BOOL pdfium_use_colorspace;
25 } opj_image_t;
26
27
OLDNEW
« no previous file with comments | « core/src/fxcodec/codec/fx_codec_jpx_opj.cpp ('k') | third_party/libopenjpeg20/0001-image-data.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698