H.264 Codec for ESP32-S3
Loading...
Searching...
No Matches
Macros | Functions | Variables
h264_io.c File Reference
#include "h264_io.h"
Include dependency graph for h264_io.c:

Macros

#define CLAMP(x)   ((x) < 0 ? 0 : ((x) > 255 ? 255 : (x)))
 
#define COLOR_NUM   (sizeof(yuv_table) / sizeof(yuv_table[0]))
 

Functions

int read_enc_cb (esp_h264_enc_in_frame_t *frame, int16_t width, int16_t height, esp_h264_raw_format_t format)
 
int write_enc_cb (esp_h264_enc_out_frame_t *frame)
 
int read_dec_cd (uint8_t *inbuf, uint32_t inbuf_len, esp_h264_dec_in_frame_t *frame)
 
int write_dec_cd (esp_h264_dec_out_frame_t *frame, uint8_t *yuv)
 

Variables

const uint8_t yuv_table [38][3]
 

Macro Definition Documentation

◆ CLAMP

#define CLAMP (   x)    ((x) < 0 ? 0 : ((x) > 255 ? 255 : (x)))

◆ COLOR_NUM

#define COLOR_NUM   (sizeof(yuv_table) / sizeof(yuv_table[0]))

Function Documentation

◆ read_dec_cd()

int read_dec_cd ( uint8_t *  inbuf,
uint32_t  inbuf_len,
esp_h264_dec_in_frame_t frame 
)

◆ read_enc_cb()

int read_enc_cb ( esp_h264_enc_in_frame_t frame,
int16_t  width,
int16_t  height,
esp_h264_raw_format_t  format 
)

◆ write_dec_cd()

int write_dec_cd ( esp_h264_dec_out_frame_t frame,
uint8_t *  yuv 
)

◆ write_enc_cb()

int write_enc_cb ( esp_h264_enc_out_frame_t frame)

Variable Documentation

◆ yuv_table

const uint8_t yuv_table[38][3]