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

Data Fields

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

Detailed Description

Definition at line 173 of file opengl_enc.c.

Field Documentation

◆ class

AVClass* OpenGLContext::class

class for private options

Definition at line 174 of file opengl_enc.c.

◆ glprocs

FFOpenGLFunctions OpenGLContext::glprocs

◆ inited

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().

◆ background

uint8_t OpenGLContext::background[4]

Background color.

Definition at line 183 of file opengl_enc.c.

Referenced by opengl_init_context().

◆ no_window

int OpenGLContext::no_window

◆ window_title

char* OpenGLContext::window_title

Title of the window.

Definition at line 185 of file opengl_enc.c.

Referenced by opengl_write_header().

◆ max_texture_size

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().

◆ max_viewport_width

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().

◆ max_viewport_height

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().

◆ non_pow_2_textures

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().

◆ unpack_subimage

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().

◆ program

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().

◆ vertex_shader

GLuint OpenGLContext::vertex_shader

Vertex shader.

Definition at line 196 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_deinit_context().

◆ fragment_shader

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().

◆ texture_name

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().

◆ index_buffer

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().

◆ vertex_buffer

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().

◆ vertex

OpenGLVertexInfo OpenGLContext::vertex[4]

VBO.

Definition at line 201 of file opengl_enc.c.

Referenced by opengl_prepare_vertex().

◆ projection_matrix_location

GLint OpenGLContext::projection_matrix_location

Uniforms' locations.

Definition at line 202 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_prepare().

◆ model_view_matrix_location

GLint OpenGLContext::model_view_matrix_location

Definition at line 203 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_prepare().

◆ color_map_location

GLint OpenGLContext::color_map_location

Definition at line 204 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_prepare().

◆ chroma_div_w_location

GLint OpenGLContext::chroma_div_w_location

Definition at line 205 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_prepare().

◆ chroma_div_h_location

GLint OpenGLContext::chroma_div_h_location

Definition at line 206 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_prepare().

◆ texture_location

GLint OpenGLContext::texture_location[4]

Definition at line 207 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_prepare().

◆ position_attrib

GLint OpenGLContext::position_attrib

Attibutes' locations.

Definition at line 208 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_draw().

◆ texture_coords_attrib

GLint OpenGLContext::texture_coords_attrib

Definition at line 209 of file opengl_enc.c.

Referenced by opengl_compile_shaders(), and opengl_draw().

◆ projection_matrix

GLfloat OpenGLContext::projection_matrix[16]

Projection matrix.

Definition at line 211 of file opengl_enc.c.

Referenced by opengl_prepare(), and opengl_prepare_vertex().

◆ model_view_matrix

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().

◆ color_map

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().

◆ chroma_div_w

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().

◆ chroma_div_h

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().

◆ format

GLenum OpenGLContext::format

Definition at line 218 of file opengl_enc.c.

Referenced by opengl_configure_texture(), and opengl_get_texture_params().

◆ type

GLenum OpenGLContext::type

◆ width

int OpenGLContext::width

◆ height

int OpenGLContext::height

◆ pix_fmt

enum AVPixelFormat OpenGLContext::pix_fmt

◆ picture_width

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().

◆ picture_height

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().

◆ window_width

int OpenGLContext::window_width

◆ window_height

int OpenGLContext::window_height

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