summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/formats.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/formats.h')
-rw-r--r--video/out/opengl/formats.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/video/out/opengl/formats.h b/video/out/opengl/formats.h
index d4d38c1150..3da6ede82a 100644
--- a/video/out/opengl/formats.h
+++ b/video/out/opengl/formats.h
@@ -43,42 +43,10 @@ enum {
extern const struct gl_format gl_formats[];
int gl_format_feature_flags(GL *gl);
-const struct gl_format *gl_find_internal_format(GL *gl, GLint internal_format);
-const struct gl_format *gl_find_format(GL *gl, int type, int flags,
- int bytes_per_component, int n_components);
-const struct gl_format *gl_find_unorm_format(GL *gl, int bytes_per_component,
- int n_components);
-const struct gl_format *gl_find_uint_format(GL *gl, int bytes_per_component,
- int n_components);
-const struct gl_format *gl_find_float16_format(GL *gl, int n_components);
int gl_format_type(const struct gl_format *format);
-bool gl_format_is_regular(const struct gl_format *format);
GLenum gl_integer_format_to_base(GLenum format);
-bool gl_is_integer_format(GLenum format);
int gl_component_size(GLenum type);
int gl_format_components(GLenum format);
int gl_bytes_per_pixel(GLenum format, GLenum type);
-struct gl_imgfmt_desc {
- int num_planes;
- const struct gl_format *planes[4];
- // Chroma pixel size (1x1 is 4:4:4)
- uint8_t chroma_w, chroma_h;
- // Component storage size in bits (possibly padded). For formats with
- // different sizes per component, this is arbitrary. For padded formats
- // like P010 or YUV420P10, padding is included.
- int component_bits;
- // Like mp_regular_imgfmt.component_pad.
- int component_pad;
- // For each texture and each texture output (rgba order) describe what
- // component it returns.
- // The values are like the values in mp_regular_imgfmt_plane.components[].
- // Access as components[plane_nr][component_index]. Set unused items to 0.
- // This pretends GL_RG is used instead of GL_LUMINANCE_ALPHA. The renderer
- // fixes this later.
- uint8_t components[4][4];
-};
-
-bool gl_get_imgfmt_desc(GL *gl, int imgfmt, struct gl_imgfmt_desc *out);
-
#endif