[Sumover-dev] [svn commit] r4747 - vic/branches/mpeg4/video
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Tue Mar 30 12:04:17 BST 2010
Author: douglask
Date: Tue Mar 30 12:04:17 2010
New Revision: 4747
Modified:
vic/branches/mpeg4/video/grabber-win32DS.cpp
Log:
Fixed pixel format conversion for DV and fallback RGB24
Modified: vic/branches/mpeg4/video/grabber-win32DS.cpp
==============================================================================
--- vic/branches/mpeg4/video/grabber-win32DS.cpp (original)
+++ vic/branches/mpeg4/video/grabber-win32DS.cpp Tue Mar 30 12:04:17 2010
@@ -751,25 +751,21 @@
planarYUYV420_to_planarYUYV420((char *)frame_, outw_, outh_, (char *)last_frame_, inw_, inh_);
else if (have_YUY2_)
packedYUYV422_to_planarYUYV420((char *)frame_, outw_, outh_, (char *)last_frame_, inw_, inh_);
- else if (have_UYVY_ || have_HDYC_)
+ else if (have_UYVY_ || have_HDYC_ || have_DVSD_)
packedUYVY422_to_planarYUYV420((char *)frame_, outw_, outh_, (char *)last_frame_, inw_, inh_);
- else if (have_RGB24_)
+ else // if (have_RGB24_)
converter_->convert((u_int8_t*)last_frame_, width_, height_, frame_, outw_, outh_, TRUE);
- else
- packedUYVY422_to_planarYUYV420((char *)frame_, outw_, outh_, (char *)last_frame_, inw_, inh_);
break;
case CF_422:
if (have_YUY2_)
packedYUYV422_to_planarYUYV422((char *)frame_, outw_, outh_, (char *)last_frame_, inw_, inh_);
- else if (have_UYVY_ || have_HDYC_)
+ else if (have_UYVY_ || have_HDYC_ || have_DVSD_)
packedUYVY422_to_planarYUYV422((char *)frame_, outw_, outh_, (char *)last_frame_, inw_, inh_);
else if (have_I420_)
planarYUYV420_to_planarYUYV422((char *)frame_, outw_, outh_, (char *)last_frame_, inw_, inh_);
- else if (have_RGB24_)
+ else // if (have_RGB24_)
converter_->convert((u_int8_t*)last_frame_, width_, height_, frame_, outw_, outh_, TRUE);
- else
- packedUYVY422_to_planarYUYV422((char *)frame_, outw_, outh_, (char *)last_frame_, inw_, inh_);
break;
}
More information about the Sumover-dev
mailing list