Skip to content

feat: add V4L2 camera support#1

Open
ravehun wants to merge 3 commits into
AXERA-TECH:mainfrom
ravehun:main
Open

feat: add V4L2 camera support#1
ravehun wants to merge 3 commits into
AXERA-TECH:mainfrom
ravehun:main

Conversation

@ravehun
Copy link
Copy Markdown

@ravehun ravehun commented Mar 31, 2026

描述:

变更内容

  • 新增 CameraPipeline 支持 V4L2 摄像头输入
  • 新增 ax_camera_pipeline.h/cpp (679 lines)
  • 新增 ax_v4l2_capture.h/cpp (739 lines)
  • 更新 CMakeLists.txt 包含 camera pipeline
  • 添加完整 API 文档 (docs/*.md, 650+ lines)

主要功能

  • USB 摄像头捕获 (MJPEG/YUYV 格式)
  • 支持分辨率/帧率配置
  • 零拷贝内存优化

ZHEQIUSHUI and others added 3 commits March 25, 2026 17:42
Keep AX_VIDEO_FRAME_T::u32PicStride as bytes-per-line for packed RGB/BGR; AX650 IVPS expects byte stride (fixes corrupted NV12->BGR preprocess).

Also avoid VPP CSC for packed RGB/BGR and stage geometry+format conversion: CropResize (same format) then CSC via TDP, reusing an intermediate CMM buffer to reduce allocs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants