FFmpeg
Macros | Functions | Variables
hevc_deblock.c File Reference
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/hevcdsp.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define SIZEOF_PIXEL   ((bit_depth + 7) / 8)
 
#define BUF_STRIDE   (8 * 2)
 
#define BUF_LINES   (8)
 
#define BUF_OFFSET   (BUF_STRIDE * BUF_LINES)
 
#define BUF_SIZE   (BUF_STRIDE * BUF_LINES + BUF_OFFSET * 2)
 
#define randomize_buffers(buf0, buf1, size)
 

Functions

static void check_deblock_chroma (HEVCDSPContext *h, int bit_depth)
 
void checkasm_check_hevc_deblock (void)
 

Variables

static const uint32_t pixel_mask [3] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff }
 

Macro Definition Documentation

◆ SIZEOF_PIXEL

#define SIZEOF_PIXEL   ((bit_depth + 7) / 8)

Definition at line 31 of file hevc_deblock.c.

◆ BUF_STRIDE

#define BUF_STRIDE   (8 * 2)

Definition at line 32 of file hevc_deblock.c.

◆ BUF_LINES

#define BUF_LINES   (8)

Definition at line 33 of file hevc_deblock.c.

◆ BUF_OFFSET

#define BUF_OFFSET   (BUF_STRIDE * BUF_LINES)

Definition at line 34 of file hevc_deblock.c.

◆ BUF_SIZE

#define BUF_SIZE   (BUF_STRIDE * BUF_LINES + BUF_OFFSET * 2)

Definition at line 35 of file hevc_deblock.c.

◆ randomize_buffers

#define randomize_buffers (   buf0,
  buf1,
  size 
)
Value:
do { \
uint32_t mask = pixel_mask[(bit_depth - 8) >> 1]; \
int k; \
for (k = 0; k < size; k += 4) { \
uint32_t r = rnd() & mask; \
AV_WN32A(buf0 + k, r); \
AV_WN32A(buf1 + k, r); \
} \
} while (0)

Definition at line 37 of file hevc_deblock.c.

Function Documentation

◆ check_deblock_chroma()

static void check_deblock_chroma ( HEVCDSPContext h,
int  bit_depth 
)
static

Definition at line 48 of file hevc_deblock.c.

Referenced by checkasm_check_hevc_deblock().

◆ checkasm_check_hevc_deblock()

void checkasm_check_hevc_deblock ( void  )

Definition at line 91 of file hevc_deblock.c.

Variable Documentation

◆ pixel_mask

const uint32_t pixel_mask[3] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff }
static

Definition at line 29 of file hevc_deblock.c.

r
const char * r
Definition: vf_curves.c:126
bit_depth
static void bit_depth(AudioStatsContext *s, const uint64_t *const mask, uint8_t *depth)
Definition: af_astats.c:245
rnd
#define rnd()
Definition: checkasm.h:122
mask
static const uint16_t mask[17]
Definition: lzw.c:38
size
int size
Definition: twinvq_data.h:10344
pixel_mask
static const uint32_t pixel_mask[3]
Definition: hevc_deblock.c:29