Lines Matching refs:nr_channels

840 …OPJ_UINT32 nr_channels = image->numcomps; /* FIXME image->numcomps == jp2->numcomps before color i…  in opj_jp2_check_color()  local
844 nr_channels = (OPJ_UINT32)color->jp2_pclr->nr_channels; in opj_jp2_check_color()
848 if (info[i].cn >= nr_channels) { in opj_jp2_check_color()
849 …_event_msg(p_manager, EVT_ERROR, "Invalid component index %d (>= %d).\n", info[i].cn, nr_channels); in opj_jp2_check_color()
854 if (info[i].asoc > 0 && (OPJ_UINT32)(info[i].asoc - 1) >= nr_channels) { in opj_jp2_check_color()
855 …_msg(p_manager, EVT_ERROR, "Invalid component index %d (>= %d).\n", info[i].asoc - 1, nr_channels); in opj_jp2_check_color()
862 while (nr_channels > 0) in opj_jp2_check_color()
865 if ((OPJ_UINT32)info[i].cn == (nr_channels - 1U)) { in opj_jp2_check_color()
873 --nr_channels; in opj_jp2_check_color()
880 OPJ_UINT16 nr_channels = color->jp2_pclr->nr_channels; in opj_jp2_check_color() local
885 for (i = 0; i < nr_channels; i++) { in opj_jp2_check_color()
892 pcol_usage = opj_calloc(nr_channels, sizeof(OPJ_BOOL)); in opj_jp2_check_color()
898 for (i = 0; i < nr_channels; i++) { in opj_jp2_check_color()
905 if (pcol >= nr_channels) { in opj_jp2_check_color()
923 for (i = 0; i < nr_channels; i++) { in opj_jp2_check_color()
931 for (i = 0; i < nr_channels; i++) { in opj_jp2_check_color()
940 for (i = 0; i < nr_channels; i++) { in opj_jp2_check_color()
964 OPJ_UINT16 i, nr_channels, cmp, pcol; in opj_jp2_apply_pclr() local
971 nr_channels = color->jp2_pclr->nr_channels; in opj_jp2_apply_pclr()
975 opj_malloc(nr_channels * sizeof(opj_image_comp_t)); in opj_jp2_apply_pclr()
981 for(i = 0; i < nr_channels; ++i) { in opj_jp2_apply_pclr()
1009 for(i = 0; i < nr_channels; ++i) { in opj_jp2_apply_pclr()
1034 dst[j] = (OPJ_INT32)entries[k * nr_channels + pcol]; in opj_jp2_apply_pclr()
1046 image->numcomps = nr_channels; in opj_jp2_apply_pclr()
1061 OPJ_UINT16 nr_entries,nr_channels; in opj_jp2_read_pclr() local
1088 nr_channels = (OPJ_UINT16) l_value; in opj_jp2_read_pclr()
1089 if (nr_channels == 0U) { in opj_jp2_read_pclr()
1094 if (p_pclr_header_size < 3 + (OPJ_UINT32)nr_channels) in opj_jp2_read_pclr()
1097 entries = (OPJ_UINT32*) opj_malloc((size_t)nr_channels * nr_entries * sizeof(OPJ_UINT32)); in opj_jp2_read_pclr()
1100 channel_size = (OPJ_BYTE*) opj_malloc(nr_channels); in opj_jp2_read_pclr()
1106 channel_sign = (OPJ_BYTE*) opj_malloc(nr_channels); in opj_jp2_read_pclr()
1127 jp2_pclr->nr_channels = (OPJ_BYTE) l_value; in opj_jp2_read_pclr()
1132 for(i = 0; i < nr_channels; ++i) { in opj_jp2_read_pclr()
1141 for(i = 0; i < nr_channels; ++i) { in opj_jp2_read_pclr()
1166 OPJ_BYTE i, nr_channels; in opj_jp2_read_cmap() local
1189 nr_channels = jp2->color.jp2_pclr->nr_channels; in opj_jp2_read_cmap()
1190 if (p_cmap_header_size < (OPJ_UINT32)nr_channels * 4) { in opj_jp2_read_cmap()
1195 cmap = (opj_jp2_cmap_comp_t*) opj_malloc(nr_channels * sizeof(opj_jp2_cmap_comp_t)); in opj_jp2_read_cmap()
1200 for(i = 0; i < nr_channels; ++i) { in opj_jp2_read_cmap()