codec-patch-stream: native video decode and patch selection
codec-patch-stream is an MVP Lab project for high-throughput video ingestion
and patch extraction.
The library exposes two native APIs:
decode_only(DecodeConfig)for uniform sampled decode outputpatch_stream(PatchStreamConfig)for decode plus energy-based patch selection
Its recent API design separates video decode from patch processing more explicitly:
decode_backend,decode_device_idprocess_backend,process_device_id
That split makes mixed CPU and GPU execution easier to control in real pipelines, especially when decode and downstream patch processing have different hardware requirements.
The project supports four runtime combinations in GPU builds:
cpu -> cpucpu -> gpugpu -> cpugpu -> gpu
In practice, codec-patch-stream is useful for model pipelines that need fast
video frame access, patch-level selection, and clear control over where decode
and patch computation happen.