vf_uspp.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <math.h>
#include <assert.h>
#include "config.h"
#include "mp_msg.h"
#include "cpudetect.h"
#include "libavutil/mem.h"
#include "libavcodec/avcodec.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
#include "av_helpers.h"
#include "libvo/fastmemcpy.h"
Include dependency graph for vf_uspp.c:

Go to the source code of this file.

Data Structures

struct  vf_priv_s
 

Macros

#define XMIN(a, b)   ((a) < (b) ? (a) : (b))
 
#define BLOCK   16
 
#define STORE(pos)
 

Functions

static const uint8_t __attribute__ ((aligned(8)))
 
static void store_slice_c (uint8_t *dst, int16_t *src, int dst_stride, int src_stride, int width, int height, int log2_scale)
 
static void filter (struct vf_priv_s *p, uint8_t *dst[3], uint8_t *src[3], int dst_stride[3], int src_stride[3], int width, int height, uint8_t *qp_store, int qp_stride)
 
static int config (struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt)
 
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)
 
static void uninit (struct vf_instance *vf)
 
static int query_format (struct vf_instance *vf, unsigned int fmt)
 
static int control (struct vf_instance *vf, int request, void *data)
 
static int vf_open (vf_instance_t *vf, char *args)
 

Variables

static const uint8_t offset [511][2]
 
const vf_info_t ff_vf_info_uspp
 

Macro Definition Documentation

#define BLOCK   16

Definition at line 44 of file vf_uspp.c.

Referenced by config(), filter(), and uninit().

#define STORE (   pos)
Value:
temp= ((src[x + y*src_stride + pos]<<log2_scale) + d[pos])>>8;\
if(temp & 0x100) temp= ~(temp>>31);\
dst[x + y*dst_stride + pos]= temp;
else temp
Definition: vf_mcdeint.c:148
set threshold d
initialize output if(nPeaks >3)%at least 3 peaks in spectrum for trying to find f0 nf0peaks
Discrete Time axis x
AVS_Value src
Definition: avisynth_c.h:523
function y
Definition: D.m:1
else dst[i][x+y *dst_stride[i]]
Definition: vf_mcdeint.c:160

Referenced by store_slice_c().

#define XMIN (   a,
  b 
)    ((a) < (b) ? (a) : (b))

Definition at line 42 of file vf_uspp.c.

Function Documentation

static const uint8_t __attribute__ ( (aligned(8))  )
static

Definition at line 47 of file vf_uspp.c.

static int config ( struct vf_instance vf,
int  width,
int  height,
int  d_width,
int  d_height,
unsigned int  flags,
unsigned int  outfmt 
)
static

Definition at line 213 of file vf_uspp.c.

Referenced by vf_open().

static int control ( struct vf_instance vf,
int  request,
void data 
)
static

Definition at line 340 of file vf_uspp.c.

Referenced by vf_open().

static void filter ( struct vf_priv_s p,
uint8_t dst[3],
uint8_t src[3],
int  dst_stride[3],
int  src_stride[3],
int  width,
int  height,
uint8_t qp_store,
int  qp_stride 
)
static

Definition at line 142 of file vf_uspp.c.

Referenced by put_image().

static void get_image ( struct vf_instance vf,
mp_image_t mpi 
)
static

Definition at line 257 of file vf_uspp.c.

Referenced by vf_open().

static int put_image ( struct vf_instance vf,
mp_image_t mpi,
double  pts 
)
static

Definition at line 274 of file vf_uspp.c.

Referenced by vf_open().

static int query_format ( struct vf_instance vf,
unsigned int  fmt 
)
static

Definition at line 328 of file vf_uspp.c.

Referenced by vf_open().

static void store_slice_c ( uint8_t dst,
int16_t *  src,
int  dst_stride,
int  src_stride,
int  width,
int  height,
int  log2_scale 
)
static

Definition at line 118 of file vf_uspp.c.

Referenced by filter().

static void uninit ( struct vf_instance vf)
static

Definition at line 309 of file vf_uspp.c.

Referenced by vf_open().

static int vf_open ( vf_instance_t vf,
char *  args 
)
static

Definition at line 352 of file vf_uspp.c.

Variable Documentation

const vf_info_t ff_vf_info_uspp
Initial value:
= {
"ultra simple/slow postprocess",
"uspp",
"Michael Niedermayer",
"",
}
NULL
Definition: eval.c:55
static int vf_open(vf_instance_t *vf, char *args)
Definition: vf_uspp.c:352

Definition at line 386 of file vf_uspp.c.

const uint8_t offset[511][2]
static

Definition at line 58 of file vf_uspp.c.

Referenced by filter().