[PR #15] [CLOSED] lavf/rkrga: add force_{yuv,chroma} options for vpp filter #239

Closed
opened 2025-12-23 10:36:33 +01:00 by backuprepo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nyanmisaka/ffmpeg-rockchip/pull/15
Author: @nyanmisaka
Created: 1/22/2024
Status: Closed

Base: masterHead: force-yuv-opts


📝 Commits (1)

  • b4cf4ee lavf/rkrga: add force_{yuv,chroma} options for vpp filter

📊 Changes

1 file changed (+78 additions, -0 deletions)

View changed files

📝 libavfilter/vf_vpp_rkrga.c (+78 -0)

📄 Description

  • lavf/rkrga: add force_{yuv,chroma} options for vpp filter

They are used to set the output to an uncompact and linear format while maintaining the same chroma sub-sampling with the input. The user does not have to know the input format in advance.

A more user-friendly version of #13. It is impossible for FFmpeg noobs to know nv15 and nv20.
Also since the only use case is for EGL based video players, there is no point to add additional RGB formats.

-vf "scale_rkrga=force_yuv=8bit" // auto cast nv15->nv12, or nv20->nv16
-vf "scale_rkrga=force_yuv=10bit" // auto cast nv15->p010, or nv20->p210
-vf "scale_rkrga=force_yuv=8bit:force_chroma=422sp" // enforce 8bit 422sp format

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nyanmisaka/ffmpeg-rockchip/pull/15 **Author:** [@nyanmisaka](https://github.com/nyanmisaka) **Created:** 1/22/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `force-yuv-opts` --- ### 📝 Commits (1) - [`b4cf4ee`](https://github.com/nyanmisaka/ffmpeg-rockchip/commit/b4cf4ee1b431bc5012449c8d6e86a42324c184c5) lavf/rkrga: add `force_{yuv,chroma}` options for vpp filter ### 📊 Changes **1 file changed** (+78 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `libavfilter/vf_vpp_rkrga.c` (+78 -0) </details> ### 📄 Description - lavf/rkrga: add `force_{yuv,chroma}` options for vpp filter They are used to set the output to an uncompact and linear format while maintaining the same chroma sub-sampling with the input. The user does not have to know the input format in advance. A more user-friendly version of #13. It is impossible for FFmpeg noobs to know nv15 and nv20. Also since the only use case is for EGL based video players, there is no point to add additional RGB formats. ``` -vf "scale_rkrga=force_yuv=8bit" // auto cast nv15->nv12, or nv20->nv16 -vf "scale_rkrga=force_yuv=10bit" // auto cast nv15->p010, or nv20->p210 -vf "scale_rkrga=force_yuv=8bit:force_chroma=422sp" // enforce 8bit 422sp format ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
backuprepo 2025-12-23 10:36:33 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/ffmpeg-rockchip#239
No description provided.