| 1 |
/* Copyright (C) 2008 Vincent Penquerc'h. |
| 2 |
This file is part of the Kate codec library. |
| 3 |
Written by Vincent Penquerc'h. |
| 4 |
|
| 5 |
Use, distribution and reproduction of this library is governed |
| 6 |
by a BSD style source license included with this source in the |
| 7 |
file 'COPYING'. Please read these terms before distributing. */ |
| 8 |
|
| 9 |
|
| 10 |
/** |
| 11 |
|
| 12 |
\page format_warp Format - warp |
| 13 |
|
| 14 |
A warp is a stream of bits along with its length, allowing to jump |
| 15 |
over it without regard to its actual contents. Its use allows older |
| 16 |
decoders to ignore additions to the bitstream format without having |
| 17 |
to know about them. Warps are the main mechanism used to allow Kate |
| 18 |
streams to maintain forward compatibility with new streams. |
| 19 |
|
| 20 |
A warp consists of a \ref format_32v "variable length integer" representing |
| 21 |
the number of data bits present in the warp, followed by that number of |
| 22 |
bits. The actual semantics of those data bits is irrelevant to the warp, |
| 23 |
as it acts as a container for those bits. |
| 24 |
|
| 25 |
Jumping over a warp is simple: read the \ref format_32v "variable length integer", |
| 26 |
and read that number of bits, discarding them. If the number of bits was zero, |
| 27 |
this is the end of the warp. If not, there is another warp to read. This allows |
| 28 |
the warp to be used multiple times. |
| 29 |
|
| 30 |
|
| 31 |
*/ |
| 32 |
|