Lines Matching refs:palette
362 void CvtPaletteToGray( const PaletteEntry* palette, uchar* grayPalette, int entries )
367 icvCvt_BGR2Gray_8u_C3C1R( (uchar*)(palette + i), 0, grayPalette + i, 0, cvSize(1,1) );
372 void FillGrayPalette( PaletteEntry* palette, int bpp, bool negative )
380 palette[i].b = palette[i].g = palette[i].r = (uchar)val;
381 palette[i].a = 0;
386 bool IsColorPalette( PaletteEntry* palette, int bpp )
392 if( palette[i].b != palette[i].g ||
393 palette[i].b != palette[i].r )
465 uchar* FillColorRow8( uchar* data, uchar* indices, int len, PaletteEntry* palette )
470 *((PaletteEntry*)(data-3)) = palette[*indices++];
472 PaletteEntry clr = palette[indices[0]];
478 uchar* FillGrayRow8( uchar* data, uchar* indices, int len, uchar* palette )
483 data[i] = palette[indices[i]];
489 uchar* FillColorRow4( uchar* data, uchar* indices, int len, PaletteEntry* palette )
496 *((PaletteEntry*)(data-6)) = palette[idx >> 4];
497 *((PaletteEntry*)(data-3)) = palette[idx & 15];
501 PaletteEntry clr = palette[idx >> 4];
506 clr = palette[idx & 15];
513 uchar* FillGrayRow4( uchar* data, uchar* indices, int len, uchar* palette )
519 data[-2] = palette[idx >> 4];
520 data[-1] = palette[idx & 15];
524 uchar clr = palette[idx >> 4];
529 clr = palette[idx & 15];
536 uchar* FillColorRow1( uchar* data, uchar* indices, int len, PaletteEntry* palette )
543 *((PaletteEntry*)(data - 24)) = palette[(idx & 128) != 0];
544 *((PaletteEntry*)(data - 21)) = palette[(idx & 64) != 0];
545 *((PaletteEntry*)(data - 18)) = palette[(idx & 32) != 0];
546 *((PaletteEntry*)(data - 15)) = palette[(idx & 16) != 0];
547 *((PaletteEntry*)(data - 12)) = palette[(idx & 8) != 0];
548 *((PaletteEntry*)(data - 9)) = palette[(idx & 4) != 0];
549 *((PaletteEntry*)(data - 6)) = palette[(idx & 2) != 0];
550 *((PaletteEntry*)(data - 3)) = palette[(idx & 1) != 0];
556 PaletteEntry clr = palette[idx < 0];
564 uchar* FillGrayRow1( uchar* data, uchar* indices, int len, uchar* palette )
571 *((uchar*)(data - 8)) = palette[(idx & 128) != 0];
572 *((uchar*)(data - 7)) = palette[(idx & 64) != 0];
573 *((uchar*)(data - 6)) = palette[(idx & 32) != 0];
574 *((uchar*)(data - 5)) = palette[(idx & 16) != 0];
575 *((uchar*)(data - 4)) = palette[(idx & 8) != 0];
576 *((uchar*)(data - 3)) = palette
577 *((uchar*)(data - 2)) = palette[(idx & 2) != 0];
578 *((uchar*)(data - 1)) = palette[(idx & 1) != 0];
584 data[0] = palette[idx < 0];