- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use the decoder from the JPEG-Viewer example in my own Visual Studio managed C++ project, but I get always a System.TypeLoadException for DecodeHuffmanState.
I get this calling ippiDecodeHuffmanStateInit_JPEG_8u().
The JPEG Viewer is working properly, so I think there is no library missing.
Is there any idea how to solve this?
Regards
Thomas
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Thomas,
I'm not sure I understood your issue. You said that you get exception on ippiDecodeHuffmanStateInit_JPEG_8u function, but at the same time you said that JPEGViewer is working properly. It should not work if this function work incorrectly.
By the way, what processor and OS do you use? Is it EM64T based system?
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just in case, there is some comments from out expert
According C# documentation
TypeLoadException is thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type.
in our IPP sample we did that in such a way
[StructLayout(LayoutKind.Sequential)] public struct IppiDecodeHuffmanState {}; // hidden or own structure
// decoder
public IppiDecodeHuffmanState* m_state;
int size;
ippiDecodeHuffmanStateGetBufSize_JPEG_8u(&size);
byte[] buf = new byte[size];
fixed( byte* p=buf ) m_state = (IppiDecodeHuffmanState*)p;
ippiDecodeHuffmanStateInit_JPEG_8u(m_state);
Regards,
Vladimir

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page