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

Functions

esp_h264_err_t single_sw_enc_thread_test (esp_h264_enc_cfg_sw_t cfg)
 Single hardware oneencoding. And this case add set/get base paramter function test in one thread. The set/get paramter function can be call in one thread or asynchronous thread. It is simple test case. And do the follow opertion. step 1: Create one encoder handle by call esp_h264_enc_sw_new. step 2: Open the encoder by call esp_h264_enc_open. step 3: esp_h264_enc_process is called through the loop until the encoding ends. step 4: Close the encoder handle by call esp_h264_enc_close. step 5: Delete the encoder handle by call esp_h264_enc_del.
 

Function Documentation

◆ single_sw_enc_thread_test()

esp_h264_err_t single_sw_enc_thread_test ( esp_h264_enc_cfg_sw_t  cfg)

Single hardware oneencoding. And this case add set/get base paramter function test in one thread. The set/get paramter function can be call in one thread or asynchronous thread. It is simple test case. And do the follow opertion. step 1: Create one encoder handle by call esp_h264_enc_sw_new. step 2: Open the encoder by call esp_h264_enc_open. step 3: esp_h264_enc_process is called through the loop until the encoding ends. step 4: Close the encoder handle by call esp_h264_enc_close. step 5: Delete the encoder handle by call esp_h264_enc_del.

GOP FPS RC