[implement-pixdesctest PATCH 1/2] Implement avfilter_copy_picref_props().

Stefano Sabatini stefano.sabatini-lala
Sat Jul 3 23:05:05 CEST 2010


---
 libavfilter/avfilter.h |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index f8b7654..83c56b8 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -121,6 +121,19 @@ typedef struct AVFilterPicRef
 } AVFilterPicRef;
 
 /**
+ * Copy properties of src to dst, without to copy the actual video
+ * data.
+ */
+static inline void avfilter_copy_picref_props(AVFilterPicRef *dst, AVFilterPicRef *src)
+{
+    dst->pts             = src->pts;
+    dst->pos             = src->pos;
+    dst->pixel_aspect    = src->pixel_aspect;
+    dst->interlaced      = src->interlaced;
+    dst->top_field_first = src->top_field_first;
+}
+
+/**
  * Add a new reference to a picture.
  * @param ref   an existing reference to the picture
  * @param pmask a bitmask containing the allowable permissions in the new
-- 
1.7.1


--oC1+HKm2/end4ao3--



More information about the ffmpeg-devel mailing list