- struct
- {
- char * psz_data;
- } aout;
-} probedata_t;
-
-/* FIXME: find a nicer way to do this. */
-typedef struct function_list_s
-{
- int ( * pf_probe ) ( probedata_t * p_data );
-
- 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
- {
- 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 *
- pp_packets[] );
- 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_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 * );
- long ( * pf_getbufinfo ) ( struct aout_thread_s *, long );
- 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_display ) ( struct vout_thread_s * );
- void ( * pf_setpalette ) ( struct vout_thread_s *, u16 *red,
- u16 *green, u16 *blue, u16 *transp );
- } 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;
-
- /* YUV transformation plugin */
- struct
- {
- int ( * pf_init ) ( struct vout_thread_s * );
- int ( * pf_reset ) ( struct vout_thread_s * );
- void ( * pf_end ) ( struct vout_thread_s * );
- } yuv;
-
- /* 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 * );