mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
cellVdec: (experimental) allow AV_PIX_FMT_YUVJ420P
This commit is contained in:
parent
9a27cc9442
commit
5ef3465f65
|
|
@ -696,8 +696,11 @@ error_code cellVdecGetPicture(u32 handle, vm::cptr<CellVdecPicFormat> format, vm
|
||||||
|
|
||||||
switch (frame->format)
|
switch (frame->format)
|
||||||
{
|
{
|
||||||
case AV_PIX_FMT_YUV420P: in_f = alpha_plane ? AV_PIX_FMT_YUVA420P : AV_PIX_FMT_YUV420P; break;
|
case AV_PIX_FMT_YUVJ420P:
|
||||||
|
cellVdec.error("cellVdecGetPicture(): experimental AVPixelFormat (%d). This may cause suboptimal video quality.", frame->format);
|
||||||
|
case AV_PIX_FMT_YUV420P:
|
||||||
|
in_f = alpha_plane ? AV_PIX_FMT_YUVA420P : static_cast<AVPixelFormat>(frame->format);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
fmt::throw_exception("Unknown format (%d)" HERE, frame->format);
|
fmt::throw_exception("Unknown format (%d)" HERE, frame->format);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue