forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: platform: vxd: Kconfig: Add Video decoder Kconfig and Makefile
Add video decoder basic config to Kconfig and select the required V4l2 modules. Add video decoder Makefile. Signed-off-by: Angela Stegmaier <angelabaker@ti.com> Signed-off-by: Sidraya <sidraya.bj@pathpartnertech.com>
- Loading branch information
1 parent
988eec1
commit f42ae4f
Showing
3 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
config VIDEO_IMG_VXD_DEC | ||
tristate "IMG VXD DEC (Video Decoder) driver" | ||
depends on VIDEO_DEV && VIDEO_V4L2 | ||
select VIDEOBUF2_CORE | ||
select VIDEOBUF2_DMA_CONTIG | ||
select VIDEOBUF2_DMA_SG | ||
select V4L2_MEM2MEM_DEV | ||
help | ||
This is an IMG VXD DEC V4L2 driver that adds support for the | ||
Imagination D5520 (Video Decoder) hardware. | ||
The module name when built is vxd-dec. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
# Optional Video feature configuration control | ||
|
||
# (1) | ||
# This config allows enabling or disabling of HEVC/H265 video | ||
# decoding functionality with IMG VXD Video decoder. If you | ||
# do not want HEVC decode capability, select N. | ||
# If unsure, select Y | ||
HAS_HEVC ?=y | ||
|
||
# (2) | ||
# This config enables error concealment with gray pattern. | ||
# Disable if you do not want error concealment capability. | ||
# If unsure, say Y | ||
ERROR_CONCEALMENT ?=y | ||
|
||
# (3) | ||
# This config, if enabled, configures H264 video decoder to | ||
# output frames in the decode order with no buffering and | ||
# picture reordering inside codec. | ||
# If unsure, say N | ||
REDUCED_DPB_NO_PIC_REORDERING ?=n | ||
|
||
# (4) | ||
# This config, if enabled, enables all the debug traces in | ||
# decoder driver. Enable it only for debug purpose | ||
# Keep it always disabled for release codebase | ||
DEBUG_DECODER_DRIVER ?=n | ||
|
||
# (5) | ||
# This config allows enabling or disabling of MJPEG video | ||
# decoding functionality with IMG VXD Video decoder. If you | ||
# do not want MJPEG decode capability, select N. | ||
# If unsure, select Y | ||
HAS_JPEG ?=y | ||
|
||
# (6) | ||
# This config allows simulation of Error recovery. | ||
# This config is only for testing, never enable it for release build. | ||
ERROR_RECOVERY_SIMULATION ?=n | ||
|
||
# (7) | ||
# This config enables allocation of capture buffers from | ||
# dma contiguous memory. | ||
# If unsure, say Y | ||
CAPTURE_CONTIG_ALLOC ?=y | ||
|
||
#VXD | ||
vxd-dec-y += vxd_core.o | ||
|
||
#PVDEC | ||
vxd-dec-y += vxd_pvdec.o | ||
|
||
#MEM_MGR | ||
vxd-dec-y += ../common/img_mem_man.o ../common/img_mem_unified.o | ||
vxd-dec-y += ../common/imgmmu.o | ||
|
||
#Utilities | ||
vxd-dec-y += ../common/lst.o ../common/dq.o | ||
vxd-dec-y += ../common/resource.o | ||
vxd-dec-y += dec_resources.o | ||
vxd-dec-y += ../common/rman_api.o | ||
vxd-dec-y += pixel_api.o | ||
vxd-dec-y += vdecdd_utils_buf.o | ||
vxd-dec-y += vdecdd_utils.o | ||
|
||
#MMU | ||
vxd-dec-y += ../common/talmmu_api.o | ||
vxd-dec-y += ../common/pool.o | ||
vxd-dec-y += ../common/hash.o | ||
vxd-dec-y += ../common/ra.o | ||
vxd-dec-y += ../common/addr_alloc.o | ||
vxd-dec-y += ../common/work_queue.o | ||
vxd-dec-y += vdec_mmu_wrapper.o | ||
|
||
#DECODER | ||
vxd-dec-y += ../common/pool_api.o ../common/idgen_api.o | ||
vxd-dec-y += hw_control.o | ||
vxd-dec-y += vxd_int.o | ||
vxd-dec-y += translation_api.o | ||
vxd-dec-y += decoder.o | ||
vxd-dec-y += core.o | ||
|
||
#BSPP | ||
vxd-dec-y += swsr.o | ||
vxd-dec-y += h264_secure_parser.o | ||
vxd-dec-y += bspp.o | ||
|
||
#UM INTERFACE & SYSDEV | ||
vxd-dec-y += vxd_dec.o | ||
|
||
vxd-dec-y += vxd_v4l2.o | ||
|
||
ifeq ($(DEBUG_DECODER_DRIVER), y) | ||
ccflags-y += -DDEBUG_DECODER_DRIVER | ||
ccflags-y += -DDEBUG | ||
endif | ||
|
||
ifeq ($(HAS_HEVC),y) | ||
ccflags-y += -DHAS_HEVC | ||
vxd-dec-y += hevc_secure_parser.o | ||
endif | ||
|
||
ifeq ($(HAS_JPEG),y) | ||
ccflags-y += -DHAS_JPEG | ||
vxd-dec-y += jpeg_secure_parser.o | ||
endif | ||
|
||
|
||
ifeq ($(ERROR_CONCEALMENT),y) | ||
ccflags-y += -DERROR_CONCEALMENT | ||
endif | ||
|
||
ifeq ($(REDUCED_DPB_NO_PIC_REORDERING),y) | ||
ccflags-y += -DREDUCED_DPB_NO_PIC_REORDERING | ||
endif | ||
|
||
ifeq ($(ERROR_RECOVERY_SIMULATION),y) | ||
ccflags-y += -DERROR_RECOVERY_SIMULATION | ||
endif | ||
|
||
ifeq ($(CAPTURE_CONTIG_ALLOC),y) | ||
ccflags-y += -DCAPTURE_CONTIG_ALLOC | ||
endif | ||
|
||
obj-$(CONFIG_VIDEO_IMG_VXD_DEC) += vxd-dec.o | ||
|
||
ccflags-y += -I$(srctree)/drivers/staging/media/vxd/common |