Project

General

Profile

Actions

Bug #14253

open

Please define V4L2_PIX_FMT_RGB444 in videolinux2

Added by David Stes 14 days ago. Updated 14 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The illumos videolinux2.h header file

/usr/include/sys/videodev2.h

is not defining the macro V4L2_PIX_FMT_RGB444.

The CameraPlugin of the Squeak Smalltalk-80 is using that macro.

Would it please be possible to add the definition from

https://git.linuxtv.org/media_tree.git/tree/include/uapi/linux/videodev2.h

In the linuxtv.org sources for Linux it can be seen that this macro is defined there as:

#define V4L2_PIX_FMT_RGB444 v4l2_fourcc('R', '4', '4', '4') /* 16 xxxxrrrr ggggbbbb */

More generally speaking the videolinux2.h header file in Illumos seems to be from 2008,
while the one from linuxtv.org is from 2012.

Actions #1

Updated by David Stes 14 days ago

The Linux kernel source seems to use this macro as well in drivers/media/v4l2-core/v4l2-ioctl.c

v4l2-ioctl.c: case V4L2_PIX_FMT_RGB444: descr = "16-bit A/XRGB 4-4-4-4"; break;

Anyway it is absent from the illumos header file, and the Squeak Smalltalk-80 plugin for Webcam (camera) uses this macro.

Except for this macro, the Squeak CameraPlugin compiles fine on Illumos/OpenIndiana.

Actions

Also available in: Atom PDF