]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/prores_aw : cosmetic indent and add comment to describe frame header value
authorMartin Vignali <martin.vignali@gmail.com>
Thu, 8 Nov 2018 21:05:18 +0000 (22:05 +0100)
committerMartin Vignali <martin.vignali@gmail.com>
Thu, 8 Nov 2018 21:21:10 +0000 (22:21 +0100)
description are based on multimedia wiki documentation

libavcodec/proresenc_anatoliy.c

index 4117fc28454d309c56fe9f7d494ce7388702dd4c..bbcb03294a94ac0253a15ffb49e3b3687ab45fa5 100644 (file)
@@ -541,7 +541,7 @@ static int prores_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     bytestream_put_buffer(&buf, "icpf", 4);
 
     bytestream_put_be16(&buf, header_size);
-    bytestream_put_be16(&buf, 0);
+    bytestream_put_be16(&buf, 0); /* version */
     bytestream_put_buffer(&buf, "fmpg", 4);
     bytestream_put_be16(&buf, avctx->width);
     bytestream_put_be16(&buf, avctx->height);
@@ -550,7 +550,7 @@ static int prores_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     } else {
         *buf++ = 0x82; // 422, not interlaced
     }
-    *buf++ = 0;
+    *buf++ = 0; /* reserved */
     *buf++ = pict->color_primaries;
     *buf++ = pict->color_trc;
     *buf++ = pict->colorspace;
@@ -561,10 +561,10 @@ static int prores_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
             *buf++ = 0xA2;/* src b64a and 16b alpha */
         }
     } else {
-    *buf++ = 32;
+        *buf++ = 32;/* src v210 and no alpha */
     }
-    *buf++ = 0;
-    *buf++ = 3;
+    *buf++ = 0; /* reserved */
+    *buf++ = 3; /* luma and chroma matrix present */
 
     bytestream_put_buffer(&buf, QMAT_LUMA[avctx->profile],   64);
     bytestream_put_buffer(&buf, QMAT_CHROMA[avctx->profile], 64);