MCPcopy Create free account
hub / github.com/BabitMF/bmf / decode_one_frame

Function decode_one_frame

bmf/test/fuzz_ffmpeg_modules/fuzz.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37namespace {
38static VideoFrame decode_one_frame(const std::string &path) {
39 JsonParam option;
40 option.parse(fmt::format("{{\"input_path\": \"{}\"}}", path));
41 auto decoder = make_sync_func<std::tuple<>, std::tuple<VideoFrame>>(
42 ModuleInfo("c_ffmpeg_decoder"), option);
43
44 VideoFrame vf;
45 std::tie(vf) = decoder();
46 return vf;
47}
48
49Domain<std::tuple<int, int, int, int>> AnyCrop() { // min size 4x4 in 1080p image
50 static const int width = 1920, height = 1080;

Callers 1

fuzz_decode_encodeFunction · 0.70

Calls 3

ModuleInfoFunction · 0.85
formatFunction · 0.50
parseMethod · 0.45

Tested by

no test coverage detected