mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
media: hevc_dec: Drop the new image formats until we have Mesa 24
Supporting GL rendering of the new HEVC decoder pixel formats requires Mesa 24.2.5 or later. There are a couple of minor issues holding up switching to Mesa 24. Drop the new pixel formats from enum_fmt so that FFMpeg will use the older ones that earlier versions of Mesa do support. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
This commit is contained in:
committed by
Dom Cobley
parent
e4e673f0c3
commit
30ba409af2
@@ -284,8 +284,8 @@ static u32 pixelformat_from_sps(const struct v4l2_ctrl_hevc_sps * const sps,
|
||||
const int index)
|
||||
{
|
||||
static const u32 all_formats[] = {
|
||||
V4L2_PIX_FMT_NV12MT_COL128,
|
||||
V4L2_PIX_FMT_NV12MT_10_COL128,
|
||||
//V4L2_PIX_FMT_NV12MT_COL128,
|
||||
//V4L2_PIX_FMT_NV12MT_10_COL128,
|
||||
V4L2_PIX_FMT_NV12_COL128,
|
||||
V4L2_PIX_FMT_NV12_10_COL128,
|
||||
};
|
||||
@@ -298,11 +298,12 @@ static u32 pixelformat_from_sps(const struct v4l2_ctrl_hevc_sps * const sps,
|
||||
pf = all_formats[index];
|
||||
} else {
|
||||
if (index == 0) {
|
||||
if (sps->bit_depth_luma_minus8 == 0)
|
||||
/* if (sps->bit_depth_luma_minus8 == 0)
|
||||
pf = V4L2_PIX_FMT_NV12MT_COL128;
|
||||
else if (sps->bit_depth_luma_minus8 == 2)
|
||||
pf = V4L2_PIX_FMT_NV12MT_10_COL128;
|
||||
} else if (index == 1) {
|
||||
*/
|
||||
if (sps->bit_depth_luma_minus8 == 0)
|
||||
pf = V4L2_PIX_FMT_NV12_COL128;
|
||||
else if (sps->bit_depth_luma_minus8 == 2)
|
||||
|
||||
Reference in New Issue
Block a user