From a54f03bf07da964a1b04b03b85bc39deba76efa4 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 18 Jun 2014 18:08:20 -0400 Subject: display: add matrix flip api --- libavutil/display.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libavutil/display.h') diff --git a/libavutil/display.h b/libavutil/display.h index ea762a4249..7e37627637 100644 --- a/libavutil/display.h +++ b/libavutil/display.h @@ -74,4 +74,13 @@ double av_display_rotation_get(const int32_t matrix[9]); */ void av_display_rotation_set(int32_t matrix[9], double angle); +/** + * Flip the input matrix horizontally and/or vertically. + * + * @param matrix an allocated transformation matrix + * @param hflip whether the matrix should be flipped horizontally + * @param vflip whether the matrix should be flipped vertically + */ +void av_display_matrix_flip(int32_t matrix[9], int hflip, int vflip); + #endif /* AVUTIL_DISPLAY_H */ -- cgit v1.2.3