{
  "commit": "3effc4a043e0fca93f5882c62eba9a2344b02d56",
  "count": 1,
  "generated_at": "2026-11-24T10:38:35Z",
  "items": [
    {
      "id": "video_processor",
      "profile": {
        "author": "Jared McNeill",
        "core_classification": "pure_libretro",
        "core_version": "0.0.2",
        "cores": [
          "video_processor"
        ],
        "display_name": "Video Processor (V4L2)",
        "emulator": "V4L2",
        "files": [],
        "notes": "Capture core for V4L2 devices: a console plugged into a capture card is\nshown through the frontend so its scalers and shaders apply to the signal.\nThe core opens the capture device, requests RGB24 and two mmap buffers,\nand converts each dequeued frame to RGB565 for the video callback. Audio\ncomes from an ALSA capture PCM opened at 48 kHz, S16_LE, two channels, and\nis read from the frontend audio callback. There is no emulation, no state\nto serialize and no memory map.\nref: video_processor_v4l2.c:299-419, video_processor_v4l2.c:492-529,\n     video_processor_v4l2.c:531-544, video_processor_v4l2.c:554-698\n\nBoth devices are picked from core options built in retro_set_environment.\nThe video list comes from a udev enumeration of the video4linux subsystem\nfiltered on the /dev/video prefix, or from a fixed /dev/video0 to\n/dev/video3 list when libudev is not compiled in. The audio list comes from\nthe ALSA PCM hints whose IOID is Input and whose name starts with hw: or\ndefault:. These are device nodes and PCM names, not files: nothing is read\nfrom the system directory, no path is built and no file is opened. The\ncontent handed to retro_load_game is not looked at either: valid_extensions\nis NULL, need_fullpath is false and the core never declares no-content\nsupport, so the frontend still asks for a file whose bytes are ignored.\nref: video_processor_v4l2.c:140-205, video_processor_v4l2.c:208-242,\n     video_processor_v4l2.c:244-268, video_processor_v4l2.c:448-455\n\nThe frame rate is the frameperiod of the active V4L2 standard and the\npixel aspect comes from VIDIOC_CROPCAP. retro_get_region reports NTSC when\nthe standard carries the NTSC bit and PAL otherwise. A device that does not\nenumerate its active standard makes retro_load_game fail.\nref: video_processor_v4l2.c:457-480, video_processor_v4l2.c:593-617,\n     video_processor_v4l2.c:728-731\n\nLinux only, through linux/videodev2.h. libv4l2, ALSA and libudev are each\nautodetected by the Makefile and dropped when their header is missing;\nwithout libv4l2 the raw ioctl path is used and the format conversion the\nlibrary provides is lost. The GitLab CI installs the three development\npackages, and the buildbot binary for linux x86_64 links libv4l2.so.0,\nlibasound.so.2 and libudev.so.1. RetroArch also compiles a diverged copy of\nthis core into its own binary under cores/libretro-video-processor when\nHAVE_VIDEOPROCESSOR is set. That copy declares no-content support and adds\ncapture and output mode options, and opens the same device nodes only.\nref: video_processor_v4l2.c:45-57, Makefile:107-124\n\nWritten by Jared McNeill in July 2016 as libretro-v4l2. The libretro fork\ncarries the author's last commits, the audio batch callback and the ALSA\noverrun recovery, then the 2026 CI and dependency autodetection change. The\noriginal repository stopped at the RGB24 conversion commit.\n",
        "profiled_date": "2026-09-17",
        "role": "utility",
        "source": "https://github.com/libretro/libretro-video-processor",
        "source_commit": "8fe4751f0039a1b645bf750531fcfc234958a7ac",
        "source_mirror": "https://git.libretro.com/libretro/libretro-video-processor",
        "source_ref": "video_processor_v4l2.c:27-28, .gitlab-ci.yml:19",
        "systems": [],
        "type": "libretro",
        "upstream": "https://github.com/jaredmcneill/libretro-v4l2",
        "upstream_commit": "c608ced893583e0a8a8153890f99453fd1647d53",
        "version_basis": {
          "kind": "file",
          "path": "video_processor_v4l2.c",
          "pattern": "#define LIBRARY_VERSION\\s+\"([^\"]+)\""
        }
      }
    }
  ],
  "kind": "emulators",
  "schema_version": 1
}
