FFmpeg
Macros | Functions | Variables
motion.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "config.h"
#include "libavcodec/me_cmp.h"
#include "libavutil/cpu.h"
#include "libavutil/emms.h"
#include "libavutil/internal.h"
#include "libavutil/lfg.h"
#include "libavutil/mem.h"
#include "libavutil/time.h"

Go to the source code of this file.

Macros

#define WIDTH   64
 
#define HEIGHT   64
 
#define NB_ITS   500
 

Functions

static void fill_random (uint8_t *tab, int size)
 
static void help (void)
 
static void test_motion (const char *name, me_cmp_func test_func, me_cmp_func ref_func)
 
int main (int argc, char **argv)
 

Variables

static uint8_t img1 [WIDTH *HEIGHT]
 
static uint8_t img2 [WIDTH *HEIGHT]
 
int dummy
 

Detailed Description

motion test.

Definition in file motion.c.

Macro Definition Documentation

◆ WIDTH

#define WIDTH   64

Definition at line 41 of file motion.c.

◆ HEIGHT

#define HEIGHT   64

Definition at line 42 of file motion.c.

◆ NB_ITS

#define NB_ITS   500

Definition at line 64 of file motion.c.

Function Documentation

◆ fill_random()

static void fill_random ( uint8_t *  tab,
int  size 
)
static

Definition at line 47 of file motion.c.

Referenced by test_motion().

◆ help()

static void help ( void  )
static

Definition at line 58 of file motion.c.

Referenced by main().

◆ test_motion()

static void test_motion ( const char *  name,
me_cmp_func  test_func,
me_cmp_func  ref_func 
)
static

Definition at line 68 of file motion.c.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 116 of file motion.c.

Variable Documentation

◆ img1

uint8_t img1[WIDTH *HEIGHT]
static

Definition at line 44 of file motion.c.

Referenced by image_sad(), and test_motion().

◆ img2

uint8_t img2[WIDTH *HEIGHT]
static

Definition at line 45 of file motion.c.

Referenced by image_sad(), and test_motion().

◆ dummy

int dummy