mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
gallium: add P016 format
Same layout as NV12, but 16bit per channel instead of 8. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Mark Thompson <sw@jkqxz.net>
This commit is contained in:
parent
920ab07566
commit
62cff79378
4 changed files with 42 additions and 0 deletions
|
|
@ -320,6 +320,8 @@ PIPE_FORMAT_IYUV , other, 1, 1, x8 , x8 , x8 , x8 , xyzw, y
|
||||||
PIPE_FORMAT_NV12 , other, 1, 1, x8 , x8 , x8 , x8 , xyzw, yuv
|
PIPE_FORMAT_NV12 , other, 1, 1, x8 , x8 , x8 , x8 , xyzw, yuv
|
||||||
PIPE_FORMAT_NV21 , other, 1, 1, x8 , x8 , x8 , x8 , xyzw, yuv
|
PIPE_FORMAT_NV21 , other, 1, 1, x8 , x8 , x8 , x8 , xyzw, yuv
|
||||||
|
|
||||||
|
PIPE_FORMAT_P016 , other, 1, 1, x16 , x16 , , , xyzw, yuv
|
||||||
|
|
||||||
# Usually used to implement IA44 and AI44 formats in video decoding
|
# Usually used to implement IA44 and AI44 formats in video decoding
|
||||||
PIPE_FORMAT_A4R4_UNORM , plain, 1, 1, un4 , un4 , , , y00x, rgb, un4, un4 , , , x00y
|
PIPE_FORMAT_A4R4_UNORM , plain, 1, 1, un4 , un4 , , , y00x, rgb, un4, un4 , , , x00y
|
||||||
PIPE_FORMAT_R4A4_UNORM , plain, 1, 1, un4 , un4 , , , x00y, rgb, un4, un4 , , , y00x
|
PIPE_FORMAT_R4A4_UNORM , plain, 1, 1, un4 , un4 , , , x00y, rgb, un4, un4 , , , y00x
|
||||||
|
|
|
||||||
|
Can't render this file because it contains an unexpected character in line 8 and column 3.
|
|
|
@ -1015,6 +1015,25 @@ util_format_nv21_pack_rgba_float(uint8_t *dst_row, unsigned dst_stride,
|
||||||
void
|
void
|
||||||
util_format_nv21_fetch_rgba_float(float *dst, const uint8_t *src,
|
util_format_nv21_fetch_rgba_float(float *dst, const uint8_t *src,
|
||||||
unsigned i, unsigned j) {}
|
unsigned i, unsigned j) {}
|
||||||
|
void
|
||||||
|
util_format_p016_unpack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
|
||||||
|
const uint8_t *src_row, unsigned src_stride,
|
||||||
|
unsigned width, unsigned height) {}
|
||||||
|
void
|
||||||
|
util_format_p016_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
|
||||||
|
const uint8_t *src_row, unsigned src_stride,
|
||||||
|
unsigned width, unsigned height) {}
|
||||||
|
void
|
||||||
|
util_format_p016_unpack_rgba_float(float *dst_row, unsigned dst_stride,
|
||||||
|
const uint8_t *src_row, unsigned src_stride,
|
||||||
|
unsigned width, unsigned height) {}
|
||||||
|
void
|
||||||
|
util_format_p016_pack_rgba_float(uint8_t *dst_row, unsigned dst_stride,
|
||||||
|
const float *src_row, unsigned src_stride,
|
||||||
|
unsigned width, unsigned height) {}
|
||||||
|
void
|
||||||
|
util_format_p016_fetch_rgba_float(float *dst, const uint8_t *src,
|
||||||
|
unsigned i, unsigned j) {}
|
||||||
|
|
||||||
void
|
void
|
||||||
util_format_r8g8_r8b8_unorm_unpack_rgba_float(float *dst_row, unsigned dst_stride,
|
util_format_r8g8_r8b8_unorm_unpack_rgba_float(float *dst_row, unsigned dst_stride,
|
||||||
|
|
|
||||||
|
|
@ -266,6 +266,25 @@ void
|
||||||
util_format_nv21_fetch_rgba_float(float *dst, const uint8_t *src,
|
util_format_nv21_fetch_rgba_float(float *dst, const uint8_t *src,
|
||||||
unsigned i, unsigned j);
|
unsigned i, unsigned j);
|
||||||
void
|
void
|
||||||
|
util_format_p016_unpack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
|
||||||
|
const uint8_t *src_row, unsigned src_stride,
|
||||||
|
unsigned width, unsigned height);
|
||||||
|
void
|
||||||
|
util_format_p016_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
|
||||||
|
const uint8_t *src_row, unsigned src_stride,
|
||||||
|
unsigned width, unsigned height);
|
||||||
|
void
|
||||||
|
util_format_p016_unpack_rgba_float(float *dst_row, unsigned dst_stride,
|
||||||
|
const uint8_t *src_row, unsigned src_stride,
|
||||||
|
unsigned width, unsigned height);
|
||||||
|
void
|
||||||
|
util_format_p016_pack_rgba_float(uint8_t *dst_row, unsigned dst_stride,
|
||||||
|
const float *src_row, unsigned src_stride,
|
||||||
|
unsigned width, unsigned height);
|
||||||
|
void
|
||||||
|
util_format_p016_fetch_rgba_float(float *dst, const uint8_t *src,
|
||||||
|
unsigned i, unsigned j);
|
||||||
|
void
|
||||||
util_format_r8g8_b8g8_unorm_unpack_rgba_float(float *dst_row, unsigned dst_stride,
|
util_format_r8g8_b8g8_unorm_unpack_rgba_float(float *dst_row, unsigned dst_stride,
|
||||||
const uint8_t *src_row, unsigned src_stride,
|
const uint8_t *src_row, unsigned src_stride,
|
||||||
unsigned width, unsigned height);
|
unsigned width, unsigned height);
|
||||||
|
|
|
||||||
|
|
@ -389,6 +389,8 @@ enum pipe_format {
|
||||||
PIPE_FORMAT_ASTC_12x10_SRGB = 305,
|
PIPE_FORMAT_ASTC_12x10_SRGB = 305,
|
||||||
PIPE_FORMAT_ASTC_12x12_SRGB = 306,
|
PIPE_FORMAT_ASTC_12x12_SRGB = 306,
|
||||||
|
|
||||||
|
PIPE_FORMAT_P016 = 307,
|
||||||
|
|
||||||
PIPE_FORMAT_COUNT
|
PIPE_FORMAT_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue