img_format: document a minor guarantee for certain imgfmt metadata

This commit is contained in:
wm4 2019-10-20 01:37:14 +02:00
parent e6fb8b3c97
commit 986daac45e
1 changed files with 1 additions and 0 deletions

View File

@ -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];
};