MPEG-TS (MTS) decoder. Extracts the AAC audio data from a MPEG-TS (MTS) data stream. You can define the relevant stream types via the API. Required dependency: https://github.com/pschatzmann/arduino-tsdemux.
More...
#include <CodecTSDemux.h>
|
| int | id |
| | custom id to be used by application
|
| |
|
| static void | event_cb (TSDemuxContext *ctx, uint16_t pid, TSDEventId event_id, void *data) |
| |
| static void * | log_calloc (size_t num, size_t size) |
| |
| static void | log_free (void *mem) |
| |
| static void * | log_malloc (size_t size) |
| |
| static void * | log_realloc (void *ptr, size_t size) |
| |
MPEG-TS (MTS) decoder. Extracts the AAC audio data from a MPEG-TS (MTS) data stream. You can define the relevant stream types via the API. Required dependency: https://github.com/pschatzmann/arduino-tsdemux.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ MTSDecoderTSDemux() [1/2]
◆ MTSDecoderTSDemux() [2/2]
◆ add_print_pid()
| void add_print_pid |
( |
TSDProgramElement * |
prog, |
|
|
TSDPMTStreamType |
type |
|
) |
| |
|
inlineprotected |
◆ addNotifyAudioChange()
Adds target to be notified about audio changes.
Reimplemented in CodecNOP, EncodedAudioOutput, EncodedAudioStream, AACDecoderFDK, DecoderBasic, CodecChain, MP3DecoderHelix, MP3DecoderMAD, OggContainerDecoder, RTSPClient< TcpClient, UdpSocket >, Pipeline, and Pipeline::ModifyingStreamAdapter.
◆ addStreamType()
| void addStreamType |
( |
TSDPMTStreamType |
type | ) |
|
|
inline |
◆ audioInfo()
|
|
inlineoverridevirtualinherited |
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in CodecNOP, DecoderBasic, DSFDecoder, MP3DecoderHelix, MP3DecoderMAD, OpusAudioDecoder, OpusMultiStreamAudioDecoder, VorbisDecoder, WAVDecoder, WavIMADecoder, OggContainerDecoder, and VorbisDecoder.
◆ audioInfoOut()
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in MP3EncoderShine, PureDataStream, PWMAudioOutput< PWMDriverT >, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, Pipeline, ResampleStream, and ResampleStreamT< TInterpolator >.
◆ begin() [1/2]
◆ begin() [2/2]
|
|
inlineoverridevirtualinherited |
◆ clearNotifyAudioChange()
| virtual void clearNotifyAudioChange |
( |
| ) |
|
|
inlinevirtualinherited |
◆ clearStreamTypes()
| void clearStreamTypes |
( |
| ) |
|
|
inline |
◆ demux()
◆ descriptor_tag_to_str()
| const char * descriptor_tag_to_str |
( |
uint8_t |
tag | ) |
|
|
inlineprotected |
◆ end()
◆ event_cb()
| static void event_cb |
( |
TSDemuxContext * |
ctx, |
|
|
uint16_t |
pid, |
|
|
TSDEventId |
event_id, |
|
|
void * |
data |
|
) |
| |
|
inlinestaticprotected |
◆ event_cb_local()
| void event_cb_local |
( |
TSDemuxContext * |
ctx, |
|
|
uint16_t |
pid, |
|
|
TSDEventId |
event_id, |
|
|
void * |
data |
|
) |
| |
|
inlineprotected |
◆ flush()
◆ getOutput()
◆ is_new_file()
| bool is_new_file |
( |
uint8_t * |
data | ) |
|
|
inlineprotected |
Determines if we are at the beginning of a new file.
◆ isNotifyActive()
Checks if the automatic AudioInfo update is active.
◆ isResultPCM()
| virtual bool isResultPCM |
( |
| ) |
|
|
inlinevirtualinherited |
◆ isStreamTypeActive()
| bool isStreamTypeActive |
( |
TSDPMTStreamType |
type | ) |
|
|
inline |
◆ log_calloc()
| static void * log_calloc |
( |
size_t |
num, |
|
|
size_t |
size |
|
) |
| |
|
inlinestaticprotected |
◆ log_free()
| static void log_free |
( |
void * |
mem | ) |
|
|
inlinestaticprotected |
◆ log_malloc()
| static void * log_malloc |
( |
size_t |
size | ) |
|
|
inlinestaticprotected |
◆ log_realloc()
| static void * log_realloc |
( |
void * |
ptr, |
|
|
size_t |
size |
|
) |
| |
|
inlinestaticprotected |
◆ logResult()
| void logResult |
( |
TSDCode |
code | ) |
|
|
inlineprotected |
◆ mime()
◆ notifyAudioChange()
◆ operator bool()
| virtual operator bool |
( |
| ) |
|
|
inlineoverridevirtual |
◆ print_descriptor_info()
| void print_descriptor_info |
( |
TSDDescriptor * |
desc | ) |
|
|
inlineprotected |
◆ print_pat()
| void print_pat |
( |
TSDemuxContext * |
ctx, |
|
|
void * |
data |
|
) |
| |
|
inlineprotected |
◆ print_pmt()
| void print_pmt |
( |
TSDemuxContext * |
ctx, |
|
|
void * |
data |
|
) |
| |
|
inlineprotected |
◆ removeNotifyAudioChange()
◆ resizeBuffer()
| void resizeBuffer |
( |
int |
size | ) |
|
|
inline |
Set a new write buffer size (default is 2000)
◆ set_write_active()
| void set_write_active |
( |
bool |
flag | ) |
|
|
inlineprotected |
◆ setAudioInfo()
|
|
inlineoverridevirtualinherited |
◆ setCodecConfig()
| virtual bool setCodecConfig |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlinevirtualinherited |
Some decoders need e.g. a magic cookie to provide the relevant info for decoding.
Reimplemented in DecoderALAC, and MultiDecoder.
◆ setMemoryAllocationLogging()
| void setMemoryAllocationLogging |
( |
bool |
flag | ) |
|
|
inline |
Activate logging for memory allocations.
◆ setNotifyActive()
| void setNotifyActive |
( |
bool |
flag | ) |
|
|
inlineinherited |
Deactivate/Reactivate automatic AudioInfo updates: (default is active)
◆ setOutput() [1/3]
Defines where the decoded result is written to.
Reimplemented from AudioDecoder.
◆ setOutput() [2/3]
Defines where the decoded result is written to.
Reimplemented from AudioDecoder.
◆ setOutput() [3/3]
| void setOutput |
( |
Print & |
out_stream | ) |
|
|
inlineoverridevirtual |
Defines where the decoded result is written to.
Reimplemented from AudioDecoder.
◆ stream_type_to_str()
| const char * stream_type_to_str |
( |
TSDPESStreamId |
stream_id | ) |
|
|
inlineprotected |
◆ write()
| size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineoverridevirtual |
◆ writeBlocking()
| void writeBlocking |
( |
Print * |
out, |
|
|
uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineprotectedinherited |
◆ alloc_vector
◆ buffer
◆ ctx
◆ id
custom id to be used by application
◆ info
◆ is_active
◆ is_alloc_active
| bool is_alloc_active = false |
|
protected |
◆ is_notify_active
| bool is_notify_active = true |
|
protectedinherited |
◆ is_write_active
| bool is_write_active = false |
|
protected |
◆ notify_vector
◆ p_dec
◆ p_print
◆ print_pids
| uint16_t print_pids[(16)] = {0} |
|
protected |
◆ self
◆ stream_types
| Vector<TSDPMTStreamType> stream_types |
|
protected |
◆ underflowLimit
The documentation for this class was generated from the following file: