- Timestamp:
- Jul 12, 2011 9:08:56 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/vid_codec.h
r3613 r3622 28 28 29 29 #include <pjmedia/codec.h> 30 #include <pjmedia/event.h> 30 31 #include <pjmedia/format.h> 31 32 #include <pjmedia/types.h> … … 99 100 100 101 /** 101 * Enumeration of video codec events.102 */103 typedef enum pjmedia_vid_codec_event104 {105 /**106 * Format changed event. The decoder output format is not really107 * configurable, so that the output format setting configured in the108 * initialization may be changed. Application can catch this event109 * by checking the bit_info field of the pjmedia_frame of the decoder110 * output frame.111 */112 PJMEDIA_VID_CODEC_EVENT_FMT_CHANGED = 1,113 114 } pjmedia_vid_codec_event;115 116 117 /**118 102 * Forward declaration for video codec. 119 103 */ … … 269 253 * format may different to the current setting, e.g: the format specified 270 254 * in the #pjmedia_vid_codec_param when opening the codec, in this case the 271 * PJMEDIA_ VID_CODEC_EVENT_FMT_CHANGED flag will be set in the bit_info272 * field of the output frame and application can query the new format255 * PJMEDIA_EVENT_FMT_CHANGED event will be emitted by the codec. The codec 256 * parameter will also be updated, and application can query the format by 273 257 * using #get_param(). 274 258 * … … 310 294 311 295 /** 312 * This structure describes a video codec instance. 296 * This structure describes a video codec instance. Codec implementers 297 * should use #pjmedia_vid_codec_init() to initialize this structure with 298 * default values. 313 299 */ 314 300 struct pjmedia_vid_codec … … 325 311 /** Operations to codec. */ 326 312 pjmedia_vid_codec_op *op; 313 314 /** Event publisher object */ 315 pjmedia_event_publisher epub; 327 316 }; 328 317 … … 438 427 439 428 429 /** 430 * Initialize pjmedia_vid_codec structure with default values. 431 * 432 * @param codec The codec to be initialized. 433 */ 434 PJ_DECL(void) pjmedia_vid_codec_init(pjmedia_vid_codec *codec); 440 435 441 436 /**
Note: See TracChangeset
for help on using the changeset viewer.