X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fpixdesc.h;h=3bb10f777a92f9051d122a1ef9cd602e4700eb88;hb=74b1bf632f125a795e66e5fd0a060b9c7c55b7a3;hp=aea1e38cf64d4311e0cd87ebe758591be9b3ea0d;hpb=d336bfcf69fee159e9dba5e5e486ddb1aba61aab;p=ffmpeg diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h index aea1e38cf64..3bb10f777a9 100644 --- a/libavutil/pixdesc.h +++ b/libavutil/pixdesc.h @@ -84,16 +84,16 @@ typedef struct AVPixFmtDescriptor { /** * Amount to shift the luma width right to find the chroma width. * For YV12 this is 1 for example. - * chroma_width = -((-luma_width) >> log2_chroma_w) + * chroma_width = AV_CEIL_RSHIFT(luma_width, log2_chroma_w) * The note above is needed to ensure rounding up. * This value only refers to the chroma components. */ - uint8_t log2_chroma_w; ///< chroma_width = -((-luma_width )>>log2_chroma_w) + uint8_t log2_chroma_w; /** * Amount to shift the luma height right to find the chroma height. * For YV12 this is 1 for example. - * chroma_height= -((-luma_height) >> log2_chroma_h) + * chroma_height= AV_CEIL_RSHIFT(luma_height, log2_chroma_h) * The note above is needed to ensure rounding up. * This value only refers to the chroma components. */