H.264 Codec for ESP32-S3
Loading...
Searching...
No Matches
Public Attributes | List of all members
esp_h264_dec_in_frame_t Struct Reference

Data stream information before encoding. More...

#include <esp_h264_types.h>

Collaboration diagram for esp_h264_dec_in_frame_t:
Collaboration graph
[legend]

Public Attributes

esp_h264_pkt_t raw_data
 
uint32_t consume
 
uint32_t dts
 
uint32_t pts
 

Detailed Description

Data stream information before encoding.

Note
User needs to process the consume as follows:
esp_h264_dec_in_frame_t in_frame = {.raw_data.buffer = buffer, .raw_data.len = len};
while (raw_data.len) {
ret = esp_h264_dec_process(dec, &in_frame, &out_frame);
if (ret != ESP_H264_ERR_OK) {
break;
}
in_frame.raw_data.buffer += in_frame.consume;
in_frame.raw_data.len -= in_frame.consume;
}
esp_h264_err_t esp_h264_dec_process(esp_h264_dec_handle_t dec, esp_h264_dec_in_frame_t *in_frame, esp_h264_dec_out_frame_t *out_frame)
This function performs decoding of H.264 video frames.
Definition: esp_h264_dec.c:19
@ ESP_H264_ERR_OK
Definition: esp_h264_types.h:24
Data stream information before encoding.
Definition: esp_h264_types.h:227
esp_h264_pkt_t raw_data
Definition: esp_h264_types.h:228
uint32_t consume
Definition: esp_h264_types.h:229
Data stream information after encoding.
Definition: esp_h264_types.h:194
uint8_t * buffer
Definition: esp_h264_types.h:100
uint32_t len
Definition: esp_h264_types.h:101

Member Data Documentation

◆ consume

uint32_t consume

◆ dts

uint32_t dts

◆ pts

uint32_t pts

◆ raw_data

esp_h264_pkt_t raw_data

The documentation for this struct was generated from the following file: