BlueGit

ict rusty-teams

Files

rusty-teams / openspec / changes / call-media-hardening / specs / screen-share / spec.md

spec.md

spec.md 651 B Download Raw

ADDED Requirements

Requirement: Screen frames are reduced before I420 conversion

A shared screen or window frame SHALL be scaled with libyuv so its macroblock count is at most the 1080p send budget before it is converted to I420. A buffer shorter than the claimed stride and height MUST NOT be converted.

Scenario: A wide frame fits the send budget

  • WHEN a 2560 by 1440 frame is captured for screen share
  • THEN the I420 frame that is delivered has at most 8160 macroblocks

Scenario: A short buffer is dropped

  • WHEN the capturer reports a size whose byte length exceeds the buffer
  • THEN no frame is delivered
Source
1## ADDED Requirements
2
3### Requirement: Screen frames are reduced before I420 conversion
4
5A shared screen or window frame SHALL be scaled with libyuv so its macroblock count is at most the 1080p send budget before it is converted to I420. A buffer shorter than the claimed stride and height MUST NOT be converted.
6
7#### Scenario: A wide frame fits the send budget
8
9- **WHEN** a 2560 by 1440 frame is captured for screen share
10- **THEN** the I420 frame that is delivered has at most 8160 macroblocks
11
12#### Scenario: A short buffer is dropped
13
14- **WHEN** the capturer reports a size whose byte length exceeds the buffer
15- **THEN** no frame is delivered