arduino-audio-tools
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
CodecH264.h File Reference
#include "AudioTools/CoreAudio/AudioBasic/Collections/Vector.h"
#include "AudioTools/Video/CodecVideo.h"
#include "TinyH264Decoder.h"
#include "TinyH264Encoder.h"

Go to the source code of this file.

Classes

class  H264Decoder
 H.264 video decoder: wraps TinyH264Decoder (https://github.com/pschatzmann/TinyH264) as a VideoOutput, so it can be plugged directly into e.g. DemuxerAVI::setOutputVideo()/ DemuxerMP4::setOutputVideo(). Consumes an Annex-B H.264 bitstream via write() and, once a complete picture has been decoded, writes it - converted to setVideoFormat()'s format (RGB565 by default, the common TFT wire format) - to the Print target configured via setOutput(), one write() call per decoded picture. More...
 
class  H264Encoder
 H.264 video encoder: wraps TinyH264Encoder (https://github.com/pschatzmann/TinyH264). Configure via setSize()/ setQp() (or setTargetBitrate() for rate control) same as TinyH264Encoder and setVideoFormat() for the raw picture format write() expects (I420 - planar Y/U/V concatenated in one buffer - by default), then feed raw pictures via write() - the resulting Annex-B bitstream is written to the Print target configured via setOutput() (e.g. a Muxer's addVideoFrame() by way of an adapter, or any other Print) instead of a caller-supplied buffer. More...
 

Namespaces

namespace  audio_tools
 Generic Implementation of sound input and output for desktop environments using portaudio.
 

Macros

#define H264_DEFAULT_ALLOCATOR   tinyh264::PSRAMAllocatorESP32<uint8_t>
 

Macro Definition Documentation

◆ H264_DEFAULT_ALLOCATOR

#define H264_DEFAULT_ALLOCATOR   tinyh264::PSRAMAllocatorESP32<uint8_t>

Allocator H264Decoder uses for its decoded picture buffers - PSRAM (falling back to the regular heap if absent/exhausted) on ESP32, the regular heap elsewhere. Define this yourself before including this header to override (e.g. to force the regular heap on an ESP32 board without PSRAM).