Brooke Vibber :blobcatcoffee: on Nostr: interestingly WebCodecs has special immutable buffer types EncodedVideoChunk and ...
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*
Published at
2024-04-10 21:26:36Event JSON
{
"id": "e7a5e08fcebca92d1b7f373201356092b9fa23b364f98f0661ae555f7168d052",
"pubkey": "e706bac9248ec060ad3aadc22b1c6a6bf89f2b0830fc2378f94c1f4192df36b1",
"created_at": 1712784396,
"kind": 1,
"tags": [
[
"e",
"ba31856b7710ce60281a000898ec66b11283283736b4eef05f6e49b671858fa4",
"",
"root"
],
[
"p",
"e706bac9248ec060ad3aadc22b1c6a6bf89f2b0830fc2378f94c1f4192df36b1"
],
[
"proxy",
"https://bikeshed.vibber.net/users/brooke/statuses/112249038182968795",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://bikeshed.vibber.net/users/brooke/statuses/112249038182968795",
"pink.momostr"
]
],
"content": "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?)\n\nyou can copy in/out to regular typed arrays synchronously, *unlike* the VideoFrame type which has an *async* copyTo() method\n\npresumably because it may be in video RAM which may be slow on some systems\n\n*lolsob*",
"sig": "eb4e993379d22e3148862d2eefcfa99c2a4715eb0b7d0ce11fd71a199dbb99b08aae3c638b383c4bf08f8d1156213a58937fc89acd449ae9d178787dde5242fe"
}