[Gambas-devel] unknown V4L2_PIX_FMT_???? formats
Gareth Bult
gareth at ...560...
Sat Jan 24 20:51:09 CET 2009
Hi,
I'm using the standard header files from Ubuntu 8.10.
None of these lines are "required", they're essentially there so people can report devices / required conversion routines that 'exist' but are not supported .. so a quick fix is to comment out all of these lines.
I was unaware these things may not exist in different versions of V4L2, I will see if I can insert some ifdef's to trap these errors out .. in the meantime, my videodev2.h is attached ..
Gareth.
----- Original Message -----
From: "Ron_1st" <ronstk at ...124...>
To: "gambas developers" <gambas-devel at lists.sourceforge.net>
Sent: Saturday, 24 January, 2009 5:40:16 PM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: [Gambas-devel] unknown V4L2_PIX_FMT_???? formats
Distro Kubuntu 8.04
ron at ...170...:/usr/include/linux$ uname -a
Linux terminator 2.6.24-23-generic #1 SMP Thu Nov 27 18:44:42 UTC 2008 i686 GNU/Linux
make:
---8<---
gv4l2.c: In function 'gv4l2_process_image':
gv4l2.c:588: error: 'V4L2_PIX_FMT_Y16' undeclared (first use in this function)
gv4l2.c:588: error: (Each undeclared identifier is reported only once
gv4l2.c:588: error: for each function it appears in.)
gv4l2.c:616: error: 'V4L2_PIX_FMT_SGBRG8' undeclared (first use in this function) 'I have #define V4L2_PIX_FMT_SBGGR8
gv4l2.c:617: error: 'V4L2_PIX_FMT_SBGGR16' undeclared (first use in this function) ' n/a
gv4l2.c:627: error: 'V4L2_PIX_FMT_SPCA501' undeclared (first use in this function) ' n/a
gv4l2.c:628: error: 'V4L2_PIX_FMT_SPCA505' undeclared (first use in this function) ' n/a
gv4l2.c:629: error: 'V4L2_PIX_FMT_SPCA508' undeclared (first use in this function) ' n/a
gv4l2.c:630: error: 'V4L2_PIX_FMT_SPCA561' undeclared (first use in this function) ' n/a
gv4l2.c:631: error: 'V4L2_PIX_FMT_PAC207' undeclared (first use in this function) ' n/a
gv4l2.c:632: error: 'V4L2_PIX_FMT_PJPG' undeclared (first use in this function) ' n/a
gv4l2.c:633: error: 'V4L2_PIX_FMT_YVYU' undeclared (first use in this function) #define V4L2_PIX_FMT_YUYV v4l2_fourcc('Y','U','Y','V') /* 16 YUV 4:2:2 */
make[4]: *** [gv4l2.lo] Error 1
---8<---
in /usr/lib/
video_decoder.h
video_encoder.h
videodev.h
videodev2.h
videotext.h
available in videodev2.h
# cat videodev2.h | grep _PIX_ |sort
#define V4L2_PIX_FMT_BGR24 v4l2_fourcc('B','G','R','3') /* 24 BGR-8-8-8 */
#define V4L2_PIX_FMT_BGR32 v4l2_fourcc('B','G','R','4') /* 32 BGR-8-8-8-8 */
#define V4L2_PIX_FMT_DV v4l2_fourcc('d','v','s','d') /* 1394 */
#define V4L2_PIX_FMT_ET61X251 v4l2_fourcc('E','6','2','5') /* ET61X251 compression */
#define V4L2_PIX_FMT_GREY v4l2_fourcc('G','R','E','Y') /* 8 Greyscale */
#define V4L2_PIX_FMT_HI240 v4l2_fourcc('H','I','2','4') /* 8 8-bit color */
#define V4L2_PIX_FMT_HM12 v4l2_fourcc('H','M','1','2') /* 8 YUV 4:2:0 16x16 macroblocks */
#define V4L2_PIX_FMT_JPEG v4l2_fourcc('J','P','E','G') /* JFIF JPEG */
#define V4L2_PIX_FMT_MJPEG v4l2_fourcc('M','J','P','G') /* Motion-JPEG */
#define V4L2_PIX_FMT_MPEG v4l2_fourcc('M','P','E','G') /* MPEG-1/2/4 */
#define V4L2_PIX_FMT_NV12 v4l2_fourcc('N','V','1','2') /* 12 Y/CbCr 4:2:0 */
#define V4L2_PIX_FMT_NV21 v4l2_fourcc('N','V','2','1') /* 12 Y/CrCb 4:2:0 */
#define V4L2_PIX_FMT_PAL8 v4l2_fourcc('P','A','L','8') /* 8 8-bit palette */
#define V4L2_PIX_FMT_PWC1 v4l2_fourcc('P','W','C','1') /* pwc older webcam */
#define V4L2_PIX_FMT_PWC2 v4l2_fourcc('P','W','C','2') /* pwc newer webcam */
#define V4L2_PIX_FMT_RGB24 v4l2_fourcc('R','G','B','3') /* 24 RGB-8-8-8 */
#define V4L2_PIX_FMT_RGB32 v4l2_fourcc('R','G','B','4') /* 32 RGB-8-8-8-8 */
#define V4L2_PIX_FMT_RGB332 v4l2_fourcc('R','G','B','1') /* 8 RGB-3-3-2 */
#define V4L2_PIX_FMT_RGB444 v4l2_fourcc('R','4','4','4') /* 16 xxxxrrrr ggggbbbb */
#define V4L2_PIX_FMT_RGB555 v4l2_fourcc('R','G','B','O') /* 16 RGB-5-5-5 */
#define V4L2_PIX_FMT_RGB555X v4l2_fourcc('R','G','B','Q') /* 16 RGB-5-5-5 BE */
#define V4L2_PIX_FMT_RGB565 v4l2_fourcc('R','G','B','P') /* 16 RGB-5-6-5 */
#define V4L2_PIX_FMT_RGB565X v4l2_fourcc('R','G','B','R') /* 16 RGB-5-6-5 BE */
#define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc('B','A','8','1') /* 8 BGBG.. GRGR.. */
#define V4L2_PIX_FMT_SN9C10X v4l2_fourcc('S','9','1','0') /* SN9C10x compression */
#define V4L2_PIX_FMT_UYVY v4l2_fourcc('U','Y','V','Y') /* 16 YUV 4:2:2 */
#define V4L2_PIX_FMT_WNVA v4l2_fourcc('W','N','V','A') /* Winnov hw compress */
#define V4L2_PIX_FMT_Y41P v4l2_fourcc('Y','4','1','P') /* 12 YUV 4:1:1 */
#define V4L2_PIX_FMT_YUV32 v4l2_fourcc('Y','U','V','4') /* 32 YUV-8-8-8-8 */
#define V4L2_PIX_FMT_YUV410 v4l2_fourcc('Y','U','V','9') /* 9 YUV 4:1:0 */
#define V4L2_PIX_FMT_YUV411P v4l2_fourcc('4','1','1','P') /* 16 YVU411 planar */
#define V4L2_PIX_FMT_YUV420 v4l2_fourcc('Y','U','1','2') /* 12 YUV 4:2:0 */
#define V4L2_PIX_FMT_YUV422P v4l2_fourcc('4','2','2','P') /* 16 YVU422 planar */
#define V4L2_PIX_FMT_YUV444 v4l2_fourcc('Y','4','4','4') /* 16 xxxxyyyy uuuuvvvv */
#define V4L2_PIX_FMT_YUV555 v4l2_fourcc('Y','U','V','O') /* 16 YUV-5-5-5 */
#define V4L2_PIX_FMT_YUV565 v4l2_fourcc('Y','U','V','P') /* 16 YUV-5-6-5 */
#define V4L2_PIX_FMT_YUYV v4l2_fourcc('Y','U','Y','V') /* 16 YUV 4:2:2 */
#define V4L2_PIX_FMT_YVU410 v4l2_fourcc('Y','V','U','9') /* 9 YVU 4:1:0 */
#define V4L2_PIX_FMT_YVU420 v4l2_fourcc('Y','V','1','2') /* 12 YVU 4:2:0 */
#define V4L2_PIX_FMT_YYUV v4l2_fourcc('Y','Y','U','V') /* 16 YUV 4:2:2 */
Gareth, can you tell me what version of de video-dev files you are using and/or
sent yours for testing.
Attached my videodev files.
Best regards,
Ron_1st
--
A: Delete the text you reply on.
Q: What to do to get my post on top?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Gambas-devel mailing list
Gambas-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel
--
Managing Director, Encryptec Limited
Tel: 0845 5082719, Mob: 0785 3305393
Email: gareth at ...560...
Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: videodev2.h
Type: text/x-chdr
Size: 51943 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20090124/c464c11d/attachment.h>
More information about the Devel
mailing list