Skip to content

Commit

Permalink
fixup! lavf/rkrga: add force_{yuv,chroma} options for vpp filter
Browse files Browse the repository at this point in the history
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
  • Loading branch information
nyanmisaka committed Feb 29, 2024
1 parent 6cccf9c commit 3aad30a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libavfilter/vf_vpp_rkrga.c
Expand Up @@ -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;

Expand Down

0 comments on commit 3aad30a

Please sign in to comment.