From 986daac45e4a7345ad47c79ac8f663e91e724442 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 20 Oct 2019 01:37:14 +0200 Subject: img_format: document a minor guarantee for certain imgfmt metadata --- video/img_format.h | 1 + 1 file changed, 1 insertion(+) diff --git a/video/img_format.h b/video/img_format.h index 1b5e97a8d3..815afea733 100644 --- a/video/img_format.h +++ b/video/img_format.h @@ -115,6 +115,7 @@ struct mp_regular_imgfmt_plane { uint8_t num_components; // 1 is luminance/red/gray, 2 is green/Cb, 3 is blue/Cr, 4 is alpha. // 0 is used for padding (undefined contents). + // It is guaranteed that non-0 values occur only once in the whole format. uint8_t components[MP_NUM_COMPONENTS]; }; -- cgit v1.2.3