MCPcopy Index your code
hub / github.com/Recordscript/recordscript / test

Function test

libs/scrap/examples/benchmark.rs:250–261  ·  view source on GitHub ↗
(c: &mut Capturer, width: usize, height: usize, quality: Q, yuv_count: usize)

Source from the content-addressed store, hash-verified

248 use super::*;
249
250 pub fn test(c: &mut Capturer, width: usize, height: usize, quality: Q, yuv_count: usize) {
251 let mut h264s = Vec::new();
252 let mut h265s = Vec::new();
253 if let Some(info) = HwRamEncoder::try_get(CodecFormat::H264) {
254 test_encoder(width, height, quality, info, c, yuv_count, &mut h264s);
255 }
256 if let Some(info) = HwRamEncoder::try_get(CodecFormat::H265) {
257 test_encoder(width, height, quality, info, c, yuv_count, &mut h265s);
258 }
259 test_decoder(CodecFormat::H264, &h264s);
260 test_decoder(CodecFormat::H265, &h265s);
261 }
262
263 fn test_encoder(
264 width: usize,

Callers 1

mainFunction · 0.70

Calls 2

test_encoderFunction · 0.85
test_decoderFunction · 0.85

Tested by

no test coverage detected