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 d71901757c avcodec/dnxhddec: Increase alpha channel 
`avpriv_request_sample` verbosity
d71901757c is described below

commit d71901757c646501ff17bd76d5b6927809f58835
Author:     AJ Granowski <[email protected]>
AuthorDate: Wed Sep 30 15:54:58 2026 -0500
Commit:     AJ Granowski <[email protected]>
CommitDate: Wed Sep 30 17:37:56 2026 -0500

    avcodec/dnxhddec: Increase alpha channel `avpriv_request_sample` verbosity
    
    The alpha channel of VC-3 bitstreams are encoded either as DCT-encoded or 
RLE-encoded alpha blocks. This change differentiates those two when requesting 
a sample.
    This is an incremental change towards adding DCT block alpha decoding for 
the DNxHD codec. Following PRs will work from the VC-3 standard 
https://pub.smpte.org/doc/st2019-1/20160518-pub/ 8.1.2
    
    Related tickets: https://trac.ffmpeg.org/ticket/3707
---
 libavcodec/dnxhddec.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index 7ec61f9ebd..7ba01351d9 100644
--- a/libavcodec/dnxhddec.c
+++ b/libavcodec/dnxhddec.c
@@ -208,8 +208,13 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame 
*frame,
     ctx->mbaff = (buf[0x6] >> 5) & 1;
     ctx->alpha = buf[0x7] & 1;
     ctx->lla   = (buf[0x7] >> 1) & 1;
-    if (ctx->alpha)
-        avpriv_request_sample(ctx->avctx, "alpha");
+    if (ctx->alpha) {
+        if (ctx->lla) {
+            avpriv_request_sample(ctx->avctx, "RLE block alpha decoding");
+        } else {
+            avpriv_request_sample(ctx->avctx, "DCT block alpha decoding");
+        }
+    }
 
     ctx->height = AV_RB16(buf + 0x18);
     ctx->width  = AV_RB16(buf + 0x1a);

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to