Home | History | Annotate | Download | only in libopenjpeg20

Lines Matching defs:pcol

806       OPJ_UINT16 pcol = cmap[i].pcol;
808 if (pcol >= nr_channels) {
809 opj_event_msg(p_manager, EVT_ERROR, "Invalid component/palette index for direct mapping %d.\n", pcol);
812 else if (pcol_usage[pcol] && cmap[i].mtyp == 1) {
813 opj_event_msg(p_manager, EVT_ERROR, "Component %d is mapped twice.\n", pcol);
816 else if (cmap[i].mtyp == 0 && cmap[i].pcol != 0) {
817 /* I.5.3.5 PCOL: If the value of the MTYP field for this channel is 0, then
819 opj_event_msg(p_manager, EVT_ERROR, "Direct use at #%d however pcol=%d.\n", i, pcol);
823 pcol_usage[pcol] = OPJ_TRUE;
850 OPJ_UINT16 i, nr_channels, cmp, pcol;
864 pcol = cmap[i].pcol; cmp = cmap[i].cmp;
868 assert( pcol == 0 );
871 assert( i == pcol );
872 new_comps[pcol] = old_comps[cmp];
886 cmp = cmap[i].cmp; pcol = cmap[i].pcol;
889 max = new_comps[pcol].w * new_comps[pcol].h;
901 assert( i == pcol );
902 dst = new_comps[pcol].data;
909 dst[j] = (OPJ_INT32)entries[k * nr_channels + pcol];
1076 opj_read_bytes(p_cmap_header_data, &l_value, 1); /* PCOL^i */
1078 cmap[i].pcol = (OPJ_BYTE) l_value;