whether the webcodecs has reserved byes in input encodedVideoChunk ?
decode: Input the crop information of one video frame and transparently transmit the crop information in output .
such as:
(1) input:
const chunk = new EncodedVideoChunk({ data, timestamp, type, reserve:8, // reserved bytes that we could transmit to output. })
decodeobj.decode(chunk);
(2) output
output(frame){
let timestamp = frame.timestamp;
let cropwidth = frame.reserver;
}
whether the webcodecs has reserved byes in input encodedVideoChunk ? decode: Input the crop information of one video frame and transparently transmit the crop information in output . such as: (1) input: const chunk =
new EncodedVideoChunk({ data, timestamp, type, reserve:8, // reserved bytes that we could transmit to output. })
decodeobj.decode(chunk); (2) output output(frame){ let timestamp = frame.timestamp; let cropwidth = frame.reserver; }