mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-22 04:20:07 +00:00
34 lines
1014 B
C
34 lines
1014 B
C
|
//--------------------------------------------------------------------------------------
|
||
|
// File: DirectXTexJPEG.h
|
||
|
//
|
||
|
// DirectXTex Auxilary functions for using the JPEG(https://www.ijg.org) library
|
||
|
//
|
||
|
// For the Windows platform, the strong recommendation is to make use of the WIC
|
||
|
// functions rather than using the open source library. This module exists to support
|
||
|
// Windows Subsystem on Linux.
|
||
|
//
|
||
|
// Copyright (c) Microsoft Corporation.
|
||
|
// Licensed under the MIT License.
|
||
|
//--------------------------------------------------------------------------------------
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "DirectXTex.h"
|
||
|
|
||
|
|
||
|
namespace DirectX
|
||
|
{
|
||
|
HRESULT __cdecl GetMetadataFromJPEGFile(
|
||
|
_In_z_ const wchar_t* szFile,
|
||
|
_Out_ TexMetadata& metadata);
|
||
|
|
||
|
HRESULT __cdecl LoadFromJPEGFile(
|
||
|
_In_z_ const wchar_t* szFile,
|
||
|
_Out_opt_ TexMetadata* metadata,
|
||
|
_Out_ ScratchImage& image);
|
||
|
|
||
|
HRESULT __cdecl SaveToJPEGFile(
|
||
|
_In_ const Image& image,
|
||
|
_In_z_ const wchar_t* szFile);
|
||
|
}
|