![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <opengl_utils.hpp>

Public Member Functions | |
| FlatVideoScene ()=default | |
| void | enableDeinterlacing (bool enable) |
| GLuint | get_texture () |
| void | init () |
| void | put_frame (video_frame *f) |
| void | render () |
| void | resize (int width, int height) |
Private Attributes | |
| video_desc | current_desc |
| GlProgram | program |
| Model | quad |
| int | screen_height |
| int | screen_width |
| Texture | texture |
| FrameUploader | uploader |
Definition at line 398 of file opengl_utils.hpp.
|
default |
| void FlatVideoScene::enableDeinterlacing | ( | bool | enable | ) |
Definition at line 432 of file opengl_utils.cpp.
References GlProgram::get(), and program.

|
inline |
Definition at line 409 of file opengl_utils.hpp.
References Texture::get(), and texture.

| void FlatVideoScene::init | ( | ) |
Definition at line 352 of file opengl_utils.cpp.
References Texture::allocate(), FrameUploader::attach_dst_texture(), FrameUploader::enable_pbo(), frag_src, Model::get_quad(), program, quad, texture, uploader, and vert_src.

| void FlatVideoScene::put_frame | ( | video_frame * | f | ) |
Definition at line 392 of file opengl_utils.cpp.
References current_desc, FrameUploader::put_frame(), resize(), screen_height, screen_width, uploader, video_desc_eq(), and video_desc_from_frame().

| void FlatVideoScene::render | ( | ) |
Definition at line 402 of file opengl_utils.cpp.
References GlProgram::get(), Texture::get(), program, quad, Model::render(), screen_height, screen_width, and texture.

| void FlatVideoScene::resize | ( | int | width, |
| int | height ) |
Definition at line 410 of file opengl_utils.cpp.
References current_desc, GlProgram::get(), video_desc::height, program, screen_height, screen_width, and video_desc::width.
Referenced by put_frame().

|
private |
Definition at line 416 of file opengl_utils.hpp.
Referenced by put_frame(), and resize().
|
private |
Definition at line 411 of file opengl_utils.hpp.
Referenced by enableDeinterlacing(), init(), render(), and resize().
|
private |
Definition at line 412 of file opengl_utils.hpp.
|
private |
Definition at line 418 of file opengl_utils.hpp.
Referenced by put_frame(), render(), and resize().
|
private |
Definition at line 417 of file opengl_utils.hpp.
Referenced by put_frame(), render(), and resize().
|
private |
Definition at line 413 of file opengl_utils.hpp.
Referenced by get_texture(), init(), and render().
|
private |
Definition at line 414 of file opengl_utils.hpp.
Referenced by init(), and put_frame().