* video.h: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: video.h,v 1.1 2002/10/28 06:26:11 fenrir Exp $
+ * $Id: video.h,v 1.5 2002/12/06 11:53:45 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-
-/* for a video stream */
-typedef struct bitmapinfoheader_s
-{
- u32 i_size; /* size of header */
- u32 i_width;
- u32 i_height;
- u16 i_planes;
- u16 i_bitcount;
- u32 i_compression;
- u32 i_sizeimage;
- u32 i_xpelspermeter;
- u32 i_ypelspermeter;
- u32 i_clrused;
- u32 i_clrimportant;
-
- int i_data;
- u8 *p_data;
-} bitmapinfoheader_t;
-
typedef struct vdec_thread_s
{
DECODER_THREAD_COMMON
-
- bitmapinfoheader_t format;
+#if LIBAVCODEC_BUILD >= 4641
+ AVVideoFrame *p_ff_pic;
+#else
+ AVPicture ff_pic, *p_ff_pic;
+#endif
+ BITMAPINFOHEADER *p_format;
vout_thread_t *p_vout;
u32 i_pp_mode; /* valid only with I420 and YV12 */
postprocessing_t *p_pp;
-
/* for frame skipping algo */
-// statistic_s statistic;
-
int b_hurry_up;
int i_frame_error;
int i_frame_skip;
- int i_frame_late; /* how may frame decoded are in late */
+ int i_frame_late; /* how many decoded frames are late */
+
+ int i_frame_count; /* to emulate pts */
+ /* for direct rendering */
+ int b_direct_rendering;
} vdec_thread_t;
int E_( InitThread_Video ) ( vdec_thread_t * );
void E_( EndThread_Video ) ( vdec_thread_t * );
void E_( DecodeThread_Video ) ( vdec_thread_t * );
-
-