#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
+#include <float.h>
#define DIRECT_COPY 0
#define BILINEAR 1
return v < 0 ? 0 : v > mx ? mx : v;
}
static inline float aclip(float v, float mx) {
- return v < 0 ? 0 : v > mx ? mx : v;
+ return v < -FLT_MAX+1 ? -FLT_MAX : v > FLT_MAX-1 ? FLT_MAX : v;
}
static inline float aclip(float v, int mx) {
return v < 0 ? 0 : v > mx ? mx : v;
webm av1_vaapi
-# Nvidia 4000+ series (better nvenc/vdpau)
-# AMD Radeon 7000+ series
-# Intel Xe2, Arc+ series
-cin_hw_dev=vaapi
-g=30
-# profile=high #(main, professional)
+g=300
+#profile=
rc_mode=QVBR
PROCESS(unsigned char, 0xff, 4, 1)
break;
case BC_RGB_FLOAT:
- PROCESS(float, 1.0, 3, 0)
+ PROCESS(float, 100.0, 3, 0)
break;
case BC_RGBA_FLOAT:
- PROCESS(float, 1.0, 4, 0)
+ PROCESS(float, 100.0, 4, 0)
break;
}
}
if( !EQUIV(config.gamma[mode], 0) ) {
output = pow(output, 1.0 / config.gamma[mode]);
- CLAMP(output, 0, 1.0);
+ CLAMP(output, 0, 100.0);
}
// Apply value curve