ffmpeg.libavutil.common

Undocumented in source.

Members

Aliases

FF_CEIL_RSHIFT
alias FF_CEIL_RSHIFT = AV_CEIL_RSHIFT
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_ceil_log2
alias av_ceil_log2 = av_ceil_log2_c

@def PUT_UTF16(val, tmp, PUT_16BIT) Convert a 32-bit Unicode character to its UTF-16 encoded form (2 or 4 bytes). @param val is an input-only argument and should be of type uint32_t. It holds a UCS-4 encoded Unicode character that is to be converted to UTF-16. If val is given as a function it is executed only once. @param tmp is a temporary variable and should be of type uint16_t. It represents an intermediate value during conversion that is to be output by PUT_16BIT. @param PUT_16BIT writes the converted UTF-16 data to any proper destination in desired endianness. It could be a function or a statement, and uses tmp as the input byte. For example, PUT_BYTE could be "*output++ = tmp;" PUT_BYTE will be executed 1 or 2 times depending on input character.

av_clip
alias av_clip = av_clip_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_clip64
alias av_clip64 = av_clip64_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_clip_int16
alias av_clip_int16 = av_clip_int16_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_clip_int8
alias av_clip_int8 = av_clip_int8_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_clip_intp2
alias av_clip_intp2 = av_clip_intp2_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_clip_uint16
alias av_clip_uint16 = av_clip_uint16_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_clip_uint8
alias av_clip_uint8 = av_clip_uint8_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_clip_uintp2
alias av_clip_uintp2 = av_clip_uintp2_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_clipd
alias av_clipd = av_clipd_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_clipf
alias av_clipf = av_clipf_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_clipl_int32
alias av_clipl_int32 = av_clipl_int32_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_mod_uintp2
alias av_mod_uintp2 = av_mod_uintp2_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_parity
alias av_parity = av_parity_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_popcount
alias av_popcount = av_popcount_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_popcount64
alias av_popcount64 = av_popcount64_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_sat_add32
alias av_sat_add32 = av_sat_add32_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_sat_dadd32
alias av_sat_dadd32 = av_sat_dadd32_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_sat_dsub32
alias av_sat_dsub32 = av_sat_dsub32_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_sat_sub32
alias av_sat_sub32 = av_sat_sub32_c
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

AV_CEIL_RSHIFT
auto AV_CEIL_RSHIFT(T0 a, T1 b)
Undocumented in source. Be warned that the author may not have intended to support it.
AV_NE
auto AV_NE(T0 be, T1 le)

@file common internal and external API header

FFABS
auto FFABS(T a)

Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable as absolute values of their type. This is the same as with *abs() @see FFNABS()

FFDIFFSIGN
auto FFDIFFSIGN(T0 x, T1 y)

Comparator. For two numerical expressions x and y, gives 1 if x > y, -1 if x < y, and 0 if x == y. This is useful for instance in a qsort comparator callback. Furthermore, compilers are able to optimize this to branchless code, and there is no risk of overflow with signed types. As with many macros, this evaluates its argument multiple times, it thus must not have a side-effect.

FFMAX
auto FFMAX(T0 a, T1 b)
Undocumented in source. Be warned that the author may not have intended to support it.
FFMAX3
auto FFMAX3(T0 a, T1 b, T2 c)
Undocumented in source. Be warned that the author may not have intended to support it.
FFMIN
auto FFMIN(T0 a, T1 b)
Undocumented in source. Be warned that the author may not have intended to support it.
FFMIN3
auto FFMIN3(T0 a, T1 b, T2 c)
Undocumented in source. Be warned that the author may not have intended to support it.
FFNABS
auto FFNABS(T a)

Negative Absolute value. this works for all integers of all types. As with many macros, this evaluates its argument twice, it thus must not have a sideeffect, that is FFNABS(x++) has undefined behavior.

FFSIGN
int FFSIGN(T a)
Undocumented in source. Be warned that the author may not have intended to support it.
FFUDIV
auto FFUDIV(T0 a, T1 b)
Undocumented in source. Be warned that the author may not have intended to support it.
FFUMOD
auto FFUMOD(T0 a, T1 b)
Undocumented in source. Be warned that the author may not have intended to support it.
FF_ARRAY_ELEMS
size_t FF_ARRAY_ELEMS(T a)
Undocumented in source. Be warned that the author may not have intended to support it.
MKBETAG
auto MKBETAG(T0 a, T1 b, T2 c, T3 d)
Undocumented in source. Be warned that the author may not have intended to support it.
MKTAG
auto MKTAG(T0 a, T1 b, T2 c, T3 d)
Undocumented in source. Be warned that the author may not have intended to support it.
ROUNDED_DIV
auto ROUNDED_DIV(T0 a, T1 b)
Undocumented in source. Be warned that the author may not have intended to support it.
RSHIFT
auto RSHIFT(T0 a, T1 b)
Undocumented in source. Be warned that the author may not have intended to support it.
av_ceil_log2_c
int av_ceil_log2_c(int x)

Compute ceil(log2(x)). @param x value used to compute ceil(log2(x)) @return computed ceiling of log2(x)

av_clip64_c
long av_clip64_c(long a, long amin, long amax)

Clip a signed 64bit integer value into the amin-amax range. @param a value to clip @param amin minimum value of the clip range @param amax maximum value of the clip range @return clipped value

av_clip_c
int av_clip_c(int a, int amin, int amax)

Clip a signed integer value into the amin-amax range. @param a value to clip @param amin minimum value of the clip range @param amax maximum value of the clip range @return clipped value

av_clip_int16_c
short av_clip_int16_c(int a)

Clip a signed integer value into the -32768,32767 range. @param a value to clip @return clipped value

av_clip_int8_c
byte av_clip_int8_c(int a)

Clip a signed integer value into the -128,127 range. @param a value to clip @return clipped value

av_clip_intp2_c
int av_clip_intp2_c(int a, int p)

Clip a signed integer into the -(2^p),(2^p-1) range. @param a value to clip @param p bit position to clip at @return clipped value

av_clip_uint16_c
ushort av_clip_uint16_c(int a)

Clip a signed integer value into the 0-65535 range. @param a value to clip @return clipped value

av_clip_uint8_c
ubyte av_clip_uint8_c(int a)

Clip a signed integer value into the 0-255 range. @param a value to clip @return clipped value

av_clip_uintp2_c
uint av_clip_uintp2_c(int a, int p)

Clip a signed integer to an unsigned power of two range. @param a value to clip @param p bit position to clip at @return clipped value

av_clipd_c
double av_clipd_c(double a, double amin, double amax)

Clip a double value into the amin-amax range. @param a value to clip @param amin minimum value of the clip range @param amax maximum value of the clip range @return clipped value

av_clipf_c
float av_clipf_c(float a, float amin, float amax)

Clip a float value into the amin-amax range. @param a value to clip @param amin minimum value of the clip range @param amax maximum value of the clip range @return clipped value

av_clipl_int32_c
int av_clipl_int32_c(long a)

Clip a signed 64-bit integer value into the -2147483648,2147483647 range. @param a value to clip @return clipped value

av_log2
int av_log2(uint v)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_log2_16bit
int av_log2_16bit(uint v)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_mod_uintp2_c
uint av_mod_uintp2_c(uint a, uint p)

Clear high bits from an unsigned integer starting with specific bit position @param a value to clip @param p bit position to clip at @return clipped value

av_parity_c
int av_parity_c(uint v)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
av_popcount64_c
int av_popcount64_c(ulong x)

Count number of bits set to one in x @param x value to count bits of @return the number of bits set to one in x

av_popcount_c
int av_popcount_c(uint x)

Count number of bits set to one in x @param x value to count bits of @return the number of bits set to one in x

av_sat_add32_c
int av_sat_add32_c(int a, int b)

Add two signed 32-bit values with saturation.

av_sat_dadd32_c
int av_sat_dadd32_c(int a, int b)

Add a doubled value to another value with saturation at both stages.

av_sat_dsub32_c
int av_sat_dsub32_c(int a, int b)

Subtract a doubled value from another value with saturation at both stages.

av_sat_sub32_c
int av_sat_sub32_c(int a, int b)

Subtract two signed 32-bit values with saturation.

Meta