Unified · Split
| @@ -13,6 +13,9 @@ libavutil: 2013-12-xx · 12 unmodified lines | |||
| 13 | 13 | ||
| 14 | API changes, most recent first: | 14 | API changes, most recent first: |
| 15 | 15 | ||
| 16 | 2014-07-xx - xxxxxxx - lavu 53.18.0 - display.h | ||
| 17 | Add av_display_matrix_flip() to flip the transformation matrix. | ||
| 18 | |||
| 16 | 2014-07-xx - xxxxxxx - lavc 55.56.0 - dv_profile.h | 19 | 2014-07-xx - xxxxxxx - lavc 55.56.0 - dv_profile.h |
| 17 | Add a public API for DV profile handling. | 20 | Add a public API for DV profile handling. |
| 18 | 21 | ||
| @@ -63,3 +63,13 @@ void av_display_rotation_set(int32_t matrix[9], double angle) · 62 unmodified lines | |||
| 63 | matrix[4] = CONV_DB(c); | 63 | matrix[4] = CONV_DB(c); |
| 64 | matrix[8] = 1 << 30; | 64 | matrix[8] = 1 << 30; |
| 65 | } | 65 | } |
| 66 | |||
| 67 | void av_display_matrix_flip(int32_t matrix[9], int hflip, int vflip) | ||
| 68 | { | ||
| 69 | int i; | ||
| 70 | const int flip[] = { 1 - 2 * (!!hflip), 1 - 2 * (!!vflip), 1 }; | ||
| 71 | |||
| 72 | if (hflip || vflip) | ||
| 73 | for (i = 0; i < 9; i++) | ||
| 74 | matrix[i] *= flip[i % 3]; | ||
| 75 | } | ||
| @@ -74,4 +74,13 @@ double av_display_rotation_get(const int32_t matrix[9]); · 73 unmodified lines | |||
| 74 | */ | 74 | */ |
| 75 | void av_display_rotation_set(int32_t matrix[9], double angle); | 75 | void av_display_rotation_set(int32_t matrix[9], double angle); |
| 76 | 76 | ||
| 77 | /** | ||
| 78 | * Flip the input matrix horizontally and/or vertically. | ||
| 79 | * | ||
| 80 | * @param matrix an allocated transformation matrix | ||
| 81 | * @param hflip whether the matrix should be flipped horizontally | ||
| 82 | * @param vflip whether the matrix should be flipped vertically | ||
| 83 | */ | ||
| 84 | void av_display_matrix_flip(int32_t matrix[9], int hflip, int vflip); | ||
| 85 | |||
| 77 | #endif /* AVUTIL_DISPLAY_H */ | 86 | #endif /* AVUTIL_DISPLAY_H */ |
| @@ -54,8 +54,8 @@ · 53 unmodified lines | |||
| 54 | */ | 54 | */ |
| 55 | 55 | ||
| 56 | #define LIBAVUTIL_VERSION_MAJOR 53 | 56 | #define LIBAVUTIL_VERSION_MAJOR 53 |
| 57 | #define LIBAVUTIL_VERSION_MINOR 17 | 57 | #define LIBAVUTIL_VERSION_MINOR 18 |
| 58 | #define LIBAVUTIL_VERSION_MICRO 1 | 58 | #define LIBAVUTIL_VERSION_MICRO 0 |
| 59 | 59 | ||
| 60 | #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ | 60 | #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ |
| 61 | LIBAVUTIL_VERSION_MINOR, \ | 61 | LIBAVUTIL_VERSION_MINOR, \ |