MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / formatIsPlanar

Method formatIsPlanar

src/audio_encoder.ts:451–461  ·  view source on GitHub ↗
(format: AVSampleFormat)

Source from the content-addressed store, hash-verified

449 }
450
451 private formatIsPlanar(format: AVSampleFormat): boolean {
452 switch (format) {
453 case AV_SAMPLE_FMT_U8P:
454 case AV_SAMPLE_FMT_S16P:
455 case AV_SAMPLE_FMT_S32P:
456 case AV_SAMPLE_FMT_FLTP:
457 return true;
458 default:
459 return false;
460 }
461 }
462
463 private createOutputBuffers(frameSize: number): Buffer[] {
464 assert(this.codecContext);

Callers 2

createOutputBuffersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected