Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ffmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Luma Media Server
ffmpeg
Commits
a54f03bf
Commit
a54f03bf
authored
10 years ago
by
Vittorio Giovara
Browse files
Options
Downloads
Patches
Plain Diff
display: add matrix flip api
parent
33a7b453
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/APIchanges
+3
-0
3 additions, 0 deletions
doc/APIchanges
libavutil/display.c
+10
-0
10 additions, 0 deletions
libavutil/display.c
libavutil/display.h
+9
-0
9 additions, 0 deletions
libavutil/display.h
libavutil/version.h
+2
-2
2 additions, 2 deletions
libavutil/version.h
with
24 additions
and
2 deletions
doc/APIchanges
+
3
−
0
View file @
a54f03bf
...
...
@@ -13,6 +13,9 @@ libavutil: 2013-12-xx
API changes, most recent first:
2014-07-xx - xxxxxxx - lavu 53.18.0 - display.h
Add av_display_matrix_flip() to flip the transformation matrix.
2014-07-xx - xxxxxxx - lavc 55.56.0 - dv_profile.h
Add a public API for DV profile handling.
...
...
This diff is collapsed.
Click to expand it.
libavutil/display.c
+
10
−
0
View file @
a54f03bf
...
...
@@ -63,3 +63,13 @@ void av_display_rotation_set(int32_t matrix[9], double angle)
matrix
[
4
]
=
CONV_DB
(
c
);
matrix
[
8
]
=
1
<<
30
;
}
void
av_display_matrix_flip
(
int32_t
matrix
[
9
],
int
hflip
,
int
vflip
)
{
int
i
;
const
int
flip
[]
=
{
1
-
2
*
(
!!
hflip
),
1
-
2
*
(
!!
vflip
),
1
};
if
(
hflip
||
vflip
)
for
(
i
=
0
;
i
<
9
;
i
++
)
matrix
[
i
]
*=
flip
[
i
%
3
];
}
This diff is collapsed.
Click to expand it.
libavutil/display.h
+
9
−
0
View file @
a54f03bf
...
...
@@ -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 */
This diff is collapsed.
Click to expand it.
libavutil/version.h
+
2
−
2
View file @
a54f03bf
...
...
@@ -54,8 +54,8 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 53
#define LIBAVUTIL_VERSION_MINOR 1
7
#define LIBAVUTIL_VERSION_MICRO
1
#define LIBAVUTIL_VERSION_MINOR 1
8
#define LIBAVUTIL_VERSION_MICRO
0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
LIBAVUTIL_VERSION_MINOR, \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment