|
|
|
@ -888,7 +888,11 @@ bool videoAVLIBSource::_open(char * URI, bool ShowDeviceMenu, float framerate, i |
|
|
|
sprintf(tB, "swsPar: IN: %dx%d [%d] OUT: %dx%d [%d] {%d}", m_pVideoState->m_pCodecCtx->width, m_pVideoState->m_pCodecCtx->height, m_pVideoState->m_pCodecCtx->pix_fmt, m_nOutWidth, m_nOutHeight, AV_PIX_FMT_BGR24, SWS_BICUBIC); |
|
|
|
LOG(tB); |
|
|
|
#endif
|
|
|
|
m_pVideoState->m_pSwsCtx = sws_getContext(m_pVideoState->m_pCodecCtx->width, m_pVideoState->m_pCodecCtx->height, m_pVideoState->m_pCodecCtx->pix_fmt, m_nOutWidth, m_nOutHeight, AV_PIX_FMT_BGR24, |
|
|
|
if ( m_pVideoState->m_pCodecCtx->pix_fmt < 0 ) { |
|
|
|
LOG_ERROR("Error Detectin Pixel Format of the stream!!"); |
|
|
|
return false; |
|
|
|
}; |
|
|
|
m_pVideoState->m_pSwsCtx = sws_getContext(m_pVideoState->m_pCodecCtx->width, m_pVideoState->m_pCodecCtx->height, m_pVideoState->m_pCodecCtx->pix_fmt, m_nOutWidth, m_nOutHeight, AV_PIX_FMT_BGR24, |
|
|
|
SWS_BICUBIC, // SWS_FAST_BILINEAR,// | SWS_ACCURATE_RND,//SWS_BILINEAR,//SWS_BICUBIC,
|
|
|
|
NULL, NULL, NULL); |
|
|
|
|
|
|
|
|