diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-01-21 18:00:15 -0500 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-01-25 12:02:20 -0500 |
commit | 6695f178a5929eab91d3da7e9023999f1774bd0e (patch) | |
tree | e02df9f800b638fd14c8036d0632aab713d2ed04 /libavutil | |
parent | 1546a41adae818b340acdd9b5dacd6d0a92b6507 (diff) | |
download | ffmpeg-streaming-6695f178a5929eab91d3da7e9023999f1774bd0e.zip ffmpeg-streaming-6695f178a5929eab91d3da7e9023999f1774bd0e.tar.gz |
pixdesc: Use AV_CEIL_RSHIFT in documentation
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/pixdesc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h index aea1e38..3bb10f7 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. */ |