H.264 Codec for ESP32-S3
Loading...
Searching...
No Matches
esp_h264_dec_param.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#ifdef __cplusplus
12extern "C" {
13#endif
14
15/**
16 * @brief It is a pointer to the H.264 decoding parameters structure
17 */
19
20/**
21 * @brief The H.264 decoder parameter interface
22 */
23typedef struct esp_h264_dec_param_if {
24 esp_h264_err_t (*get_res)(esp_h264_dec_param_handle_t handle, esp_h264_resolution_t *res); /*<! Get resolution function */
25} esp_h264_dec_param_t;
26
27/**
28 * @brief This function retrieves the resolution of the video decoder specified by the handle parameter
29 * The decoder's resolution is stored in the `res`, which is of type `esp_h264_resolution_t`
30 *
31 * @param[in] handle It is a pointer to the H.264 decoding parameters structure
32 * @param[out] out_res A pointer to the resolution structure where the decoder's resolution will be stored
33 *
34 * @return
35 * - ESP_H264_ERR_OK Succeeded
36 * - ESP_H264_ERR_ARG Invalid arguments
37 * - ESP_H264_ERR_UNSUPPORTED Get resolution feature is not supported by the decoder
38 */
39esp_h264_err_t esp_h264_dec_get_resolution(esp_h264_dec_param_handle_t handle, esp_h264_resolution_t *out_res);
40
41#ifdef __cplusplus
42}
43#endif
esp_h264_err_t esp_h264_dec_get_resolution(esp_h264_dec_param_handle_t handle, esp_h264_resolution_t *out_res)
This function retrieves the resolution of the video decoder specified by the handle parameter The dec...
Definition: esp_h264_dec_param.c:12
struct esp_h264_dec_param_if * esp_h264_dec_param_handle_t
It is a pointer to the H.264 decoding parameters structure.
Definition: esp_h264_dec_param.h:18
The H.264 decoder parameter interface.
Definition: esp_h264_dec_param.h:23