-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathifswp2cm.h
32 lines (23 loc) · 868 Bytes
/
ifswp2cm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2003 - 2024 sincos2854
// Licensed under the MIT License
#pragma once
#include <string>
#include "spi00in.h"
#include "version.h"
#define COPYRIGHT L"WebP 2 Susie Plug-in Ver." PROJECT_VERSION L" (c) 2003 - 2024 sincos2854"
#define EXTENSION1 L".wp2"
#define PLUGIN_INFO3 L"*" EXTENSION1
#define PLOGIN_INFO4 L"WebP 2 file(*" EXTENSION1 L")"
static const wchar_t* plugin_info[]{
L"00IN",
COPYRIGHT,
PLUGIN_INFO3,
PLOGIN_INFO4,
};
#define HEADER_MIN_SIZE 3
constexpr static std::wstring_view extensions[]{
EXTENSION1
};
bool IsSupportedEx(LPCWSTR filename, const LPBYTE data);
int GetPictureInfoEx(LPCWSTR file_name, const LPBYTE data, size_t size, PictureInfo* lpInfo);
int GetPictureEx(LPCWSTR file_name, const LPBYTE data, size_t size, HANDLE* pHBInfo, HANDLE* pHBm, ProgressCallback lpPrgressCallback, LONG_PTR lData);