MythTV
master
|
#include <cstdio>
#include <cstring>
#include "element.h"
#include "mpg_common.h"
#include "pes.h"
#include "libmythbase/mythlogging.h"
Go to the source code of this file.
Macros | |
#define | DEBUG true |
Functions | |
uint64_t | add_pts_audio (uint64_t pts, audio_frame_t *aframe, uint64_t frames) |
void | fix_audio_count (uint64_t *acount, audio_frame_t *aframe, uint64_t origpts, uint64_t pts) |
uint64_t | next_ptsdts_video (uint64_t *pts, sequence_t *s, uint64_t fcount, uint64_t gcount) |
void | fix_video_count (sequence_t *s, uint64_t *frame, uint64_t origpts, uint64_t pts, uint64_t origdts, uint64_t dts) |
void | pts2time (uint64_t pts, uint8_t *buf, int len) |
int | get_video_info (ringbuffer *rbuf, sequence_t *s, int off, int le) |
int | find_audio_sync (ringbuffer *rbuf, audio_sync_buf &buf, int off, int type, int le) |
int | find_audio_s (const uint8_t *rbuf, int off, int type, int le) |
int | check_audio_header (ringbuffer *rbuf, audio_frame_t *af, int off, int le, int type) |
int | get_audio_info (ringbuffer *rbuf, audio_frame_t *af, int off, int le) |
int | get_ac3_info (ringbuffer *rbuf, audio_frame_t *af, int off, int le) |
int | get_video_ext_info (ringbuffer *rbuf, sequence_t *s, int off, int le) |
Variables | |
std::array< unsigned int, 4 > | slotsPerLayer {12, 144, 0, 0} |
std::array< std::array< unsigned int, 16 >, 3 > | bitrates |
static const std::array< const uint32_t, 4 > | freq {441, 480, 320, 0} |
static const std::array< const uint64_t, 4 > | samples {384, 1152, 1152, 1536} |
static const std::array< const uint16_t, 32 > | ac3_bitrates |
static const std::array< const uint8_t, 12 > | ac3half {0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3} |
static const std::array< const uint32_t, 4 > | ac3_freq {480, 441, 320, 0} |
#define DEBUG true |
Definition at line 54 of file element.cpp.
uint64_t add_pts_audio | ( | uint64_t | pts, |
audio_frame_t * | aframe, | ||
uint64_t | frames | ||
) |
Definition at line 56 of file element.cpp.
Referenced by analyze_audio().
void fix_audio_count | ( | uint64_t * | acount, |
audio_frame_t * | aframe, | ||
uint64_t | origpts, | ||
uint64_t | pts | ||
) |
Definition at line 65 of file element.cpp.
Referenced by analyze_audio().
uint64_t next_ptsdts_video | ( | uint64_t * | pts, |
sequence_t * | s, | ||
uint64_t | fcount, | ||
uint64_t | gcount | ||
) |
Definition at line 76 of file element.cpp.
Referenced by analyze_video().
void fix_video_count | ( | sequence_t * | s, |
uint64_t * | frame, | ||
uint64_t | origpts, | ||
uint64_t | pts, | ||
uint64_t | origdts, | ||
uint64_t | dts | ||
) |
Definition at line 117 of file element.cpp.
Referenced by analyze_video().
void pts2time | ( | uint64_t | pts, |
uint8_t * | buf, | ||
int | len | ||
) |
Definition at line 154 of file element.cpp.
Referenced by writeout_video().
int get_video_info | ( | ringbuffer * | rbuf, |
sequence_t * | s, | ||
int | off, | ||
int | le | ||
) |
Definition at line 197 of file element.cpp.
Referenced by analyze_video().
int find_audio_sync | ( | ringbuffer * | rbuf, |
audio_sync_buf & | buf, | ||
int | off, | ||
int | type, | ||
int | le | ||
) |
Definition at line 329 of file element.cpp.
Referenced by analyze_audio(), check_audio_header(), get_ac3_info(), and get_audio_info().
int find_audio_s | ( | const uint8_t * | rbuf, |
int | off, | ||
int | type, | ||
int | le | ||
) |
Definition at line 381 of file element.cpp.
Referenced by pes_id_out().
int check_audio_header | ( | ringbuffer * | rbuf, |
audio_frame_t * | af, | ||
int | off, | ||
int | le, | ||
int | type | ||
) |
Definition at line 425 of file element.cpp.
Referenced by analyze_audio().
int get_audio_info | ( | ringbuffer * | rbuf, |
audio_frame_t * | af, | ||
int | off, | ||
int | le | ||
) |
Definition at line 488 of file element.cpp.
Referenced by analyze_audio().
int get_ac3_info | ( | ringbuffer * | rbuf, |
audio_frame_t * | af, | ||
int | off, | ||
int | le | ||
) |
Definition at line 539 of file element.cpp.
Referenced by analyze_audio().
int get_video_ext_info | ( | ringbuffer * | rbuf, |
sequence_t * | s, | ||
int | off, | ||
int | le | ||
) |
Definition at line 596 of file element.cpp.
Referenced by analyze_video().
std::array<unsigned int,4> slotsPerLayer {12, 144, 0, 0} |
Definition at line 38 of file element.cpp.
Referenced by get_audio_info().
std::array<std::array<unsigned int,16>,3> bitrates |
Definition at line 39 of file element.cpp.
Referenced by check_audio_header(), and get_audio_info().
|
static |
Definition at line 45 of file element.cpp.
Referenced by ChannelUtil::CreateMultiplex(), TransportScanItem::freq_offset(), get_atsc_stuff(), get_audio_info(), handle_transport_desc(), ChannelData::handleChannels(), init_freq_tables(), anonymous_namespace{TemplateMatcher.cpp}::pick_mintmpledges(), anonymous_namespace{TemplateMatcher.cpp}::range_area(), PaneATSC::ResetTransportRange(), ChannelScanSM::ScanTransports(), DiSEqCDevSCR::SetFrequency(), TransportScanItem::TransportScanItem(), V4LChannel::Tune(), and ChannelScanSM::Tune().
|
static |
Definition at line 46 of file element.cpp.
Referenced by add_pts_audio(), AudioOutputUtil::AdjustVolume(), AudioOutputGraph::AOBuffer::Append(), MythRAOPConnection::AudioCardLatency(), avcodec_encode_audio(), MythRAOPConnection::decodeAudioPacket(), encode_mp2_audio(), extract_mono_channel(), fix_audio_count(), get_audio_info(), AudioReencodeBuffer::GetSamples(), MythOpenGLPerf::LogSamples(), AudioOutputUtil::MonoToStereo(), AudioConvert::MonoToStereo(), AudioConvertInternal::Process(), and FreeSurround::putFrames().
|
static |
Definition at line 49 of file element.cpp.
Referenced by check_audio_header(), and get_ac3_info().
|
static |
Definition at line 51 of file element.cpp.
Referenced by check_audio_header(), and get_ac3_info().
|
static |
Definition at line 52 of file element.cpp.
Referenced by check_audio_header(), and get_ac3_info().