VBLE

From MultimediaWiki
Jump to: navigation, search
  • FourCC: VBLE

VBLE is a lossless codec for YUV colourspace written by a person known as Mark FD. It employs standard median prediction and coding components with reduced number of bits.

Frame format

Bitstream is stored in little-endian words LSB first.

Image data is coded in that order: the line of luma values, two lines of chroma values, all data is coded as pixel quads.

In the beginning of frame data there are four unary codes for each quad element size in bits. The rest of data are quad values written with that number of bits. After decoding pixel values first are renormalised by formula pix & 1 ? 255 - (pix >> 1) : (pix >> 1) and for each plane median restoration is applied.