2002-04-10 23:23:36 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2005-11-18 14:39:25 +00:00
|
|
|
#include "config.h"
|
|
|
|
#include "mp_msg.h"
|
2002-04-10 23:23:36 +00:00
|
|
|
|
2002-04-13 19:14:34 +00:00
|
|
|
#include "img_format.h"
|
|
|
|
#include "mp_image.h"
|
2002-04-10 23:23:36 +00:00
|
|
|
#include "vf.h"
|
|
|
|
|
|
|
|
extern vf_info_t ve_info_lavc;
|
|
|
|
extern vf_info_t ve_info_vfw;
|
2004-02-17 12:43:07 +00:00
|
|
|
extern vf_info_t ve_info_raw;
|
2002-04-12 21:49:51 +00:00
|
|
|
extern vf_info_t ve_info_libdv;
|
2002-09-21 12:34:02 +00:00
|
|
|
extern vf_info_t ve_info_xvid;
|
2002-12-16 01:49:39 +00:00
|
|
|
extern vf_info_t ve_info_qtvideo;
|
2003-03-03 11:03:19 +00:00
|
|
|
extern vf_info_t ve_info_nuv;
|
2004-08-27 20:43:05 +00:00
|
|
|
extern vf_info_t ve_info_x264;
|
2002-04-10 23:23:36 +00:00
|
|
|
|
2008-01-28 16:03:22 +00:00
|
|
|
/* Please do not add any new encoders here. If you want to implement a new
|
2008-01-28 22:09:21 +00:00
|
|
|
* encoder, add it to libavcodec, except for wrappers around external
|
|
|
|
* libraries and encoders requiring binary support. */
|
2008-01-28 16:03:22 +00:00
|
|
|
|
2002-04-10 23:23:36 +00:00
|
|
|
static vf_info_t* encoder_list[]={
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_LIBAVCODEC
|
2002-04-10 23:23:36 +00:00
|
|
|
&ve_info_lavc,
|
|
|
|
#endif
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_WIN32DLL
|
2002-04-10 23:23:36 +00:00
|
|
|
&ve_info_vfw,
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_QTX_CODECS_WIN32
|
2002-12-16 01:49:39 +00:00
|
|
|
&ve_info_qtvideo,
|
2002-04-12 21:49:51 +00:00
|
|
|
#endif
|
2005-05-14 09:03:00 +00:00
|
|
|
#endif
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_LIBDV095
|
2002-04-12 21:49:51 +00:00
|
|
|
&ve_info_libdv,
|
2002-04-10 23:23:36 +00:00
|
|
|
#endif
|
2004-02-17 12:43:07 +00:00
|
|
|
&ve_info_raw,
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_XVID4
|
2002-09-21 12:34:02 +00:00
|
|
|
&ve_info_xvid,
|
|
|
|
#endif
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_LIBLZO
|
2003-03-03 11:03:19 +00:00
|
|
|
&ve_info_nuv,
|
2007-02-18 19:28:47 +00:00
|
|
|
#endif
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_X264
|
2004-08-27 20:43:05 +00:00
|
|
|
&ve_info_x264,
|
|
|
|
#endif
|
2008-01-28 12:11:41 +00:00
|
|
|
/* Please do not add any new encoders here. If you want to implement a new
|
2008-01-28 22:09:21 +00:00
|
|
|
* encoder, add it to libavcodec, except for wrappers around external
|
|
|
|
* libraries and encoders requiring binary support. */
|
2002-04-10 23:23:36 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2006-07-09 17:45:36 +00:00
|
|
|
vf_instance_t* vf_open_encoder(vf_instance_t* next, const char *name, char *args){
|
2003-03-15 18:50:58 +00:00
|
|
|
char* vf_args[] = { "_oldargs_", args, NULL };
|
|
|
|
return vf_open_plugin(encoder_list,next,name,vf_args);
|
2002-04-10 23:23:36 +00:00
|
|
|
}
|
|
|
|
|