9 #include "img_format.h"
17 //===========================================================================//
19 static int config(struct vf_instance_s
* vf
,
20 int width
, int height
, int d_width
, int d_height
,
21 unsigned int flags
, unsigned int outfmt
){
23 int scaled_y
=vf
->priv
->aspect
*d_height
/d_width
;
25 d_width
=width
; // do X-scaling by hardware
28 return vf_next_config(vf
,width
,height
,d_width
,d_height
,flags
,outfmt
);
31 static int open(vf_instance_t
*vf
, char* args
){
34 vf
->priv
=malloc(sizeof(struct vf_priv_s
));
36 if(args
) vf
->priv
->aspect
=atoi(args
);
40 const vf_info_t vf_info_dvbscale
= {
41 "calc Y scaling for DVB card",
49 //===========================================================================//