roiRect property

({int height, int width, int x, int y})? roiRect
final

Optional region of interest in pixel coordinates. When non-null, every MB whose top-left lies inside the rect is placed in segment 1 with a quantizer delta of roiQiDelta; MBs outside use segment 0 (no delta). Translates into an EncoderSegmentation on every key + inter frame. Classic VC use case: lock the camera's face area to a sharper qi without spending more total bits. Coordinates are snapped to the 16x16 MB grid.

Implementation

final ({int x, int y, int width, int height})? roiRect;