Project Ne10
An open, optimized software library for the ARM architecture.
|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "NE10_imgproc.h"
#include "seatest.h"
#include "unit_test_common.h"
Go to the source code of this file.
Macros | |
#define | BASIC_KERNEL_SIZE 5 |
#define | KERNEL_COUNT BASIC_KERNEL_SIZE * BASIC_KERNEL_SIZE |
Functions | |
ne10_float32_t | cal_psnr_uint8_rgba (const ne10_uint8_t *pRef, const ne10_uint8_t *pTest, const ne10_uint32_t buffSize) |
int | rand_range (int min, int max) |
int | valid_kernels (ne10_size_t *kernels, int size) |
int | valid_result (const ne10_uint8_t *image1, const ne10_uint8_t *image2, ne10_size_t src_sz, ne10_int32_t src_stride, ne10_int32_t channel) |
void | boxfilter_get_kernels (size_t max_kernel_length, ne10_size_t **kernels_ptr, int *size) |
void | create_rgba8888_image (ne10_uint8_t **img, ne10_size_t src_sz) |
int | boxfilter_conformance_test (ne10_size_t src_sz) |
void | boxfilter_performance_test (ne10_size_t img_size, ne10_size_t kernel_size, long int *neon_ticks, long int *c_ticks) |
#define BASIC_KERNEL_SIZE 5 |
Definition at line 41 of file test_suite_boxfilter.c.
#define KERNEL_COUNT BASIC_KERNEL_SIZE * BASIC_KERNEL_SIZE |
Definition at line 42 of file test_suite_boxfilter.c.
int boxfilter_conformance_test | ( | ne10_size_t | src_sz | ) |
Definition at line 223 of file test_suite_boxfilter.c.
void boxfilter_get_kernels | ( | size_t | max_kernel_length, |
ne10_size_t ** | kernels_ptr, | ||
int * | size | ||
) |
Definition at line 142 of file test_suite_boxfilter.c.
void boxfilter_performance_test | ( | ne10_size_t | img_size, |
ne10_size_t | kernel_size, | ||
long int * | neon_ticks, | ||
long int * | c_ticks | ||
) |
Definition at line 279 of file test_suite_boxfilter.c.
ne10_float32_t cal_psnr_uint8_rgba | ( | const ne10_uint8_t * | pRef, |
const ne10_uint8_t * | pTest, | ||
const ne10_uint32_t | buffSize | ||
) |
Definition at line 44 of file test_suite_boxfilter.c.
void create_rgba8888_image | ( | ne10_uint8_t ** | img, |
ne10_size_t | src_sz | ||
) |
Definition at line 205 of file test_suite_boxfilter.c.
int rand_range | ( | int | min, |
int | max | ||
) |
Definition at line 61 of file test_suite_boxfilter.c.
int valid_kernels | ( | ne10_size_t * | kernels, |
int | size | ||
) |
Definition at line 67 of file test_suite_boxfilter.c.
int valid_result | ( | const ne10_uint8_t * | image1, |
const ne10_uint8_t * | image2, | ||
ne10_size_t | src_sz, | ||
ne10_int32_t | src_stride, | ||
ne10_int32_t | channel | ||
) |
Definition at line 83 of file test_suite_boxfilter.c.