class

Hwaro::Content::Processors::WebpEncoder::BoolWriter

Inherits Reference < Object

VP8 boolean entropy coder (RFC 6386 ยง7.3).

Instance methods

finish
Source
put(bit : Bool, prob : Int32) : Nil

Code bit, where prob/256 is the probability of a 0.

Source
put_literal(value : Int32, nbits : Int32) : Nil

nbits of value, most significant first, at even odds.

Source
put_signed(value : Int32, nbits : Int32) : Nil

The header's optional quantizer deltas: a presence flag, then magnitude and sign.

Source