Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

void ZPCodec::encoder ( int  bit,
BitContext &  ctx 
) [inline]

Encodes bit bit# using context variable ctx#. Argument bit# must be #0# or #1#. This function should only be used with ZP-Coder objects created for encoding. It may modify the contents of variable ctx# in order to perform context adaptation.

Definition at line 367 of file ZPCodec.h.

  unsigned int z = a + p[ctx];
  if (bit != (ctx & 1))
    encode_lps(ctx, z);
  }else if (z >= 0x8000)
    encode_mps(ctx, z);
    a = z;

Generated by  Doxygen 1.6.0   Back to index