diff options
author | Benny Prijono <bennylp@teluu.com> | 2012-04-04 05:05:50 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2012-04-04 05:05:50 +0000 |
commit | 3e8d57944439a50f12c3e3eef10a416ced22aa7f (patch) | |
tree | 9c4c632100e81d23b745e7c13f6608b931a9c641 /pjmedia/include/pjmedia-videodev/videodev.h | |
parent | b3a8dbd102f7c33b5a3a9beb0d606e5a2676f334 (diff) |
Fixed #1478: AVI player virtual device. Initial spec:
- Currently only Works with raw video and audio AVI files
- Added --play-avi and --auto-play-avi options in pjsua
- No A/V synchronization yet
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4016 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include/pjmedia-videodev/videodev.h')
-rw-r--r-- | pjmedia/include/pjmedia-videodev/videodev.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/pjmedia/include/pjmedia-videodev/videodev.h b/pjmedia/include/pjmedia-videodev/videodev.h index fa6c2697..235d2a3e 100644 --- a/pjmedia/include/pjmedia-videodev/videodev.h +++ b/pjmedia/include/pjmedia-videodev/videodev.h @@ -559,16 +559,23 @@ PJ_DECL(pj_status_t) pjmedia_vid_dev_subsys_shutdown(void); /** * Register a supported video device factory to the video device subsystem. + * Application can either register a function to create the factory, or + * an instance of an already created factory. + * * This function can only be called after calling * #pjmedia_vid_dev_subsys_init(). * - * @param vdf The video device factory. + * @param vdf The factory creation function. Either vdf or factory + * argument must be specified. + * @param factory Factory instance. Either vdf or factory + * argument must be specified. * * @return PJ_SUCCESS on successful operation or the appropriate * error code. */ PJ_DECL(pj_status_t) -pjmedia_vid_register_factory(pjmedia_vid_dev_factory_create_func_ptr vdf); +pjmedia_vid_register_factory(pjmedia_vid_dev_factory_create_func_ptr vdf, + pjmedia_vid_dev_factory *factory); /** @@ -577,13 +584,17 @@ pjmedia_vid_register_factory(pjmedia_vid_dev_factory_create_func_ptr vdf); * Devices from this factory will be unlisted. If a device from this factory * is currently in use, then the behavior is undefined. * - * @param vdf The video device factory. + * @param vdf The video device factory. Either vdf or factory argument + * must be specified. + * @param factory The factory instance. Either vdf or factory argument + * must be specified. * * @return PJ_SUCCESS on successful operation or the appropriate * error code. */ PJ_DECL(pj_status_t) -pjmedia_vid_unregister_factory(pjmedia_vid_dev_factory_create_func_ptr vdf); +pjmedia_vid_unregister_factory(pjmedia_vid_dev_factory_create_func_ptr vdf, + pjmedia_vid_dev_factory *factory); /** |