Commit 7929ae1b authored by Christophe Massiot's avatar Christophe Massiot

Heureusement que j'avais dit de faire gaffe a ne pas committer le mauvais

video_decoder.h :-ppppp
parent 81b0f175
/***************************************************************************** /*******************************************************************************
* video_decoder.h : video decoder thread * video_decoder.h : video decoder thread
* (c)1999 VideoLAN * (c)1999 VideoLAN
***************************************************************************** *******************************************************************************
***************************************************************************** *******************************************************************************
* Requires: * Requires:
* "config.h" * "config.h"
* "common.h" * "common.h"
...@@ -12,13 +12,13 @@ ...@@ -12,13 +12,13 @@
* "video.h" * "video.h"
* "video_output.h" * "video_output.h"
* "decoder_fifo.h" * "decoder_fifo.h"
*****************************************************************************/ *******************************************************************************/
/***************************************************************************** /*******************************************************************************
* vdec_thread_t: video decoder thread descriptor * vdec_thread_t: video decoder thread descriptor
***************************************************************************** *******************************************************************************
* ?? * ??
*****************************************************************************/ *******************************************************************************/
typedef struct vdec_thread_s typedef struct vdec_thread_s
{ {
/* Thread properties and locks */ /* Thread properties and locks */
...@@ -35,13 +35,24 @@ typedef struct vdec_thread_s ...@@ -35,13 +35,24 @@ typedef struct vdec_thread_s
/* Input properties */ /* Input properties */
video_parser_t * p_vpar; /* video_parser thread */ decoder_fifo_t fifo; /* PES input fifo */
short int p_pre_idct[64*64]; /* initialization of sparse idct routines */
/* The bit stream structure handles the PES stream at the bit level */
bit_stream_t bit_stream;
/* Output properties */
vout_thread_t * p_vout; /* video output thread */
int i_stream; /* video stream id */
#ifdef STATS #ifdef STATS
/* Statistics */ /* Statistics */
count_t c_loops; /* number of loops */ count_t c_loops; /* number of loops */
count_t c_idle_loops; /* number of idle loops */ count_t c_idle_loops; /* number of idle loops */
count_t c_pictures; /* number of pictures read */
count_t c_i_pictures; /* number of I pictures read */
count_t c_p_pictures; /* number of P pictures read */
count_t c_b_pictures; /* number of B pictures read */
count_t c_decoded_pictures; /* number of pictures decoded */ count_t c_decoded_pictures; /* number of pictures decoded */
count_t c_decoded_i_pictures; /* number of I 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_p_pictures; /* number of P pictures decoded */
...@@ -49,12 +60,13 @@ typedef struct vdec_thread_s ...@@ -49,12 +60,13 @@ typedef struct vdec_thread_s
#endif #endif
} vdec_thread_t; } vdec_thread_t;
/***************************************************************************** /*******************************************************************************
* Prototypes * Prototypes
*****************************************************************************/ *******************************************************************************/
/* Thread management functions */ /* Thread management functions */
vdec_thread_t * vdec_CreateThread ( vpar_thread_t *p_vpar /*, int *pi_status */ ); vdec_thread_t * vdec_CreateThread ( /* video_cfg_t *p_cfg, */ input_thread_t *p_input /*,
vout_thread_t *p_vout, int *pi_status */ );
void vdec_DestroyThread ( vdec_thread_t *p_vdec /*, int *pi_status */ ); void vdec_DestroyThread ( vdec_thread_t *p_vdec /*, int *pi_status */ );
/* Time management functions */ /* Time management functions */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment