]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/libmpcodecs/vf_pp.c
lavfi/mp: add ff_ prefix to exported symbols
[ffmpeg] / libavfilter / libmpcodecs / vf_pp.c
index 78cce1fd7cb93c3737767b107fca281321bc89f2..2624d67b0cd7338ba1dbc1ab5d560a2335b5247d 100644 (file)
@@ -54,10 +54,7 @@ struct vf_priv_s {
 static int config(struct vf_instance *vf,
         int width, int height, int d_width, int d_height,
         unsigned int voflags, unsigned int outfmt){
-    int flags=
-          (gCpuCaps.hasMMX   ? PP_CPU_CAPS_MMX   : 0)
-        | (gCpuCaps.hasMMX2  ? PP_CPU_CAPS_MMX2  : 0)
-        | (gCpuCaps.has3DNow ? PP_CPU_CAPS_3DNOW : 0);
+    int flags= PP_CPU_CAPS_AUTO;
 
     switch(outfmt){
     case IMGFMT_444P: flags|= PP_FORMAT_444; break;
@@ -69,7 +66,7 @@ static int config(struct vf_instance *vf,
     if(vf->priv->context) pp_free_context(vf->priv->context);
     vf->priv->context= pp_get_context(width, height, flags);
 
-    return vf_next_config(vf,width,height,d_width,d_height,voflags,outfmt);
+    return ff_vf_next_config(vf,width,height,d_width,d_height,voflags,outfmt);
 }
 
 static void uninit(struct vf_instance *vf){
@@ -90,7 +87,7 @@ static int query_format(struct vf_instance *vf, unsigned int fmt){
     case IMGFMT_444P:
     case IMGFMT_422P:
     case IMGFMT_411P:
-        return vf_next_query_format(vf,fmt);
+        return ff_vf_next_query_format(vf,fmt);
     }
     return 0;
 }
@@ -103,7 +100,7 @@ static int control(struct vf_instance *vf, int request, void* data){
         vf->priv->pp= *((unsigned int*)data);
         return CONTROL_TRUE;
     }
-    return vf_next_control(vf,request,data);
+    return ff_vf_next_control(vf,request,data);
 }
 
 static void get_image(struct vf_instance *vf, mp_image_t *mpi){
@@ -113,7 +110,7 @@ static void get_image(struct vf_instance *vf, mp_image_t *mpi){
     if(!(mpi->flags&MP_IMGFLAG_ACCEPT_STRIDE) && mpi->imgfmt!=vf->priv->outfmt)
         return; // colorspace differ
     // ok, we can do pp in-place (or pp disabled):
-    vf->dmpi=vf_get_image(vf->next,mpi->imgfmt,
+    vf->dmpi=ff_vf_get_image(vf->next,mpi->imgfmt,
         mpi->type, mpi->flags | MP_IMGFLAG_READABLE, mpi->width, mpi->height);
     mpi->planes[0]=vf->dmpi->planes[0];
     mpi->stride[0]=vf->dmpi->stride[0];
@@ -130,7 +127,7 @@ static void get_image(struct vf_instance *vf, mp_image_t *mpi){
 static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){
     if(!(mpi->flags&MP_IMGFLAG_DIRECT)){
         // no DR, so get a new image! hope we'll get DR buffer:
-        vf->dmpi=vf_get_image(vf->next,mpi->imgfmt,
+        vf->dmpi=ff_vf_get_image(vf->next,mpi->imgfmt,
             MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE |
             MP_IMGFLAG_PREFER_ALIGNED_STRIDE | MP_IMGFLAG_READABLE,
 //            MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
@@ -152,7 +149,7 @@ static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){
                     mpi->pict_type);
 #endif
     }
-    return vf_next_put_image(vf,vf->dmpi, pts);
+    return ff_vf_next_put_image(vf,vf->dmpi, pts);
 }
 
 //===========================================================================//
@@ -183,7 +180,7 @@ static int vf_open(vf_instance_t *vf, char *args){
     vf->priv->context=NULL;
 
     // check csp:
-    vf->priv->outfmt=vf_match_csp(&vf->next,fmt_list,IMGFMT_YV12);
+    vf->priv->outfmt=ff_vf_match_csp(&vf->next,fmt_list,IMGFMT_YV12);
     if(!vf->priv->outfmt) return 0; // no csp match :(
 
     if(args && *args){
@@ -230,7 +227,7 @@ static int vf_open(vf_instance_t *vf, char *args){
     return 1;
 }
 
-const vf_info_t vf_info_pp = {
+const vf_info_t ff_vf_info_pp = {
     "postprocessing",
     "pp",
     "A'rpi",