hi_v4l2.ko: decoder + encoder V4L2 stateful sobre HI_DRV_VDEC_*/HI_DRV_VENC_*. Decoder (/dev/video0): 6 codecs pixel-validados (H264/MPEG2/VP8/VP9/HEVC/MPEG-4), de-tile SW default-on (untile_plane, algoritmo do OMX vdec), capture kthread + back-pressure, CAPTURE vb2-vmalloc cached. ~37fps@1080p / 75fps@720p, v4l2-compliance 45/47. Encoder (/dev/video1): H264 (limite do VEDU), modelo desacoplado (capture kthread hi-venc-cap + feed-ahead + back-pressure + FIFO de src em voo), controles BITRATE/GOP_SIZE/H264_PROFILE/H264_LEVEL. ~42-52fps@1080p / 91fps@720p, dirigivel por gst v4l2h264enc / ffmpeg h264_v4l2m2m. Integracao in-tree no padrao dvb-hisi: Makefile inclui base.mak + MOD_NAME + lista de objetos; o parent drivers/msp/drv/Makefile pega o dir via objects +=. hi_v4l2 e obj-m (modulo) por depender de v4l2-mem2mem/videobuf2 (=m). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
26 lines
683 B
C
26 lines
683 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Internal registration hooks for the single hi_v4l2 module, which exposes
|
|
* both the decoder (/dev/videoN) and the encoder (/dev/videoM) devices.
|
|
*/
|
|
#ifndef __HI_V4L2_DRV_H__
|
|
#define __HI_V4L2_DRV_H__
|
|
|
|
int hi_dec_register(void);
|
|
void hi_dec_unregister(void);
|
|
|
|
int hi_enc_register(void);
|
|
void hi_enc_unregister(void);
|
|
|
|
/* CMA-backed device of the decoder (vb2-dma-contig parent). */
|
|
struct device;
|
|
struct device *hi_dec_dma_dev(void);
|
|
|
|
#ifdef HI_V4L2_ZC_SELFTEST
|
|
/* Zero-copy Fase C (KI-003) isolated probe (debugfs-triggered). */
|
|
int hi_zc_test_register(void);
|
|
void hi_zc_test_unregister(void);
|
|
#endif
|
|
|
|
#endif /* __HI_V4L2_DRV_H__ */
|