|
FFmpeg
|
#include <string.h>#include "checkasm.h"#include "libavcodec/vc1dsp.h"#include "libavutil/common.h"#include "libavutil/internal.h"#include "libavutil/intreadwrite.h"#include "libavutil/mem.h"#include "libavutil/mem_internal.h"Go to the source code of this file.
Data Structures | |
| struct | test |
| struct | matrix |
Macros | |
| #define | VC1DSP_TEST(func) { #func, offsetof(VC1DSPContext, func) }, |
| #define | VC1DSP_SIZED_TEST(func, width, height) { #func, offsetof(VC1DSPContext, func), width, height }, |
| #define | ATTENUATION 4 |
| #define | RANDOMIZE_BUFFER16(name, size) |
| #define | RANDOMIZE_BUFFER8(name, size) |
| #define | RANDOMIZE_BUFFER8_MID_WEIGHTED(name, size) |
| #define | TEST_UNESCAPE |
| #define | LOG2_UNESCAPE_BUF_SIZE 17 |
| #define | UNESCAPE_BUF_SIZE (1u<<LOG2_UNESCAPE_BUF_SIZE) |
| #define | MSPEL_TEST(elem) { .name = #elem, offsetof(VC1DSPContext, elem) } |
Functions | |
| static matrix * | new_matrix (size_t width, size_t height) |
| static matrix * | multiply (const matrix *a, const matrix *b) |
| static void | normalise (matrix *a) |
| static void | divide_and_round_nearest (matrix *a, float by) |
| static void | tweak (matrix *a) |
| static matrix * | generate_inverse_quantized_transform_coefficients (size_t width, size_t height) |
| static void | check_inv_trans_inplace (void) |
| static void | check_inv_trans_adding (void) |
| static void | check_loop_filter (void) |
| static void | check_unescape (void) |
| static void | check_mspel_pixels (void) |
| void | checkasm_check_vc1dsp (void) |
Variables | |
| static const matrix | T8 |
| static const matrix | T4 |
| static const matrix | T8t |
| static const matrix | T4t |
| #define VC1DSP_TEST | ( | func | ) | { #func, offsetof(VC1DSPContext, func) }, |
| #define TEST_UNESCAPE |
| #define LOG2_UNESCAPE_BUF_SIZE 17 |
| #define UNESCAPE_BUF_SIZE (1u<<LOG2_UNESCAPE_BUF_SIZE) |
| #define MSPEL_TEST | ( | elem | ) | { .name = #elem, offsetof(VC1DSPContext, elem) } |
|
static |
Definition at line 85 of file vc1dsp.c.
Referenced by generate_inverse_quantized_transform_coefficients(), and multiply().
Definition at line 97 of file vc1dsp.c.
Referenced by generate_inverse_quantized_transform_coefficients().
|
static |
Definition at line 115 of file vc1dsp.c.
Referenced by generate_inverse_quantized_transform_coefficients().
Definition at line 132 of file vc1dsp.c.
Referenced by generate_inverse_quantized_transform_coefficients().
|
static |
Definition at line 141 of file vc1dsp.c.
Referenced by generate_inverse_quantized_transform_coefficients().
|
static |
Definition at line 166 of file vc1dsp.c.
Referenced by check_inv_trans_adding(), and check_inv_trans_inplace().
|
static |
Definition at line 249 of file vc1dsp.c.
Referenced by checkasm_check_vc1dsp().
|
static |
Definition at line 282 of file vc1dsp.c.
Referenced by checkasm_check_vc1dsp().
|
static |
Definition at line 332 of file vc1dsp.c.
Referenced by checkasm_check_vc1dsp().
|
static |
Definition at line 392 of file vc1dsp.c.
Referenced by checkasm_check_vc1dsp().
|
static |
BUF_SIZE is bigger than necessary in order to test strides > block width.
Due to qpel interpolation the input needs one extra line at the top and two at the bottom; horizontal interpolation also needs one pixel to the left and two to the right. At least the x86 implementation actually accesses three pixels to the right. The input is not subject to alignment requirements; making the input buffer bigger (by MAX_BLOCK_SIZE - 1) allows us to use a random misalignment.
Definition at line 442 of file vc1dsp.c.
Referenced by checkasm_check_vc1dsp().
|
static |
Definition at line 49 of file vc1dsp.c.
Referenced by generate_inverse_quantized_transform_coefficients().
|
static |
Definition at line 60 of file vc1dsp.c.
Referenced by generate_inverse_quantized_transform_coefficients().
|
static |
Definition at line 67 of file vc1dsp.c.
Referenced by generate_inverse_quantized_transform_coefficients().
|
static |
Definition at line 78 of file vc1dsp.c.
Referenced by generate_inverse_quantized_transform_coefficients().
1.8.17