Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
egl::sws_t Class Reference
Collaboration diagram for egl::sws_t:
[legend]

Public Member Functions

int convert (gl::frame_buf_t &fb)
int blank (gl::frame_buf_t &fb, int offsetX, int offsetY, int width, int height)
int load_ram (platf::img_t &img, std::uint32_t fourcc=0)
void load_vram (img_descriptor_t &img, int offset_x, int offset_y, int texture)
void apply_colorspace (const video::sunshine_colorspace_t &colorspace)

Static Public Member Functions

static std::optional< sws_t > make (int in_width, int in_height, int out_width, int out_height, gl::tex_t &&tex)
static std::optional< sws_t > make (int in_width, int in_height, int out_width, int out_height, AVPixelFormat format)

Public Attributes

gl::tex_t tex
gl::frame_buf_t cursor_framebuffer
gl::frame_buf_t copy_framebuffer
gl::program_t program [3]
gl::buffer_t color_matrix
int out_width
int out_height
int in_width
int in_height
int offsetX
int offsetY
int loaded_texture
float black_y {16.0f / 255.0f}
float black_uv {128.0f / 255.0f}
std::uint64_t serial

Detailed Description

Definition at line 301 of file graphics.h.

Member Function Documentation

◆ apply_colorspace()

void egl::sws_t::apply_colorspace ( const video::sunshine_colorspace_t & colorspace)

Definition at line 769 of file graphics.cpp.

◆ blank()

int egl::sws_t::blank ( gl::frame_buf_t & fb,
int offsetX,
int offsetY,
int width,
int height )

Definition at line 920 of file graphics.cpp.

◆ convert()

int egl::sws_t::convert ( gl::frame_buf_t & fb)

Definition at line 1070 of file graphics.cpp.

◆ load_ram()

int egl::sws_t::load_ram ( platf::img_t & img,
std::uint32_t fourcc = 0 )

Definition at line 968 of file graphics.cpp.

◆ load_vram()

void egl::sws_t::load_vram ( img_descriptor_t & img,
int offset_x,
int offset_y,
int texture )

Definition at line 1009 of file graphics.cpp.

◆ make() [1/2]

std::optional< sws_t > egl::sws_t::make ( int in_width,
int in_height,
int out_width,
int out_height,
AVPixelFormat format )
static

Definition at line 934 of file graphics.cpp.

◆ make() [2/2]

std::optional< sws_t > egl::sws_t::make ( int in_width,
int in_height,
int out_width,
int out_height,
gl::tex_t && tex )
static

Definition at line 789 of file graphics.cpp.

Member Data Documentation

◆ black_uv

float egl::sws_t::black_uv {128.0f / 255.0f}

Definition at line 336 of file graphics.h.

◆ black_y

float egl::sws_t::black_y {16.0f / 255.0f}

Definition at line 335 of file graphics.h.

◆ color_matrix

gl::buffer_t egl::sws_t::color_matrix

Definition at line 327 of file graphics.h.

◆ copy_framebuffer

gl::frame_buf_t egl::sws_t::copy_framebuffer

Definition at line 323 of file graphics.h.

◆ cursor_framebuffer

gl::frame_buf_t egl::sws_t::cursor_framebuffer

Definition at line 322 of file graphics.h.

◆ in_height

int egl::sws_t::in_height

Definition at line 330 of file graphics.h.

◆ in_width

int egl::sws_t::in_width

Definition at line 330 of file graphics.h.

◆ loaded_texture

int egl::sws_t::loaded_texture

Definition at line 334 of file graphics.h.

◆ offsetX

int egl::sws_t::offsetX

Definition at line 331 of file graphics.h.

◆ offsetY

int egl::sws_t::offsetY

Definition at line 331 of file graphics.h.

◆ out_height

int egl::sws_t::out_height

Definition at line 329 of file graphics.h.

◆ out_width

int egl::sws_t::out_width

Definition at line 329 of file graphics.h.

◆ program

gl::program_t egl::sws_t::program[3]

Definition at line 326 of file graphics.h.

◆ serial

std::uint64_t egl::sws_t::serial

Definition at line 339 of file graphics.h.

◆ tex

gl::tex_t egl::sws_t::tex

Definition at line 319 of file graphics.h.


The documentation for this class was generated from the following files: