Skip to contentSkip to conversation

v4l-test 0.17 for LTP

PATCH In review Németh Márton 2 participants 2 messages Jul 25, 2009 – Jul 30, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v4l-test 0.17 for LTP

Hi,

this is v4l-test 0.17 for LTP.

Changes:
Test cases added for VIDIOC_ENUM_FRAMESIZES and VIDIOC_G_JPEGCOMP. New V4L2_PIX_FMT_* formats also used in test cases.

Regards,

Márton Németh

testcases/kernel/device-drivers/v4l/user_space/doc/index.html +3 -3
diff -uprN ltp.orig/testcases/kernel/device-drivers/v4l/user_space/doc/index.html ltp/testcases/kernel/device-drivers/v4l/user_space/doc/index.html
@@ -160,7 +160,7 @@ implemented test cases.</p>
     </tr>
     <tr>
       <td>ioctl <a href="spec/r8494.htm">VIDIOC_ENUM_FRAMESIZES</a></td>
-      <td>no</td>
+      <td>yes, only when STREAM_OFF</td>
       <td><a href="spec/x16453.htm">Exp.</a> Enum.</td>
     </tr>
     <tr>
@@ -295,7 +295,7 @@ implemented test cases.</p>
     </tr>
     <tr>
       <td>ioctl <a href="spec/r11285.htm">VIDIOC_G_JPEGCOMP</a></td>
-      <td>no</td>
+      <td>yes, only when STREAM_OFF</td>
       <td>Opt.</td>
     </tr>
     <tr>
@@ -603,7 +603,7 @@ And what else can we read if we are look
 You can find the email address in the source package in the README file.</p>
 <hr style="width: 100%; height: 2px;">
 <p>Last changed:
-Wed Jun  3 08:35:10 CEST 2009
+Thu Jul 23 06:47:49 CEST 2009
 </p>
 <p>
   <a href="http://validator.w3.org/check?uri=referer"><img
testcases/kernel/device-drivers/v4l/user_space/doc/results.html +12 -1
diff -uprN ltp.orig/testcases/kernel/device-drivers/v4l/user_space/doc/results.html ltp/testcases/kernel/device-drivers/v4l/user_space/doc/results.html
@@ -72,6 +72,17 @@ project or during developing it.
 	</a>
 	</li>
 
+	<li>
+	<a href="http://marc.info/?l=linux-kernel&amp;m=124694769813949&amp;w=2">
+	[PATCH 1/2] v4l2: modify the webcam video standard handling
+	</a>
+	</li>
+
+	<li>
+	<a href="http://marc.info/?l=linux-kernel&amp;m=124694772913969&amp;w=2">
+	[PATCH 2/2] v4l2: remove unnecessary vidioc_s_std() from gspca
+	</a>
+	</li>
 </ul>
 
 <p>In the out-of-tree <a href="http://mcentral.de/hg/~mrec/em28xx-new">em28xx-new driver</a>
@@ -100,7 +111,7 @@ the following problems were identified w
 
 <hr style="width: 100%; height: 2px;">
 <p>Last changed:
-Mon May 25 07:38:56 CEST 2009
+Wed Jul  8 08:38:00 CEST 2009
 </p>
 <p>
   <a href="http://validator.w3.org/check?uri=referer"><img
testcases/kernel/device-drivers/v4l/user_space/Makefile +4 -0
diff -uprN ltp.orig/testcases/kernel/device-drivers/v4l/user_space/Makefile ltp/testcases/kernel/device-drivers/v4l/user_space/Makefile
@@ -1,6 +1,8 @@
 #
 # v4l-test: Test environment for Video For Linux Two API
 #
+# 16 Jul 2009  0.19 test_VIDIOC_JPEGCOMP.c and
+#                   test_VIDIOC_ENUM_FRAMESIZES.c added
 #  5 Jul 2009  0.18 v4l2_foreach.c added
 # 19 May 2009  0.17 test_VIDIOC_EXT_CTRLS.c added
 #  7 May 2009  0.16 v4l2_show.c added
@@ -44,9 +46,11 @@ OBJS = dev_video.o \
        test_VIDIOC_ENUMAUDIO.o \
        test_VIDIOC_ENUMAUDOUT.o \
        test_VIDIOC_ENUM_FMT.o \
+       test_VIDIOC_JPEGCOMP.o \
        test_VIDIOC_ENUMINPUT.o \
        test_VIDIOC_ENUMOUTPUT.o \
        test_VIDIOC_ENUMSTD.o \
+       test_VIDIOC_ENUM_FRAMESIZES.o \
        test_VIDIOC_LOG_STATUS.o \
        test_VIDIOC_CROPCAP.o \
        test_VIDIOC_G_SLICED_VBI_CAP.o \
testcases/kernel/device-drivers/v4l/user_space/README +3 -0
diff -uprN ltp.orig/testcases/kernel/device-drivers/v4l/user_space/README ltp/testcases/kernel/device-drivers/v4l/user_space/README
@@ -3,6 +3,9 @@
 
 Release History
 ---------------
+23 Jul 2009  0.17 Test cases added for VIDIOC_ENUM_FRAMESIZES and
+                  VIDIOC_G_JPEGCOMP. New V4L2_PIX_FMT_* formats also
+                  used in test cases.
  6 Jul 2009  0.16 Iterate through all available inputs in VIDIOC_G_STD and
                   VIDIOC_S_STD test cases
 25 May 2009  0.15 Test cases added for VIDIOC_G_EXT_CTRLS, VIDIOC_S_EXT_CTRLS
testcases/kernel/device-drivers/v4l/user_space/test_VIDIOC_ENUM_FRAMESIZES.c +588 -0

588 lines not on this page · raw message

testcases/kernel/device-drivers/v4l/user_space/test_VIDIOC_ENUM_FRAMESIZES.h +13 -0
diff -uprN ltp.orig/testcases/kernel/device-drivers/v4l/user_space/test_VIDIOC_ENUM_FRAMESIZES.h ltp/testcases/kernel/device-drivers/v4l/user_space/test_VIDIOC_ENUM_FRAMESIZES.h
@@ -0,0 +1,13 @@
+/*
+ * v4l-test: Test environment for Video For Linux Two API
+ *
+ * 16 Jul 2009  0.1  First release
+ *
+ * Written by M�rton N�meth <[email protected]>
+ * Released under GPL
+ */
+
+void test_VIDIOC_ENUM_FRAMESIZES(void);
+void test_VIDIOC_ENUM_FRAMESIZES_invalid_index(void);
+void test_VIDIOC_ENUM_FRAMESIZES_invalid_pixel_format(void);
+void test_VIDIOC_ENUM_FRAMESIZES_NULL(void);
testcases/kernel/device-drivers/v4l/user_space/test_VIDIOC_FMT.c +76 -0

88 lines not on this page · raw message

testcases/kernel/device-drivers/v4l/user_space/test_VIDIOC_JPEGCOMP.c +122 -0

122 lines not on this page · raw message

testcases/kernel/device-drivers/v4l/user_space/test_VIDIOC_JPEGCOMP.h +11 -0
diff -uprN ltp.orig/testcases/kernel/device-drivers/v4l/user_space/test_VIDIOC_JPEGCOMP.h ltp/testcases/kernel/device-drivers/v4l/user_space/test_VIDIOC_JPEGCOMP.h
@@ -0,0 +1,11 @@
+/*
+ * v4l-test: Test environment for Video For Linux Two API
+ *
+ * 16 Jul 2009  0.1  First release
+ *
+ * Written by M�rton N�meth <[email protected]>
+ * Released under GPL
+ */
+
+void test_VIDIOC_G_JPEGCOMP(void);
+void test_VIDIOC_G_JPEGCOMP_NULL(void);
testcases/kernel/device-drivers/v4l/user_space/v4l2_show.c +43 -0

52 lines not on this page · raw message

testcases/kernel/device-drivers/v4l/user_space/v4l2_show.h +2 -0
diff -uprN ltp.orig/testcases/kernel/device-drivers/v4l/user_space/v4l2_show.h ltp/testcases/kernel/device-drivers/v4l/user_space/v4l2_show.h
@@ -1,6 +1,7 @@
 /*
  * v4l-test: Test environment for Video For Linux Two API
  *
+ * 17 Jul 2009  0.3  show_v4l2_frmsizeenum() added
  *  5 Jul 2009  0.2  show_v4l2_input() introduced
  *  7 May 2009  0.1  First release
  *
@@ -13,3 +14,4 @@
 void show_v4l2_requestbuffers(struct v4l2_requestbuffers *reqbuf);
 void show_v4l2_buffer(struct v4l2_buffer *buf);
 void show_v4l2_input(struct v4l2_input *input);
+void show_v4l2_frmsizeenum(struct v4l2_frmsizeenum* framesize);
testcases/kernel/device-drivers/v4l/user_space/v4l2_test.c +11 -2
diff -uprN ltp.orig/testcases/kernel/device-drivers/v4l/user_space/v4l2_test.c ltp/testcases/kernel/device-drivers/v4l/user_space/v4l2_test.c
@@ -1,6 +1,7 @@
 /*
  * v4l-test: Test environment for Video For Linux Two API
  *
+ * 16 Jul 2009  0.24 Test cases added for VIDIOC_G_JPEGCOMP and VIDIOC_ENUM_FRAMESIZES
  * 23 May 2009  0.23 Test cases added for VIDIOC_G_EXT_CTRLS, VIDIOC_S_EXT_CTRLS
  *  5 May 2009  0.22 Test cases added for VIDIOC_QUERYBUF
  * 29 Apr 2009  0.21 Test cases added for VIDIOC_REQBUFS
@@ -69,6 +70,7 @@
 #include "test_VIDIOC_ENUM_FMT.h"
 #include "test_VIDIOC_ENUMINPUT.h"
 #include "test_VIDIOC_ENUMOUTPUT.h"
+#include "test_VIDIOC_ENUM_FRAMESIZES.h"
 
 #include "test_VIDIOC_STD.h"
 #include "test_VIDIOC_INPUT.h"
@@ -84,6 +86,7 @@
 #include "test_VIDIOC_EXT_CTRLS.h"
 #include "test_VIDIOC_PARM.h"
 #include "test_VIDIOC_FMT.h"
+#include "test_VIDIOC_JPEGCOMP.h"
 
 #include "test_VIDIOC_REQBUFS.h"
 #include "test_VIDIOC_QUERYBUF.h"
@@ -150,6 +153,10 @@ static CU_TestInfo suite_enums[] = {
   { "VIDIOC_QUERYMENU with private controls", test_VIDIOC_QUERYMENU_private },
   { "VIDIOC_QUERYMENU, last private control+1", test_VIDIOC_QUERYMENU_private_last_1 },
 
+  { "VIDIOC_ENUM_FRAMESIZES", test_VIDIOC_ENUM_FRAMESIZES },
+  { "VIDIOC_ENUM_FRAMESIZES with invalid index", test_VIDIOC_ENUM_FRAMESIZES_invalid_index },
+  { "VIDIOC_ENUM_FRAMESIZES with invalid pixel_format", test_VIDIOC_ENUM_FRAMESIZES_invalid_pixel_format },
+
   CU_TEST_INFO_NULL,
 };
 
@@ -245,6 +252,8 @@ static CU_TestInfo suite_get_set_try[] =
   { "VIDIOC_S_FMT with enumerated values", test_VIDIOC_S_FMT_enum },
   { "VIDIOC_S_FMT with invalid type parameter", test_VIDIOC_S_FMT_type },
 
+  { "VIDIOC_G_JPEGCOMP", test_VIDIOC_G_JPEGCOMP },
+
   CU_TEST_INFO_NULL,
 };
 
@@ -286,7 +295,7 @@ static CU_TestInfo suite_null_readonly[]
   { "VIDIOC_G_INPUT with NULL parameter", test_VIDIOC_G_INPUT_NULL },
   { "VIDIOC_G_OUTPUT with NULL parameter", test_VIDIOC_G_OUTPUT_NULL },
   { "VIDIOC_G_AUDOUT with NULL parameter", test_VIDIOC_G_AUDOUT_NULL },
-  /* { "VIDIOC_G_JPEGCOMP with NULL parameter", }, */
+  { "VIDIOC_G_JPEGCOMP with NULL parameter", test_VIDIOC_G_JPEGCOMP_NULL },
   { "VIDIOC_QUERYSTD with NULL parameter", test_VIDIOC_QUERYSTD_NULL },
   { "VIDIOC_G_PRIORITY with NULL parameter", test_VIDIOC_G_PRIORITY_NULL },
   /* { "VIDIOC_G_ENC_INDEX with NULL parameter", }, */
@@ -345,7 +354,7 @@ static CU_TestInfo suite_null_writeread[
   { "VIDIOC_G_EXT_CTRLS with NULL parameter", test_VIDIOC_G_EXT_CTRLS_NULL },
   { "VIDIOC_S_EXT_CTRLS with NULL parameter", test_VIDIOC_S_EXT_CTRLS_NULL },
   { "VIDIOC_TRY_EXT_CTRLS with NULL parameter", test_VIDIOC_TRY_EXT_CTRLS_NULL },
-  /* { "VIDIOC_ENUM_FRAMESIZES with NULL parameter", }, */
+  { "VIDIOC_ENUM_FRAMESIZES with NULL parameter", test_VIDIOC_ENUM_FRAMESIZES_NULL },
   /* { "VIDIOC_ENUM_FRAMEINTERVALS with NULL parameter", }, */
   /* { "VIDIOC_ENCODER_CMD with NULL parameter", }, */
   /* { "VIDIOC_TRY_ENCODER_CMD with NULL parameter", }, */

------------------------------------------------------------------------------

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw
Quoted 9 lines · Németh Márton

Hi,

this is v4l-test 0.17 for LTP.

Changes:
Test cases added for VIDIOC_ENUM_FRAMESIZES and VIDIOC_G_JPEGCOMP. New V4L2_PIX_FMT_* formats also used in test cases.

Thanks.

Regards--
Subrata

Quoted 4 lines

Regards,

Márton Németh

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list