FFmpeg
Macros | Typedefs | Functions
huffyuvencdsp.c File Reference
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/intreadwrite.h"
#include "huffyuvencdsp.h"
#include "mathops.h"

Go to the source code of this file.

Macros

#define BITS   32
 
#define RN   AV_JOIN(AV_RN, BITS)
 
#define RNA   AV_JOIN(AV_JOIN(AV_RN, BITS), A)
 
#define WNA   AV_JOIN(AV_JOIN(AV_WN, BITS), A)
 
#define pb_7f   (~(uint_native)0 / 255 * 0x7f)
 
#define pb_80   (~(uint_native)0 / 255 * 0x80)
 
#define pw_1   ((uint_native)-1 / UINT16_MAX)
 

Typedefs

typedef uint32_t uint_native
 

Functions

static void diff_int16_c (uint16_t *dst, const uint16_t *src1, const uint16_t *src2, unsigned mask, int w)
 
static void sub_hfyu_median_pred_int16_c (uint16_t *dst, const uint16_t *src1, const uint16_t *src2, unsigned mask, int w, int *left, int *left_top)
 
av_cold void ff_huffyuvencdsp_init (HuffYUVEncDSPContext *c, enum AVPixelFormat pix_fmt)
 

Macro Definition Documentation

◆ BITS

#define BITS   32

Definition at line 29 of file huffyuvencdsp.c.

◆ RN

#define RN   AV_JOIN(AV_RN, BITS)

Definition at line 32 of file huffyuvencdsp.c.

◆ RNA

#define RNA   AV_JOIN(AV_JOIN(AV_RN, BITS), A)

Definition at line 33 of file huffyuvencdsp.c.

◆ WNA

#define WNA   AV_JOIN(AV_JOIN(AV_WN, BITS), A)

Definition at line 34 of file huffyuvencdsp.c.

◆ pb_7f

#define pb_7f   (~(uint_native)0 / 255 * 0x7f)

Definition at line 37 of file huffyuvencdsp.c.

◆ pb_80

#define pb_80   (~(uint_native)0 / 255 * 0x80)

Definition at line 38 of file huffyuvencdsp.c.

◆ pw_1

#define pw_1   ((uint_native)-1 / UINT16_MAX)

Definition at line 41 of file huffyuvencdsp.c.

Typedef Documentation

◆ uint_native

typedef uint32_t uint_native

Definition at line 30 of file huffyuvencdsp.c.

Function Documentation

◆ diff_int16_c()

static void diff_int16_c ( uint16_t *  dst,
const uint16_t *  src1,
const uint16_t *  src2,
unsigned  mask,
int  w 
)
static

Definition at line 43 of file huffyuvencdsp.c.

Referenced by ff_huffyuvencdsp_init().

◆ sub_hfyu_median_pred_int16_c()

static void sub_hfyu_median_pred_int16_c ( uint16_t *  dst,
const uint16_t *  src1,
const uint16_t *  src2,
unsigned  mask,
int  w,
int *  left,
int *  left_top 
)
static

Definition at line 69 of file huffyuvencdsp.c.

Referenced by ff_huffyuvencdsp_init().

◆ ff_huffyuvencdsp_init()

av_cold void ff_huffyuvencdsp_init ( HuffYUVEncDSPContext c,
enum AVPixelFormat  pix_fmt 
)

Definition at line 87 of file huffyuvencdsp.c.

Referenced by encode_init().