- Timestamp:
- Jun 13, 2011 11:48:37 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/dshow_dev.c
r3580 r3582 54 54 IBaseFilter* SourceFilter_Create(SourceFilter **pSrc); 55 55 HRESULT SourceFilter_Deliver(SourceFilter *src, void *buf, long size); 56 void SourceFilter_Set BufferSize(SourceFilter *src, long size);56 void SourceFilter_SetMediaType(SourceFilter *src, AM_MEDIA_TYPE *pmt); 57 57 58 58 typedef struct dshow_fmt_info … … 66 66 {PJMEDIA_FORMAT_YUY2, &MEDIASUBTYPE_YUY2} , 67 67 {PJMEDIA_FORMAT_RGB24, &MEDIASUBTYPE_RGB24} , 68 //{PJMEDIA_FORMAT_RGB32, &MEDIASUBTYPE_RGB32} ,69 //{PJMEDIA_FORMAT_IYUV, &MEDIASUBTYPE_IYUV} ,68 {PJMEDIA_FORMAT_RGB32, &MEDIASUBTYPE_RGB32} , 69 {PJMEDIA_FORMAT_IYUV, &MEDIASUBTYPE_IYUV} , 70 70 }; 71 71 … … 675 675 mediatype->lSampleSize = DIBSIZE(video_info->bmiHeader); 676 676 if (graph->csource_filter) 677 SourceFilter_Set BufferSize(graph->csource_filter,678 mediatype->lSampleSize);677 SourceFilter_SetMediaType(graph->csource_filter, 678 mediatype); 679 679 680 680 hr = IFilterGraph_AddFilter(graph->filter_graph,
Note: See TracChangeset
for help on using the changeset viewer.