]> git.sesse.net Git - vlc/commitdiff
es_format: reorder two functions
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 15 Mar 2014 12:29:40 +0000 (14:29 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 15 Mar 2014 12:52:39 +0000 (14:52 +0200)
src/misc/es_format.c

index b19bb265f236823e71cc35f1be6bcf6f4f90baa0..46094c51b48ace2511d15a2c3991a89c83b65b34 100644 (file)
@@ -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 )
 {