|
|
|
@ -97,8 +97,10 @@ kernelModuleEmbedVideo::kernelModuleEmbedVideo( uint32_t moduleID ): kernelModul |
|
|
|
sprintf( tB, "Web Streams Port: %d", m_sEmbedVideoData.port ); |
|
|
|
LOG( tB ); |
|
|
|
sprintf( tB, "Frame: [%dx%d]", m_sEmbedVideoData.width, m_sEmbedVideoData.height ); |
|
|
|
LOG( tB ); |
|
|
|
if( m_sEmbedVideoData.show_ts ) LOG("Show TimeStamp"); |
|
|
|
LOG( tB ); |
|
|
|
if( m_sEmbedVideoData.output_mode & EVE_OUTPUT_PICTURES ) LOG("Output Pictures"); |
|
|
|
if( m_sEmbedVideoData.output_mode & EVE_OUTPUT_VIDEO ) LOG("Output Video"); |
|
|
|
if (m_sEmbedVideoData.show_ts) LOG("Show TimeStamp"); |
|
|
|
if( m_sEmbedVideoData.show_label ) LOG("Show Label"); |
|
|
|
if( m_sEmbedVideoData.show_logo ) LOG("Show Logo"); |
|
|
|
#endif
|
|
|
|
@ -380,7 +382,7 @@ void *kernelModuleEmbedVideo::webClientProc( void *ptr ){ |
|
|
|
#ifdef HAVE_SMAL_PREVIEW_STREAMS
|
|
|
|
}; |
|
|
|
#endif
|
|
|
|
#ifdef DEBUG
|
|
|
|
#ifdef DEBUG_EXTRA
|
|
|
|
TLOG("VFEED Sent No Signal Image!"); |
|
|
|
#endif
|
|
|
|
} else { |
|
|
|
@ -461,7 +463,7 @@ void *kernelModuleEmbedVideo::webClientProc( void *ptr ){ |
|
|
|
}; |
|
|
|
} else { |
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
#ifdef DEBUG_EXTRA
|
|
|
|
TLOG("VFEED Sent No Signal Image!"); |
|
|
|
#endif
|
|
|
|
CTX->ModulePtr->m_mEncodedProtector.unlock(); |
|
|
|
@ -1434,15 +1436,13 @@ void kernelModuleEmbedVideo::dispatchEvent( EVENT_CONTAINER *Evt ){ |
|
|
|
//https://www.mikekohn.net/software/playstation2.php
|
|
|
|
|
|
|
|
bool kernelModuleEmbedVideo::saveStreamPicture( DBC_SNAPSHOT_DATA *ptr ){ |
|
|
|
|
|
|
|
if( ptr == NULL ) return false; |
|
|
|
|
|
|
|
if( m_sEmbedVideoData.output_mode & EVE_OUTPUT_PICTURES ){ |
|
|
|
if( ( m_sEmbedVideoData.output_mode & EVE_OUTPUT_PICTURES ) == EVE_OUTPUT_PICTURES ){ |
|
|
|
LOG("Saving Picture!"); |
|
|
|
|
|
|
|
saveStreamPicture( ptr->stream_id ); |
|
|
|
//saveStreamPicture( ptr->stream_id );
|
|
|
|
|
|
|
|
/*
|
|
|
|
//*
|
|
|
|
if( ptr->assoc_event_ids.size() ){ |
|
|
|
if( m_mapCAPTURES.find( ptr->stream_id ) != m_mapCAPTURES.end() ){ |
|
|
|
m_mPictureProtector.lock(); |
|
|
|
@ -1468,9 +1468,9 @@ bool kernelModuleEmbedVideo::saveStreamPicture( DBC_SNAPSHOT_DATA *ptr ){ |
|
|
|
#endif
|
|
|
|
}; |
|
|
|
}; |
|
|
|
*/ |
|
|
|
//*/
|
|
|
|
}; |
|
|
|
if( 1 || m_sEmbedVideoData.output_mode & EVE_OUTPUT_VIDEO ){ |
|
|
|
if( ( m_sEmbedVideoData.output_mode & EVE_OUTPUT_VIDEO ) == EVE_OUTPUT_VIDEO ){ |
|
|
|
LOG("Saving Video!"); |
|
|
|
if( ptr->assoc_event_ids.size() ){ |
|
|
|
m_mStreamHandlersProtector.lock(); |
|
|
|
@ -1480,10 +1480,22 @@ bool kernelModuleEmbedVideo::saveStreamPicture( DBC_SNAPSHOT_DATA *ptr ){ |
|
|
|
uint32_t cfrm; |
|
|
|
for( DBC_INT_LIST::iterator idx = ptr->assoc_event_ids.begin(); idx < ptr->assoc_event_ids.end(); idx++ ) |
|
|
|
(*hnd).second->triggerEvent( (*idx), db_id, cfrm ); |
|
|
|
} else LOG("No Stream Found!"); |
|
|
|
#ifdef DEBUG_EXTRA
|
|
|
|
} else { |
|
|
|
LOG("No Stream Found!"); |
|
|
|
#endif
|
|
|
|
}; |
|
|
|
m_mStreamHandlersProtector.unlock(); |
|
|
|
} else LOG("No Assoc EVTIDS!"); |
|
|
|
} else LOG("No Video Mode!"); |
|
|
|
#ifdef DEBUG_EXTRA
|
|
|
|
} else { |
|
|
|
LOG("No Assoc EVTIDS!"); |
|
|
|
#endif
|
|
|
|
}; |
|
|
|
#ifdef DEBUG_EXTRA
|
|
|
|
} else { |
|
|
|
LOG("No Video Mode!"); |
|
|
|
#endif
|
|
|
|
}; |
|
|
|
return true; |
|
|
|
}; |
|
|
|
|
|
|
|
|