Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions drivers/media/platform/apple/jpeg/Kconfig
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
# SPDX-License-Identifier: GPL-2.0-only

config VIDEO_APPLE_JPEG
tristate "Apple Silicon JPEG encoder"
tristate "Apple Silicon JPEG encoder and decoder"
depends on VIDEO_DEV
depends on ARCH_APPLE || (COMPILE_TEST && 64BIT)
depends on OF_ADDRESS && IOMMU_API && PM
select V4L2_JPEG_HELPER
select V4L2_MEM2MEM_DEV
select VIDEOBUF2_DMA_CONTIG
help
V4L2 memory-to-memory baseline JPEG encoder for the JPEG engine
in M1 Pro/Max/Ultra, M2 and later Apple SoCs and the A18 Pro.
It takes full-range NV12 (4:2:0) or NV16 (4:2:2) frames. The
V4L2 memory-to-memory baseline JPEG encoder (and, where verified,
decoder) for the JPEG engine in M1 Pro/Max/Ultra, M2 and later
Apple SoCs and the A18 Pro.
The encoder takes full-range NV12 (4:2:0) or NV16 (4:2:2). The
device compatible selects the register layout and address width;
unrecognized revisions are refused.
unrecognized revisions are refused. On M4 Pro/Max (and M4) and
A18 Pro engines a second video device decodes baseline JPEG to
NV12, NV16 or NV24.

To compile this driver as a module, choose M here: the module
will be called apple-jpeg.

config VIDEO_APPLE_JPEG_KUNIT_TEST
tristate "KUnit tests for the Apple JPEG encoder" if !KUNIT_ALL_TESTS
tristate "KUnit tests for the Apple JPEG encoder and decoder" if !KUNIT_ALL_TESTS
depends on KUNIT && VIDEO_APPLE_JPEG
default KUNIT_ALL_TESTS
help
Check engine identification, the quantisation tables and every
register write of 4:2:0 and 4:2:2 encode jobs. No hardware is
needed.
Check engine identification, the quantisation tables, every
register write of 4:2:0 and 4:2:2 encode jobs, the decoder's JPEG
header checks and its job programming. No hardware is needed.
Loading
Loading