SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
memory_stream.hpp
1// This file is part of slideio project.
2// It is subject to the license terms in the LICENSE file found in the top-level directory
3// of this distribution and at http://slideio.com/license.html.
4#ifndef OPENCV_slideio_memory_stream_HPP
5#define OPENCV_slideio_memory_stream_HPP
6
7#include "openjpeg.h"
8
9namespace slideio
10{
11 class OPJStreamUserData {
12 public:
13 OPJStreamUserData(unsigned char* ptr, size_t sz) : data(ptr), size(sz), offset(0) {}
14 unsigned char* data;
15 size_t size;
16 size_t offset;
17 };
18 opj_stream_t* createOPJMemoryStream(OPJStreamUserData* data, size_t size, bool inputStream);
19}
20
21#endif
Definition: exceptions.hpp:12