• Home
  • Raw
  • Download

Lines Matching refs:nr_channels

898         OPJ_UINT32 nr_channels =  in opj_jp2_check_color()  local
903 nr_channels = (OPJ_UINT32)color->jp2_pclr->nr_channels; in opj_jp2_check_color()
907 if (info[i].cn >= nr_channels) { in opj_jp2_check_color()
909 info[i].cn, nr_channels); in opj_jp2_check_color()
916 if (info[i].asoc > 0 && (OPJ_UINT32)(info[i].asoc - 1) >= nr_channels) { in opj_jp2_check_color()
918 info[i].asoc - 1, nr_channels); in opj_jp2_check_color()
925 while (nr_channels > 0) { in opj_jp2_check_color()
927 if ((OPJ_UINT32)info[i].cn == (nr_channels - 1U)) { in opj_jp2_check_color()
935 --nr_channels; in opj_jp2_check_color()
942 OPJ_UINT16 nr_channels = color->jp2_pclr->nr_channels; in opj_jp2_check_color() local
947 for (i = 0; i < nr_channels; i++) { in opj_jp2_check_color()
955 pcol_usage = (OPJ_BOOL *) opj_calloc(nr_channels, sizeof(OPJ_BOOL)); in opj_jp2_check_color()
961 for (i = 0; i < nr_channels; i++) { in opj_jp2_check_color()
970 } else if (pcol >= nr_channels) { in opj_jp2_check_color()
996 for (i = 0; i < nr_channels; i++) { in opj_jp2_check_color()
1005 for (i = 0; i < nr_channels; i++) { in opj_jp2_check_color()
1015 for (i = 0; i < nr_channels; i++) { in opj_jp2_check_color()
1041 OPJ_UINT16 i, nr_channels, cmp, pcol; in opj_jp2_apply_pclr() local
1048 nr_channels = color->jp2_pclr->nr_channels; in opj_jp2_apply_pclr()
1050 for (i = 0; i < nr_channels; ++i) { in opj_jp2_apply_pclr()
1062 for (i = 0; i < nr_channels; ++i) { in opj_jp2_apply_pclr()
1070 opj_malloc(nr_channels * sizeof(opj_image_comp_t)); in opj_jp2_apply_pclr()
1076 for (i = 0; i < nr_channels; ++i) { in opj_jp2_apply_pclr()
1108 for (i = 0; i < nr_channels; ++i) { in opj_jp2_apply_pclr()
1118 for (j = 0; j < nr_channels; ++j) { in opj_jp2_apply_pclr()
1143 dst[j] = (OPJ_INT32)entries[k * nr_channels + pcol]; in opj_jp2_apply_pclr()
1157 image->numcomps = nr_channels; in opj_jp2_apply_pclr()
1171 OPJ_UINT16 nr_entries, nr_channels; in opj_jp2_read_pclr() local
1201 nr_channels = (OPJ_UINT16) l_value; in opj_jp2_read_pclr()
1202 if (nr_channels == 0U) { in opj_jp2_read_pclr()
1208 if (p_pclr_header_size < 3 + (OPJ_UINT32)nr_channels) { in opj_jp2_read_pclr()
1212 entries = (OPJ_UINT32*) opj_malloc((size_t)nr_channels * nr_entries * sizeof( in opj_jp2_read_pclr()
1217 channel_size = (OPJ_BYTE*) opj_malloc(nr_channels); in opj_jp2_read_pclr()
1222 channel_sign = (OPJ_BYTE*) opj_malloc(nr_channels); in opj_jp2_read_pclr()
1241 jp2_pclr->nr_channels = (OPJ_BYTE) l_value; in opj_jp2_read_pclr()
1246 for (i = 0; i < nr_channels; ++i) { in opj_jp2_read_pclr()
1255 for (i = 0; i < nr_channels; ++i) { in opj_jp2_read_pclr()
1283 OPJ_BYTE i, nr_channels; in opj_jp2_read_cmap() local
1307 nr_channels = jp2->color.jp2_pclr->nr_channels; in opj_jp2_read_cmap()
1308 if (p_cmap_header_size < (OPJ_UINT32)nr_channels * 4) { in opj_jp2_read_cmap()
1313 cmap = (opj_jp2_cmap_comp_t*) opj_malloc(nr_channels * sizeof( in opj_jp2_read_cmap()
1320 for (i = 0; i < nr_channels; ++i) { in opj_jp2_read_cmap()