#include "mp_image.h"
#include "vf.h"
#include "libavutil/attributes.h"
+#include "libavutil/x86/asm.h"
typedef void (pack_func_t)(unsigned char *dst, unsigned char *y,
unsigned char *u, unsigned char *v, int w, int us, int vs);
"pxor %%mm0, %%mm0 \n\t"
ASMALIGN(4)
- ".Lli0: \n\t"
+ "2: \n\t"
"movq (%%"REG_S"), %%mm1 \n\t"
"movq (%%"REG_S"), %%mm2 \n\t"
"add $32, %%"REG_D" \n\t"
"decl %%ecx \n\t"
- "jnz .Lli0 \n\t"
+ "jnz 2b \n\t"
"emms \n\t"
"pop %%"REG_BP" \n\t"
:
"pxor %%mm0, %%mm0 \n\t"
ASMALIGN(4)
- ".Lli1: \n\t"
+ "3: \n\t"
"movq (%%"REG_S"), %%mm1 \n\t"
"movq (%%"REG_S"), %%mm2 \n\t"
"add $32, %%"REG_D" \n\t"
"decl %%ecx \n\t"
- "jnz .Lli1 \n\t"
+ "jnz 3b \n\t"
"emms \n\t"
"pop %%"REG_BP" \n\t"
:
mp_image_t *dmpi;
// hope we'll get DR buffer:
- dmpi=vf_get_image(vf->next, IMGFMT_YUY2,
+ dmpi=ff_vf_get_image(vf->next, IMGFMT_YUY2,
MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
mpi->w, mpi->h);
ilpack(dmpi->planes[0], mpi->planes, dmpi->stride[0], mpi->stride, mpi->w, mpi->h, vf->priv->pack);
- return vf_next_put_image(vf,dmpi, pts);
+ return ff_vf_next_put_image(vf,dmpi, pts);
}
static int config(struct vf_instance *vf,
unsigned int flags, unsigned int outfmt)
{
/* FIXME - also support UYVY output? */
- return vf_next_config(vf, width, height, d_width, d_height, flags, IMGFMT_YUY2);
+ return ff_vf_next_config(vf, width, height, d_width, d_height, flags, IMGFMT_YUY2);
}
case IMGFMT_YV12:
case IMGFMT_IYUV:
case IMGFMT_I420:
- return vf_next_query_format(vf,IMGFMT_YUY2);
+ return ff_vf_next_query_format(vf,IMGFMT_YUY2);
}
return 0;
}
pack_li_0 = pack_li_0_C;
pack_li_1 = pack_li_1_C;
#if HAVE_MMX
- if(gCpuCaps.hasMMX) {
+ if(ff_gCpuCaps.hasMMX) {
pack_nn = pack_nn_MMX;
#if HAVE_EBX_AVAILABLE
pack_li_0 = pack_li_0_MMX;
vf->priv->pack[0] = vf->priv->pack[1] = pack_nn;
break;
default:
- mp_msg(MSGT_VFILTER, MSGL_WARN,
+ ff_mp_msg(MSGT_VFILTER, MSGL_WARN,
"ilpack: unknown mode %d (fallback to linear)\n",
vf->priv->mode);
+ /* Fallthrough */
case 1:
vf->priv->pack[0] = pack_li_0;
vf->priv->pack[1] = pack_li_1;
return 1;
}
-const vf_info_t vf_info_ilpack = {
+const vf_info_t ff_vf_info_ilpack = {
"4:2:0 planar -> 4:2:2 packed reinterlacer",
"ilpack",
"Richard Felker",