Crate gv_video

Crate gv_video 

Source

Structs§

GVAddressSizeBlock
GVHeader
GVVideo
RGBAColor
RGBColor

Enums§

GVFormat

Functions§

get_alpha
get_alpha_from_frame
get_bgra_vec_from_frame
BGRA u32 -> BGRA u8
get_rgb
get_rgb_from_frame
get_rgb_vec_from_frame
Vec’s u32 is showing ARGB as little endian (BGRA), this convert it to RGB u8 ex: [0xFFAABBCC, 0xFFDDEE88] -> [0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x88]
get_rgba
get_rgba_from_frame
get_rgba_vec_from_frame
Vec’s u32 is showing ARGB as little endian (BGRA), this convert it to RGBA u8 ex: [0xFFAABBCC, 0xFFDDEE88] -> [0xAA, 0xBB, 0xCC, 0xFF, 0xDD, 0xEE, 0x88, 0xFF]
read_header
to_vec_u8_safe
BGRA u32 -> BGRA u8 slower but safe
to_vec_u8_unsafe
BGRA u32 -> BGRA u8 faster but unsafe