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#pragma once
5
6#include "openjpeg.h"
7
8namespace slideio
9{
10 class OPJStreamUserData {
11 public:
12 OPJStreamUserData(unsigned char* ptr, size_t sz) : data(ptr), size(sz), offset(0) {}
13 unsigned char* data;
14 size_t size;
15 size_t offset;
16 };
17 opj_stream_t* createOPJMemoryStream(OPJStreamUserData* data, size_t size, bool inputStream);
18}
Definition: exceptions.hpp:15