Merge commit '4c61b7d3c3eb8d474ab54a2221eeb1a059dcd67d' into libraw-copylib

Upgrade LibRaw to snapshot 202403.
This commit is contained in:
Lawrence Lee
2024-04-13 22:47:37 -07:00
133 changed files with 4307 additions and 1939 deletions

View File

@@ -0,0 +1,28 @@
#pragma once
#include <vector>
#include "../libraw/libraw_types.h"
class checked_buffer_t
{
public:
// create with internal storage
checked_buffer_t(short ord, int size);
checked_buffer_t(short ord, unsigned char *dd, int ss);
ushort sget2(int offset);
void checkoffset(int off);
unsigned char operator[](int idx);
unsigned sget4(int offset);
double sgetreal(int type, int offset);
unsigned char *data() { return _data; }
int tiff_sget(unsigned save, INT64 *tag_offset, unsigned *tag_id, unsigned *tag_type, INT64 *tag_dataoffset,
unsigned *tag_datalen, int *tag_dataunitlen);
protected:
short _order;
private:
unsigned char *_data;
int _len;
std::vector<unsigned char> storage;
};