H.264 Codec for ESP32-S3
Loading...
Searching...
No Matches
esp_h264_sw_enc_test.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#pragma once
8
11
12/**
13 * @brief Single hardware oneencoding. And this case add set/get base paramter function test in one thread.
14 * The set/get paramter function can be call in one thread or asynchronous thread.
15 * It is simple test case. And do the follow opertion.
16 * step 1: Create one encoder handle by call `esp_h264_enc_sw_new`.
17 * step 2: Open the encoder by call `esp_h264_enc_open`.
18 * step 3: `esp_h264_enc_process` is called through the loop until the encoding ends.
19 * step 4: Close the encoder handle by call `esp_h264_enc_close`.
20 * step 5: Delete the encoder handle by call `esp_h264_enc_del`.
21 *
22 * @param cfg THe configuration of single software encoder
23 *
24 * @return
25 * - ESP_H264_ERR_OK Succeeded
26 * - ESP_H264_ERR_TIMEOUT Timeout
27 * - ESP_H264_ERR_ARG Invalid arguments passed
28 * - ESP_H264_ERR_MEM Insufficient memory
29 * - ESP_H264_ERR_FAIL Failed
30 * - ESP_H264_ERR_UNSUPPORTED Process feature is not supported by the encoder.
31 */
esp_h264_enc_cfg_t esp_h264_enc_cfg_sw_t
Configuration type for software-based H.264 encoder.
Definition: esp_h264_enc_single_sw.h:24
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....
Definition: esp_h264_sw_enc_test.c:14