Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCV/RustCV
/ clip
Function
clip
rustcv-backend-v4l2/examples/web_streaming.rs:243–251 ·
view source on GitHub ↗
(val: i32)
Source
from the content-addressed store, hash-verified
241
#[cfg(target_os =
"linux"
)]
242
#[inline]
243
fn clip(val: i32) -> u8 {
244
if val < 0 {
245
0
246
} else if val > 255 {
247
255
248
} else {
249
val as u8
250
}
251
}
252
253
#[cfg(not(target_os =
"linux"
))]
254
fn main() {
Callers
1
yuyv_to_rgb8
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected