Home | History | Annotate | Download | only in codec

Lines Matching refs:ref_buf

82 void _FaxG4FindB1B2(const FX_BYTE* ref_buf, int columns, int a0, FX_BOOL a0color, int& b1, int& b2)
87 FX_BYTE first_bit = (a0 < 0) ? 1 : ((ref_buf[a0 / 8] & (1 << (7 - a0 % 8))) != 0);
88 b1 = _FindBit(ref_buf, columns, a0 + 1, !first_bit);
94 b1 = _FindBit(ref_buf, columns, b1 + 1, first_bit);
101 b2 = _FindBit(ref_buf, columns, b1 + 1, first_bit);
403 FX_BOOL _FaxG4GetRow(const FX_BYTE* src_buf, int bitsize, int& bitpos, FX_LPBYTE dest_buf, const FX_BYTE* ref_buf, int columns)
411 _FaxG4FindB1B2(ref_buf, columns, a0, a0color, b1, b2);
701 FX_LPBYTE ref_buf = FX_Alloc(FX_BYTE, pitch);
702 FXSYS_memset8(ref_buf, 0xff, pitch);
707 _FaxG4GetRow(src_buf, src_size << 3, bitpos, line_buf, ref_buf, width);
708 FXSYS_memcpy32(ref_buf, line_buf, pitch);
710 FX_Free(ref_buf);
865 static void _FaxEncode2DLine(FX_LPBYTE dest_buf, int& dest_bitpos, FX_LPCBYTE src_buf, FX_LPCBYTE ref_buf, int cols)
871 _FaxG4FindB1B2(ref_buf, cols, a0, a0color, b1, b2);