*/
class rgba_weighting
{
- int r, g, b, a;
- int total_weight;
+ int r = 0;
+ int g = 0;
+ int b = 0;
+ int a = 0;
+ int total_weight = 0;
public:
- rgba_weighting()
- : r(0), g(0), b(0), a(0), total_weight(0)
- {
- }
-
template<class RGBAPixel>
inline void add_pixel(const RGBAPixel& pixel, uint8_t weight)
{
};
template<class T>
-std::vector<T> get_tweened_values(const core::tweener& tweener, size_t num_values, T from, T to)
+std::vector<T> get_tweened_values(const caspar::tweener& tweener, size_t num_values, T from, T to)
{
std::vector<T> result;
result.reserve(num_values);
const SrcView& src,
DstView& dst,
const std::vector<std::pair<int, int>>& motion_trail_coordinates,
- const core::tweener& tweener)
+ const caspar::tweener& tweener)
{
auto blur_px = motion_trail_coordinates.size();
auto tweened_weights_y = get_tweened_values<uint8_t>(tweener, blur_px + 2, 255, 0);
DstView& dst,
double angle_radians,
int blur_px,
- const core::tweener& tweener)
+ const caspar::tweener& tweener)
{
auto motion_trail = get_line_points(blur_px, angle_radians);