From 8d2cabcb97c5b49a19115f47a6f364d02af03f87 Mon Sep 17 00:00:00 2001 From: Richard Antalik Date: Thu, 21 Oct 2021 11:28:12 +0200 Subject: Cleanup: VSE code docstring --- source/blender/sequencer/intern/strip_transform.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'source/blender/sequencer/intern') diff --git a/source/blender/sequencer/intern/strip_transform.c b/source/blender/sequencer/intern/strip_transform.c index c70f8d646af..becf44a7a8e 100644 --- a/source/blender/sequencer/intern/strip_transform.c +++ b/source/blender/sequencer/intern/strip_transform.c @@ -468,14 +468,6 @@ void SEQ_image_transform_origin_offset_pixelspace_get(const Scene *scene, mul_v2_v2(r_origin, mirror); } -/** - * Get strip transform origin offset from image center - * - * \param scene: Scene in which strips are located - * \param seq: Sequence to calculate image transform origin - * \param apply_rotation: Apply sequence rotation transform to the quad - * \param r_origin: return value - */ static void seq_image_transform_quad_get_ex(const Scene *scene, const Sequence *seq, bool apply_rotation, @@ -527,6 +519,14 @@ static void seq_image_transform_quad_get_ex(const Scene *scene, } } +/** + * Get 4 corner points of strip image, optionally without rotation component applied + * + * \param scene: Scene in which strips are located + * \param seq: Sequence to calculate image transform origin + * \param apply_rotation: Apply sequence rotation transform to the quad + * \param r_quad: array of 4 2D vectors + */ void SEQ_image_transform_quad_get(const Scene *scene, const Sequence *seq, bool apply_rotation, @@ -535,6 +535,13 @@ void SEQ_image_transform_quad_get(const Scene *scene, seq_image_transform_quad_get_ex(scene, seq, apply_rotation, r_quad); } +/** + * Get 4 corner points of strip image. + * + * \param scene: Scene in which strips are located + * \param seq: Sequence to calculate image transform origin + * \param r_quad: array of 4 2D vectors + */ void SEQ_image_transform_final_quad_get(const Scene *scene, const Sequence *seq, float r_quad[4][2]) -- cgit v1.2.3