arduino-audio-tools
Loading...
Searching...
No Matches
VideoPlayerFull.h
Go to the documentation of this file.
1#pragma once
2
10
11namespace audio_tools {
12
48 public:
53
64
66 AudioOutput& audioOutput)
67 : VideoPlayer(demuxer, videoOutput, audioOutput) {
70 }
71
73 Print& audioOutput)
74 : VideoPlayer(demuxer, videoOutput, audioOutput) {
77 }
78
80 AudioStream& audioOutput)
81 : VideoPlayer(demuxer, videoOutput, audioOutput) {
84 }
85
86 protected:
90
94
100
102 // mp3_decoder must be registered before mp2_decoder: a plain
103 // "audio/mpeg" match still resolves to it via MultiDecoder::
104 // selectDecoder()'s base-mime-type fallback, which is correct since
105 // MP2 only shows up in an MPEG-PS (.mpg) container, reporting the
106 // more specific "...codecs=mpeg1-layer2" mime mp2_decoder is keyed on.
107 addAudioDecoder(mp3_decoder, "audio/mpeg");
108 addAudioDecoder(aac_decoder, "audio/aac");
109 addAudioDecoder(mp2_decoder, "audio/mpeg; codecs=\"mpeg1-layer2\"");
110 }
111};
112
113} // namespace audio_tools
Definition Arduino.h:56
AAC Decoder using libhelix: https://github.com/pschatzmann/arduino-libhelix This is basically just a ...
Definition CodecAACHelix.h:20
Abstract Audio Ouptut class.
Definition AudioOutput.h:25
Base class for all Audio Streams. It support the boolean operator to test if the object is ready with...
Definition BaseStream.h:120
Common interface for demuxers (DemuxerAVI, DemuxerMP4) that split a container's video and (optional) ...
Definition ContainerCommon.h:164
H.264 video decoder: wraps TinyH264Decoder (https://github.com/pschatzmann/TinyH264) as a VideoOutput...
Definition CodecH264.h:58
Motion-JPEG video decoder: wraps TinyJPEGDecoder (https://github.com/pschatzmann/TinyJPEG,...
Definition CodecJPEG.h:53
Decoder for MPEG-1 Layer II (MP2) audio using the TinyMP2 library. Compressed data provided via write...
Definition CodecMP2.h:23
MP3 Decoder using libhelix: https://github.com/pschatzmann/arduino-libhelix This is basically just a ...
Definition CodecMP3Helix.h:20
MPEG-1 (part 2) video decoder wrapper around TinyMPGDecoder.
Definition CodecMPG.h:48
Abstract class for video playback. This class is used to assemble a complete video frame in memory....
Definition Video.h:210
VideoPlayer subclass pre-registered with every video/audio codec this library ships a portable decode...
Definition VideoPlayerFull.h:47
VideoPlayerFull(Demuxer &demuxer, VideoOutput &videoOutput, Print &audioOutput)
Definition VideoPlayerFull.h:72
MP3DecoderHelix mp3_decoder
Definition VideoPlayerFull.h:91
VideoPlayerFull(Demuxer &demuxer, VideoOutput &videoOutput)
Definition VideoPlayerFull.h:59
MJPEGDecoder mjpeg_decoder
Definition VideoPlayerFull.h:88
H264Decoder h264_decoder
Definition VideoPlayerFull.h:87
VideoPlayerFull(Demuxer &demuxer, VideoOutput &videoOutput, AudioStream &audioOutput)
Definition VideoPlayerFull.h:79
MPGDecoder mpeg_decoder
Definition VideoPlayerFull.h:89
void registerAudioDecoders()
Definition VideoPlayerFull.h:101
void registerVideoDecoders()
Definition VideoPlayerFull.h:95
AACDecoderHelix aac_decoder
Definition VideoPlayerFull.h:92
VideoPlayerFull(Demuxer &demuxer, VideoOutput &videoOutput, AudioOutput &audioOutput)
Definition VideoPlayerFull.h:65
MP2Decoder mp2_decoder
Definition VideoPlayerFull.h:93
VideoPlayerFull()
Definition VideoPlayerFull.h:49
High-level video playback pipeline and controller - the video counterpart of AudioPlayer (CoreAudio/A...
Definition VideoPlayer.h:125
void addVideoDecoder(VideoDecoder &decoder)
Definition VideoPlayer.h:188
void addAudioDecoder(AudioDecoder &decoder, const char *mime=nullptr)
Definition VideoPlayer.h:203
MultiVideoDemuxer & demuxer()
Definition VideoPlayer.h:375
Generic Implementation of sound input and output for desktop environments using portaudio.
Definition LMSEchoCancellationStream.h:6