- Timestamp:
- Jul 12, 2011 3:05:35 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia-videodev/videodev.h
r3592 r3617 26 26 #include <pjmedia-videodev/config.h> 27 27 #include <pjmedia-videodev/errno.h> 28 #include <pjmedia/event.h> 28 29 #include <pjmedia/frame.h> 29 30 #include <pjmedia/format.h> … … 170 171 /** Forward declaration for pjmedia_vid_dev_stream */ 171 172 typedef struct pjmedia_vid_dev_stream pjmedia_vid_dev_stream; 172 173 typedef enum pjmedia_event_type174 {175 PJMEDIA_EVENT_NONE,176 PJMEDIA_EVENT_FMT_CHANGED,177 PJMEDIA_EVENT_MOUSEBUTTONDOWN,178 PJMEDIA_EVENT_WINDOW_RESIZE,179 PJMEDIA_EVENT_WINDOW_FULLSCREEN,180 PJMEDIA_EVENT_WINDOW_CLOSE,181 } pjmedia_event_type;182 183 typedef struct pjmedia_vid_event184 {185 pjmedia_event_type event_type;186 union {187 struct resize_event {188 pjmedia_rect_size new_size;189 } resize;190 struct fmt_changed_event {191 pjmedia_format new_format;192 } fmt_change;193 } event_desc;194 } pjmedia_vid_event;195 196 173 197 174 typedef struct pjmedia_vid_cb … … 235 212 pjmedia_frame *frame); 236 213 237 /**238 * This callback is called by the stream to report the occurence of an239 * event to the application.240 *241 * @param stream The video stream.242 * @param user_data User data associated with the stream.243 * @param event The event.244 *245 * @return Return PJ_SUCCESS will invoke the video stream's246 * default event-handler (if any), otherwise the247 * video stream will ignore the particular event.248 */249 pj_status_t (*on_event_cb)(pjmedia_vid_dev_stream *stream,250 void *user_data,251 pjmedia_vid_event *event);252 253 214 } pjmedia_vid_cb; 254 215 … … 598 559 pjmedia_vid_dev_stream *strm); 599 560 561 /** 562 * Get the event publisher object for the video stream. Caller typically use 563 * the returned object to subscribe or unsubscribe events from the video 564 * stream. 565 * 566 * @param strm The video stream. 567 * 568 * @return The event publisher object. 569 */ 570 PJ_DECL(pjmedia_event_publisher*) 571 pjmedia_vid_dev_stream_get_event_publisher(pjmedia_vid_dev_stream *strm); 572 600 573 /* Get/put frame API for passive stream */ 601 574 PJ_DECL(pj_status_t) pjmedia_vid_dev_stream_get_frame(
Note: See TracChangeset
for help on using the changeset viewer.