Commit 1bd9e72a authored by Felix Paul Kühne's avatar Felix Paul Kühne

generic opengl code: expose helper function

parent 6a968719
......@@ -95,11 +95,6 @@
# define SUPPORTS_FIXED_PIPELINE
#endif
static const vlc_fourcc_t gl_subpicture_chromas[] = {
VLC_CODEC_RGBA,
0
};
typedef struct {
GLuint texture;
unsigned format;
......@@ -1002,7 +997,7 @@ static const GLfloat identity[] = {
0.0f, 0.0f, 0.0f, 1.0f
};
static void orientationTransformMatrix(GLfloat matrix[static 16], video_orientation_t orientation) {
void orientationTransformMatrix(GLfloat matrix[static 16], video_orientation_t orientation) {
memcpy(matrix, identity, sizeof(identity));
......
......@@ -67,6 +67,11 @@
# endif
#endif
static const vlc_fourcc_t gl_subpicture_chromas[] = {
VLC_CODEC_RGBA,
0
};
static inline bool HasExtension(const char *apis, const char *api)
{
size_t apilen = strlen(api);
......@@ -80,6 +85,8 @@ static inline bool HasExtension(const char *apis, const char *api)
return false;
}
void orientationTransformMatrix(GLfloat matrix[static 16], video_orientation_t orientation);
typedef struct vout_display_opengl_t vout_display_opengl_t;
vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment