FastLED 3.9.15
Loading...
Searching...
No Matches
codec_processor.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/codec/jpeg.h"
4#include "fl/codec/gif.h"
5#include "fl/codec/mpeg1.h"
7#include "fl/math/xymap.h"
8#include "fl/stl/sstream.h"
9#include "fl/stl/function.h"
10
11namespace CodecProcessor {
12
13// Configuration constants
14extern const int TARGET_FPS; // TODO: make configurable.
15
16// Codec processing functions
17void processJpeg();
18void processGif();
19void processMpeg1();
20
21// Utility functions
22void processCodecWithTiming(const char* codecName, fl::function<void()> codecFunc);
23void displayFrameOnLEDs(const fl::Frame& frame);
24CRGB getPixelFromFrame(const fl::Frame& frame, int x, int y);
25void showDecodedMessage(const char* format);
26
27// LED array access - must be set from main sketch
28extern CRGB* leds;
29extern int numLeds;
30extern int ledWidth;
31extern int ledHeight;
32
33} // namespace CodecProcessor
int y
Definition simple.h:93
int x
Definition simple.h:92
fl::CRGB CRGB
Definition crgb.h:25
void displayFrameOnLEDs(const fl::Frame &frame)
CRGB getPixelFromFrame(const fl::Frame &frame, int x, int y)
void showDecodedMessage(const char *format)
void processCodecWithTiming(const char *codecName, fl::function< void()> codecFunc)