ht);
              }
              if (outputImageData) {
                renderBGRA32ColorFrame(outputCtx, outputImageData, data.colorImageFrame);
              }
            });
          }
        };

        const renderBGRA32ColorFrame = (ctx, canvasImageData, imageFrame) => {
          const newPixelData = Buffer.from(imageFrame.imageData);
          const pixelArray = canvasImageData.data;
          for (let i = 0; i < canvasImageData.data.length; i+=4) {
            pixelArray[i] = newPixelData[i+2]