Lines Matching refs:pcol
905 OPJ_UINT16 pcol = cmap[i].pcol; in opj_jp2_check_color() local
906 if (pcol >= nr_channels) { in opj_jp2_check_color()
907 …_event_msg(p_manager, EVT_ERROR, "Invalid component/palette index for direct mapping %d.\n", pcol); in opj_jp2_check_color()
910 else if (pcol_usage[pcol] && cmap[i].mtyp != 0) { in opj_jp2_check_color()
911 opj_event_msg(p_manager, EVT_ERROR, "Component %d is mapped twice.\n", pcol); in opj_jp2_check_color()
914 else if (cmap[i].mtyp == 0 && cmap[i].pcol != 0) { in opj_jp2_check_color()
917 opj_event_msg(p_manager, EVT_ERROR, "Direct use at #%d however pcol=%d.\n", i, pcol); in opj_jp2_check_color()
921 pcol_usage[pcol] = OPJ_TRUE; in opj_jp2_check_color()
943 cmap[i].pcol = (OPJ_BYTE) i; in opj_jp2_check_color()
965 OPJ_UINT16 i, nr_channels, cmp, pcol; in opj_jp2_apply_pclr() local
991 pcol = cmap[i].pcol; cmp = cmap[i].cmp; in opj_jp2_apply_pclr()
995 assert( pcol == 0 ); in opj_jp2_apply_pclr()
998 assert( i == pcol ); // probably wrong? in opj_jp2_apply_pclr()
1020 cmp = cmap[i].cmp; pcol = cmap[i].pcol; in opj_jp2_apply_pclr()
1043 assert( i == pcol ); // probably wrong? in opj_jp2_apply_pclr()
1049 dst[j] = (OPJ_INT32)entries[k * nr_channels + pcol]; in opj_jp2_apply_pclr()
1226 cmap[i].pcol = (OPJ_BYTE) l_value; in opj_jp2_read_cmap()