H.264 Codec for ESP32-S3
Loading...
Searching...
No Matches
esp_h264_sw_dec_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
10
11/**
12 * @brief Single hardware oneencoding. It is simple test case. And do the follow opertion.
13 * step 1: Create one decoder handle by call `esp_h264_dec_sw_new`.
14 * step 2: Open the decoder by call `esp_h264_dec_open`.
15 * step 3: `esp_h264_dec_process` is called through the loop until the encoding ends.
16 * step 4: Close the decoder handle by call `esp_h264_dec_close`.
17 * step 5: Delete the decoder handle by call `esp_h264_dec_del`.
18 *
19 * @param cfg THe configuration of single software decoder
20 * @param inbuf The input buffer
21 * @param inbuf_len The inbuf length
22 * @param yuv The output buffer
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 decoder.
31 */
32esp_h264_err_t single_sw_dec_process(esp_h264_dec_cfg_sw_t cfg, uint8_t *inbuf, uint32_t inbuf_len, uint8_t *yuv);
esp_h264_dec_cfg_t esp_h264_dec_cfg_sw_t
Configuration type for software-based H.264 decoder.
Definition: esp_h264_dec_sw.h:25
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 d...
Definition: esp_h264_sw_dec_test.c:14