70 if(!num_channels || !num_entries)
75 jp2_pclr->channel_sign =
new bool[num_channels];
76 jp2_pclr->channel_prec =
new uint8_t[num_channels];
77 jp2_pclr->lut =
new int32_t[num_channels * num_entries];
78 jp2_pclr->num_entries = num_entries;
79 jp2_pclr->num_channels = num_channels;
80 jp2_pclr->component_mapping =
nullptr;
81 color.palette = jp2_pclr;
87 delete[]
color.palette->channel_sign;
88 delete[]
color.palette->channel_prec;
89 delete[]
color.palette->lut;
90 delete[]
color.palette->component_mapping;
92 color.palette =
nullptr;
98 delete[]
color.icc_profile_buf;
99 color.icc_profile_buf =
nullptr;
100 color.icc_profile_len = 0;
101 delete[]
color.icc_profile_name;
102 color.icc_profile_name =
nullptr;
103 if(
color.channel_definition)
105 delete[]
color.channel_definition->descriptions;
106 delete color.channel_definition;
107 color.channel_definition =
nullptr;
Definition GrkObjectWrapper.h:31
struct _grk_image_meta grk_image_meta
struct _grk_palette_data grk_palette_data
ResWindow.
Definition CompressedChunkCache.h:36