webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Macros | Functions | Variables
unit_test.h File Reference
#include <sys/time.h>
#include <sys/resource.h>
#include <gtest/gtest.h>
#include "libyuv/basic_types.h"

Go to the source code of this file.

Classes

class  LibYUVColorTest
 
class  LibYUVConvertTest
 
class  LibYUVScaleTest
 
class  LibYUVRotateTest
 
class  LibYUVPlanarTest
 
class  LibYUVBaseTest
 

Macros

#define SIMD_ALIGNED(var)   var
 
#define OFFBY   0
 
#define align_buffer_page_end(var, size)
 
#define free_aligned_buffer_page_end(var)
 

Functions

int fastrand ()
 

Variables

unsigned int fastrand_seed
 

Macro Definition Documentation

◆ align_buffer_page_end

#define align_buffer_page_end (   var,
  size 
)
Value:
uint8* var; \
uint8* var##_mem; \
var##_mem = reinterpret_cast<uint8*>(malloc(((size) + 4095 + 63) & ~4095)); \
var = (uint8*)((intptr_t)(var##_mem + (((size) + 4095 + 63) & ~4095) - \
(size)) & ~63);
#define size
Definition: float-mm.c:27
EGLStreamKHR EGLint EGLint EGLint size
Definition: eglext.h:984
unsigned char uint8
Definition: basic_types.h:62
#define malloc
Definition: mbmalloc.h:49
_W64 signed int intptr_t
Definition: stdint.h:160

◆ free_aligned_buffer_page_end

#define free_aligned_buffer_page_end (   var)
Value:
free(var##_mem); \
var = 0;
#define free
Definition: mbmalloc.h:50

◆ OFFBY

#define OFFBY   0

◆ SIMD_ALIGNED

#define SIMD_ALIGNED (   var)    var

Function Documentation

◆ fastrand()

int fastrand ( )
inline

Variable Documentation

◆ fastrand_seed

unsigned int fastrand_seed