aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/pixdesc.h
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-02-16 16:55:28 +0000
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-02-16 16:55:28 +0000
commit73bd20c4d238026937ff07713c035d3cfe66b151 (patch)
tree59fc09c029351266f80726e0aecf7bba5853ff5d /libavutil/pixdesc.h
parent3f462fcf76bb99bc2cb14575eaa7a020595ca277 (diff)
parent6695f178a5929eab91d3da7e9023999f1774bd0e (diff)
downloadffmpeg-73bd20c4d238026937ff07713c035d3cfe66b151.tar.gz
Merge commit '6695f178a5929eab91d3da7e9023999f1774bd0e'
* commit '6695f178a5929eab91d3da7e9023999f1774bd0e': pixdesc: Use AV_CEIL_RSHIFT in documentation Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavutil/pixdesc.h')
-rw-r--r--libavutil/pixdesc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h
index b1d218db48..3b0bcdb3d8 100644
--- a/libavutil/pixdesc.h
+++ b/libavutil/pixdesc.h
@@ -85,16 +85,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.
*/