MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / withEvenDimensionPad

Function withEvenDimensionPad

packages/engine/src/utils/evenDimensions.ts:42–45  ·  view source on GitHub ↗
(vfChain: string, pixelFormat: string)

Source from the content-addressed store, hash-verified

40 * dimensions, and returns just the pad when there is no existing chain.
41 */
42export function withEvenDimensionPad(vfChain: string, pixelFormat: string): string {
43 if (!requiresEvenDimensions(pixelFormat)) return vfChain;
44 return vfChain ? `${vfChain},${EVEN_DIMENSION_PAD}` : EVEN_DIMENSION_PAD;
45}

Callers 3

buildStreamingArgsFunction · 0.85
buildEncoderArgsFunction · 0.85

Calls 1

requiresEvenDimensionsFunction · 0.85

Tested by

no test coverage detected