| 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; |
nothing calls this directly
no test coverage detected