1 #include "rescalers/linear-separable.hpp"
8 void compute_coefficients_letterbox(float* coeffs
, position_t num
, position_t denum
, position_t width
,
9 position_t twidth
, unsigned& count
, unsigned& base
)
11 position_t relpos
= num
/ width
- (twidth
- width
) / 2;
15 if(relpos
>= 0 && relpos
< width
) {
17 base
= (unsigned)relpos
;
21 simple_rescaler_linear_separable
r_letterbox("letterbox", make_bound_method(compute_coefficients_letterbox
));