SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <datvideorender.h>
Signals | |
void | onMetaDataChanged (DataTSMetaData2 *metaData) |
Signals inherited from TVScreen | |
void | traceSizeChanged (int) |
void | sampleRateChanged (int) |
Public Member Functions | |
DATVideoRender (QWidget *parent) | |
~DATVideoRender () | |
void | SetFullScreen (bool blnFullScreen) |
bool | OpenStream (DATVideostream *objDevice) |
bool | RenderStream () |
bool | CloseStream (QIODevice *objDevice) |
void | setAudioFIFO (AudioFifo *fifo) |
int | getVideoStreamIndex () const |
int | getAudioStreamIndex () const |
void | setAudioMute (bool audioMute) |
void | setVideoMute (bool videoMute) |
void | setAudioVolume (int audioVolume) |
bool | getAudioDecodeOK () const |
bool | getVideoDecodeOK () const |
Public Member Functions inherited from TVScreen | |
TVScreen (bool blnColor, QWidget *parent=0) | |
virtual | ~TVScreen () |
void | setColor (bool blnColor) |
void | resizeTVScreen (int intCols, int intRows) |
void | getSize (int &intCols, int &intRows) const |
void | renderImage (unsigned char *objData) |
QRgb * | getRowBuffer (int intRow) |
void | resetImage () |
void | resetImage (int alpha) |
bool | selectRow (int intLine) |
bool | setDataColor (int intCol, int intRed, int intGreen, int intBlue) |
bool | setDataColor (int intCol, int intRed, int intGreen, int intBlue, int intAlpha) |
void | setAlphaBlend (bool blnAlphaBlend) |
void | setAlphaReset () |
void | connectTimer (const QTimer &timer) |
Public Attributes | |
struct DataTSMetaData2 | MetaData |
Protected Member Functions | |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
Private Member Functions | |
bool | InitializeFFMPEG () |
bool | PreprocessStream () |
void | ResetMetaData () |
int | new_decode (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt) |
void | setResampler () |
Private Attributes | |
QWidget * | m_parentWidget |
Qt::WindowFlags | m_originalWindowFlags |
QSize | m_originalSize |
bool | m_running |
bool | m_isFullScreen |
bool | m_isFFMPEGInitialized |
bool | m_isOpen |
SwsContext * | m_swsCtx |
AVFormatContext * | m_formatCtx |
AVCodecContext * | m_videoDecoderCtx |
AVCodecContext * | m_audioDecoderCtx |
AVFrame * | m_frame |
AudioFifo * | m_audioFifo |
struct SwrContext * | m_audioSWR |
int | m_audioSampleRate |
int16_t | m_audioFifoBuffer [m_audioFifoBufferSize *2] |
int | m_audioFifoBufferIndex |
bool | m_audioMute |
bool | m_videoMute |
float | m_audioVolume |
bool | m_updateAudioResampler |
uint8_t * | m_pbytDecodedData [4] |
int | m_pintDecodedLineSize [4] |
int | m_frameCount |
int | m_videoStreamIndex |
int | m_audioStreamIndex |
int | m_currentRenderWidth |
int | m_currentRenderHeight |
bool | m_audioDecodeOK |
bool | m_videoDecodeOK |
Static Private Attributes | |
static const int | m_audioFifoBufferSize = 16000 |
Additional Inherited Members | |
Static Public Attributes inherited from TVScreen | |
static const int | TV_COLS =256 |
static const int | TV_ROWS =256 |
Protected Slots inherited from TVScreen | |
void | cleanup () |
void | tick () |
Definition at line 85 of file datvideorender.h.
|
explicit |
Definition at line 32 of file datvideorender.cpp.
References m_audioDecodeOK, m_audioDecoderCtx, m_audioFifo, m_audioFifoBufferIndex, m_audioMute, m_audioSampleRate, m_audioStreamIndex, m_audioSWR, m_audioVolume, m_currentRenderHeight, m_currentRenderWidth, m_formatCtx, m_frame, m_frameCount, m_isFFMPEGInitialized, m_isFullScreen, m_isOpen, m_running, m_swsCtx, m_updateAudioResampler, m_videoDecodeOK, m_videoDecoderCtx, m_videoMute, and m_videoStreamIndex.
DATVideoRender::~DATVideoRender | ( | ) |
bool DATVideoRender::CloseStream | ( | QIODevice * | objDevice | ) |
Definition at line 715 of file datvideorender.cpp.
References m_currentRenderHeight, m_currentRenderWidth, m_formatCtx, m_frame, m_isOpen, m_running, m_swsCtx, m_videoDecoderCtx, MetaData, onMetaDataChanged(), and ResetMetaData().
|
protectedvirtual |
Definition at line 78 of file datvideorender.cpp.
References SetFullScreen().
|
inline |
Definition at line 107 of file datvideorender.h.
Referenced by DATVDemod::audioDecodeOK().
|
inline |
Definition at line 101 of file datvideorender.h.
Referenced by DATVDemod::audioActive().
|
inline |
Definition at line 108 of file datvideorender.h.
Referenced by DATVDemod::videoDecodeOK().
|
inline |
Definition at line 100 of file datvideorender.h.
Referenced by DATVDemod::videoActive().
|
private |
Definition at line 177 of file datvideorender.cpp.
References m_isFFMPEGInitialized, and ResetMetaData().
Referenced by OpenStream().
|
private |
Replacement of deprecated avcodec_decode_video2 with the same signature https://blogs.gentoo.org/lu_zero/2016/03/29/new-avcodec-api/
Definition at line 782 of file datvideorender.cpp.
Referenced by RenderStream().
|
signal |
Referenced by CloseStream(), DATVDemodGUI::DATVDemodGUI(), OpenStream(), PreprocessStream(), RenderStream(), and ResetMetaData().
bool DATVideoRender::OpenStream | ( | DATVideostream * | objDevice | ) |
Definition at line 378 of file datvideorender.cpp.
References DATVideostream::bytesAvailable(), InitializeFFMPEG(), m_formatCtx, m_isFFMPEGInitialized, m_isOpen, m_running, MetaData, DataTSMetaData2::OK_Data, onMetaDataChanged(), and DATVideostream::open().
|
private |
Definition at line 196 of file datvideorender.cpp.
References DataTSMetaData2::BitRate, DataTSMetaData2::Channels, DataTSMetaData2::CodecDescription, DataTSMetaData2::CodecID, DataTSMetaData2::Height, m_audioDecoderCtx, m_audioStreamIndex, m_formatCtx, m_frame, m_frameCount, m_videoDecoderCtx, m_videoStreamIndex, MetaData, DataTSMetaData2::OK_TransportStream, DataTSMetaData2::OK_VideoStream, onMetaDataChanged(), DataTSMetaData2::PID, DataTSMetaData2::Program, setResampler(), DataTSMetaData2::Stream, and DataTSMetaData2::Width.
bool DATVideoRender::RenderStream | ( | ) |
Definition at line 474 of file datvideorender.cpp.
References DataTSMetaData2::Height, i, m_audioDecodeOK, m_audioDecoderCtx, m_audioFifo, m_audioFifoBuffer, m_audioFifoBufferIndex, m_audioFifoBufferSize, m_audioMute, m_audioStreamIndex, m_audioSWR, m_audioVolume, m_currentRenderHeight, m_currentRenderWidth, m_formatCtx, m_frame, m_frameCount, m_isOpen, m_pbytDecodedData, m_pintDecodedLineSize, m_running, m_swsCtx, m_updateAudioResampler, m_videoDecodeOK, m_videoDecoderCtx, m_videoMute, m_videoStreamIndex, MetaData, new_decode(), DataTSMetaData2::OK_Decoding, onMetaDataChanged(), TVScreen::renderImage(), TVScreen::resetImage(), TVScreen::resizeTVScreen(), setResampler(), DataTSMetaData2::Width, and AudioFifo::write().
|
private |
Definition at line 158 of file datvideorender.cpp.
References DataTSMetaData2::BitRate, DataTSMetaData2::Channels, DataTSMetaData2::CodecDescription, DataTSMetaData2::CodecID, DataTSMetaData2::Height, MetaData, DataTSMetaData2::OK_Decoding, DataTSMetaData2::OK_TransportStream, DataTSMetaData2::OK_VideoStream, onMetaDataChanged(), DataTSMetaData2::PID, DataTSMetaData2::Program, DataTSMetaData2::Stream, and DataTSMetaData2::Width.
Referenced by CloseStream(), and InitializeFFMPEG().
|
inline |
Definition at line 99 of file datvideorender.h.
Referenced by DATVDemod::SetVideoRender().
|
inline |
Definition at line 103 of file datvideorender.h.
Referenced by DATVDemod::applySettings().
void DATVideoRender::setAudioVolume | ( | int | audioVolume | ) |
Definition at line 680 of file datvideorender.cpp.
References m_audioVolume.
Referenced by DATVDemod::applySettings().
void DATVideoRender::SetFullScreen | ( | bool | blnFullScreen | ) |
Definition at line 92 of file datvideorender.cpp.
References m_isFullScreen.
Referenced by eventFilter().
|
private |
Definition at line 686 of file datvideorender.cpp.
References m_audioDecoderCtx, m_audioSampleRate, and m_audioSWR.
Referenced by PreprocessStream(), and RenderStream().
|
inline |
Definition at line 104 of file datvideorender.h.
Referenced by DATVDemod::applySettings().
|
private |
Definition at line 149 of file datvideorender.h.
Referenced by DATVideoRender(), and RenderStream().
|
private |
Definition at line 126 of file datvideorender.h.
Referenced by DATVideoRender(), PreprocessStream(), RenderStream(), and setResampler().
|
private |
Definition at line 128 of file datvideorender.h.
Referenced by DATVideoRender(), and RenderStream().
|
private |
Definition at line 132 of file datvideorender.h.
Referenced by RenderStream().
|
private |
Definition at line 133 of file datvideorender.h.
Referenced by DATVideoRender(), and RenderStream().
|
staticprivate |
Definition at line 131 of file datvideorender.h.
Referenced by RenderStream().
|
private |
Definition at line 134 of file datvideorender.h.
Referenced by DATVideoRender(), and RenderStream().
|
private |
Definition at line 130 of file datvideorender.h.
Referenced by DATVideoRender(), and setResampler().
|
private |
Definition at line 144 of file datvideorender.h.
Referenced by DATVideoRender(), PreprocessStream(), and RenderStream().
|
private |
Definition at line 129 of file datvideorender.h.
Referenced by DATVideoRender(), RenderStream(), setResampler(), and ~DATVideoRender().
|
private |
Definition at line 136 of file datvideorender.h.
Referenced by DATVideoRender(), RenderStream(), and setAudioVolume().
|
private |
Definition at line 147 of file datvideorender.h.
Referenced by CloseStream(), DATVideoRender(), and RenderStream().
|
private |
Definition at line 146 of file datvideorender.h.
Referenced by CloseStream(), DATVideoRender(), and RenderStream().
|
private |
Definition at line 124 of file datvideorender.h.
Referenced by CloseStream(), DATVideoRender(), OpenStream(), PreprocessStream(), and RenderStream().
|
private |
Definition at line 127 of file datvideorender.h.
Referenced by CloseStream(), DATVideoRender(), PreprocessStream(), and RenderStream().
|
private |
Definition at line 142 of file datvideorender.h.
Referenced by DATVideoRender(), PreprocessStream(), and RenderStream().
|
private |
Definition at line 120 of file datvideorender.h.
Referenced by DATVideoRender(), InitializeFFMPEG(), and OpenStream().
|
private |
Definition at line 118 of file datvideorender.h.
Referenced by DATVideoRender(), and SetFullScreen().
|
private |
Definition at line 121 of file datvideorender.h.
Referenced by CloseStream(), DATVideoRender(), OpenStream(), and RenderStream().
|
private |
Definition at line 115 of file datvideorender.h.
|
private |
Definition at line 114 of file datvideorender.h.
|
private |
Definition at line 113 of file datvideorender.h.
|
private |
Definition at line 139 of file datvideorender.h.
Referenced by RenderStream().
|
private |
Definition at line 140 of file datvideorender.h.
Referenced by RenderStream().
|
private |
Definition at line 117 of file datvideorender.h.
Referenced by CloseStream(), DATVideoRender(), OpenStream(), and RenderStream().
|
private |
Definition at line 123 of file datvideorender.h.
Referenced by CloseStream(), DATVideoRender(), and RenderStream().
|
private |
Definition at line 137 of file datvideorender.h.
Referenced by DATVideoRender(), and RenderStream().
|
private |
Definition at line 150 of file datvideorender.h.
Referenced by DATVideoRender(), and RenderStream().
|
private |
Definition at line 125 of file datvideorender.h.
Referenced by CloseStream(), DATVideoRender(), PreprocessStream(), and RenderStream().
|
private |
Definition at line 135 of file datvideorender.h.
Referenced by DATVideoRender(), and RenderStream().
|
private |
Definition at line 143 of file datvideorender.h.
Referenced by DATVideoRender(), PreprocessStream(), and RenderStream().
struct DataTSMetaData2 DATVideoRender::MetaData |
Definition at line 110 of file datvideorender.h.
Referenced by CloseStream(), OpenStream(), PreprocessStream(), RenderStream(), and ResetMetaData().