Email or username:

Password:

Forgot your password?
Brooke Vibber :blobcatcoffee:

*spending a few idle minutes between things devising muxer/demuxer interfaces to wrap around WebCodecs & my wasm codecs*

3 comments
Brooke Vibber :blobcatcoffee:

interestingly WebCodecs has special immutable buffer types EncodedVideoChunk and EncodedAudioChunk which represent an encoded packet, with an immutable buffer and some metadata. (Both types seem to have the same interfaces and metadata?)

you can copy in/out to regular typed arrays synchronously, *unlike* the VideoFrame type which has an *async* copyTo() method

presumably because it may be in video RAM which may be slow on some systems

*lolsob*

Brooke Vibber :blobcatcoffee:

"look what they need to mimic a fraction of our power"

if (typeof structuredClone === 'function') {
data = structuredClone(data, {
transfer
});
}

Go Up