Hi,

It seems that libpwc doesn't like the raw frame I captured from my pcvc675:

[EMAIL PROTECTED] libpwc-20060524]$ ./testlibpwc -v -i /tmp/output.raw -o kw.tga
Detected image PWC2 size:640x480
Error while decoding the stream
[EMAIL PROTECTED] libpwc-20060524]$

diff -urN libpwc-20060524/convert.c libpwc/convert.c
--- libpwc-20060524/convert.c    2006-05-24 21:22:06.000000000 +0200
+++ libpwc/convert.c    2007-09-15 19:50:47.000000000 +0200
@@ -465,11 +465,11 @@
     /* Currently not supported */
    case 645:
    case 646:
-    case 675:
    default:
      free(pwc);
      return NULL;

+    case 675:
    case 680:
    case 690:
    case 720:
diff -urN libpwc-20060524/libpwc.c libpwc/libpwc.c
--- libpwc-20060524/libpwc.c    2006-05-24 21:22:06.000000000 +0200
+++ libpwc/libpwc.c    2007-09-15 19:50:31.000000000 +0200
@@ -238,10 +238,10 @@
   {
    case 645:
    case 646:
-    case 675:
    default:
      return -EINVAL;

+    case 675:
    case 680:
    case 690:
      pwc->codec_version = V4L2_PIX_FMT_PWC2;


   Gert


_______________________________________________
pwc mailing list
[email protected]
http://lists.saillard.org/mailman/listinfo/pwc

Reply via email to