FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
OpenGLContext Struct Reference

Data Fields

AVClassclass
 class for private options
 
FFOpenGLFunctions glprocs
 
int inited
 Set to 1 when write_header was successfully called.
 
uint8_t background [4]
 Background color.
 
int no_window
 0 for create default window
 
char * window_title
 Title of the window.
 
GLint max_texture_size
 Maximum texture size.
 
GLint max_viewport_width
 Maximum viewport size.
 
GLint max_viewport_height
 Maximum viewport size.
 
int non_pow_2_textures
 1 when non power of 2 textures are supported
 
int unpack_subimage
 1 when GL_EXT_unpack_subimage is available
 
GLuint program
 Shader program.
 
GLuint vertex_shader
 Vertex shader.
 
GLuint fragment_shader
 Fragment shader for current pix_pmt.
 
GLuint texture_name [4]
 Textures' IDs.
 
GLuint index_buffer
 Index buffer.
 
GLuint vertex_buffer
 Vertex buffer.
 
OpenGLVertexInfo vertex [4]
 VBO.
 
GLint projection_matrix_location
 Uniforms' locations.
 
GLint model_view_matrix_location
 
GLint color_map_location
 
GLint chroma_div_w_location
 
GLint chroma_div_h_location
 
GLint texture_location [4]
 
GLint position_attrib
 Attibutes' locations.
 
GLint texture_coords_attrib
 
GLfloat projection_matrix [16]
 Projection matrix.
 
GLfloat model_view_matrix [16]
 Modev view matrix.
 
GLfloat color_map [16]
 RGBA color map matrix.
 
GLfloat chroma_div_w
 Chroma subsampling w ratio.
 
GLfloat chroma_div_h
 Chroma subsampling h ratio.
 
GLenum format
 
GLenum type
 
int width
 Stream width.
 
int height
 Stream height.
 
enum AVPixelFormat pix_fmt
 Stream pixel format.
 
int picture_width
 Rendered width.
 
int picture_height
 Rendered height.
 
int window_width
 
int window_height
 

Detailed Description

Definition at line 174 of file opengl_enc.c.

Field Documentation

AVClass* OpenGLContext::class

class for private options

Definition at line 175 of file opengl_enc.c.

FFOpenGLFunctions OpenGLContext::glprocs
int OpenGLContext::inited

Set to 1 when write_header was successfully called.

Definition at line 182 of file opengl_enc.c.

Referenced by opengl_resize(), and opengl_write_header().

uint8_t OpenGLContext::background[4]

Background color.

Definition at line 183 of file opengl_enc.c.

Referenced by opengl_init_context().

int OpenGLContext::no_window
char* OpenGLContext::window_title

Title of the window.

Definition at line 185 of file opengl_enc.c.

Referenced by opengl_write_header().

GLint OpenGLContext::max_texture_size

Maximum texture size.

Definition at line 188 of file opengl_enc.c.

Referenced by opengl_get_texture_size(), opengl_read_limits(), and opengl_write_header().

GLint OpenGLContext::max_viewport_width

Maximum viewport size.

Definition at line 189 of file opengl_enc.c.

Referenced by opengl_prepare_vertex(), and opengl_read_limits().

GLint OpenGLContext::max_viewport_height

Maximum viewport size.

Definition at line 190 of file opengl_enc.c.

Referenced by opengl_prepare_vertex(), and opengl_read_limits().

int OpenGLContext::non_pow_2_textures

1 when non power of 2 textures are supported

Definition at line 191 of file opengl_enc.c.

Referenced by opengl_get_texture_size(), opengl_init_context(), and opengl_read_limits().

int OpenGLContext::unpack_subimage

1 when GL_EXT_unpack_subimage is available

Definition at line 192 of file opengl_enc.c.

Referenced by opengl_read_limits().

GLuint OpenGLContext::program

Shader program.

Definition at line 195 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), opengl_deinit_context(), and opengl_prepare().

GLuint OpenGLContext::vertex_shader

Vertex shader.

Definition at line 196 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_deinit_context().

GLuint OpenGLContext::fragment_shader

Fragment shader for current pix_pmt.

Definition at line 197 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_deinit_context().

GLuint OpenGLContext::texture_name[4]

Textures' IDs.

Definition at line 198 of file opengl_enc.c.

Referenced by opengl_deinit_context(), opengl_init_context(), and opengl_prepare().

GLuint OpenGLContext::index_buffer

Index buffer.

Definition at line 199 of file opengl_enc.c.

Referenced by opengl_deinit_context(), opengl_draw(), and opengl_init_context().

GLuint OpenGLContext::vertex_buffer

Vertex buffer.

Definition at line 200 of file opengl_enc.c.

Referenced by opengl_deinit_context(), opengl_draw(), opengl_init_context(), and opengl_prepare_vertex().

OpenGLVertexInfo OpenGLContext::vertex[4]

VBO.

Definition at line 201 of file opengl_enc.c.

Referenced by opengl_prepare_vertex().

GLint OpenGLContext::projection_matrix_location

Uniforms' locations.

Definition at line 202 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_prepare().

GLint OpenGLContext::model_view_matrix_location

Definition at line 203 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_prepare().

GLint OpenGLContext::color_map_location

Definition at line 204 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_prepare().

GLint OpenGLContext::chroma_div_w_location

Definition at line 205 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_prepare().

GLint OpenGLContext::chroma_div_h_location

Definition at line 206 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_prepare().

GLint OpenGLContext::texture_location[4]

Definition at line 207 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_prepare().

GLint OpenGLContext::position_attrib

Attibutes' locations.

Definition at line 208 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_draw().

GLint OpenGLContext::texture_coords_attrib

Definition at line 209 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_draw().

GLfloat OpenGLContext::projection_matrix[16]

Projection matrix.

Definition at line 211 of file opengl_enc.c.

Referenced by opengl_prepare(), and opengl_prepare_vertex().

GLfloat OpenGLContext::model_view_matrix[16]

Modev view matrix.

Definition at line 212 of file opengl_enc.c.

Referenced by opengl_prepare(), and opengl_prepare_vertex().

GLfloat OpenGLContext::color_map[16]

RGBA color map matrix.

Definition at line 213 of file opengl_enc.c.

Referenced by opengl_fill_color_map(), and opengl_prepare().

GLfloat OpenGLContext::chroma_div_w

Chroma subsampling w ratio.

Definition at line 214 of file opengl_enc.c.

Referenced by opengl_init_context(), and opengl_prepare().

GLfloat OpenGLContext::chroma_div_h

Chroma subsampling h ratio.

Definition at line 215 of file opengl_enc.c.

Referenced by opengl_init_context(), and opengl_prepare().

GLenum OpenGLContext::format

Definition at line 218 of file opengl_enc.c.

Referenced by opengl_configure_texture(), and opengl_get_texture_params().

GLenum OpenGLContext::type
int OpenGLContext::width
int OpenGLContext::height
enum AVPixelFormat OpenGLContext::pix_fmt
int OpenGLContext::picture_width

Rendered width.

Definition at line 223 of file opengl_enc.c.

Referenced by opengl_compute_display_area(), and opengl_prepare_vertex().

int OpenGLContext::picture_height

Rendered height.

Definition at line 224 of file opengl_enc.c.

Referenced by opengl_compute_display_area(), and opengl_prepare_vertex().

int OpenGLContext::window_width
int OpenGLContext::window_height

The documentation for this struct was generated from the following file: