Lines Matching defs:nr_channels
787 OPJ_UINT16 nr_channels = color->jp2_pclr->nr_channels;
792 for (i = 0; i < nr_channels; i++) {
799 pcol_usage = opj_calloc(nr_channels, sizeof(OPJ_BOOL));
805 for (i = 0; i < nr_channels; i++) {
808 if (pcol >= nr_channels) {
826 for (i = 0; i < nr_channels; i++) {
850 OPJ_UINT16 i, nr_channels, cmp, pcol;
857 nr_channels = color->jp2_pclr->nr_channels;
861 opj_malloc(nr_channels * sizeof(opj_image_comp_t));
863 for(i = 0; i < nr_channels; ++i) {
884 for(i = 0; i < nr_channels; ++i) {
909 dst[j] = (OPJ_INT32)entries[k * nr_channels + pcol];
921 image->numcomps = nr_channels;
936 OPJ_UINT16 nr_entries,nr_channels;
959 nr_channels = (OPJ_UINT16) l_value;
961 if (p_pclr_header_size < 3 + (OPJ_UINT32)nr_channels || nr_channels == 0 || nr_entries >= (OPJ_UINT32)-1 / nr_channels)
964 entries = (OPJ_UINT32*) opj_malloc((size_t)nr_channels * nr_entries * sizeof(OPJ_UINT32));
967 channel_size = (OPJ_BYTE*) opj_malloc(nr_channels);
973 channel_sign = (OPJ_BYTE*) opj_malloc(nr_channels);
994 jp2_pclr->nr_channels = (OPJ_BYTE) l_value;
999 for(i = 0; i < nr_channels; ++i) {
1008 for(i = 0; i < nr_channels; ++i) {
1033 OPJ_BYTE i, nr_channels;
1042 /* Need nr_channels: */
1056 nr_channels = jp2->color.jp2_pclr->nr_channels;
1057 if (p_cmap_header_size < (OPJ_UINT32)nr_channels * 4) {
1062 cmap = (opj_jp2_cmap_comp_t*) opj_malloc(nr_channels * sizeof(opj_jp2_cmap_comp_t));
1067 for(i = 0; i < nr_channels; ++i) {