2002-04-11 01:23:36 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2005-11-18 15:39:25 +01:00
|
|
|
#include "config.h"
|
|
|
|
#include "mp_msg.h"
|
2002-04-11 01:23:36 +02:00
|
|
|
|
2002-04-13 21:14:34 +02:00
|
|
|
#include "img_format.h"
|
|
|
|
#include "mp_image.h"
|
2002-04-11 01:23:36 +02:00
|
|
|
#include "vf.h"
|
|
|
|
|
|
|
|
extern vf_info_t ve_info_lavc;
|
|
|
|
extern vf_info_t ve_info_vfw;
|
2004-02-17 13:43:07 +01:00
|
|
|
extern vf_info_t ve_info_raw;
|
2002-04-12 23:49:51 +02:00
|
|
|
extern vf_info_t ve_info_libdv;
|
2002-09-21 14:34:02 +02:00
|
|
|
extern vf_info_t ve_info_xvid;
|
2002-12-16 02:49:39 +01:00
|
|
|
extern vf_info_t ve_info_qtvideo;
|
2003-03-03 12:03:19 +01:00
|
|
|
extern vf_info_t ve_info_nuv;
|
2004-08-27 22:43:05 +02:00
|
|
|
extern vf_info_t ve_info_x264;
|
2002-04-11 01:23:36 +02:00
|
|
|
|
|
|
|
static vf_info_t* encoder_list[]={
|
|
|
|
#ifdef USE_LIBAVCODEC
|
|
|
|
&ve_info_lavc,
|
|
|
|
#endif
|
|
|
|
#ifdef USE_WIN32DLL
|
|
|
|
&ve_info_vfw,
|
2005-05-14 11:03:00 +02:00
|
|
|
#ifdef USE_QTX_CODECS
|
2002-12-16 02:49:39 +01:00
|
|
|
&ve_info_qtvideo,
|
2002-04-12 23:49:51 +02:00
|
|
|
#endif
|
2005-05-14 11:03:00 +02:00
|
|
|
#endif
|
2002-04-12 23:49:51 +02:00
|
|
|
#ifdef HAVE_LIBDV095
|
|
|
|
&ve_info_libdv,
|
2002-04-11 01:23:36 +02:00
|
|
|
#endif
|
2004-02-17 13:43:07 +01:00
|
|
|
&ve_info_raw,
|
2006-11-18 03:40:19 +01:00
|
|
|
#ifdef HAVE_XVID4
|
2002-09-21 14:34:02 +02:00
|
|
|
&ve_info_xvid,
|
|
|
|
#endif
|
2003-03-03 12:03:19 +01:00
|
|
|
&ve_info_nuv,
|
2004-08-27 22:43:05 +02:00
|
|
|
#ifdef HAVE_X264
|
|
|
|
&ve_info_x264,
|
|
|
|
#endif
|
2002-04-11 01:23:36 +02:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2006-07-09 19:45:36 +02:00
|
|
|
vf_instance_t* vf_open_encoder(vf_instance_t* next, const char *name, char *args){
|
2003-03-15 19:50:58 +01:00
|
|
|
char* vf_args[] = { "_oldargs_", args, NULL };
|
|
|
|
return vf_open_plugin(encoder_list,next,name,vf_args);
|
2002-04-11 01:23:36 +02:00
|
|
|
}
|
|
|
|
|