Lines Matching refs:clips

744 #define SOX_SAMPLE_TO_UNSIGNED(bits,d,clips) \  argument
745 (sox_uint##bits##_t)(SOX_SAMPLE_TO_SIGNED(bits,d,clips) ^ SOX_INT_MIN(bits))
755 #define SOX_SAMPLE_TO_SIGNED(bits,d,clips) \ argument
760 ++(clips), SOX_INT_MAX(bits) : \
789 #define SOX_UNSIGNED_8BIT_TO_SAMPLE(d,clips) SOX_UNSIGNED_TO_SAMPLE(8,d) argument
798 #define SOX_SIGNED_8BIT_TO_SAMPLE(d,clips) SOX_SIGNED_TO_SAMPLE(8,d) argument
807 #define SOX_UNSIGNED_16BIT_TO_SAMPLE(d,clips) SOX_UNSIGNED_TO_SAMPLE(16,d) argument
816 #define SOX_SIGNED_16BIT_TO_SAMPLE(d,clips) SOX_SIGNED_TO_SAMPLE(16,d) argument
825 #define SOX_UNSIGNED_24BIT_TO_SAMPLE(d,clips) SOX_UNSIGNED_TO_SAMPLE(24,d) argument
834 #define SOX_SIGNED_24BIT_TO_SAMPLE(d,clips) SOX_SIGNED_TO_SAMPLE(24,d) argument
843 #define SOX_UNSIGNED_32BIT_TO_SAMPLE(d,clips) \ argument
853 #define SOX_SIGNED_32BIT_TO_SAMPLE(d,clips) (sox_sample_t)(d) argument
862 #define SOX_FLOAT_32BIT_TO_SAMPLE(d,clips) SOX_FLOAT_64BIT_TO_SAMPLE(d, clips) argument
871 #define SOX_FLOAT_64BIT_TO_SAMPLE(d, clips) \ argument
877 ++(clips), SOX_SAMPLE_MIN : \
881 ++(clips), SOX_SAMPLE_MAX : \
892 #define SOX_SAMPLE_TO_UNSIGNED_8BIT(d,clips) SOX_SAMPLE_TO_UNSIGNED(8,d,clips) argument
900 #define SOX_SAMPLE_TO_SIGNED_8BIT(d,clips) SOX_SAMPLE_TO_SIGNED(8,d,clips) argument
908 #define SOX_SAMPLE_TO_UNSIGNED_16BIT(d,clips) SOX_SAMPLE_TO_UNSIGNED(16,d,clips) argument
916 #define SOX_SAMPLE_TO_SIGNED_16BIT(d,clips) SOX_SAMPLE_TO_SIGNED(16,d,clips) argument
924 #define SOX_SAMPLE_TO_UNSIGNED_24BIT(d,clips) SOX_SAMPLE_TO_UNSIGNED(24,d,clips) argument
932 #define SOX_SAMPLE_TO_SIGNED_24BIT(d,clips) SOX_SAMPLE_TO_SIGNED(24,d,clips) argument
940 #define SOX_SAMPLE_TO_UNSIGNED_32BIT(d,clips) (sox_uint32_t)((d)^SOX_SAMPLE_NEG) argument
948 #define SOX_SAMPLE_TO_SIGNED_32BIT(d,clips) (sox_int32_t)(d) argument
956 #define SOX_SAMPLE_TO_FLOAT_32BIT(d,clips) ((d)*(1.0 / (SOX_SAMPLE_MAX + 1.0))) argument
964 #define SOX_SAMPLE_TO_FLOAT_64BIT(d,clips) ((d)*(1.0 / (SOX_SAMPLE_MAX + 1.0))) argument
973 #define SOX_SAMPLE_CLIP_COUNT(samp, clips) \ argument
976 { samp = SOX_SAMPLE_MAX; clips++; } \
978 { samp = SOX_SAMPLE_MIN; clips++; } \
989 #define SOX_ROUND_CLIP_COUNT(d, clips) \ argument
990 ((d) < 0? (d) <= SOX_SAMPLE_MIN - 0.5? ++(clips), SOX_SAMPLE_MIN: (d) - 0.5 \
991 : (d) >= SOX_SAMPLE_MAX + 0.5? ++(clips), SOX_SAMPLE_MAX: (d) + 0.5)
1002 #define SOX_INTEGER_CLIP_COUNT(bits,i,clips) ( \ argument
1003 (i) >(1 << ((bits)-1))- 1? ++(clips),(1 << ((bits)-1))- 1 : \
1004 (i) <-1 << ((bits)-1) ? ++(clips),-1 << ((bits)-1) : (i))
1014 #define SOX_16BIT_CLIP_COUNT(i,clips) SOX_INTEGER_CLIP_COUNT(16,i,clips) argument
1024 #define SOX_24BIT_CLIP_COUNT(i,clips) SOX_INTEGER_CLIP_COUNT(24,i,clips) argument
1530 sox_uint64_t clips; /**< Incremented if clipping occurs */ member
1589 sox_uint64_t clips; /**< increment if clipping occurs */ member