Skip to content

avcodec/qsvenc_av1: add High profile and YUV 4:4:4 pixel format support#371

Open
kumarsac wants to merge 1 commit intointel:masterfrom
kumarsac:qsv-av1
Open

avcodec/qsvenc_av1: add High profile and YUV 4:4:4 pixel format support#371
kumarsac wants to merge 1 commit intointel:masterfrom
kumarsac:qsv-av1

Conversation

@kumarsac
Copy link
Copy Markdown

@kumarsac kumarsac commented Mar 6, 2026

AV1 High profile (MFX_PROFILE_AV1_HIGH, profile_idc=2) is required for 4:4:4 chroma subsampling. Expose it as a selectable profile option alongside the existing main/unknown entries.

Add AV_PIX_FMT_VUYX (YUV 4:4:4 8-bit packed) and AV_PIX_FMT_XV30 (YUV 4:4:4 10-bit packed) to CODEC_PIXFMTS so the format negotiation path can select them.

AV1 High profile (MFX_PROFILE_AV1_HIGH, profile_idc=2) is required
for 4:4:4 chroma subsampling. Expose it as a selectable profile option
alongside the existing main/unknown entries.

Add AV_PIX_FMT_VUYX (YUV 4:4:4 8-bit packed) and AV_PIX_FMT_XV30
(YUV 4:4:4 10-bit packed) to CODEC_PIXFMTS so the format negotiation
path can select them.

Signed-off-by: Kumar, Sachin <sachin.kumar@intel.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces AV1 4:4:4 support improvements for the QSV AV1 encoder by exposing the AV1 High profile option and advertising additional 4:4:4 packed pixel formats so FFmpeg’s format negotiation can select them.

Changes:

  • Add an AV1 QSV encoder profile=high option mapped to MFX_PROFILE_AV1_HIGH.
  • Extend ff_av1_qsv_encoder supported pixel formats to include AV_PIX_FMT_VUYX (8-bit 4:4:4 packed) and AV_PIX_FMT_XV30 (10-bit 4:4:4 packed).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- CODEC_PIXFMTS(AV_PIX_FMT_NV12, AV_PIX_FMT_P010, AV_PIX_FMT_QSV),
+ CODEC_PIXFMTS(AV_PIX_FMT_NV12, AV_PIX_FMT_P010,
+ AV_PIX_FMT_VUYX, AV_PIX_FMT_XV30,
+ AV_PIX_FMT_QSV),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cosmetic changes: Just show what is changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants