Skip to content

libobs: Characterize and extract FFmpeg image decoder initialization #4430

Closed

Description

@zackees

Prerequisite to the Phase 5 obs-graphics Rust port. Extract ffmpeg_image_get_buffer, ffmpeg_image_open_decoder_context, ffmpeg_image_init and ffmpeg_image_free verbatim from libobs/graphics/graphics-ffmpeg.c.h into graphics-ffmpeg-init.c.h. Preserve the Rust size predicate dependency and FFmpeg resource lifecycle. Add a new C characterization through public gs_image_file and gs_create_texture_file_data paths for empty, missing, valid PNG and corrupt inputs; run against hybrid and C-reference libraries before and after extraction. No public headers, existing C tests, test graph or native.rs changes. Branch-only delivery; no PR while Actions runners are saturated.

Activity

  1. added
    ready
    P2
    size:S
    on Nov 9, 2026
  2. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Claiming: characterization and behavior-neutral extraction (pool im-g5-12-ffimginit). Branch: test/ffmpeg-image-init-extract. 1. Add public image-loading C cases and run hybrid/C-reference before extraction. 2. Extract the four initialization/allocation/cleanup bodies verbatim into graphics-ffmpeg-init.c.h, sorted in the media unity group, and rerun both libraries. 3. Run full lint once and push branch-only today; no PR until the queue drains.

  3. moved this from In progress to Ready in obs-rust Multiviewon Nov 11, 2026
  4. rdoupe commented on Nov 16, 2026

    @rdoupe
    Collaborator

    This landed with #4493 (merged 2026-11-10): its first two commits are this issue's characterization (test/cmocka/test_ffmpeg_image_init.c) and the verbatim extraction into libobs/graphics/graphics-ffmpeg-init.c.h, and the Rust swap that followed (#4433) is closed too. Nothing left here, so I'm closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2readysize:S

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions