-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathdoc.go
17 lines (15 loc) · 1.12 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
Package bits provides bit and bytes reading and writing including Golomb codes and EBSP as used by MPEG video standards.
All readers and writers accumulate errors in the sense that they will stop reading or writing at the first error.
The first error, if any, can be retrieved with an AccError() method.
EBSP (Encapsulated Byte Sequence Packets) uses insertion of start-code emulation prevention bytes 0x03 and is
used in MPEG video standards from AVC (H.264) and forward. The main types are:
- [Reader] reads bits and bytes from an underlying [io.Reader] with accumulated error
- [Writer] writes bits and bytes to an underlying [io.Writer] with accumulated error
- [EBSPReader] reads EBSP from an underlying [io.Reader] with accumulated error
- [EBSPWriter] writes EBSP to an underlying [io.Writer] with accumulated error
- [ByteWriter] writes byte-based structures to an underlying [io.Writer] with accumulated error
- [FixedSliceReader] reads various byte-based structures from a fixed slice with accumulated error
- [FixedSliceWriter] writes various byte-based structures to a fixed slice with accumulated error
*/
package bits