*spending a few idle minutes between things devising muxer/demuxer interfaces to wrap around WebCodecs & my wasm codecs*
Conversation
Notices
-
Embed this notice
Brooke Vibber :blobcatcoffee: (brooke@bikeshed.vibber.net)'s status on Thursday, 11-Apr-2024 19:49:41 JST Brooke Vibber :blobcatcoffee: -
Embed this notice
Lucas Werkmeister (lucaswerkmeister@wikis.world)'s status on Thursday, 11-Apr-2024 19:49:39 JST Lucas Werkmeister @brooke I will never not post this
Haelwenn /элвэн/ :triskell: and Polychrome :blabcat: like this. -
Embed this notice
Brooke Vibber :blobcatcoffee: (brooke@bikeshed.vibber.net)'s status on Thursday, 11-Apr-2024 19:49:40 JST 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*
-
Embed this notice
Brooke Vibber :blobcatcoffee: (brooke@bikeshed.vibber.net)'s status on Thursday, 11-Apr-2024 19:49:40 JST Brooke Vibber :blobcatcoffee: "look what they need to mimic a fraction of our power"
if (typeof structuredClone === 'function') {
data = structuredClone(data, {
transfer
});
}Matthew Lyon repeated this.
-
Embed this notice