|
|
@ -1998,6 +1998,21 @@ bool streamHandler::pushFrame( AVFrame *Frame, void* src){ |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
bool streamHandler::pushFrame( cv::Mat &Frame, void* src ){ |
|
|
bool streamHandler::pushFrame( cv::Mat &Frame, void* src ){ |
|
|
|
|
|
|
|
|
|
|
|
/** @todo Valgrind is reporting an important memory leak in this method. The @p malloc() call on line 2568 (and others, such as 2576).
|
|
|
|
|
|
* The details are as follows: |
|
|
|
|
|
* |
|
|
|
|
|
* ~~~~ |
|
|
|
|
|
= =00:00:04:04.219 26021== 8,805,208 (4,416 direct, 8,800,792 *indirect) bytes in 184 blocks are definitely lost in loss record 3,972 of 3,972 |
|
|
|
|
|
==00:00:04:04.219 26021== at 0x483877F: malloc (vg_replace_malloc.c:307) |
|
|
|
|
|
==00:00:04:04.219 26021== by 0x1B0FF9: streamHandler::pushFrame(cv::Mat&, void*) (kernelModuleEmbedVideo.cpp:2568) |
|
|
|
|
|
==00:00:04:04.219 26021== by 0x2490CB: videoAVLIBSource::m_fThreadProc() (videoAVLIBSource.cpp:874) |
|
|
|
|
|
==00:00:04:04.219 26021== by 0x131B54: basicThread::m_fThreadEntryPoint(void*) (basicThread.cpp:62) |
|
|
|
|
|
==00:00:04:04.219 26021== by 0x49B7EA6: start_thread (pthread_create.c:477) |
|
|
|
|
|
==00:00:04:04.219 26021== by 0x7874ADE: clone (clone.S:95) |
|
|
|
|
|
* ~~~~ |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
bool SkeepW, SkeepA, SkeepB; |
|
|
bool SkeepW, SkeepA, SkeepB; |
|
|
if( m_pMaster == NULL ) return false; |
|
|
if( m_pMaster == NULL ) return false; |
|
|
MEDIA_SOURCE_DESC * tMD = (MEDIA_SOURCE_DESC *) src; |
|
|
MEDIA_SOURCE_DESC * tMD = (MEDIA_SOURCE_DESC *) src; |
|
|
@ -3250,7 +3265,7 @@ bool streamHandler::initVideoOutput(){ |
|
|
m_pCodecACtx->max_b_frames = 5; |
|
|
m_pCodecACtx->max_b_frames = 5; |
|
|
|
|
|
|
|
|
/// Can be used by a P-frame(predictive, partial frame) to help define a future frame in a compressed video.
|
|
|
/// Can be used by a P-frame(predictive, partial frame) to help define a future frame in a compressed video.
|
|
|
/// [use 3–5 ref per P]
|
|
|
|
|
|
|
|
|
/// [use 3„1¤75 ref per P]
|
|
|
m_pCodecACtx->refs = 3; |
|
|
m_pCodecACtx->refs = 3; |
|
|
|
|
|
|
|
|
/// Compression efficiency (slower -> better quality + higher cpu%)
|
|
|
/// Compression efficiency (slower -> better quality + higher cpu%)
|
|
|
@ -3330,7 +3345,7 @@ bool streamHandler::initVideoOutput(){ |
|
|
m_pCodecBCtx->max_b_frames = 5; |
|
|
m_pCodecBCtx->max_b_frames = 5; |
|
|
|
|
|
|
|
|
/// Can be used by a P-frame(predictive, partial frame) to help define a future frame in a compressed video.
|
|
|
/// Can be used by a P-frame(predictive, partial frame) to help define a future frame in a compressed video.
|
|
|
/// [use 3–5 ref per P]
|
|
|
|
|
|
|
|
|
/// [use 3„1¤75 ref per P]
|
|
|
m_pCodecBCtx->refs = 3; |
|
|
m_pCodecBCtx->refs = 3; |
|
|
|
|
|
|
|
|
/// Compression efficiency (slower -> better quality + higher cpu%)
|
|
|
/// Compression efficiency (slower -> better quality + higher cpu%)
|
|
|
@ -3611,7 +3626,7 @@ bool streamHandler::initVideoOutput(){ |
|
|
m_pCodecCtx->max_b_frames = 5; |
|
|
m_pCodecCtx->max_b_frames = 5; |
|
|
|
|
|
|
|
|
/// Can be used by a P-frame(predictive, partial frame) to help define a future frame in a compressed video.
|
|
|
/// Can be used by a P-frame(predictive, partial frame) to help define a future frame in a compressed video.
|
|
|
/// [use 3–5 ref per P]
|
|
|
|
|
|
|
|
|
/// [use 3„1¤75 ref per P]
|
|
|
m_pCodecCtx->refs = 3; |
|
|
m_pCodecCtx->refs = 3; |
|
|
|
|
|
|
|
|
/// Compression efficiency (slower -> better quality + higher cpu%)
|
|
|
/// Compression efficiency (slower -> better quality + higher cpu%)
|
|
|
|