Lines Matching defs:BitsPerComponent

232 static void PNG_PredictorEncode(FX_LPBYTE& data_buf, FX_DWORD& data_size, int predictor, int Colors, int BitsPerComponent, int Columns)

234 int BytesPerPixel = (Colors * BitsPerComponent + 7) / 8;
235 int row_size = (Colors * BitsPerComponent * Columns + 7) / 8;
386 int Colors, int BitsPerComponent, int Columns)
388 int BytesPerPixel = (Colors * BitsPerComponent + 7) / 8;
389 int row_size = (Colors * BitsPerComponent * Columns + 7) / 8;
473 static void TIFF_PredictorEncodeLine(FX_LPBYTE dest_buf, int row_size, int BitsPerComponent, int Colors, int Columns)
475 int BytesPerPixel = BitsPerComponent * Colors / 8;
476 if (BitsPerComponent < 8) {
478 if (BitsPerComponent == 2) {
480 } else if (BitsPerComponent == 4) {
483 int row_bits = Colors * BitsPerComponent * Columns;
484 for (int i = row_bits - BitsPerComponent; i >= BitsPerComponent; i -= BitsPerComponent) {
487 int col_pre = (col == 0) ? (8 - BitsPerComponent) : (col - BitsPerComponent);
489 FX_BYTE cur = (dest_buf[index] >> (8 - col - BitsPerComponent)) & mask;
490 FX_BYTE left = (dest_buf[index_pre] >> (8 - col_pre - BitsPerComponent)) & mask;
493 cur <<= (8 - col - BitsPerComponent);
494 dest_buf[index] &= ~(mask << ((8 - col - BitsPerComponent)));
497 } else if (BitsPerComponent == 8) {
511 int Colors, int BitsPerComponent, int Columns)
513 int row_size = (Colors * BitsPerComponent * Columns + 7) / 8;
521 TIFF_PredictorEncodeLine(scan_line, row_size, BitsPerComponent, Colors, Columns);
524 static void TIFF_PredictLine(FX_LPBYTE dest_buf, int row_size, int BitsPerComponent, int Colors, int Columns)
526 if (BitsPerComponent == 1) {
527 int row_bits = BitsPerComponent * Colors * Columns;
541 int BytesPerPixel = BitsPerComponent * Colors / 8;
542 if (BitsPerComponent == 16) {
556 int Colors, int BitsPerComponent, int Columns)
558 int row_size = (Colors * BitsPerComponent * Columns + 7) / 8;
566 TIFF_PredictLine(scan_line, row_size, BitsPerComponent, Colors, Columns);
575 int predictor, int Colors, int BitsPerComponent, int Columns);
622 int nComps, int bpc, int predictor, int Colors, int BitsPerComponent, int Columns)
644 if (BitsPerComponent * Colors * Columns == 0) {
645 BitsPerComponent = m_bpc;
650 m_BitsPerComponent = BitsPerComponent;
851 int nComps, int bpc, int predictor, int Colors, int BitsPerComponent, int Columns)
857 pDecoder->Create(src_buf, src_size, width, height, nComps, bpc, predictor, Colors, BitsPerComponent, Columns);
861 int predictor, int Colors, int BitsPerComponent, int Columns,
905 PNG_Predictor(dest_buf, dest_size, Colors, BitsPerComponent, Columns);
907 TIFF_Predictor(dest_buf, dest_size, Colors, BitsPerComponent, Columns);
912 int predictor, int Colors, int BitsPerComponent, int Columns,
926 TIFF_PredictorEncode(pSrcBuf, src_size, Colors, BitsPerComponent, Columns);
928 PNG_PredictorEncode(pSrcBuf, src_size, predictor, Colors, BitsPerComponent, Columns);