MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / blank

Method blank

src/platform/linux/graphics.cpp:845–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843 }
844
845 int sws_t::blank(gl::frame_buf_t &fb, int offsetX, int offsetY, int width, int height) {
846 auto f = [&]() {
847 std::swap(offsetX, this->offsetX);
848 std::swap(offsetY, this->offsetY);
849 std::swap(width, this->out_width);
850 std::swap(height, this->out_height);
851 };
852
853 f();
854 auto fg = util::fail_guard(f);
855
856 return convert(fb);
857 }
858
859 std::optional<sws_t> sws_t::make(int in_width, int in_height, int out_width, int out_height, AVPixelFormat format) {
860 GLint gl_format;

Callers

nothing calls this directly

Calls 2

fFunction · 0.85
fail_guardFunction · 0.85

Tested by

no test coverage detected