style: Format source code and support grouping client

This commit is contained in:
yuanyuanxiang
2025-10-15 04:32:59 +08:00
parent 77087d2e06
commit 6b81ad1f81
244 changed files with 43052 additions and 42562 deletions

View File

@@ -55,7 +55,7 @@
/**
* Rational number (pair of numerator and denominator).
*/
typedef struct AVRational{
typedef struct AVRational {
int num; ///< Numerator
int den; ///< Denominator
} AVRational;
@@ -86,7 +86,8 @@ static inline AVRational av_make_q(int num, int den)
* - -1 if `a < b`
* - `INT_MIN` if one of the values is of the form `0 / 0`
*/
static inline int av_cmp_q(AVRational a, AVRational b){
static inline int av_cmp_q(AVRational a, AVRational b)
{
const int64_t tmp= a.num * (int64_t)b.den - b.num * (int64_t)a.den;
if(tmp) return (int)((tmp ^ a.den ^ b.den)>>63)|1;
@@ -101,7 +102,8 @@ static inline int av_cmp_q(AVRational a, AVRational b){
* @return `a` in floating-point form
* @see av_d2q()
*/
static inline double av_q2d(AVRational a){
static inline double av_q2d(AVRational a)
{
return a.num / (double) a.den;
}