Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e07d46e7 authored by Helen Mae Koike Fornazier's avatar Helen Mae Koike Fornazier Committed by Mauro Carvalho Chehab
Browse files

[media] tpg: Export the tpg code from vivid as a module



The test pattern generator will be used by other drivers as the virtual
media controller (vimc)

Signed-off-by: default avatarHelen Mae Koike Fornazier <helen.koike@collabora.co.uk>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent d1e5d8bd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -19,3 +19,4 @@ config CYPRESS_FIRMWARE
source "drivers/media/common/b2c2/Kconfig"
source "drivers/media/common/saa7146/Kconfig"
source "drivers/media/common/siano/Kconfig"
source "drivers/media/common/v4l2-tpg/Kconfig"
+1 −1
Original line number Diff line number Diff line
obj-y += b2c2/ saa7146/ siano/
obj-y += b2c2/ saa7146/ siano/ v4l2-tpg/
obj-$(CONFIG_VIDEO_CX2341X) += cx2341x.o
obj-$(CONFIG_VIDEO_TVEEPROM) += tveeprom.o
obj-$(CONFIG_CYPRESS_FIRMWARE) += cypress_firmware.o
+2 −0
Original line number Diff line number Diff line
config VIDEO_V4L2_TPG
	tristate
+3 −0
Original line number Diff line number Diff line
v4l2-tpg-objs := v4l2-tpg-core.o v4l2-tpg-colors.o

obj-$(CONFIG_VIDEO_V4L2_TPG) += v4l2-tpg.o
+3 −4
Original line number Diff line number Diff line
/*
 * vivid-color.c - A table that converts colors to various colorspaces
 * v4l2-tpg-colors.c - A table that converts colors to various colorspaces
 *
 * The test pattern generator uses the tpg_colors for its test patterns.
 * For testing colorspaces the first 8 colors of that table need to be
@@ -12,7 +12,7 @@
 * This source also contains the code used to generate the tpg_csc_colors
 * table. Run the following command to compile it:
 *
 *	gcc vivid-tpg-colors.c -DCOMPILE_APP -o gen-colors -lm
 *	gcc v4l2-tpg-colors.c -DCOMPILE_APP -o gen-colors -lm
 *
 * and run the utility.
 *
@@ -36,8 +36,7 @@
 */

#include <linux/videodev2.h>

#include "vivid-tpg-colors.h"
#include <media/v4l2-tpg-colors.h>

/* sRGB colors with range [0-255] */
const struct color tpg_colors[TPG_COLOR_MAX] = {
Loading