[x264-devel] Output pic struct information in libx264 API
Kieran Kunhya
git at videolan.org
Mon Feb 7 06:31:31 CET 2011
x264 | branch: master | Kieran Kunhya <kieran at kunhya.com> | Wed Feb 2 11:01:13 2011 +0000| [eb16899df534e43ebc7a18eca4cc2f0a6cc8566d] | committer: Jason Garrett-Glaser
Output pic struct information in libx264 API
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=eb16899df534e43ebc7a18eca4cc2f0a6cc8566d
---
encoder/encoder.c | 1 +
x264.h | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/encoder/encoder.c b/encoder/encoder.c
index 53c4033..3ff5897 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -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 8f39497..24c3792 100644
--- 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. */
More information about the x264-devel
mailing list