]> git.sesse.net Git - x264/blobdiff - muxers.h
if --threads > 1, then read the input stream in its own thread.
[x264] / muxers.h
index 1386ed4d63e8b0070091013f7b6913e3de3a8798..9762053f2d35c0c81d95260dfe13de0ebb32df88 100644 (file)
--- a/muxers.h
+++ b/muxers.h
@@ -4,17 +4,24 @@
 typedef void *hnd_t;
 
 int open_file_yuv( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
-int get_frame_total_yuv( hnd_t handle, int i_width, int i_height );
-int read_frame_yuv( x264_picture_t *p_pic, hnd_t handle, int i_frame, int i_width, int i_height );
+int get_frame_total_yuv( hnd_t handle );
+int read_frame_yuv( x264_picture_t *p_pic, hnd_t handle, int i_frame );
 int close_file_yuv( hnd_t handle );
 
 #ifdef AVIS_INPUT
 int open_file_avis( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
-int get_frame_total_avis( hnd_t handle, int i_width, int i_height );
-int read_frame_avis( x264_picture_t *p_pic, hnd_t handle, int i_frame, int i_width, int i_height );
+int get_frame_total_avis( hnd_t handle );
+int read_frame_avis( x264_picture_t *p_pic, hnd_t handle, int i_frame );
 int close_file_avis( hnd_t handle );
 #endif
 
+#ifdef HAVE_PTHREAD
+int open_file_thread( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
+int get_frame_total_thread( hnd_t handle );
+int read_frame_thread( x264_picture_t *p_pic, hnd_t handle, int i_frame );
+int close_file_thread( hnd_t handle );
+#endif
+
 int open_file_bsf( char *psz_filename, hnd_t *p_handle );
 int set_param_bsf( hnd_t handle, x264_param_t *p_param );
 int write_nalu_bsf( hnd_t handle, uint8_t *p_nal, int i_size );
@@ -35,4 +42,15 @@ int write_nalu_mkv( hnd_t handle, uint8_t *p_nal, int i_size );
 int set_eop_mkv( hnd_t handle, x264_picture_t *p_picture );
 int close_file_mkv( hnd_t handle );
 
+extern int (*p_open_infile)( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
+extern int (*p_get_frame_total)( hnd_t handle );
+extern int (*p_read_frame)( x264_picture_t *p_pic, hnd_t handle, int i_frame );
+extern int (*p_close_infile)( hnd_t handle );
+
+extern int (*p_open_outfile)( char *psz_filename, hnd_t *p_handle );
+extern int (*p_set_outfile_param)( hnd_t handle, x264_param_t *p_param );
+extern int (*p_write_nalu)( hnd_t handle, uint8_t *p_nal, int i_size );
+extern int (*p_set_eop)( hnd_t handle, x264_picture_t *p_picture );
+extern int (*p_close_outfile)( hnd_t handle );
+
 #endif