view libmpcodecs/vd_internal.h @ 24133:d43cda21236d

Watch X11 fd in main input select() if using vo xv Add the X11 fd to main input select() set, and call VO check_events() if it becomes readable. Only done in vo xv code for now, though would make sense for other X11-based VOs too.
author uau
date Sat, 25 Aug 2007 04:28:17 +0000
parents ed8f90096c65
children 6ac1ece1f9fe
line wrap: on
line source


#include "codec-cfg.h"
#include "img_format.h"

#include "stream/stream.h"
#include "libmpdemux/demuxer.h"
#include "libmpdemux/stheader.h"

#include "vd.h"

extern int divx_quality;

// prototypes:
//static vd_info_t info;
static int control(sh_video_t *sh,int cmd,void* arg,...);
static int init(sh_video_t *sh);
static void uninit(sh_video_t *sh);
static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags);

#define LIBVD_EXTERN(x) vd_functions_t mpcodecs_vd_##x = {\
	&info,\
	init,\
        uninit,\
	control,\
	decode\
};