Valkka  1.6.1
OpenSource Video Management
Public Member Functions | Public Attributes | List of all members
YUVTEX Class Reference

A class encapsulating information about an OpenGL texture set for a YUV pixmap (sizes, OpenGL reference ids, etc.) More...

#include <tex.h>

Inheritance diagram for YUVTEX:
Inheritance graph
[legend]
Collaboration diagram for YUVTEX:
Collaboration graph
[legend]

Public Member Functions

 YUVTEX (BitmapPars bmpars)
 Default constructor. More...
 
 ~YUVTEX ()
 Default destructor.
 
void loadYUV (const GLubyte *Y, const GLubyte *U, const GLubyte *V)
 Load YUV from memory buffers. More...
 
void loadYUVFrame (YUVFrame *yuvframe)
 Transfer from YUVFrame's PBO's to textures. More...
 
- Public Member Functions inherited from TEX
 TEX (BitmapPars bmpars)
 Default constructor. More...
 
virtual ~TEX ()
 Default virtual destructor.
 
 ban_copy_ctor (TEX)
 
 ban_copy_asm (TEX)
 

Public Attributes

YUVTEX(const YUVTEX &f) ban_copy_asm (YUVTEX)
 
GLuint y_index
 internal OpenGL/GPU index referring to Y texture;
 
GLuint u_index
 internal OpenGL/GPU index referring to U texture;
 
GLuint v_index
 internal OpenGL/GPU index referring to V texture;
 
- Public Attributes inherited from TEX
BitmapPars bmpars
 Max bitmap dimensions (pre-reserved)
 
GLint internal_format
 OpenGL internal format.
 
GLint format
 OpenGL format of the texture.
 
GLuint index
 OpenGL reference.
 

Detailed Description

A class encapsulating information about an OpenGL texture set for a YUV pixmap (sizes, OpenGL reference ids, etc.)

Constructor & Destructor Documentation

◆ YUVTEX()

YUVTEX::YUVTEX ( BitmapPars  bmpars)

Default constructor.

Parameters
widthpixmap width
heightpixmap height Default ctor

Member Function Documentation

◆ loadYUV()

void YUVTEX::loadYUV ( const GLubyte *  Y,
const GLubyte *  U,
const GLubyte *  V 
)

Load YUV from memory buffers.

Load texture from memory buffers.

◆ loadYUVFrame()

void YUVTEX::loadYUVFrame ( YUVFrame yuvframe)

Transfer from YUVFrame's PBO's to textures.

Copy pixel buffer object to texture.

Texture and YUVFrame are assumed to have the same dimensions


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