mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 00:06:25 +01:00
removed dummy config(), query_format()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8052 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d85f89e0df
commit
4a2f05b606
@ -47,17 +47,8 @@ struct vf_priv_s {
|
|||||||
FilterParam chromaParam;
|
FilterParam chromaParam;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************/
|
/***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
static int config(struct vf_instance_s* vf,
|
|
||||||
int width, int height, int d_width, int d_height,
|
|
||||||
unsigned int flags, unsigned int outfmt){
|
|
||||||
|
|
||||||
return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int interleave(uint8_t *dst, uint8_t *src, int w, int h, int dstStride, int srcStride, int interleave, int swap){
|
static int interleave(uint8_t *dst, uint8_t *src, int w, int h, int dstStride, int srcStride, int interleave, int swap){
|
||||||
const int a= swap;
|
const int a= swap;
|
||||||
const int b= 1-a;
|
const int b= 1-a;
|
||||||
@ -118,11 +109,6 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
|
|||||||
|
|
||||||
//===========================================================================//
|
//===========================================================================//
|
||||||
|
|
||||||
static int query_format(struct vf_instance_s* vf, unsigned int fmt){
|
|
||||||
/* we support all formats :) */
|
|
||||||
return vf_next_query_format(vf, fmt);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void parse(FilterParam *fp, char* args){
|
static void parse(FilterParam *fp, char* args){
|
||||||
char *pos;
|
char *pos;
|
||||||
char *max= strchr(args, ':');
|
char *max= strchr(args, ':');
|
||||||
@ -140,10 +126,8 @@ static void parse(FilterParam *fp, char* args){
|
|||||||
static int open(vf_instance_t *vf, char* args){
|
static int open(vf_instance_t *vf, char* args){
|
||||||
char *pos, *max;
|
char *pos, *max;
|
||||||
|
|
||||||
vf->config=config;
|
|
||||||
vf->put_image=put_image;
|
vf->put_image=put_image;
|
||||||
// vf->get_image=get_image;
|
// vf->get_image=get_image;
|
||||||
vf->query_format=query_format;
|
|
||||||
vf->priv=malloc(sizeof(struct vf_priv_s));
|
vf->priv=malloc(sizeof(struct vf_priv_s));
|
||||||
memset(vf->priv, 0, sizeof(struct vf_priv_s));
|
memset(vf->priv, 0, sizeof(struct vf_priv_s));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user