w3c / w3c/webcodecs

Output trimming for future BYOB

Open
#176 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

extension
Dominant language
HTML
Stars
1.3k
Forks
194
Avg merge
1d 13h
Merged PRs (30d)
3

Description

BYOB is blocked on having read-only buffers, tracked in https://github.com/WICG/reducing-memory-copies/issues/1. This issue adds a consideration for when that is eventually resolved.

The request from audio industry pros is for an ability to say "when you write your output to my buffer, please skip over X bytes and stop writing after Y bytes". The use case is for codecs that are known to produce throw some initial throw-away outputs, like opus and mp3.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation files, tests, or entry points are identified in the issue. Start by reading the linked reducing-memory-copies issue and the WebCodecs proposal; done would require resolving the future BYOB dependency and defining the requested output-buffer behavior for skipped and limited bytes.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.