Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 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;
 }