Skip to content

rust: Port the deinterlace frame selection in obs-source-deinterlace.c to obs-source #2315

Closed

Description

@rdoupe

Rust port, round 8 unit 1: the deinterlace frame selection in libobs/obs-source-deinterlace.c.h, moved to obs-source::deinterlace_select.

Scope

Rust takes over these decisions:

  • ready_deinterlace_frames: the unbuffered path, plus the buffered walk with its drops, tolerance stop and re-anchor;
  • first_frame;
  • the take in deinterlace_get_closest_frames;
  • the deinterlace_update_async_video choice: upload, swap or nothing.

C keeps async_mutex, the frame erasure and cache release, the prev_frame writes, and every texture call. The walk becomes "snapshot, decide, apply", with each drop erased then released in the original order.

Plan

The standard six commits:

  1. move to obs-source-deinterlace-select.c.h;
  2. characterization test;
  3. Tier 1 RED;
  4. GREEN in libobs.ported-source-deinterlace-select;
  5. Tier 3 parity;
  6. docs.

Existing real-libobs coverage: test_deinterlace_2x_field_order, test_deinterlace_mode_load, test_media_restart_stale_frame and test_media_restart_first_frame.

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions