Changeset 4680
- Timestamp:
- 03/07/10 07:16:05 (3 years ago)
- Location:
- vic/branches/mpeg4/video
- Files:
-
- 2 modified
-
grabber-win32DS.cpp (modified) (3 diffs)
-
grabber-win32DS.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vic/branches/mpeg4/video/grabber-win32DS.cpp
r4651 r4680 818 818 //-------------------------------- 819 819 820 int DirectShowGrabber::getCaptureCapabilities( ) {820 int DirectShowGrabber::getCaptureCapabilities(int preferred_max_width) { 821 821 IAMStreamConfig *pConfig; 822 822 AM_MEDIA_TYPE *pmtConfig; 823 823 int iCount; 824 824 int iSize; 825 int preferred_max_width;826 825 VIDEO_STREAM_CONFIG_CAPS scc; 827 826 HRESULT hr; … … 835 834 } 836 835 837 preferred_max_width = 1024;838 836 max_width_ = 0; 839 837 max_height_ = 0; … … 891 889 } 892 890 pConfig->Release(); 891 892 if (min_height_>=NTSC_BASE_HEIGHT && preferred_max_width != 1920) 893 getCaptureCapabilities(1920); 894 893 895 if (max_width_>0) 894 896 return TRUE; -
vic/branches/mpeg4/video/grabber-win32DS.h
r4475 r4680 138 138 virtual int grab(); 139 139 void setport(const char *port); 140 int getCaptureCapabilities( );140 int getCaptureCapabilities(int preferred_max_width=1024); 141 141 virtual void setCaptureOutputFormat(); 142 142
