H.264 Codec for ESP32-S3
Loading...
Searching...
No Matches
Functions
esp_h264_sw_dec_test.c File Reference
#include <string.h>
#include "esp_h264_dec_param.h"
#include "esp_h264_sw_dec_test.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "h264_io.h"
Include dependency graph for esp_h264_sw_dec_test.c:

Functions

esp_h264_err_t single_sw_dec_process (esp_h264_dec_cfg_sw_t cfg, uint8_t *inbuf, uint32_t inbuf_len, uint8_t *yuv)
 Single hardware oneencoding. It is simple test case. And do the follow opertion. step 1: Create one decoder handle by call esp_h264_dec_sw_new. step 2: Open the decoder by call esp_h264_dec_open. step 3: esp_h264_dec_process is called through the loop until the encoding ends. step 4: Close the decoder handle by call esp_h264_dec_close. step 5: Delete the decoder handle by call esp_h264_dec_del.
 

Function Documentation

◆ single_sw_dec_process()

esp_h264_err_t single_sw_dec_process ( esp_h264_dec_cfg_sw_t  cfg,
uint8_t *  inbuf,
uint32_t  inbuf_len,
uint8_t *  yuv 
)

Single hardware oneencoding. It is simple test case. And do the follow opertion. step 1: Create one decoder handle by call esp_h264_dec_sw_new. step 2: Open the decoder by call esp_h264_dec_open. step 3: esp_h264_dec_process is called through the loop until the encoding ends. step 4: Close the decoder handle by call esp_h264_dec_close. step 5: Delete the decoder handle by call esp_h264_dec_del.

Parameters
cfgTHe configuration of single software decoder
inbufThe input buffer
inbuf_lenThe inbuf length
yuvThe output buffer
Returns
  • ESP_H264_ERR_OK Succeeded
  • ESP_H264_ERR_TIMEOUT Timeout
  • ESP_H264_ERR_ARG Invalid arguments passed
  • ESP_H264_ERR_MEM Insufficient memory
  • ESP_H264_ERR_FAIL Failed
  • ESP_H264_ERR_UNSUPPORTED Process feature is not supported by the decoder.