Mercurial > mplayer.hg
comparison libmpcodecs/vf_smartblur.c @ 19870:1e5cf11e8b1f
Use PIX_FMT_* instead of IMGFMT_* when calling sws_getContext()
author | lucabe |
---|---|
date | Sun, 17 Sep 2006 15:02:13 +0000 |
parents | 8579acff875e |
children | bf1fbe97cc40 |
comparison
equal
deleted
inserted
replaced
19869:7d3d6f1533ee | 19870:1e5cf11e8b1f |
---|---|
27 | 27 |
28 #ifdef HAVE_MALLOC_H | 28 #ifdef HAVE_MALLOC_H |
29 #include <malloc.h> | 29 #include <malloc.h> |
30 #endif | 30 #endif |
31 | 31 |
32 #include "avutil.h" | |
32 #include "img_format.h" | 33 #include "img_format.h" |
33 #include "mp_image.h" | 34 #include "mp_image.h" |
34 #include "vf.h" | 35 #include "vf.h" |
35 #include "libvo/fastmemcpy.h" | 36 #include "libvo/fastmemcpy.h" |
36 #include "libswscale/swscale.h" | 37 #include "libswscale/swscale.h" |
89 sws_scaleVec(vec, f->strength); | 90 sws_scaleVec(vec, f->strength); |
90 vec->coeff[vec->length/2]+= 1.0 - f->strength; | 91 vec->coeff[vec->length/2]+= 1.0 - f->strength; |
91 swsF.lumH= swsF.lumV= vec; | 92 swsF.lumH= swsF.lumV= vec; |
92 swsF.chrH= swsF.chrV= NULL; | 93 swsF.chrH= swsF.chrV= NULL; |
93 f->filterContext= sws_getContext( | 94 f->filterContext= sws_getContext( |
94 width, height, IMGFMT_Y8, width, height, IMGFMT_Y8, get_sws_cpuflags(), &swsF, NULL, NULL); | 95 width, height, PIX_FMT_GRAY8, width, height, PIX_FMT_GRAY8, get_sws_cpuflags(), &swsF, NULL, NULL); |
95 | 96 |
96 sws_freeVec(vec); | 97 sws_freeVec(vec); |
97 | 98 |
98 return 0; | 99 return 0; |
99 } | 100 } |