/***************************************************************************** * video_decoder.h : video decoder thread * (c)1999 VideoLAN ***************************************************************************** ***************************************************************************** * Requires: * "config.h" * "common.h" * "mtime.h" * "vlc_thread.h" * "input.h" * "video.h" * "video_output.h" * "decoder_fifo.h" *****************************************************************************/ /***************************************************************************** * vdec_thread_t: video decoder thread descriptor ***************************************************************************** * ?? *****************************************************************************/ typedef struct vdec_thread_s { /* Thread properties and locks */ boolean_t b_die; /* `die' flag */ boolean_t b_run; /* `run' flag */ boolean_t b_error; /* `error' flag */ boolean_t b_active; /* `active' flag */ vlc_thread_t thread_id; /* id for thread functions */ /* Thread configuration */ /* ?? */ /*??*/ // int *pi_status; /* Input properties */ struct vpar_thread_s * p_vpar; /* video_parser thread */ #ifdef STATS /* Statistics */ count_t c_loops; /* number of loops */ count_t c_idle_loops; /* number of idle loops */ count_t c_decoded_pictures; /* number of pictures decoded */ count_t c_decoded_i_pictures; /* number of I pictures decoded */ count_t c_decoded_p_pictures; /* number of P pictures decoded */ count_t c_decoded_b_pictures; /* number of B pictures decoded */ #endif } vdec_thread_t; /* Move this somewhere else ASAP !! */ #define data_t short /***************************************************************************** * Function pointers *****************************************************************************/ typedef void (*f_addb_t)( elem_t*, data_t*, int ); /***************************************************************************** * Prototypes *****************************************************************************/ struct vpar_thread_s; /* Thread management functions */ vdec_thread_t * vdec_CreateThread ( struct vpar_thread_s *p_vpar /*, int *pi_status */ ); void vdec_DestroyThread ( vdec_thread_t *p_vdec /*, int *pi_status */ ); void vdec_AddBlock( elem_t*, data_t*, int ); void vdec_CopyBlock( elem_t*, data_t*, int ); void vdec_DummyBlock( elem_t*, data_t*, int );