]> git.sesse.net Git - x264/blob - muxers.h
r768 borked cavlc
[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 int open_file_avis( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
17 int get_frame_total_avis( hnd_t handle );
18 int read_frame_avis( x264_picture_t *p_pic, hnd_t handle, int i_frame );
19 int close_file_avis( hnd_t handle );
20
21 int open_file_thread( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
22 int get_frame_total_thread( hnd_t handle );
23 int read_frame_thread( x264_picture_t *p_pic, hnd_t handle, int i_frame );
24 int close_file_thread( hnd_t handle );
25
26 int open_file_bsf( char *psz_filename, hnd_t *p_handle );
27 int set_param_bsf( hnd_t handle, x264_param_t *p_param );
28 int write_nalu_bsf( hnd_t handle, uint8_t *p_nal, int i_size );
29 int set_eop_bsf( hnd_t handle,  x264_picture_t *p_picture );
30 int close_file_bsf( hnd_t handle );
31
32 int open_file_mp4( char *psz_filename, hnd_t *p_handle );
33 int set_param_mp4( hnd_t handle, x264_param_t *p_param );
34 int write_nalu_mp4( hnd_t handle, uint8_t *p_nal, int i_size );
35 int set_eop_mp4( hnd_t handle, x264_picture_t *p_picture );
36 int close_file_mp4( hnd_t handle );
37
38 int open_file_mkv( char *psz_filename, hnd_t *p_handle );
39 int set_param_mkv( hnd_t handle, x264_param_t *p_param );
40 int write_nalu_mkv( hnd_t handle, uint8_t *p_nal, int i_size );
41 int set_eop_mkv( hnd_t handle, x264_picture_t *p_picture );
42 int close_file_mkv( hnd_t handle );
43
44 extern int (*p_open_infile)( char *psz_filename, hnd_t *p_handle, x264_param_t *p_param );
45 extern int (*p_get_frame_total)( hnd_t handle );
46 extern int (*p_read_frame)( x264_picture_t *p_pic, hnd_t handle, int i_frame );
47 extern int (*p_close_infile)( hnd_t handle );
48
49 #endif