-typedef struct function_list_s
-{
- union
- {
- /* Interface plugin */
- struct
- {
- int ( * pf_open ) ( struct intf_thread_s * );
- void ( * pf_close )( struct intf_thread_s * );
- void ( * pf_run ) ( struct intf_thread_s * );
- } intf;
-
- /* Input plugin */
- struct
- {
- int ( * pf_probe )( struct input_thread_s * );
- void ( * pf_init ) ( struct input_thread_s * );
- void ( * pf_open ) ( struct input_thread_s * );
- void ( * pf_close )( struct input_thread_s * );
- void ( * pf_end ) ( struct input_thread_s * );
- void ( * pf_init_bit_stream ) ( struct bit_stream_s *,
- struct decoder_fifo_s *,
- void (* pf_bitstream_callback)( struct bit_stream_s *,
- boolean_t ),
- void * );
-
- int ( * pf_read ) ( struct input_thread_s *,
- struct data_packet_s ** );
- void ( * pf_demux )( struct input_thread_s *,
- struct data_packet_s * );
-
- struct data_packet_s * ( * pf_new_packet ) ( void *, size_t );
- struct pes_packet_s * ( * pf_new_pes ) ( void * );
- void ( * pf_delete_packet ) ( void *, struct data_packet_s * );
- void ( * pf_delete_pes ) ( void *, struct pes_packet_s * );
-
- int ( * pf_set_program ) ( struct input_thread_s *,
- struct pgrm_descriptor_s * );
-
- int ( * pf_set_area ) ( struct input_thread_s *,
- struct input_area_s * );
- int ( * pf_rewind ) ( struct input_thread_s * );
- void ( * pf_seek ) ( struct input_thread_s *, off_t );
- } input;
-
- /* Audio output plugin */
- struct
- {
- int ( * pf_open ) ( struct aout_thread_s * );
- int ( * pf_setformat ) ( struct aout_thread_s * );
- int ( * pf_getbufinfo ) ( struct aout_thread_s *, int );
- void ( * pf_play ) ( struct aout_thread_s *, byte_t *, int );
- void ( * pf_close ) ( struct aout_thread_s * );
- } aout;
-
- /* Video output plugin */
- struct
- {
- int ( * pf_create ) ( struct vout_thread_s * );
- int ( * pf_init ) ( struct vout_thread_s * );
- void ( * pf_end ) ( struct vout_thread_s * );
- void ( * pf_destroy ) ( struct vout_thread_s * );
- int ( * pf_manage ) ( struct vout_thread_s * );
- void ( * pf_render ) ( struct vout_thread_s *,
- struct picture_s * );
- void ( * pf_display ) ( struct vout_thread_s *,
- struct picture_s * );
- } vout;
-
- /* Motion compensation plugin */
- struct
- {
- void ( * ppppf_motion[2][2][4] ) ( yuv_data_t *, yuv_data_t *,
- int, int );
- } motion;
-
- /* IDCT plugin */
- struct
- {
- void ( * pf_idct_init ) ( void ** );
- void ( * pf_sparse_idct_add )( dctelem_t *, yuv_data_t *, int,
- void *, int );
- void ( * pf_idct_add ) ( dctelem_t *, yuv_data_t *, int,
- void *, int );
- void ( * pf_sparse_idct_copy )( dctelem_t *, yuv_data_t *, int,
- void *, int );
- void ( * pf_idct_copy ) ( dctelem_t *, yuv_data_t *, int,
- void *, int );
- void ( * pf_norm_scan ) ( u8 ppi_scan[2][64] );
- } idct;
-
- /* Chroma transformation plugin */
- struct
- {
- int ( * pf_init ) ( struct vout_thread_s * );
- void ( * pf_end ) ( struct vout_thread_s * );
- } chroma;
-
- /* IMDCT plugin */
- struct
- {
- void ( * pf_imdct_init ) ( struct imdct_s * );
- void ( * pf_imdct_256 ) ( struct imdct_s *,
- float data[], float delay[] );
- void ( * pf_imdct_256_nol )( struct imdct_s *,
- float data[], float delay[] );
- void ( * pf_imdct_512 ) ( struct imdct_s *,
- float data[], float delay[] );
- void ( * pf_imdct_512_nol )( struct imdct_s *,
- float data[], float delay[] );
-// void ( * pf_fft_64p ) ( struct complex_s * );
-
- } imdct;
-
- /* AC3 downmix plugin */
- struct
- {
- void ( * pf_downmix_3f_2r_to_2ch ) ( float *, struct dm_par_s * );
- void ( * pf_downmix_3f_1r_to_2ch ) ( float *, struct dm_par_s * );
- void ( * pf_downmix_2f_2r_to_2ch ) ( float *, struct dm_par_s * );
- void ( * pf_downmix_2f_1r_to_2ch ) ( float *, struct dm_par_s * );
- void ( * pf_downmix_3f_0r_to_2ch ) ( float *, struct dm_par_s * );
- void ( * pf_stream_sample_2ch_to_s16 ) ( s16 *, float *, float * );
- void ( * pf_stream_sample_1ch_to_s16 ) ( s16 *, float * );
-
- } downmix;
-
- /* Decoder plugins */
- struct
- {
- int ( * pf_probe)( u8 * p_es );
- int ( * pf_run ) ( struct decoder_config_s * p_config );
- } dec;
-
- /* memcpy plugins */
- struct
- {
- void* ( * pf_memcpy ) ( void *, const void *, size_t );
- void* ( * pf_memset ) ( void *, int, size_t );
- } memcpy;
-
- } functions;
-
-} function_list_t;
-
-typedef struct module_functions_s