Function: avImageCopy2()
avImageCopy2(
dstData,dstLinesizes,srcData,srcLinesizes,pixFmt,width,height):void
Defined in: src/lib/utilities.ts:544
Copy image data.
Copies image data from source to destination buffers.
Direct mapping to av_image_copy2().
Parameters
dstData
Buffer<ArrayBufferLike>[]
Destination data planes
dstLinesizes
number[]
Destination bytes per line
srcData
Buffer<ArrayBufferLike>[]
Source data planes
srcLinesizes
number[]
Source bytes per line
pixFmt
Pixel format
width
number
Image width
height
number
Image height
Returns
void
Example
typescript
avImageCopy2(
dstPlanes, dstStrides,
srcPlanes, srcStrides,
AV_PIX_FMT_YUV420P, 1920, 1080
);See
av_image_copy2 - FFmpeg Doxygen
