pretty_effect.h 588 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <stdint.h>
  3. #include "esp_err.h"
  4. /**
  5. * @brief Calculate the effect for a bunch of lines.
  6. *
  7. * @param dest Destination for the pixels. Assumed to be LINECT * 320 16-bit pixel values.
  8. * @param line Starting line of the chunk of lines.
  9. * @param frame Current frame, used for animation
  10. * @param linect Amount of lines to calculate
  11. */
  12. void pretty_effect_calc_lines(uint16_t *dest, int line, int frame, int linect);
  13. /**
  14. * @brief Initialize the effect
  15. *
  16. * @return ESP_OK on success, an error from the jpeg decoder otherwise.
  17. */
  18. esp_err_t pretty_effect_init();