}
}
-/****************************************************************************
- * x264_encoder_delayed_frames:
- ****************************************************************************/
int x264_encoder_delayed_frames( x264_t *h )
{
int delayed_frames = 0;
x264_pthread_mutex_unlock( &h->lookahead->ofbuf.mutex );
return delayed_frames;
}
+
+int x264_encoder_maximum_delayed_frames( x264_t *h )
+{
+ return h->frames.i_delay;
+}
#include <stdarg.h>
-#define X264_BUILD 108
+#define X264_BUILD 109
/* x264_t:
* opaque handler for encoder */
* return the number of currently delayed (buffered) frames
* this should be used at the end of the stream, to know when you have all the encoded frames. */
int x264_encoder_delayed_frames( x264_t * );
+/* x264_encoder_maximum_delayed_frames( x264_t *h ):
+ * return the maximum number of delayed (buffered) frames that can occur with the current
+ * parameters. */
+int x264_encoder_maximum_delayed_frames( x264_t *h );
/* x264_encoder_intra_refresh:
* If an intra refresh is not in progress, begin one with the next P-frame.
* If an intra refresh is in progress, begin one as soon as the current one finishes.