forked from Nominom/BCnEncoder.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIBcDecoder.cs
More file actions
25 lines (22 loc) · 771 Bytes
/
Copy pathIBcDecoder.cs
File metadata and controls
25 lines (22 loc) · 771 Bytes
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
using System;
using System.Collections.Generic;
using System.Text;
using BCnEncoder.Shared;
namespace BCnEncoder.Decoder
{
internal interface IBcDecoder
{
CompressionFormat DecodedFormat { get; }
byte[] Decode(ReadOnlyMemory<byte> data, int width, int height, OperationContext context);
}
internal interface IBcLdrDecoder : IBcDecoder
{
CompressionFormat IBcDecoder.DecodedFormat => CompressionFormat.Rgba32;
ColorRgba32[] DecodeColor(ReadOnlyMemory<byte> data, int width, int height, OperationContext context);
}
internal interface IBcHdrDecoder : IBcDecoder
{
CompressionFormat IBcDecoder.DecodedFormat => CompressionFormat.RgbaFloat;
ColorRgbaFloat[] DecodeColor(ReadOnlyMemory<byte> data, int width, int height, OperationContext context);
}
}