FFmpeg
Loading...
Searching...
No Matches
display.c File Reference
#include <stdint.h>
#include <string.h>
#include <math.h>
#include "display.h"
#include "libm.h"
#include "mathematics.h"

Go to the source code of this file.

Macros

#define CONV_FP(x)
 
#define CONV_DB(x)
 

Functions

double av_display_rotation_get (const int32_t matrix[9])
 Extract the rotation component of the transformation matrix.
 
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 degrees).
 
void av_display_matrix_flip (int32_t matrix[9], int hflip, int vflip)
 Flip the input matrix horizontally and/or vertically.
 

Macro Definition Documentation

◆ CONV_FP

#define CONV_FP ( x)
Value:
((double) (x)) / (1 << 16)

Definition at line 30 of file display.c.

Referenced by av_display_rotation_get().

◆ CONV_DB

#define CONV_DB ( x)
Value:
(int32_t) ((x) * (1 << 16))
int32_t

Definition at line 33 of file display.c.

Referenced by av_display_rotation_set().