public static void ScanLogo(AMTContext ctx, string srcpath, int serviceid, string workfile, string dstpath, int imgx, int imgy, int w, int h, int thy, int numMaxFrames, LogoAnalyzeCallback cb) { if (ScanLogo(ctx.Ptr, srcpath, serviceid, workfile, dstpath, imgx, imgy, w, h, thy, numMaxFrames, cb) == 0) { throw new IOException(ctx.GetError()); } }
public CPUInfo(AMTContext ctx) { Ctx = ctx; Ptr = CPUInfo_Create(); if (Ptr == IntPtr.Zero) { throw new IOException(Ctx.GetError()); } }
public TsSlimFilter(AMTContext ctx, int videoPid) { Ctx = ctx; Ptr = TsSlimFilter_Create(Ctx.Ptr, videoPid); if (Ptr == IntPtr.Zero) { throw new IOException(Ctx.GetError()); } }
public LogoFile(AMTContext ctx, string filepath) { Ctx = ctx; Ptr = LogoFile_Create(Ctx.Ptr, filepath); if (Ptr == IntPtr.Zero) { throw new IOException(Ctx.GetError()); } }
public MediaFile(AMTContext ctx, string filepath, int serviceid) { Ctx = ctx; Ptr = MediaFile_Create(Ctx.Ptr, filepath, serviceid); if (Ptr == IntPtr.Zero) { throw new IOException(Ctx.GetError()); } }
public MediaFile(AMTContext ctx, string filepath, int serviceid) { Ctx = ctx; Ptr = MediaFile_Create(Ctx.Ptr, filepath, serviceid); if (Ptr == IntPtr.Zero) { throw new IOException(Ctx.GetError()); } if (MediaFile_DecodeFrame(Ptr, 0, ref frameWidth, ref frameHeight) != 0) { if (frameWidth != 0 && frameHeight != 0) { int bufferSize = frameHeight * frameWidth * 3; FrameBufferPtr = Marshal.AllocHGlobal(bufferSize); } } }