#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "config.h"
#include "cpudetect.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
#include "libvo/fastmemcpy.h"
#include "libavutil/avutil.h"
#include "libavutil/x86_cpu.h"
Go to the source code of this file.
Data Structures | |
struct | vf_priv_s |
Stores persistant variables. More... | |
Functions | |
static void | filter_line_c (uint8_t *dst, uint8_t *src, uint16_t *dc, int width, int thresh, const uint16_t *dithers) |
static void | blur_line_c (uint16_t *dc, uint16_t *buf, uint16_t *buf1, uint8_t *src, int sstride, int width) |
static void | filter (struct vf_priv_s *ctx, uint8_t *dst, uint8_t *src, int width, int height, int dstride, int sstride, int r) |
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 int | query_format (struct vf_instance *vf, unsigned int fmt) |
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 | uninit (struct vf_instance *vf) |
static int | vf_open (vf_instance_t *vf, char *args) |
Variables | |
static const uint16_t | pw_7f [8] = {127,127,127,127,127,127,127,127} |
static const uint16_t | pw_ff [8] = {255,255,255,255,255,255,255,255} |
static const uint16_t | dither [8][8] |
const vf_info_t | vf_info_gradfun |
static void blur_line_c | ( | uint16_t * | dc, | |
uint16_t * | buf, | |||
uint16_t * | buf1, | |||
uint8_t * | src, | |||
int | sstride, | |||
int | width | |||
) | [static] |
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 352 of file vf_gradfun.c.
static void filter | ( | struct vf_priv_s * | ctx, | |
uint8_t * | dst, | |||
uint8_t * | src, | |||
int | width, | |||
int | height, | |||
int | dstride, | |||
int | sstride, | |||
int | r | |||
) | [static] |
Definition at line 236 of file vf_gradfun.c.
static void filter_line_c | ( | uint8_t * | dst, | |
uint8_t * | src, | |||
uint16_t * | dc, | |||
int | width, | |||
int | thresh, | |||
const uint16_t * | dithers | |||
) | [static] |
static void get_image | ( | struct vf_instance * | vf, | |
mp_image_t * | mpi | |||
) | [static] |
Definition at line 278 of file vf_gradfun.c.
static int put_image | ( | struct vf_instance * | vf, | |
mp_image_t * | mpi, | |||
double | pts | |||
) | [static] |
Definition at line 296 of file vf_gradfun.c.
static int query_format | ( | struct vf_instance * | vf, | |
unsigned int | fmt | |||
) | [static] |
Definition at line 330 of file vf_gradfun.c.
static void uninit | ( | struct vf_instance * | vf | ) | [static] |
Definition at line 361 of file vf_gradfun.c.
static int vf_open | ( | vf_instance_t * | vf, | |
char * | args | |||
) | [static] |
Definition at line 369 of file vf_gradfun.c.
const uint16_t dither[8][8] [static] |
Initial value:
{ { 0, 96, 24,120, 6,102, 30,126 }, { 64, 32, 88, 56, 70, 38, 94, 62 }, { 16,112, 8,104, 22,118, 14,110 }, { 80, 48, 72, 40, 86, 54, 78, 46 }, { 4,100, 28,124, 2, 98, 26,122 }, { 68, 36, 92, 60, 66, 34, 90, 58 }, { 20,116, 12,108, 18,114, 10,106 }, { 84, 52, 76, 44, 82, 50, 74, 42 }, }
Definition at line 56 of file vf_gradfun.c.
const uint16_t pw_7f[8] = {127,127,127,127,127,127,127,127} [static] |
Definition at line 54 of file vf_gradfun.c.
const uint16_t pw_ff[8] = {255,255,255,255,255,255,255,255} [static] |
Definition at line 55 of file vf_gradfun.c.
const vf_info_t vf_info_gradfun |
Initial value:
Definition at line 404 of file vf_gradfun.c.