# SPDX-License-Identifier: GPL-2.0-only

config VIDEO_MESON_VENC
	tristate "Amlogic Meson H.264 encoder scaffold"
	depends on VIDEO_DEV
	depends on ARM || VIDEO_MESON_VDEC || COMPILE_TEST
	depends on ARCH_MESON || COMPILE_TEST
	select MESON_CANVAS
	select V4L2_MEM2MEM_DEV
	select VIDEOBUF2_DMA_CONTIG
	help
	  Build the V4L2 memory-to-memory encoder framework for the HCODEC
	  block found in Amlogic Meson8b, GXL and GXM SoCs. Meson8b uses a
	  standalone DT node; GXL/GXM share the DOS owner with meson-vdec.

	  The implementation provides NV12/YUYV to H.264 encoding through the
	  standard V4L2 memory-to-memory API.
