Crate revorbis

Source

Macros§

debugln
derive_index
field
field_array
format_array
Format array in a specific patterns
fromBARK
fromMEL
fromOC
fromdB
icount
ilog
read_bits
Read bits of data using BitReader
read_f32
Read a f32 using BitReader
read_slice
Read a byte array slice using the BitReader
read_string
Read a sized string using the BitReader
return_Err
rint
toBARK
toMEL
toOC
todB
unitnorm
vecvec
write_bits
Write bits of data using BitWriter<W>
write_f32
Write a f32 using BitWriter<W>
write_slice
Write a slice to the BitWriter
write_string
Write a sized string to the BitWriter

Structs§

BitReader
BitReader: read vorbis data bit by bit
BitWriter
BitWriter: write vorbis data bit by bit
BitwiseData
A utility for you to manipulate data bitwise, mainly to concatenate data in bits or to split data from a specific bit position.This is mainly used for Vorbis data parsing.
NestVecFormatter

Constants§

DEBUG_ON_READ_BITS
DEBUG_ON_WRITE_BITS
PACKETBLOBS
PANIC_ON_ERROR
SHOW_DEBUG

Functions§

align
Alignment calculation
get_vorbis_headers_from_ogg_packet_bytes
This function extracts data from some Ogg packets, the packets contains the Vorbis headers.There are 3 kinds of Vorbis headers, they are the identification header, the metadata header, and the setup header.
shift_data_to_back
Shift an array of bits to the back. In a byte, the higher bits are the back bits.
shift_data_to_front
Shift an array of bits to the front. In a byte, the lower bits are the front bits.
transmute_vector
Transmute vector, change its type, but not by cloning it or changing its memory location or capacity.Will panic or crash if you don’t know what you are doing.

Type Aliases§

BitWriterCursor
The specialized BitWriter that uses CursorVecU8> as its sink.
BitWriterObj
The specialized BitWriter that uses Box<dyn Writer> as its sink.