Commit 7782614f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

es_format: reorder two functions

parent 7bd5f5a2
...@@ -303,13 +303,6 @@ video_transform_t video_format_GetTransform( video_orientation_t src, ...@@ -303,13 +303,6 @@ video_transform_t video_format_GetTransform( video_orientation_t src,
return transform_FromBasicOps(angle, hflip); 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 ) void video_format_TransformBy( video_format_t *fmt, video_transform_t transform )
{ {
/* Get destination orientation */ /* Get destination orientation */
...@@ -397,6 +390,14 @@ void video_format_TransformBy( video_format_t *fmt, video_transform_t transform ...@@ -397,6 +390,14 @@ void video_format_TransformBy( video_format_t *fmt, video_transform_t transform
fmt->orientation = dst_orient; 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, void video_format_ApplyRotation( video_format_t *restrict out,
const video_format_t *restrict in ) const video_format_t *restrict in )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment