[vlc-devel] commit: Factorize picture dating and releasing code. (Antoine Cellerier )

git version control git at videolan.org
Wed Jun 4 22:03:26 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Wed Jun  4 20:02:58 2008 +0200| [b6dc08dbaaf134f80a528e1ac1e63309a55cf9c7]

Factorize picture dating and releasing code.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b6dc08dbaaf134f80a528e1ac1e63309a55cf9c7
---

 modules/video_filter/filter_picture.h |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/modules/video_filter/filter_picture.h b/modules/video_filter/filter_picture.h
index 73ef0d5..97ac7b3 100644
--- a/modules/video_filter/filter_picture.h
+++ b/modules/video_filter/filter_picture.h
@@ -82,3 +82,20 @@ static inline int GetPackedYuvOffsets( vlc_fourcc_t i_chroma,
             return VLC_EGENERIC;
     }
 }
+
+/*****************************************************************************
+ *
+ *****************************************************************************/
+static inline picture_t *CopyMetaAndRelease( picture_t *p_outpic, picture_t *p_inpic )
+{
+    p_outpic->date = p_inpic->date;
+    p_outpic->b_force = p_inpic->b_force;
+    p_outpic->i_nb_fields = p_inpic->i_nb_fields;
+    p_outpic->b_progressive = p_inpic->b_progressive;
+    p_outpic->b_top_field_first = p_inpic->b_top_field_first;
+
+    if( p_inpic->pf_release )
+        p_inpic->pf_release( p_inpic );
+
+    return p_outpic;
+}




More information about the vlc-devel mailing list