mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 18:11:11 +01:00
fixup! lavf/rkrga: add force_{yuv,chroma} options for vpp filter
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
97638cffe1
commit
d43f4f54e6
1 changed files with 3 additions and 3 deletions
|
|
@ -301,15 +301,15 @@ static av_cold void config_force_format(AVFilterContext *ctx,
|
|||
out_depth = (r->force_yuv == FORCE_YUV_8BIT) ? 8 :
|
||||
(r->force_yuv == FORCE_YUV_10BIT) ? 10 : 0;
|
||||
|
||||
if (!out_depth)
|
||||
return;
|
||||
|
||||
/* Auto fallback to 8-bit fmts on RGA2 */
|
||||
rga_ver = querystring(RGA_VERSION);
|
||||
has_rga3 = !!strstr(rga_ver, "RGA_3");
|
||||
if (out_depth >= 10 && !has_rga3)
|
||||
out_depth = 8;
|
||||
|
||||
if (!out_depth)
|
||||
return;
|
||||
|
||||
desc = av_pix_fmt_desc_get(in_format);
|
||||
is_yuv = !(desc->flags & AV_PIX_FMT_FLAG_RGB) && desc->nb_components >= 2;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue