123456789101112131415161718192021222324 |
- using System;
- using System.Runtime.InteropServices;
- namespace MediaUtil
- {
- public partial class Decoder
- {
- private static class Interop64
- {
- [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "CreateDecoder", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
- public static extern int CreateDecoder(out IntPtr hDecoder, int width, int height, FrameDecodedCallback freameDecodedCallback);
- [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "DestroyDecoder", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
- public static extern void DestroyDecoder(IntPtr hDecoder);
- [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "AddPacket", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
- public static extern int AddPacket(IntPtr hDecoder, IntPtr hPacket);
- [DllImport("x64\\MediaUtil.x64.dll", EntryPoint = "FlushDecoder", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
- public static extern int FlushDecoder(IntPtr hDecoder);
- }
- }
- }
|