MCPcopy Create free account
hub / github.com/RustCV/RustCV / is_compressed

Method is_compressed

rustcv-core/src/pixel_format.rs:92–97  ·  view source on GitHub ↗

判断是否为压缩格式 (JPEG, H264)

(&self)

Source from the content-addressed store, hash-verified

90impl PixelFormat {
91 /// 判断是否为压缩格式 (JPEG, H264)
92 pub fn is_compressed(&self) -> bool {
93 match self {
94 Self::Known(cc) => matches!(*cc, FourCC::MJPEG | FourCC::H264),
95 _ => false,
96 }
97 }
98
99 /// 判断是否为 Bayer 原始格式 (需要 Demosaic)
100 pub fn is_bayer(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected