[vlc-devel] [RFC PATCH 1/3] picture: add display orientation
Thomas Guillem
thomas at gllm.fr
Thu Dec 21 18:08:53 CET 2017
In order to allow filters to modify the orientation without touching picture
data.
---
include/vlc_picture.h | 1 +
src/misc/picture.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/include/vlc_picture.h b/include/vlc_picture.h
index 1ab8fef14f..a992a4f709 100644
--- a/include/vlc_picture.h
+++ b/include/vlc_picture.h
@@ -81,6 +81,7 @@ struct picture_t
/**@{*/
mtime_t date; /**< display date */
bool b_force;
+ video_orientation_t display_orientation;
/**@}*/
/** \name Picture dynamic properties
diff --git a/src/misc/picture.c b/src/misc/picture.c
index f6671edd51..e3c76c107a 100644
--- a/src/misc/picture.c
+++ b/src/misc/picture.c
@@ -133,6 +133,7 @@ void picture_Reset( picture_t *p_picture )
p_picture->b_progressive = false;
p_picture->i_nb_fields = 2;
p_picture->b_top_field_first = false;
+ p_picture->display_orientation = ORIENT_NORMAL;
PictureDestroyContext( p_picture );
}
@@ -359,6 +360,7 @@ void picture_CopyProperties( picture_t *p_dst, const picture_t *p_src )
{
p_dst->date = p_src->date;
p_dst->b_force = p_src->b_force;
+ p_dst->display_orientation = p_src->display_orientation;
p_dst->b_progressive = p_src->b_progressive;
p_dst->i_nb_fields = p_src->i_nb_fields;
--
2.11.0
More information about the vlc-devel
mailing list