Home | History | Annotate | Download | only in libopenjpeg20

Lines Matching full:numcomps

560 	opj_read_bytes(p_image_header_data,&(jp2->numcomps),2);		/* NC */
564 jp2->comps = (opj_jp2_comps_t*) opj_calloc(jp2->numcomps, sizeof(opj_jp2_comps_t));
619 opj_write_bytes(l_current_ihdr_ptr, jp2->numcomps, 2); /* NC */
645 OPJ_UINT32 l_bpcc_size = 8 + jp2->numcomps;
665 for (i = 0; i < jp2->numcomps; ++i) {
694 if (p_bpc_header_size != jp2->numcomps) {
700 for (i = 0; i < jp2->numcomps; ++i) {
840 OPJ_UINT32 nr_channels = image->numcomps; /* FIXME image->numcomps == jp2->numcomps before color is applied ??? */
886 if (cmap[i].cmp >= image->numcomps) {
887 opj_event_msg(p_manager, EVT_ERROR, "Invalid component index %d (>= %d).\n", cmap[i].cmp, image->numcomps);
930 if (1 && is_sane && (image->numcomps==1U)) {
1039 max = image->numcomps;
1046 image->numcomps = nr_channels;
1233 if( cn >= image->numcomps)
1235 opj_event_msg(manager, EVT_WARNING, "opj_jp2_apply_cdef: cn=%d, numcomps=%d\n", cn, image->numcomps);
1245 if( acn >= image->numcomps )
1247 opj_event_msg(manager, EVT_WARNING, "opj_jp2_apply_cdef: acn=%d, numcomps=%d\n", acn, image->numcomps);
1788 if (image->numcomps < 1 || image->numcomps > 16384) {
1815 jp2->numcomps = image->numcomps; /* NC */
1816 jp2->comps = (opj_jp2_comps_t*) opj_malloc(jp2->numcomps * sizeof(opj_jp2_comps_t));
1830 for (i = 1; i < image->numcomps; i++) {
1841 for (i = 0; i < image->numcomps; i++) {
1864 for (i = 0; i < image->numcomps; i++) {
1885 } else if (image->numcomps < (color_channels+1)) {
1903 jp2->color.jp2_cdef->info = (opj_jp2_cdef_info_t*) opj_malloc(image->numcomps * sizeof(opj_jp2_cdef_info_t));
1909 jp2->color.jp2_cdef->n = (OPJ_UINT16) image->numcomps; /* cast is valid : image->numcomps [1,16384] */
1911 jp2->color.jp2_cdef->info[i].cn = (OPJ_UINT16)i; /* cast is valid : image->numcomps [1,16384] */
1913 jp2->color.jp2_cdef->info[i].asoc = (OPJ_UINT16)(i+1U); /* No overflow + cast is valid : image->numcomps [1,16384] */
1915 for (; i < image->numcomps; i++) {
1917 jp2->color.jp2_cdef->info[i].cn = (OPJ_UINT16)i; /* cast is valid : image->numcomps [1,16384] */
1922 jp2->color.jp2_cdef->info[i].cn = (OPJ_UINT16)i; /* cast is valid : image->numcomps [1,16384] */
2075 for (i = 0; i < jp2->numcomps; ++i) {