From: Kieran Kunhya Date: Wed, 2 Feb 2011 11:01:13 +0000 (+0000) Subject: Output pic struct information in libx264 API X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=eb16899df534e43ebc7a18eca4cc2f0a6cc8566d;p=x264.git Output pic struct information in libx264 API --- diff --git a/encoder/encoder.c b/encoder/encoder.c index 53c40339..3ff5897f 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 8f394975..24c37926 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. */