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

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

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

Powered by Google App Engine
This is Rietveld 408576698