30#define CONV_FP(x) ((double) (x)) / (1 << 16)
33#define CONV_DB(x) (int32_t) ((x) * (1 << 16))
37 double rotation,
scale[2];
53 double radians = -angle *
M_PI / 180.0f;
54 double c = cos(radians);
55 double s = sin(radians);
69 const int flip[] = { 1 - 2 * (!!hflip), 1 - 2 * (!!vflip), 1 };
72 for (
i = 0;
i < 9;
i++)
#define i(width, name, range_min, range_max)
void av_display_rotation_set(int32_t matrix[9], double angle)
Initialize a transformation matrix describing a pure clockwise rotation by the specified angle (in de...
double av_display_rotation_get(const int32_t matrix[9])
Extract the rotation component of the transformation matrix.
void av_display_matrix_flip(int32_t matrix[9], int hflip, int vflip)
Flip the input matrix horizontally and/or vertically.
static void scale(int *out, const int *in, const int w, const int h, const int shift)
static void flip(AVCodecContext *avctx, AVFrame *frame)
Replacements for frequently missing libm functions.
static av_const double hypot(double x, double y)