pretty_effect.h 938 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. This example code is in the Public Domain (or CC0 licensed, at your option.)
  3. Unless required by applicable law or agreed to in writing, this
  4. software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  5. CONDITIONS OF ANY KIND, either express or implied.
  6. */
  7. #pragma once
  8. #include <stdint.h>
  9. #include "esp_err.h"
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. /**
  14. * @brief Calculate the effect for a bunch of lines.
  15. *
  16. * @param dest Destination for the pixels. Assumed to be LINECT * 320 16-bit pixel values.
  17. * @param line Starting line of the chunk of lines.
  18. * @param frame Current frame, used for animation
  19. * @param linect Amount of lines to calculate
  20. */
  21. void pretty_effect_calc_lines(uint16_t *dest, int line, int frame, int linect);
  22. /**
  23. * @brief Initialize the effect
  24. *
  25. * @return ESP_OK on success, an error from the jpeg decoder otherwise.
  26. */
  27. esp_err_t pretty_effect_init(void);
  28. #ifdef __cplusplus
  29. }
  30. #endif