常用方法
常用方法
常用方法
常用方法
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); } }