mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
cellVdec: (experimental) allow AV_PIX_FMT_YUVJ420P
This commit is contained in:
parent
9a27cc9442
commit
5ef3465f65
1 changed files with 5 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue