Changeset 34:0a235bea9540 in mediastreamer2


Ignore:
Timestamp:
Sep 23, 2008 10:27:30 PM (5 years ago)
Author:
smorlat <smorlat@…>
Branch:
default
Message:

fix yuy2 support

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@37 3f6dc0c8-ddfe-455d-9043-3cd528dc4637

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linphone/mediastreamer2/src/winvideo.c

    r29 r34  
    8787 
    8888static bool_t try_format(V4wState *s, BITMAPINFO *videoformat, MSPixFmt pixfmt){ 
     89        capGetVideoFormat(s->capvideo, videoformat, sizeof(BITMAPINFO)); 
     90        videoformat->bmiHeader.biSizeImage = 0; 
     91        videoformat->bmiHeader.biWidth  = s->vsize.width; 
     92        videoformat->bmiHeader.biHeight = s->vsize.height; 
    8993        switch(pixfmt){ 
    9094                case MS_YUV420P: 
     
    174178        capSetUserData(s->capvideo, s); 
    175179        capGetVideoFormat(s->capvideo, &videoformat, sizeof(BITMAPINFO)); 
    176  
    177         videoformat.bmiHeader.biSizeImage = 0; 
    178         videoformat.bmiHeader.biWidth  = s->vsize.width; 
    179         videoformat.bmiHeader.biHeight = s->vsize.height; 
    180180        /* "orig planes = " disp->videoformat.bmiHeader.biPlanes */ 
    181181        /* "orig bitcount = " disp->videoformat.bmiHeader.biBitCount */ 
     
    507507                        mblk_set_timestamp_info(om,timestamp); 
    508508                        ms_queue_put(obj->outputs[0],om); 
    509                         /*ms_message("picture sent");*/ 
    510509                } 
    511510                s->frame_count++; 
Note: See TracChangeset for help on using the changeset viewer.