libavfilter/libmpcodecs/vf_2xsai.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "config.h"
#include "mp_msg.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
Go to the source code of this file.
|
Defines |
#define | makecol(r, g, b) (r+(g<<8)+(b<<16)) |
#define | makecol_depth(d, r, g, b) (r+(g<<8)+(b<<16)) |
#define | GET_RESULT(A, B, C, D) ((A != C || A != D) - (B != C || B != D)) |
#define | INTERPOLATE(A, B) (((A & colorMask) >> 1) + ((B & colorMask) >> 1) + (A & B & lowPixelMask)) |
#define | Q_INTERPOLATE(A, B, C, D) |
Functions |
static int | Init_2xSaI (int d) |
static void | Super2xSaI_ex (uint8_t *src, uint32_t src_pitch, uint8_t *dst, uint32_t dst_pitch, uint32_t width, uint32_t height, int sbpp) |
static int | config (struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt) |
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 | vf_open (vf_instance_t *vf, char *args) |
Variables |
static uint32_t | colorMask = 0xF7DEF7DE |
static uint32_t | lowPixelMask = 0x08210821 |
static uint32_t | qcolorMask = 0xE79CE79C |
static uint32_t | qlowpixelMask = 0x18631863 |
static uint32_t | redblueMask = 0xF81F |
static uint32_t | greenMask = 0x7E0 |
static int | PixelsPerMask = 2 |
const vf_info_t | vf_info_2xsai |
Define Documentation
#define GET_RESULT |
( |
A, |
|
|
B, |
|
|
C, |
|
|
D |
|
) |
((A != C || A != D) - (B != C || B != D)) |
#define makecol |
( |
r, |
|
|
g, |
|
|
b |
|
) |
(r+(g<<8)+(b<<16)) |
#define makecol_depth |
( |
d, |
|
|
r, |
|
|
g, |
|
|
b |
|
) |
(r+(g<<8)+(b<<16)) |
#define Q_INTERPOLATE |
( |
A, |
|
|
B, |
|
|
C, |
|
|
D |
|
) |
|
Function Documentation
static int config |
( |
struct vf_instance * |
vf, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
d_width, |
|
|
int |
d_height, |
|
|
unsigned int |
flags, |
|
|
unsigned int |
outfmt | |
|
) |
| | [static] |
static int Init_2xSaI |
( |
int |
d |
) |
[static] |
static int query_format |
( |
struct vf_instance * |
vf, |
|
|
unsigned int |
fmt | |
|
) |
| | [static] |
static void Super2xSaI_ex |
( |
uint8_t * |
src, |
|
|
uint32_t |
src_pitch, |
|
|
uint8_t * |
dst, |
|
|
uint32_t |
dst_pitch, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
int |
sbpp | |
|
) |
| | [static] |
Variable Documentation
Initial value:
{
"2xSai BGR bitmap 2x scaler",
"2xsai",
"A'rpi",
"http://elektron.its.tudelft.nl/~dalikifa/",
vf_open,
NULL
}
Definition at line 327 of file vf_2xsai.c.