Skip to main content

Crate y4m

Crate y4m 

Source
Expand description

ยงYUV4MPEG2 (.y4m) Encoder/Decoder

Macrosยง

parse_error ๐Ÿ”’

Structsยง

Decoder
YUV4MPEG2 decoder.
Encoder
YUV4MPEG2 encoder.
EncoderBuilder
Encoder builder. Allows to set y4m file parameters using builder pattern.
Frame
A single frame.
Limits
Limits on the resources Decoder is allowed to use.
Ratio
Simple ratio structure since stdlib lacks one.
VendorExtensionString
A newtype wrapper around Vec to ensure validity as a vendor extension.

Enumsยง

Colorspace
Colorspace (color model/pixel format). Only subset of them is supported.
Error
Both encoding and decoding errors.
ParseError
Granular ParseError Definiations

Constantsยง

FIELD_SEP ๐Ÿ”’
FILE_MAGICK ๐Ÿ”’
FRAME_MAGICK ๐Ÿ”’
MAX_PARAMS_SIZE ๐Ÿ”’
RATIO_SEP ๐Ÿ”’
TERMINATOR ๐Ÿ”’

Traitsยง

EnhancedRead ๐Ÿ”’

Functionsยง

decode
Create a new decoder instance. Alias for Decoder::new.
encode
Create a new encoder builder. Alias for EncoderBuilder::new.
get_plane_sizes ๐Ÿ”’
parse_bytes ๐Ÿ”’