[vlc-commits] es_format: reorder two functions
Rémi Denis-Courmont
git at videolan.org
Sat Mar 15 13:52:43 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 15 14:29:40 2014 +0200| [7782614f0bbb8c0ad4da534e6aab8fd170c9a73b] | committer: Rémi Denis-Courmont
es_format: reorder two functions
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7782614f0bbb8c0ad4da534e6aab8fd170c9a73b
---
src/misc/es_format.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/misc/es_format.c b/src/misc/es_format.c
index b19bb26..46094c5 100644
--- a/src/misc/es_format.c
+++ b/src/misc/es_format.c
@@ -303,13 +303,6 @@ video_transform_t video_format_GetTransform( video_orientation_t src,
return transform_FromBasicOps(angle, hflip);
}
-void video_format_TransformTo( video_format_t *fmt, video_orientation_t dst_orientation )
-{
- video_transform_t transform = video_format_GetTransform(fmt->orientation, dst_orientation);
-
- video_format_TransformBy(fmt, transform);
-}
-
void video_format_TransformBy( video_format_t *fmt, video_transform_t transform )
{
/* Get destination orientation */
@@ -397,6 +390,14 @@ void video_format_TransformBy( video_format_t *fmt, video_transform_t transform
fmt->orientation = dst_orient;
}
+void video_format_TransformTo( video_format_t *restrict fmt,
+ video_orientation_t dst_orientation )
+{
+ video_transform_t transform = video_format_GetTransform(fmt->orientation,
+ dst_orientation);
+ video_format_TransformBy(fmt, transform);
+}
+
void video_format_ApplyRotation( video_format_t *restrict out,
const video_format_t *restrict in )
{
More information about the vlc-commits
mailing list