Ignore:
Timestamp:
Mar 22, 2011 9:46:04 AM (11 years ago)
Author:
nanang
Message:

Re #1213:

  • Added encoding format conversion (only format ID) in video port.
  • Fixed few bugs in direct show capture device:
    • VIDEOINFOHEADER.AvgTimePerFrame? calculation overflow which caused failure in opening capture device.
    • AM_MEDIA_TYPE.formattype validation to avoid bad type casting (of VIDEOINFOHEADER).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/dshowclasses.cpp

    r3392 r3470  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
    1818 */ 
    19 #undef _DEBUG 
    20 #undef DEBUG 
     19 
     20#include <pjmedia-videodev/config.h> 
     21 
     22#if PJMEDIA_VIDEO_DEV_HAS_DSHOW 
    2123 
    2224#include <streams.h> 
    2325 
    24 #pragma comment(lib, "Strmbase.lib") 
     26#if PJ_DEBUG 
     27#   pragma comment(lib, "Strmbasd.lib") 
     28#else 
     29#   pragma comment(lib, "Strmbase.lib") 
     30#endif 
    2531 
    2632typedef void (*input_callback)(void *user_data, IMediaSample *pMediaSample); 
     
    208214    ((OutputPin *)src->GetPin(0))->bufSize = size; 
    209215} 
     216 
     217#endif  /* PJMEDIA_VIDEO_DEV_HAS_DSHOW */ 
Note: See TracChangeset for help on using the changeset viewer.