H.264 Codec for ESP32-S3
Loading...
Searching...
No Matches
h264_color_convert.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#include "H264Config.h"
9
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef void (*convert_color)(uint32_t height, uint32_t width, uint8_t *in, uint8_t *out);
16
17#ifdef HAVE_ESP32S3
18
19/**
20 * @brief Convert YUYV data to I420 data using ASM in esp32s3
21 *
22 * @param height Height of picture
23 * @param width Width of picture
24 * @param in YUYV data address
25 * @param out I420 data address
26 */
27
28void yuyv2iyuv_esp32s3(uint32_t height, uint32_t width, uint8_t *in, uint8_t *out);
29
30#endif
31
32/**
33 * @brief Convert YUYV data to I420 data
34 *
35 * @param height Height of picture
36 * @param width Width of picture
37 * @param in YUYV data address
38 * @param out I420 data address
39 */
40void yuyv2iyuv(uint32_t height, uint32_t width, uint8_t *in, uint8_t *out);
41
42#ifdef __cplusplus
43}
44#endif
void yuyv2iyuv(uint32_t height, uint32_t width, uint8_t *in, uint8_t *out)
Convert YUYV data to I420 data.
Definition: h264_color_convert.c:9
void(* convert_color)(uint32_t height, uint32_t width, uint8_t *in, uint8_t *out)
Definition: h264_color_convert.h:15