Hi,
i have encountered a problem with mythphone when using a quickcam messenger 
and grabbing video in cif and sending it in cif.
the problem is, that the qc cant do cif-modes. i.e. instead of 176x144 it 
opens in 162x124.
this leads to problems when trying to send in cif.
the attached patch does check if the actual width/height of the webcam are 
smaller than the res in we want to send. if it is it crops the image instead 
of scaling it.
i dont know if this also happens when there is zoom enabled.
also the transmitted image has now a green line at the bottom. doesnt look 
good, but at least you can see something now.
perhaps the image should be padded with black pixels, dont know.


p.s. @ Paul
you can expect me to send some more patches. i am currently working on 
konference again and would like to add a more flexible way of handling audio 
input/output. have you ever looked at kphone source? they have a more 
flexible way of handling audio (alsa, oss, jack). i would like to implement 
something similar in konference/mythphone. let me know if you already worked 
on something similar.

--
Malte B�hme aka maldn
http://developer.berlios.de/projects/konference/
Index: phoneui.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythphone/mythphone/phoneui.cpp,v
retrieving revision 1.29
diff -u -p -r1.29 phoneui.cpp
--- phoneui.cpp	8 Jan 2005 17:44:01 -0000	1.29
+++ phoneui.cpp	26 Jan 2005 14:48:58 -0000
@@ -707,7 +707,10 @@ void PhoneUIBox::TransmitLocalWebcamImag
             int encLen;
             if (zoomFactor == 10) // No Zoom; just scale the webcam image to the transmit size
             {
-                scaleYuvImage(yuvFrame, wcWidth, wcHeight, txWidth, txHeight, yuvBuffer2);
+                if((wcWidth < txWidth) || (wcHeight < wcWidth))
+                    cropYuvImage(yuvFrame, wcWidth, wcHeight, 0, 0, txWidth, txHeight, yuvBuffer2);
+                else
+                    scaleYuvImage(yuvFrame, wcWidth, wcHeight, txWidth, txHeight, yuvBuffer2);
             }
             else
             {
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to