示例#1
0
        internal void Resize()
        {
            if (format == null)
            {
                throw new InvalidOperationException($"{nameof(VideoFrame)} 对象未指定格式");
            }

            cache.Resize(format.Bytes);

            fixed(IntPtr *datas = this.datas)
            fixed(int *linesize = format.strides)
            {
                FF.av_image_fill_pointers((byte **)datas, format.PixelFormat, format.Height, (byte *)cache, linesize);
            }
        }