whedirector.blogg.se

Ffmpeg copy avframe
Ffmpeg copy avframe








ffmpeg copy avframe

Stripe / pitch: the number of bytes occupied by a certain component (such as brightness component or chroma component) in a line of image, that is, the width of a line of data in a plane. Slice: a continuous row in the image must be continuous, from top to bottom or from bottom to top In the packed storage mode, because the pixels of all components are interleaved, there is only one plane in the packed storage mode. Specifically, yuv420p format has three planes Y, U and V, nv12 format has two planes Y and UV, and gbrap format has four planes G, B, R and A. In the planar storage mode, at least one component occupies A single plane, and the planar storage mode has at least two planes. Plane: an area of memory that stores one or more components of an image. A pixel format contains information such as color space, sampling mode, storage mode, bit depth, etc.īit_depth: bit depth refers to the bit width occupied by a single sampling point of each component (Y, U, V, R, G, B, etc.). Pixel_format: pixel format, the arrangement format of image pixels in memory. Data structure definition 1.1 related basic conceptsīefore reading AVFrame data structure, you need to understand several basic concepts related to it (only video related concepts are considered here): This paper is based on ffmpeg version 4.1.










Ffmpeg copy avframe