mirror of https://github.com/mpv-player/mpv
zimg: correct RGB30 order (probably)
According to the definition of the GL format, and the definition in img_format.h, and the actual output by vo_gpu, the order of components was probably wrong. It's exceedingly likely that the vo_drm format (for which this was originally written) has the same layout, so this was probably a bug from when the zimg wrapper code was refactored.
This commit is contained in:
parent
e58e650a97
commit
20c1bd8a5e
|
@ -293,7 +293,7 @@ PA_WORD_3(pa_ccc8z8, uint32_t, uint8_t, 0, 8, 16, 0)
|
|||
UN_WORD_3(un_x8ccc8, uint32_t, uint8_t, 8, 16, 24, 0xFFu)
|
||||
PA_WORD_3(pa_z8ccc8, uint32_t, uint8_t, 8, 16, 24, 0)
|
||||
UN_WORD_3(un_ccc10x2, uint32_t, uint16_t, 0, 10, 20, 0x3FFu)
|
||||
PA_WORD_3(pa_ccc10z2, uint32_t, uint16_t, 0, 10, 20, 0)
|
||||
PA_WORD_3(pa_ccc10z2, uint32_t, uint16_t, 20, 10, 0, 0)
|
||||
|
||||
#define PA_WORD_2(name, packed_t, plane_t, sh_c0, sh_c1, pad) \
|
||||
static void name(void *dst, void *src[], int x0, int x1) { \
|
||||
|
|
Loading…
Reference in New Issue