Lines Matching refs:pcol
963 OPJ_BYTE pcol = cmap[i].pcol; in opj_jp2_check_color() local
970 } else if (pcol >= nr_channels) { in opj_jp2_check_color()
972 "Invalid component/palette index for direct mapping %d.\n", pcol); in opj_jp2_check_color()
974 } else if (pcol_usage[pcol] && mtyp == 1) { in opj_jp2_check_color()
975 opj_event_msg(p_manager, EVT_ERROR, "Component %d is mapped twice.\n", pcol); in opj_jp2_check_color()
977 } else if (mtyp == 0 && pcol != 0) { in opj_jp2_check_color()
981 pcol); in opj_jp2_check_color()
983 } else if (mtyp == 1 && pcol != i) { in opj_jp2_check_color()
989 "to %d.\n", i, i, pcol); in opj_jp2_check_color()
992 pcol_usage[pcol] = OPJ_TRUE; in opj_jp2_check_color()
1017 cmap[i].pcol = (OPJ_BYTE) i; in opj_jp2_check_color()
1041 OPJ_UINT16 i, nr_channels, cmp, pcol; in opj_jp2_apply_pclr() local
1077 pcol = cmap[i].pcol; in opj_jp2_apply_pclr()
1082 assert(pcol == 0); in opj_jp2_apply_pclr()
1085 assert( i == pcol ); // probably wrong? in opj_jp2_apply_pclr()
1111 pcol = cmap[i].pcol; in opj_jp2_apply_pclr()
1133 assert( i == pcol ); // probably wrong? in opj_jp2_apply_pclr()
1143 dst[j] = (OPJ_INT32)entries[k * nr_channels + pcol]; in opj_jp2_apply_pclr()
1331 cmap[i].pcol = (OPJ_BYTE) l_value; in opj_jp2_read_cmap()