FFmpeg
Macros | Typedefs | Functions
pngdsp.c File Reference
#include <stdlib.h>
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/macros.h"
#include "pngdsp.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 WN   AV_JOIN(AV_WN, BITS)
 
#define pb_7f   (~(uint_native)0 / 255 * 0x7f)
 
#define pb_80   (~(uint_native)0 / 255 * 0x80)
 

Typedefs

typedef uint32_t uint_native
 

Functions

static void add_bytes_l2_c (uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int w)
 
void ff_png_add_paeth_prediction (uint8_t *dst, const uint8_t *src, const uint8_t *top, int w, int bpp)
 
av_cold void ff_pngdsp_init (PNGDSPContext *dsp)
 

Macro Definition Documentation

◆ BITS

#define BITS   32

Definition at line 34 of file pngdsp.c.

◆ RN

#define RN   AV_JOIN(AV_RN, BITS)

Definition at line 37 of file pngdsp.c.

◆ RNA

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

Definition at line 38 of file pngdsp.c.

◆ WN

#define WN   AV_JOIN(AV_WN, BITS)

Definition at line 39 of file pngdsp.c.

◆ pb_7f

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

Definition at line 42 of file pngdsp.c.

◆ pb_80

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

Definition at line 43 of file pngdsp.c.

Typedef Documentation

◆ uint_native

typedef uint32_t uint_native

Definition at line 35 of file pngdsp.c.

Function Documentation

◆ add_bytes_l2_c()

static void add_bytes_l2_c ( uint8_t *  dst,
const uint8_t *  src1,
const uint8_t *  src2,
int  w 
)
static

Definition at line 45 of file pngdsp.c.

Referenced by ff_pngdsp_init().

◆ ff_png_add_paeth_prediction()

void ff_png_add_paeth_prediction ( uint8_t *  dst,
const uint8_t *  src,
const uint8_t *  top,
int  w,
int  bpp 
)

Definition at line 58 of file pngdsp.c.

Referenced by ff_png_filter_row(), and ff_pngdsp_init().

◆ ff_pngdsp_init()

av_cold void ff_pngdsp_init ( PNGDSPContext dsp)

Definition at line 85 of file pngdsp.c.

Referenced by lscr_decode_init(), and png_dec_init().