Changeset 961:3ff451d1b61b in mediastreamer2
- Timestamp:
- May 10, 2010 9:25:56 PM (3 years ago)
- Branch:
- default
- Files:
-
- 2 added
- 4 edited
-
include/mediastreamer2/allfilters.h (modified) (1 diff)
-
include/mediastreamer2/msfilter.h (modified) (1 diff)
-
include/mediastreamer2/msinterfaces.h (added)
-
src/Makefile.am (modified) (1 diff)
-
src/drawdib-display.c (added)
-
src/videostream.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
include/mediastreamer2/allfilters.h
r952 r961 91 91 MS_JPEG_ENC_ID, 92 92 MS_PULSE_READ_ID, 93 MS_PULSE_WRITE_ID 93 MS_PULSE_WRITE_ID, 94 MS_DRAWDIB_DISPLAY_ID 94 95 } MSFilterId; 95 96 -
include/mediastreamer2/msfilter.h
r856 r961 461 461 462 462 463 enum _MSFilterInterfaceId{ 464 MSFilterInterfaceBegin=16384, 465 MSFilterPlayerInterface, 466 MSFilterRecorderInterface, 467 MSFilterVideoDisplayInterface, 468 }; 469 470 typedef enum _MSFilterInterfaceId MSFilterInterfaceId; 471 472 463 473 /* more specific methods: to be moved into implementation specific header files*/ 464 474 #define MS_FILTER_SET_FRAMESIZE MS_FILTER_BASE_METHOD(11,int) -
src/Makefile.am
r952 r961 105 105 106 106 if BUILD_WIN32 107 libmediastreamer_la_SOURCES+=msdscap-mingw.cc 107 libmediastreamer_la_SOURCES+=msdscap-mingw.cc drawdib-display.c 108 108 endif 109 109 -
src/videostream.c
r959 r961 138 138 139 139 void video_stream_iterate(VideoStream *stream){ 140 140 /* 141 141 if (stream->output!=NULL) 142 142 ms_filter_call_method_noarg(stream->output, 143 143 MS_VIDEO_OUT_HANDLE_RESIZING); 144 144 */ 145 145 if (stream->evq){ 146 146 OrtpEvent *ev=ortp_ev_queue_get(stream->evq); … … 245 245 stream->source = ms_web_cam_create_reader(cam); 246 246 stream->tee = ms_filter_new(MS_TEE_ID); 247 #ifndef WIN32 247 248 stream->output=ms_filter_new(MS_VIDEO_OUT_ID); 249 #else 250 stream->output=ms_filter_new(MS_DRAWDIB_DISPLAY_ID); 251 #endif 248 252 stream->sizeconv=ms_filter_new(MS_SIZE_CONV_ID); 249 253 … … 371 375 /* creates the filters */ 372 376 stream->source = ms_web_cam_create_reader(device); 377 #ifndef WIN32 373 378 stream->output = ms_filter_new(MS_VIDEO_OUT_ID); 379 #else 380 stream->output = ms_filter_new(MS_DRAWDIB_DISPLAY_ID); 381 #endif 374 382 375 383 … … 391 399 ms_filter_call_method(stream->output,MS_FILTER_SET_PIX_FMT,&format); 392 400 ms_filter_call_method(stream->output,MS_FILTER_SET_VIDEO_SIZE,&disp_size); 393 ms_filter_call_method(stream->output,MS_VIDEO_OUT_ENABLE_MIRRORING,&mirroring);394 ms_filter_call_method(stream->output,MS_VIDEO_OUT_SET_CORNER,&corner);401 //ms_filter_call_method(stream->output,MS_VIDEO_OUT_ENABLE_MIRRORING,&mirroring); 402 //ms_filter_call_method(stream->output,MS_VIDEO_OUT_SET_CORNER,&corner); 395 403 /* and then connect all */ 396 404
Note: See TracChangeset
for help on using the changeset viewer.
