コード例 #1
0
ファイル: SWS.cs プロジェクト: nbomeroglu37/FFmpeg.Wrapper
 public static void Scale(SWSContext context, SByteBuffer srcSlice, SIntBuffer srcStride, int srcSliceY, int srcSliceH, SByteBuffer dest, SIntBuffer dstStride)
 {
     fixed (byte** src = &srcSlice.NativeObj, dst = &dest.NativeObj)
     {
         FFmpegInvoke.sws_scale(context.NativeObj, src, srcStride.NativeObj, srcSliceY, srcSliceH, dst, dstStride.NativeObj);
     }
 }
コード例 #2
0
 public static bool Fill(AVPicture picture, SByteBuffer buffer, AutoGen.AVPixelFormat format, int width,
     int height)
 {
     return FFmpegInvoke.avpicture_fill(picture.NativeObj, buffer.NativeObj, format, width, height) == 0;
 }