Commit 222273f3 authored by smorlat's avatar smorlat
Browse files

fix yuy2 support




git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@37 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 8236b56d
......@@ -86,6 +86,10 @@ LRESULT CALLBACK VideoStreamCallback(HWND hWnd, LPVIDEOHDR lpVHdr)
}
static bool_t try_format(V4wState *s, BITMAPINFO *videoformat, MSPixFmt pixfmt){
capGetVideoFormat(s->capvideo, videoformat, sizeof(BITMAPINFO));
videoformat->bmiHeader.biSizeImage = 0;
videoformat->bmiHeader.biWidth = s->vsize.width;
videoformat->bmiHeader.biHeight = s->vsize.height;
switch(pixfmt){
case MS_YUV420P:
videoformat->bmiHeader.biBitCount = 12;
......@@ -173,10 +177,6 @@ static int v4w_open_videodevice(V4wState *s)
}
capSetUserData(s->capvideo, s);
capGetVideoFormat(s->capvideo, &videoformat, sizeof(BITMAPINFO));
videoformat.bmiHeader.biSizeImage = 0;
videoformat.bmiHeader.biWidth = s->vsize.width;
videoformat.bmiHeader.biHeight = s->vsize.height;
/* "orig planes = " disp->videoformat.bmiHeader.biPlanes */
/* "orig bitcount = " disp->videoformat.bmiHeader.biBitCount */
/* "orig compression = " disp->videoformat.bmiHeader.biCompression */
......@@ -506,7 +506,6 @@ static void v4w_process(MSFilter * obj){
timestamp=obj->ticker->time*90;/* rtp uses a 90000 Hz clockrate for video*/
mblk_set_timestamp_info(om,timestamp);
ms_queue_put(obj->outputs[0],om);
/*ms_message("picture sent");*/
}
s->frame_count++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment