2019-12-30 00:31:12 -05:00
|
|
|
/*
|
2021-09-23 00:06:13 -04:00
|
|
|
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: CC0-1.0
|
|
|
|
*/
|
2019-12-30 00:31:12 -05:00
|
|
|
|
2018-03-08 23:40:12 -05:00
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "esp_err.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Calculate the effect for a bunch of lines.
|
|
|
|
*
|
|
|
|
* @param dest Destination for the pixels. Assumed to be LINECT * 320 16-bit pixel values.
|
|
|
|
* @param line Starting line of the chunk of lines.
|
|
|
|
* @param frame Current frame, used for animation
|
|
|
|
* @param linect Amount of lines to calculate
|
|
|
|
*/
|
|
|
|
void pretty_effect_calc_lines(uint16_t *dest, int line, int frame, int linect);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Initialize the effect
|
|
|
|
*
|
|
|
|
* @return ESP_OK on success, an error from the jpeg decoder otherwise.
|
|
|
|
*/
|
2019-07-16 05:33:30 -04:00
|
|
|
esp_err_t pretty_effect_init(void);
|