Files
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

21 lines
776 B
C++

// J2kFile.h : Declaration of the CJ2kFile
#pragma once
#include "../BgraFrame.h"
namespace Jpeg2000
{
class GRAPHICS_DECL CJ2kFile
{
public:
bool Open(CBgraFrame* pFrame, const std::wstring& wsSrcPath, const std::wstring& wsXmlOptions, bool isBGRA);
bool Open(CBgraFrame* pFrame, BYTE* pBuffer, int nSize, const std::wstring& wsXmlOptions, bool isBGRA);
bool Save(CBgraFrame* pFrame, const std::wstring& wsSrcPath, const std::wstring& wsXmlOptions);
bool Open(BYTE** ppData, int& nComponentsCount, int& nWidth, int& nHeight, const std::wstring& wsSrcPath, const std::wstring& wsXmlOptions);
private:
void ApplyDecoderOptions(void *pParameters, const std::wstring& sXml);
long ApplyEncoderOptions(void *pParameters, const std::wstring& sXml);
};
}