]> git.videolan.org Git - x264.git/commitdiff
Output pic struct information in libx264 API
authorKieran Kunhya <kieran@kunhya.com>
Wed, 2 Feb 2011 11:01:13 +0000 (11:01 +0000)
committerJason Garrett-Glaser <jason@x264.com>
Mon, 7 Feb 2011 05:26:40 +0000 (21:26 -0800)
encoder/encoder.c
x264.h

index 53c403392d899b9d8489cdad14924476f91ca6ba..3ff5897fbc0468568a314c73dc0dc29cf9a53991 100644 (file)
@@ -2817,6 +2817,7 @@ static int x264_encoder_frame_end( x264_t *h, x264_t *thread_current,
     pic_out->i_type = h->fenc->i_type;
 
     pic_out->b_keyframe = h->fenc->b_keyframe;
+    pic_out->i_pic_struct = h->fenc->i_pic_struct;
 
     pic_out->i_pts = h->fdec->i_pts;
     pic_out->i_dts = h->fdec->i_dts;
diff --git a/x264.h b/x264.h
index 8f394975939b8633427fd9f0350d1836bb73fa1a..24c37926691f9298cb1d4b87f5e4a187d05347a0 100644 (file)
--- a/x264.h
+++ b/x264.h
@@ -41,7 +41,7 @@
 
 #include "x264_config.h"
 
-#define X264_BUILD 113
+#define X264_BUILD 114
 
 /* x264_t:
  *      opaque handler for encoder */
@@ -678,7 +678,8 @@ typedef struct
     /* In: force quantizer for != X264_QP_AUTO */
     int     i_qpplus1;
     /* In: pic_struct, for pulldown/doubling/etc...used only if b_pic_struct=1.
-     *     use pic_struct_e for pic_struct inputs */
+     *     use pic_struct_e for pic_struct inputs
+     * Out: pic_struct element associated with frame */
     int     i_pic_struct;
     /* Out: whether this frame is a keyframe.  Important when using modes that result in
      * SEI recovery points being used instead of IDR frames. */