]> git.sesse.net Git - x264/blob - muxers.h
make libx264.so symlink relative
[x264] / muxers.h
1 #ifndef _X264_MUXERS_H_
2 #define _X264_MUXERS_H_
3
4 typedef void *hnd_t;
5
6 int open_file_yuv( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
7 int get_frame_total_yuv( hnd_t handle );
8 int read_frame_yuv( x264_picture_t *p_pic, hnd_t handle, int i_frame );
9 int close_file_yuv( hnd_t handle );
10
11 int open_file_y4m( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
12 int get_frame_total_y4m( hnd_t handle );
13 int read_frame_y4m( x264_picture_t *p_pic, hnd_t handle, int i_frame );
14 int close_file_y4m( hnd_t handle );
15
16 #ifdef AVIS_INPUT
17 int open_file_avis( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
18 int get_frame_total_avis( hnd_t handle );
19 int read_frame_avis( x264_picture_t *p_pic, hnd_t handle, int i_frame );
20 int close_file_avis( hnd_t handle );
21 #endif
22
23 #ifdef HAVE_PTHREAD
24 int open_file_thread( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
25 int get_frame_total_thread( hnd_t handle );
26 int read_frame_thread( x264_picture_t *p_pic, hnd_t handle, int i_frame );
27 int close_file_thread( hnd_t handle );
28 #endif
29
30 int open_file_bsf( char *psz_filename, hnd_t *p_handle );
31 int set_param_bsf( hnd_t handle, x264_param_t *p_param );
32 int write_nalu_bsf( hnd_t handle, uint8_t *p_nal, int i_size );
33 int set_eop_bsf( hnd_t handle,  x264_picture_t *p_picture );
34 int close_file_bsf( hnd_t handle );
35
36 #ifdef MP4_OUTPUT
37 int open_file_mp4( char *psz_filename, hnd_t *p_handle );
38 int set_param_mp4( hnd_t handle, x264_param_t *p_param );
39 int write_nalu_mp4( hnd_t handle, uint8_t *p_nal, int i_size );
40 int set_eop_mp4( hnd_t handle, x264_picture_t *p_picture );
41 int close_file_mp4( hnd_t handle );
42 #endif
43
44 int open_file_mkv( char *psz_filename, hnd_t *p_handle );
45 int set_param_mkv( hnd_t handle, x264_param_t *p_param );
46 int write_nalu_mkv( hnd_t handle, uint8_t *p_nal, int i_size );
47 int set_eop_mkv( hnd_t handle, x264_picture_t *p_picture );
48 int close_file_mkv( hnd_t handle );
49
50 extern int (*p_open_infile)( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
51 extern int (*p_get_frame_total)( hnd_t handle );
52 extern int (*p_read_frame)( x264_picture_t *p_pic, hnd_t handle, int i_frame );
53 extern int (*p_close_infile)( hnd_t handle );
54
55 #endif