FFmpeg
Macros | Functions
snowdsp.c File Reference
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/macros.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/snow.h"
#include "libavcodec/snow_dwt.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define randomize_buffer(buf)
 

Functions

static void checkasm_check_inner_add_yblock (const SnowDWTContext *const snowdsp)
 
void checkasm_check_snowdsp (void)
 

Macro Definition Documentation

◆ randomize_buffer

#define randomize_buffer (   buf)
Value:
do { \
for (size_t k = 0; k < (sizeof(buf) & ~3); k += 4) \
AV_WN32A((char*)buf + k, rnd()); \
for (size_t k = sizeof(buf) & ~3; k < sizeof(buf); ++k) \
((char*)buf)[k] = rnd(); \
} while (0)

Definition at line 33 of file snowdsp.c.

Function Documentation

◆ checkasm_check_inner_add_yblock()

static void checkasm_check_inner_add_yblock ( const SnowDWTContext *const  snowdsp)
static

Definition at line 41 of file snowdsp.c.

Referenced by checkasm_check_snowdsp().

◆ checkasm_check_snowdsp()

void checkasm_check_snowdsp ( void  )

Definition at line 136 of file snowdsp.c.

AV_WN32A
#define AV_WN32A(p, v)
Definition: intreadwrite.h:534
rnd
#define rnd()
Definition: checkasm.h:207