arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
OutputTFT_eSPI Class Reference

Bridges VideoDecoder's write() calls to the TFT - VideoDecoder always hands over one complete frame per write() call (see its class comment), so this can push the whole frame in one go. Usually the data is in RGB565 format, but other formats are supported as well. More...

#include <OutputTFT_eSPI.h>

Inheritance diagram for OutputTFT_eSPI:
VideoOutput

Public Member Functions

 OutputTFT_eSPI (TFT_eSPI &tft)
 
bool begin ()
 
virtual void flush ()
 
void setVideoInfo (VideoInfo info)
 Defines the video format and dimensions - call before begin() if you.
 
void setVideoInfoSource (VideoInfoSource &source)
 Defines the source of the video information (width, height, fps, format)
 
size_t write (const uint8_t *data, size_t len) override
 

Protected Attributes

VideoInfo info_
 
VideoInfoSourcep_info = nullptr
 
TFT_eSPI & tft_
 

Detailed Description

Bridges VideoDecoder's write() calls to the TFT - VideoDecoder always hands over one complete frame per write() call (see its class comment), so this can push the whole frame in one go. Usually the data is in RGB565 format, but other formats are supported as well.

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ OutputTFT_eSPI()

OutputTFT_eSPI ( TFT_eSPI &  tft)
inline

Member Function Documentation

◆ begin()

bool begin ( )
inline

◆ flush()

virtual void flush ( )
inlinevirtualinherited

Finalizes the frame most recently written via one or more write() calls - see class comment. Default no-op for implementations that display/decode synchronously in write() instead.

Reimplemented in Muxer, H264Decoder, H264DecoderESP32S3< Alloc >, MJPEGDecoder, MPGDecoder, and OutputOpenCV.

◆ setVideoInfo()

void setVideoInfo ( VideoInfo  info)
inline

Defines the video format and dimensions - call before begin() if you.

◆ setVideoInfoSource()

void setVideoInfoSource ( VideoInfoSource source)
inline

Defines the source of the video information (width, height, fps, format)

◆ write()

size_t write ( const uint8_t *  data,
size_t  len 
)
inlineoverridevirtual

Implements VideoOutput.

Member Data Documentation

◆ info_

VideoInfo info_
protected

◆ p_info

VideoInfoSource* p_info = nullptr
protected

◆ tft_

TFT_eSPI& tft_
protected

The documentation for this class was generated from the following file: