Skip to content

@mega-yfue/eufy-sdk / codedGeometry

Function: codedGeometry()

ts
function codedGeometry(sets): CodedGeometry | undefined;

The picture geometry a decoder will produce from the parameter sets in force, or undefined when no SPS could be read.

This is the authority on a live stream's geometry. A frame header states the geometry at capture start, and a source that reconfigures mid-session leaves it contradicting the bytes it is sending — so a consumer that rebuilt a decoder from the header would size it for a picture the stream is not carrying. The SPS is what the picture actually is.

The crop and conformance offsets are part of the answer rather than a refinement of it: 1080 is not a multiple of the 16-sample macroblock, so a 1080p H.264 stream codes 1088 rows and crops 8 away. A read that stopped at the coded size would be wrong by exactly that on the commonest geometry there is.

Answers from the LAST SPS of the set, which is the one in force. AV1 is not parsed — the SDK decodes no AV1 sequence header, and a size from another codec's syntax would be a fabrication.

Parameters

sets

ParamSets

Returns

CodedGeometry | undefined

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.