FFmpeg
Functions | Variables
png.c File Reference
#include <stdint.h>
#include "libavutil/mem.h"
#include "png.h"

Go to the source code of this file.

Functions

int ff_png_get_nb_channels (int color_type)
 
int ff_png_pass_row_size (int pass, int bits_per_pixel, int width)
 

Variables

const uint8_t ff_png_pass_ymask [NB_PASSES]
 
static const uint8_t ff_png_pass_xmin [NB_PASSES]
 
static const uint8_t ff_png_pass_xshift [NB_PASSES]
 

Function Documentation

◆ ff_png_get_nb_channels()

int ff_png_get_nb_channels ( int  color_type)

Definition at line 41 of file png.c.

Referenced by decode_idat_chunk(), decode_sbit_chunk(), encode_headers(), and png_enc_init().

◆ ff_png_pass_row_size()

int ff_png_pass_row_size ( int  pass,
int  bits_per_pixel,
int  width 
)

Definition at line 54 of file png.c.

Referenced by decode_idat_chunk(), encode_frame(), and png_handle_row().

Variable Documentation

◆ ff_png_pass_ymask

const uint8_t ff_png_pass_ymask[NB_PASSES]
Initial value:
= {
0x80, 0x80, 0x08, 0x88, 0x22, 0xaa, 0x55,
}

Definition at line 27 of file png.c.

Referenced by encode_frame(), and png_handle_row().

◆ ff_png_pass_xmin

const uint8_t ff_png_pass_xmin[NB_PASSES]
static
Initial value:
= {
0, 4, 0, 2, 0, 1, 0
}

Definition at line 32 of file png.c.

Referenced by ff_png_pass_row_size().

◆ ff_png_pass_xshift

const uint8_t ff_png_pass_xshift[NB_PASSES]
static
Initial value:
= {
3, 3, 2, 2, 1, 1, 0
}

Definition at line 37 of file png.c.

Referenced by ff_png_pass_row_size().