This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 5b8a4a0e14 avcodec/d3d12va_encode_h264: simplify deblock default option
5b8a4a0e14 is described below
commit 5b8a4a0e14cde74704b13493eb33cce3be260283
Author: Tong Wu <[email protected]>
AuthorDate: Sat Feb 28 17:16:35 2026 +0800
Commit: Tong Wu <[email protected]>
CommitDate: Wed Mar 4 14:25:00 2026 +0000
avcodec/d3d12va_encode_h264: simplify deblock default option
The deblocking filter is enabled by default. This behavior is the same
as priv->deblock == 1.
Signed-off-by: Tong Wu <[email protected]>
---
libavcodec/d3d12va_encode_h264.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/d3d12va_encode_h264.c b/libavcodec/d3d12va_encode_h264.c
index dd745c6895..47c6953d1b 100644
--- a/libavcodec/d3d12va_encode_h264.c
+++ b/libavcodec/d3d12va_encode_h264.c
@@ -295,14 +295,14 @@ static int
d3d12va_encode_h264_get_encoder_caps(AVCodecContext *avctx)
config->ConfigurationFlags =
D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_NONE;
// Deblocking filter configuration
- if (priv->deblock == 1) {
+ if (priv->deblock) {
if (h264_caps.DisableDeblockingFilterSupportedModes &
D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_0_ALL_LUMA_CHROMA_SLICE_BLOCK_EDGES_ALWAYS_FILTERED)
{
config->DisableDeblockingFilterConfig =
D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_0_ALL_LUMA_CHROMA_SLICE_BLOCK_EDGES_ALWAYS_FILTERED;
} else {
av_log(avctx, AV_LOG_ERROR, "Requested deblocking filter enable
mode not supported by driver.\n");
return AVERROR(ENOTSUP);
}
- } else if (priv->deblock == 0) {
+ } else {
if (h264_caps.DisableDeblockingFilterSupportedModes &
D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_1_DISABLE_ALL_SLICE_BLOCK_EDGES)
{
config->DisableDeblockingFilterConfig =
D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_1_DISABLE_ALL_SLICE_BLOCK_EDGES;
} else {
@@ -646,7 +646,7 @@ static const AVOption d3d12va_encode_h264_options[] = {
#undef LEVEL
{ "deblock", "Deblocking filter mode",
- OFFSET(deblock), AV_OPT_TYPE_BOOL, { .i64 = -1 }, -1, 1, FLAGS },
+ OFFSET(deblock), AV_OPT_TYPE_BOOL, { .i64 = 1 }, 0, 1, FLAGS },
{ "coder", "Entropy coder type",
OFFSET(unit_opts.cabac), AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 1, FLAGS,
"coder" },
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]