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

Public Member Functions | |
| void | attach_dst_texture (Texture *tex) |
| void | enable_pbo (bool enable) |
| std::vector< codec_t > | get_supported_codecs () |
| void | put_frame (video_frame *f, bool pbo_frame=false) |
Private Attributes | |
| codec_t | configured_codec = VIDEO_CODEC_NONE |
| std::unique_ptr< Frame_convertor > | conv |
| Texture * | tex = nullptr |
| std::unique_ptr< GlBuffer > | upload_pbo |
Class which takes an ultragrid video_frame and turns it into opengl texture
Definition at line 324 of file opengl_utils.hpp.
|
inline |
Definition at line 327 of file opengl_utils.hpp.
References tex.
Referenced by FlatVideoScene::init(), and PanoramaScene::put_frame().
|
inline |
Definition at line 329 of file opengl_utils.hpp.
References upload_pbo.
Referenced by FlatVideoScene::init().
| std::vector< codec_t > FrameUploader::get_supported_codecs | ( | ) |
Definition at line 340 of file opengl_utils.cpp.
References get_convertor_supported_codecs(), RGB, and RGBA.
Referenced by PanoramaScene::get_codecs().

| void FrameUploader::put_frame | ( | video_frame * | f, |
| bool | pbo_frame = false ) |
Definition at line 321 of file opengl_utils.cpp.
References Texture::allocate(), video_frame::color_spec, configured_codec, conv, Texture::get(), get_convertor_for_codec(), tile::height, tex, video_frame::tiles, upload_pbo, and tile::width.
Referenced by FlatVideoScene::put_frame(), and PanoramaScene::put_frame().

|
private |
Definition at line 340 of file opengl_utils.hpp.
Referenced by put_frame().
|
private |
Definition at line 339 of file opengl_utils.hpp.
Referenced by put_frame().
|
private |
Definition at line 341 of file opengl_utils.hpp.
Referenced by attach_dst_texture(), and put_frame().
|
private |
Definition at line 342 of file opengl_utils.hpp.
Referenced by enable_pbo(), and put_frame().