Engauge Digitizer 2
Loading...
Searching...
No Matches
Functions
Jpeg2000Color.h File Reference
#include "openjpeg.h"
Include dependency graph for Jpeg2000Color.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void color_apply_icc_profile (opj_image_t *image)
 
void color_sycc_to_rgb (opj_image_t *image)
 

Function Documentation

◆ color_apply_icc_profile()

void color_apply_icc_profile ( opj_image_t * image)

◆ color_sycc_to_rgb()

void color_sycc_to_rgb ( opj_image_t * image)

Definition at line 237 of file Jpeg2000Color.cpp.

238{
239 if(img->numcomps < 3)
240 {
241 img->color_space = OPJ_CLRSPC_GRAY;
242 return;
243 }
244
245 if((img->comps[0].dx == 1)
246 && (img->comps[1].dx == 2)
247 && (img->comps[2].dx == 2)
248 && (img->comps[0].dy == 1)
249 && (img->comps[1].dy == 2)
250 && (img->comps[2].dy == 2))/* horizontal and vertical sub-sample */
251 {
253 }
254 else {
255 if((img->comps[0].dx == 1)
256 && (img->comps[1].dx == 2)
257 && (img->comps[2].dx == 2)
258 && (img->comps[0].dy == 1)
259 && (img->comps[1].dy == 1)
260 && (img->comps[2].dy == 1))/* horizontal sub-sample only */
261 {
263 }
264 else {
265 if((img->comps[0].dx == 1)
266 && (img->comps[1].dx == 1)
267 && (img->comps[2].dx == 1)
268 && (img->comps[0].dy == 1)
269 && (img->comps[1].dy == 1)
270 && (img->comps[2].dy == 1))/* no sub-sample */
271 {
273 }
274 else
275 {
276 fprintf(stderr,"%s:%d:color_sycc_to_rgb\n\tCAN NOT CONVERT\n",
278 return;
279 }
280 }
281 }
282 img->color_space = OPJ_CLRSPC_SRGB;
283}/* color_sycc_to_rgb() */
const int INNER_RADIUS_MIN
void sycc420_to_rgb(opj_image_t *img)
void sycc444_to_rgb(opj_image_t *img)
void sycc422_to_rgb(opj_image_t *img)