V4L and V4L2_CID_COLOR_KILLER

This forum is about all development around libVLC.
e-San
Blank Cone
Blank Cone
Posts: 15
Joined: 11 Dec 2013 10:23

V4L and V4L2_CID_COLOR_KILLER

Postby e-San » 12 Dec 2013 23:20

Hi!

I've found some useful info at linuxtv.org.
I need to setup my camera to bnw (grayscale) and here is the option:
V4L2_CID_COLOR_KILLER boolean Enable the color killer (i. e. force a black & white image in case of a weak video signal).
V4L2_CID_COLORFX enum Selects a color effect. The following values are defined:

V4L2_COLORFX_NONE Color effect is disabled.
V4L2_COLORFX_ANTIQUE An aging (old photo) effect.
V4L2_COLORFX_ART_FREEZE Frost color effect.
V4L2_COLORFX_AQUA Water color, cool tone.
V4L2_COLORFX_BW Black and white.
V4L2_COLORFX_EMBOSS Emboss, the highlights and shadows replace light/dark boundaries and low contrast areas are set to a gray background.
V4L2_COLORFX_GRASS_GREEN Grass green.
V4L2_COLORFX_NEGATIVE Negative.
V4L2_COLORFX_SEPIA Sepia tone.
V4L2_COLORFX_SKETCH Sketch.
V4L2_COLORFX_SKIN_WHITEN Skin whiten.
V4L2_COLORFX_SKY_BLUE Sky blue.
V4L2_COLORFX_SOLARIZATION Solarization, the image is partially reversed in tone, only color values above or below a certain threshold are inverted.
V4L2_COLORFX_SILHOUETTE Silhouette (outline).
V4L2_COLORFX_VIVID Vivid colors.
V4L2_COLORFX_SET_CBCR The Cb and Cr chroma components are replaced by fixed coefficients determined by V4L2_CID_COLORFX_CBCR control.
but i can not find this options at documentation

Will it ever be implemented?

Best regards!

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: V4L and V4L2_CID_COLOR_KILLER

Postby Rémi Denis-Courmont » 15 Dec 2013 02:45

There is --v4l2-color-killer in recent VLC versions, as shown on the command line help (vlc --advanced -p v4l2). Feel free to update the wiki.

Note that V4L2 controls only work if the driver supports them; not all drivers support all options.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

e-San
Blank Cone
Blank Cone
Posts: 15
Joined: 11 Dec 2013 10:23

Re: V4L and V4L2_CID_COLOR_KILLER

Postby e-San » 18 Dec 2013 23:38

Ok, thanks for answer!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests