summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-20 01:37:14 +0200
committerwm4 <wm4@nowhere>2019-10-20 01:44:22 +0200
commit986daac45e4a7345ad47c79ac8f663e91e724442 (patch)
tree6351f28a758e1142e1a40ee10bc54b44da47a82a
parente6fb8b3c9792dcbc5b2ac36d6f06f3be3fdb4b8e (diff)
downloadmpv-986daac45e4a7345ad47c79ac8f663e91e724442.tar.bz2
mpv-986daac45e4a7345ad47c79ac8f663e91e724442.tar.xz
img_format: document a minor guarantee for certain imgfmt metadata
-rw-r--r--video/img_format.h1
1 files changed, 1 insertions, 0 deletions
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];
};