Go to the documentation of this file.
25 int x16,
int y16,
int rounder)
27 const int A = (16 - x16) * (16 - y16);
28 const int B = (x16) * (16 - y16);
29 const int C = (16 - x16) * (y16);
30 const int D = (x16) * (y16);
33 for (
i = 0;
i <
h;
i++) {
48 int dxx,
int dxy,
int dyx,
int dyy,
int shift,
int r,
57 for (y = 0; y <
h; y++) {
62 for (x = 0; x < 8; x++) {
66 int frac_x = src_x & (
s - 1);
67 int frac_y = src_y & (
s - 1);
72 if ((
unsigned) src_x <
width) {
73 if ((
unsigned) src_y <
height) {
89 if ((
unsigned) src_y <
height) {
s EdgeDetect Foobar g libavfilter vf_edgedetect c libavfilter vf_foobar c edit libavfilter and add an entry for foobar following the pattern of the other filters edit libavfilter allfilters and add an entry for foobar following the pattern of the other filters configure make j< whatever > ffmpeg ffmpeg i you should get a foobar png with Lena edge detected That s your new playground is ready Some little details about what s going which in turn will define variables for the build system and the C
av_cold void ff_mpegvideodsp_init_x86(MpegVideoDSPContext *c)
av_cold void ff_mpegvideodsp_init(MpegVideoDSPContext *c)
static void gmc1_c(uint8_t *dst, uint8_t *src, int stride, int h, int x16, int y16, int rounder)
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
#define i(width, name, range_min, range_max)
void ff_gmc_c(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height)
av_cold void ff_mpegvideodsp_init_ppc(MpegVideoDSPContext *c)
static int shift(int a, int b)