|
FFmpeg
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <stddef.h>#include "config.h"#include <GL/gl.h>#include <GL/glext.h>#include "libavutil/common.h"#include "libavutil/pixdesc.h"#include "libavutil/log.h"#include "libavutil/opt.h"#include "libavutil/avassert.h"#include "libavutil/avstring.h"#include "libavformat/avformat.h"#include "libavformat/internal.h"#include "libavdevice/avdevice.h"#include "opengl_enc_shaders.h"Go to the source code of this file.
Data Structures | |
| struct | FFOpenGLFunctions |
| struct | OpenGLVertexInfo |
| struct | OpenGLContext |
| struct | OpenGLFormatDesc |
Macros | |
| #define | APIENTRY |
| #define | FF_GL_RED_COMPONENT 0x1903; |
| #define | FF_GL_UNSIGNED_BYTE_3_3_2 0x8032 |
| #define | FF_GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 |
| #define | FF_GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 |
| #define | FF_GL_UNPACK_ROW_LENGTH 0x0CF2 |
| #define | FF_GL_ARRAY_BUFFER 0x8892 |
| #define | FF_GL_ELEMENT_ARRAY_BUFFER 0x8893 |
| #define | FF_GL_STATIC_DRAW 0x88E4 |
| #define | FF_GL_FRAGMENT_SHADER 0x8B30 |
| #define | FF_GL_VERTEX_SHADER 0x8B31 |
| #define | FF_GL_COMPILE_STATUS 0x8B81 |
| #define | FF_GL_LINK_STATUS 0x8B82 |
| #define | FF_GL_INFO_LOG_LENGTH 0x8B84 |
| #define | OPENGL_ERROR_CHECK(ctx) |
| #define | LOAD_OPENGL_FUN(name, type) |
| #define | FILL_COMPONENT(i) |
| #define | LOAD_TEXTURE_DATA(comp_index, sub) |
| #define | OFFSET(x) offsetof(OpenGLContext, x) |
| #define | ENC AV_OPT_FLAG_ENCODING_PARAM |
Typedefs | |
| typedef GLuint * | buffers |
| typedef ptrdiff_t | size |
| typedef ptrdiff_t const GLvoid * | data |
| typedef ptrdiff_t const GLvoid GLenum | usage |
| typedef GLuint | buffer |
| typedef const char * | name |
| typedef GLint GLenum | type |
| typedef GLint GLenum GLboolean | normalized |
| typedef GLint GLenum GLboolean GLsizei | stride |
| typedef GLint GLenum GLboolean GLsizei uintptr_t | pointer |
| typedef GLfloat | v0 |
| typedef GLsizei | count |
| typedef GLsizei GLboolean | transpose |
| typedef GLsizei GLboolean const GLfloat * | value |
| typedef GLenum | pname |
| typedef GLenum GLint * | params |
| typedef GLsizei | bufSize |
| typedef GLsizei GLsizei * | length |
| typedef GLsizei GLsizei char * | infoLog |
| typedef GLuint | shader |
| typedef GLsizei const char ** | string |
Variables | |
| static GLushort | g_index [6] |
| static struct OpenGLFormatDesc | opengl_format_desc [] |
| static const AVOption | options [] |
| static const AVClass | opengl_class |
| AVOutputFormat | ff_opengl_muxer |
| #define APIENTRY |
Definition at line 64 of file opengl_enc.c.
| #define FF_GL_RED_COMPONENT 0x1903; |
Definition at line 79 of file opengl_enc.c.
| #define FF_GL_UNSIGNED_BYTE_3_3_2 0x8032 |
Definition at line 83 of file opengl_enc.c.
Referenced by opengl_type_size().
| #define FF_GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 |
Definition at line 84 of file opengl_enc.c.
Referenced by opengl_type_size().
| #define FF_GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 |
Definition at line 85 of file opengl_enc.c.
Referenced by opengl_type_size().
| #define FF_GL_UNPACK_ROW_LENGTH 0x0CF2 |
Definition at line 86 of file opengl_enc.c.
| #define FF_GL_ARRAY_BUFFER 0x8892 |
Definition at line 89 of file opengl_enc.c.
Referenced by opengl_deinit_context(), opengl_draw(), and opengl_prepare_vertex().
| #define FF_GL_ELEMENT_ARRAY_BUFFER 0x8893 |
Definition at line 90 of file opengl_enc.c.
Referenced by opengl_deinit_context(), opengl_draw(), and opengl_init_context().
| #define FF_GL_STATIC_DRAW 0x88E4 |
Definition at line 91 of file opengl_enc.c.
Referenced by opengl_init_context(), and opengl_prepare_vertex().
| #define FF_GL_FRAGMENT_SHADER 0x8B30 |
Definition at line 92 of file opengl_enc.c.
Referenced by opengl_compile_shaders().
| #define FF_GL_VERTEX_SHADER 0x8B31 |
Definition at line 93 of file opengl_enc.c.
Referenced by opengl_compile_shaders().
| #define FF_GL_COMPILE_STATUS 0x8B81 |
Definition at line 94 of file opengl_enc.c.
Referenced by opengl_load_shader().
| #define FF_GL_LINK_STATUS 0x8B82 |
Definition at line 95 of file opengl_enc.c.
Referenced by opengl_compile_shaders().
| #define FF_GL_INFO_LOG_LENGTH 0x8B84 |
Definition at line 96 of file opengl_enc.c.
Referenced by opengl_compile_shaders(), and opengl_load_shader().
| #define OPENGL_ERROR_CHECK | ( | ctx | ) |
Definition at line 151 of file opengl_enc.c.
Referenced by opengl_compile_shaders(), opengl_configure_texture(), opengl_draw(), opengl_init_context(), opengl_load_shader(), opengl_prepare(), opengl_prepare_vertex(), opengl_read_limits(), and opengl_write_header().
Referenced by opengl_load_procedures().
| #define FILL_COMPONENT | ( | i | ) |
Referenced by opengl_fill_color_map().
| #define LOAD_TEXTURE_DATA | ( | comp_index, | |
| sub | |||
| ) |
Definition at line 1149 of file opengl_enc.c.
Referenced by opengl_draw().
| #define OFFSET | ( | x | ) | offsetof(OpenGLContext, x) |
Definition at line 1261 of file opengl_enc.c.
| #define ENC AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 1262 of file opengl_enc.c.
Definition at line 98 of file opengl_enc.c.
| typedef ptrdiff_t const GLvoid* data |
Definition at line 100 of file opengl_enc.c.
| typedef ptrdiff_t const GLvoid GLenum usage |
Definition at line 100 of file opengl_enc.c.
Definition at line 101 of file opengl_enc.c.
| typedef const char * name |
Definition at line 102 of file opengl_enc.c.
Definition at line 104 of file opengl_enc.c.
| typedef GLint GLenum GLboolean normalized |
Definition at line 104 of file opengl_enc.c.
Definition at line 104 of file opengl_enc.c.
Definition at line 104 of file opengl_enc.c.
Definition at line 106 of file opengl_enc.c.
| typedef GLsizei count |
Definition at line 108 of file opengl_enc.c.
| typedef GLsizei GLboolean transpose |
Definition at line 108 of file opengl_enc.c.
| typedef GLsizei GLboolean const GLfloat* value |
Definition at line 108 of file opengl_enc.c.
| typedef GLenum pname |
Definition at line 113 of file opengl_enc.c.
Definition at line 113 of file opengl_enc.c.
| typedef GLsizei bufSize |
Definition at line 114 of file opengl_enc.c.
| typedef GLsizei GLsizei * length |
Definition at line 114 of file opengl_enc.c.
| typedef GLsizei GLsizei char * infoLog |
Definition at line 114 of file opengl_enc.c.
Definition at line 115 of file opengl_enc.c.
| typedef GLsizei const char* * string |
Definition at line 119 of file opengl_enc.c.
| typedef void | ( | APIENTRY * | FF_PFNGLACTIVETEXTUREPROC | ) |
| typedef GLint | ( | APIENTRY * | FF_PFNGLGETATTRIBLOCATIONPROC | ) |
Referenced by opengl_compile_shaders(), and opengl_load_shader().
| typedef GLuint | ( | APIENTRY * | FF_PFNGLCREATEPROGRAMPROC | ) |
Referenced by opengl_load_shader().
|
static |
Definition at line 868 of file opengl_enc.c.
Referenced by opengl_resize(), and opengl_write_header().
|
static |
Definition at line 1187 of file opengl_enc.c.
Referenced by opengl_resize(), opengl_write_frame(), and opengl_write_packet().
|
static |
Definition at line 995 of file opengl_enc.c.
Referenced by opengl_write_header().
|
static |
Definition at line 280 of file opengl_enc.c.
Referenced by opengl_write_trailer().
|
static |
Definition at line 306 of file opengl_enc.c.
Referenced by opengl_control_message().
|
static |
Definition at line 327 of file opengl_enc.c.
|
static |
Definition at line 501 of file opengl_enc.c.
Referenced by opengl_write_header().
|
static |
Definition at line 556 of file opengl_enc.c.
Referenced by opengl_prepare_vertex().
|
static |
Definition at line 562 of file opengl_enc.c.
Referenced by opengl_prepare_vertex().
|
static |
Definition at line 582 of file opengl_enc.c.
Referenced by opengl_write_header().
|
static |
Definition at line 636 of file opengl_enc.c.
Referenced by opengl_compile_shaders().
|
static |
Definition at line 646 of file opengl_enc.c.
Referenced by opengl_get_plane_pointer().
|
static |
Definition at line 662 of file opengl_enc.c.
Referenced by opengl_write_header().
|
static |
Definition at line 674 of file opengl_enc.c.
Referenced by opengl_prepare_vertex().
|
static |
Definition at line 698 of file opengl_enc.c.
Referenced by opengl_configure_texture(), and opengl_prepare_vertex().
|
static |
Definition at line 716 of file opengl_enc.c.
Referenced by opengl_write_header().
|
static |
Definition at line 748 of file opengl_enc.c.
Referenced by opengl_compile_shaders().
|
static |
Definition at line 779 of file opengl_enc.c.
Referenced by opengl_init_context().
|
static |
Definition at line 848 of file opengl_enc.c.
Referenced by opengl_init_context().
|
static |
Definition at line 913 of file opengl_enc.c.
Referenced by opengl_draw().
|
static |
Definition at line 938 of file opengl_enc.c.
Referenced by opengl_write_header().
|
static |
Definition at line 966 of file opengl_enc.c.
Referenced by opengl_write_trailer().
|
static |
Definition at line 981 of file opengl_enc.c.
Referenced by opengl_write_header().
|
static |
Definition at line 1054 of file opengl_enc.c.
|
static |
Definition at line 1120 of file opengl_enc.c.
|
static |
Definition at line 1248 of file opengl_enc.c.
|
static |
Definition at line 1253 of file opengl_enc.c.
|
static |
Definition at line 167 of file opengl_enc.c.
Referenced by opengl_draw(), and opengl_init_context().
|
static |
Referenced by opengl_get_fragment_shader_code(), and opengl_get_texture_params().
|
static |
Definition at line 1263 of file opengl_enc.c.
|
static |
Definition at line 1270 of file opengl_enc.c.
| AVOutputFormat ff_opengl_muxer |
Definition at line 1277 of file opengl_enc.c.
1.8.2