Ignore:
Timestamp:
Jun 25, 2015 8:17:52 AM (9 years ago)
Author:
ming
Message:

Re #1861: Initial implementation of video orientation support

  • Utility to resize and rotate video frame
  • Support for iOS + sample
  • pjsua API to set video device's orientation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r4999 r5118  
    66016601 
    66026602/** 
     6603 * Check whether the video capture device is currently active, i.e. if 
     6604 * a video preview has been started or there is a video call using 
     6605 * the device. This function will return PJ_FALSE for video renderer device. 
     6606 * 
     6607 * @param id            The video device index. 
     6608 * 
     6609 * @return              PJ_TRUE if active, PJ_FALSE otherwise. 
     6610 */ 
     6611PJ_DECL(pj_bool_t) pjsua_vid_dev_is_active(pjmedia_vid_dev_index id); 
     6612 
     6613/** 
     6614 * Set the orientation of the video device. The function only works 
     6615 * for video capture device and if the device is currently active (i.e. 
     6616 * a video preview has been started or there is a video call using the device). 
     6617 * Application can check if a video device is active by calling 
     6618 * #pjsua_vid_dev_is_active(). 
     6619 * 
     6620 * @param id            The video device index. 
     6621 * @param orient        Video device orientation. 
     6622 * 
     6623 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     6624 */ 
     6625PJ_DECL(pj_status_t) pjsua_vid_dev_set_orient(pjmedia_vid_dev_index id, 
     6626                                              pjmedia_orient orient); 
     6627 
     6628/** 
    66036629 * Enum all video devices installed in the system. 
    66046630 * 
Note: See TracChangeset for help on using the changeset viewer.