Changeset 176:fbd331d7dcff in verona


Ignore:
Timestamp:
May 10, 2011 2:08:05 PM (2 years ago)
Author:
laurent <laurent@…>
Branch:
default
Message:

Add VideoSize?

Location:
phapi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • phapi/phms.c

    r175 r176  
    185185        if(s->newstreams & 1<<PH_MSTREAM_VIDEO1) 
    186186        { 
    187                 video = phms_video_stream_new(video1->localport, ms_is_ipv6(video1->remoteaddr), video1->traffictype, video1->video_quality); 
     187                video = phms_video_stream_new(video1->localport, ms_is_ipv6(video1->remoteaddr), video1->traffictype, conf->video_config.video_webcam_capture_width,conf->video_config.video_webcam_capture_height); 
    188188                if(video == NULL) 
    189189                { 
     
    499499                if(video_stop_on_hold) 
    500500                { 
    501                         video = phms_video_stream_new(video1->localport, ms_is_ipv6(video1->remoteaddr), video1->traffictype, video1->video_quality); 
     501                        video = phms_video_stream_new(video1->localport, ms_is_ipv6(video1->remoteaddr), video1->traffictype, -1,-1); 
    502502                        if(video == NULL) 
    503503                        { 
  • phapi/phms_videostream.c

    r174 r176  
    117117} 
    118118 
    119 phms_video_stream_t *phms_video_stream_new(int locport, bool_t use_ipv6, int traffictype, int quality) 
     119phms_video_stream_t *phms_video_stream_new(int locport, bool_t use_ipv6, int traffictype, int width, int height) 
    120120{ 
    121121        MSVideoSize vsize; 
     
    126126        if(pvs->s != NULL) 
    127127        { 
    128                 get_vsize_from_quality(quality, &vsize); 
    129                 pvs->s->sent_vsize.height = vsize.height; 
    130                 pvs->s->sent_vsize.width = vsize.width; 
    131  
    132                 ms_message("Initial sent format set to %d:%d, quality %d\n",vsize.height,vsize.width, quality); 
     128                 
     129                pvs->s->sent_vsize.width = width; 
     130                pvs->s->sent_vsize.height = height; 
    133131                 
    134132                pvs->frame_event.frame_local = (phPicture_t *)malloc(sizeof(phPicture_t)); 
  • phapi/phms_videostream.h

    r173 r176  
    4545typedef struct phms_video_stream_s phms_video_stream_t; 
    4646 
    47 phms_video_stream_t *phms_video_stream_new(int locport, bool_t use_ipv6, int traffictype, int quality); 
     47phms_video_stream_t *phms_video_stream_new(int locport, bool_t use_ipv6, int traffictype, int width, int height); 
    4848int phms_video_stream_start (phms_video_stream_t *pstream, RtpProfile *profile, const char *remip, int remport,int rem_rtcp_port, int payload, int jitt_comp, void *msession); 
    4949int phms_video_stream_start_send_only(phms_video_stream_t *pvs, RtpProfile *profile, const char *remip, int remport,int rem_rtcp_port, int payload, int jitt_comp, void *msession); 
Note: See TracChangeset for help on using the changeset viewer.