From 6e97521efa02c3456e7db0856a13a821e8b428fe Mon Sep 17 00:00:00 2001 From: F5OEO Date: Wed, 26 Oct 2016 11:08:14 +0000 Subject: [PATCH] Add YUYV webcam format --- src/avc2ts/webcam.cpp | 58 ++++++++++++++++++++++++++++++++----------- 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/src/avc2ts/webcam.cpp b/src/avc2ts/webcam.cpp index 8c76b12..0d3e0bf 100644 --- a/src/avc2ts/webcam.cpp +++ b/src/avc2ts/webcam.cpp @@ -103,26 +103,50 @@ int Webcam::ConvertColor(unsigned char *out,unsigned char *in) unsigned char *PlanV=PlanU+(yuv420frame.width*yuv420frame.height)/4; //printf("WidthMissin %d\n",WidthMissing); - int count=0; - for(int j=0;j