45 static int config(
struct vf_instance *vf,
47 unsigned int flags,
unsigned int outfmt){
48 int h= (height+15)>>4;
51 vf->priv->qp_stride= (width+15)>>4;
52 vf->priv->qp=
av_malloc(vf->priv->qp_stride*h*
sizeof(int8_t));
54 for(i=-129; i<128; i++){
72 res=
av_expr_parse_and_eval(&temp_val, vf->priv->eq, const_names, const_values,
NULL,
NULL,
NULL,
NULL,
NULL, 0,
NULL);
78 vf->priv->lut[i+129]=
lrintf(temp_val);
89 mpi->
planes[0]=vf->dmpi->planes[0];
90 mpi->
stride[0]=vf->dmpi->stride[0];
91 mpi->
width=vf->dmpi->width;
93 mpi->
planes[1]=vf->dmpi->planes[1];
94 mpi->
planes[2]=vf->dmpi->planes[2];
95 mpi->
stride[1]=vf->dmpi->stride[1];
96 mpi->
stride[2]=vf->dmpi->stride[2];
123 dmpi->
qscale = vf->priv->qp;
124 dmpi->
qstride= vf->priv->qp_stride;
126 for(y=0; y<((dmpi->
h+15)>>4); y++){
127 for(x=0; x<vf->priv->qp_stride; x++){
129 vf->priv->lut[ 129 + ((int8_t)mpi->
qscale[x + mpi->
qstride*y]) ];
133 int qp= vf->priv->lut[0];
134 for(y=0; y<((dmpi->
h+15)>>4); y++){
135 for(x=0; x<vf->priv->qp_stride; x++){
144 static void uninit(
struct vf_instance *vf){
145 if(!vf->priv)
return;
165 if (args) strncpy(vf->
priv->
eq, args, 199);
173 "Michael Niedermayer",