diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-11 09:11:35 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-11 09:11:35 +0000 |
| commit | fcc658f10669f76555dea1abf9a4cf7ed70662a9 (patch) | |
| tree | 0cb91247bfd040515ed419cc0adcbb7ead65e600 /src/bin/common | |
| parent | 2e7b8fb9a1e03a59017dc3d453b176f343144c89 (diff) | |
[trunk] Fix compilation errors when JPWL and/or MJ2 are build
Diffstat (limited to 'src/bin/common')
| -rw-r--r-- | src/bin/common/color.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bin/common/color.c b/src/bin/common/color.c index 5024ac9e..a9b5e0c7 100644 --- a/src/bin/common/color.c +++ b/src/bin/common/color.c @@ -150,8 +150,13 @@ static void sycc422_to_rgb(opj_image_t *img) free(img->comps[1].data); img->comps[1].data = d1; free(img->comps[2].data); img->comps[2].data = d2; +#if defined(USE_JPWL) || defined(USE_MJ2) + img->comps[1].w = maxw; img->comps[1].h = maxh; + img->comps[2].w = maxw; img->comps[2].h = maxh; +#else img->comps[1].w = (OPJ_UINT32)maxw; img->comps[1].h = (OPJ_UINT32)maxh; img->comps[2].w = (OPJ_UINT32)maxw; img->comps[2].h = (OPJ_UINT32)maxh; +#endif img->comps[1].dx = img->comps[0].dx; img->comps[2].dx = img->comps[0].dx; img->comps[1].dy = img->comps[0].dy; @@ -209,8 +214,13 @@ static void sycc420_to_rgb(opj_image_t *img) free(img->comps[1].data); img->comps[1].data = d1; free(img->comps[2].data); img->comps[2].data = d2; +#if defined(USE_JPWL) || defined(USE_MJ2) + img->comps[1].w = maxw; img->comps[1].h = maxh; + img->comps[2].w = maxw; img->comps[2].h = maxh; +#else img->comps[1].w = (OPJ_UINT32)maxw; img->comps[1].h = (OPJ_UINT32)maxh; img->comps[2].w = (OPJ_UINT32)maxw; img->comps[2].h = (OPJ_UINT32)maxh; +#endif img->comps[1].dx = img->comps[0].dx; img->comps[2].dx = img->comps[0].dx; img->comps[1].dy = img->comps[0].dy; |
