mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
API: add GST_ROUND_DOWN_* macros (#401781).
Original commit message from CVS: * docs/gst/gstreamer-sections.txt: * gst/gstutils.h: API: add GST_ROUND_DOWN_* macros (#401781).
This commit is contained in:
parent
636e022fed
commit
12aaf988aa
3 changed files with 73 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-01-29 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* docs/gst/gstreamer-sections.txt:
|
||||
* gst/gstutils.h:
|
||||
API: add GST_ROUND_DOWN_* macros (#401781).
|
||||
|
||||
2007-01-27 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* docs/gst/gstreamer.types.in:
|
||||
|
|
|
@ -2096,6 +2096,12 @@ GST_ROUND_UP_8
|
|||
GST_ROUND_UP_16
|
||||
GST_ROUND_UP_32
|
||||
GST_ROUND_UP_64
|
||||
GST_ROUND_DOWN_2
|
||||
GST_ROUND_DOWN_4
|
||||
GST_ROUND_DOWN_8
|
||||
GST_ROUND_DOWN_16
|
||||
GST_ROUND_DOWN_32
|
||||
GST_ROUND_DOWN_64
|
||||
|
||||
gst_atomic_int_set
|
||||
gst_flow_get_name
|
||||
|
|
|
@ -462,47 +462,102 @@ GST_BOILERPLATE_FULL (type, type_as_function, parent_type, \
|
|||
|
||||
/**
|
||||
* GST_ROUND_UP_2:
|
||||
* @num: value round up
|
||||
* @num: integer value to round up
|
||||
*
|
||||
* Make number divideable by two without a rest.
|
||||
*/
|
||||
#define GST_ROUND_UP_2(num) (((num)+1)&~1)
|
||||
/**
|
||||
* GST_ROUND_UP_4:
|
||||
* @num: value round up
|
||||
* @num: integer value to round up
|
||||
*
|
||||
* Make number divideable by four without a rest.
|
||||
*/
|
||||
#define GST_ROUND_UP_4(num) (((num)+3)&~3)
|
||||
/**
|
||||
* GST_ROUND_UP_8:
|
||||
* @num: value round up
|
||||
* @num: integer value to round up
|
||||
*
|
||||
* Make number divideable by eight without a rest.
|
||||
*/
|
||||
#define GST_ROUND_UP_8(num) (((num)+7)&~7)
|
||||
/**
|
||||
* GST_ROUND_UP_16:
|
||||
* @num: value round up
|
||||
* @num: integer value to round up
|
||||
*
|
||||
* Make number divideable by 16 without a rest.
|
||||
*/
|
||||
#define GST_ROUND_UP_16(num) (((num)+15)&~15)
|
||||
/**
|
||||
* GST_ROUND_UP_32:
|
||||
* @num: value round up
|
||||
* @num: integer value to round up
|
||||
*
|
||||
* Make number divideable by 32 without a rest.
|
||||
*/
|
||||
#define GST_ROUND_UP_32(num) (((num)+31)&~31)
|
||||
/**
|
||||
* GST_ROUND_UP_64:
|
||||
* @num: value round up
|
||||
* @num: integer value to round up
|
||||
*
|
||||
* Make number divideable by 64 without a rest.
|
||||
*/
|
||||
#define GST_ROUND_UP_64(num) (((num)+63)&~63)
|
||||
|
||||
/**
|
||||
* GST_ROUND_DOWN_2:
|
||||
* @num: integer value to round down
|
||||
*
|
||||
* Make number divisible by two without a rest by rounding it down
|
||||
*
|
||||
* Since: 0.10.12
|
||||
*/
|
||||
#define GST_ROUND_DOWN_2(num) ((num)&(~1))
|
||||
/**
|
||||
* GST_ROUND_DOWN_4:
|
||||
* @num: integer value to round down
|
||||
*
|
||||
* Make number divisible by four without a rest by rounding it down
|
||||
*
|
||||
* Since: 0.10.12
|
||||
*/
|
||||
#define GST_ROUND_DOWN_4(num) ((num)&(~3))
|
||||
/**
|
||||
* GST_ROUND_DOWN_8:
|
||||
* @num: integer value to round down
|
||||
*
|
||||
* Make number divisible by eight without a rest by rounding it down
|
||||
*
|
||||
* Since: 0.10.12
|
||||
*/
|
||||
#define GST_ROUND_DOWN_8(num) ((num)&(~7))
|
||||
/**
|
||||
* GST_ROUND_DOWN_16:
|
||||
* @num: integer value to round down
|
||||
*
|
||||
* Make number divisible by 16 without a rest by rounding it down
|
||||
*
|
||||
* Since: 0.10.12
|
||||
*/
|
||||
#define GST_ROUND_DOWN_16(num) ((num)&(~15))
|
||||
/**
|
||||
* GST_ROUND_DOWN_32:
|
||||
* @num: integer value to round down
|
||||
*
|
||||
* Make number divisible by 32 without a rest by rounding it down
|
||||
*
|
||||
* Since: 0.10.12
|
||||
*/
|
||||
#define GST_ROUND_DOWN_32(num) ((num)&(~31))
|
||||
/**
|
||||
* GST_ROUND_DOWN_64:
|
||||
* @num: integer value to round down
|
||||
*
|
||||
* Make number divisible by 64 without a rest by rounding it down
|
||||
*
|
||||
* Since: 0.10.12
|
||||
*/
|
||||
#define GST_ROUND_DOWN_64(num) ((num)&(~63))
|
||||
|
||||
void gst_object_default_error (GstObject * source,
|
||||
GError * error, gchar * debug);
|
||||
|
||||
|
|
Loading…
Reference in a new issue