mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-04-05 20:55:01 +08:00
Reorganise Filters folder
This commit is contained in:
parent
e903b6c365
commit
c6793da4f4
@ -1,6 +1,6 @@
|
||||
namespace UglyToad.PdfPig.Tests.Filters
|
||||
{
|
||||
using PdfPig.Filters;
|
||||
using PdfPig.Filters.Lzw;
|
||||
|
||||
public class BitStreamTests
|
||||
{
|
||||
|
@ -1,25 +1,25 @@
|
||||
namespace UglyToad.PdfPig.Filters
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the compression type to use with <see cref="T:UglyToad.PdfPig.Filters.CcittFaxDecoderStream" />.
|
||||
/// </summary>
|
||||
internal enum CcittFaxCompressionType
|
||||
{
|
||||
/// <summary>
|
||||
/// Modified Huffman (MH) - Group 3 variation (T2)
|
||||
/// </summary>
|
||||
ModifiedHuffman,
|
||||
/// <summary>
|
||||
/// Modified Huffman (MH) - Group 3 (T4)
|
||||
/// </summary>
|
||||
Group3_1D,
|
||||
/// <summary>
|
||||
/// Modified Read (MR) - Group 3 (T4)
|
||||
/// </summary>
|
||||
Group3_2D,
|
||||
/// <summary>
|
||||
/// Modified Modified Read (MMR) - Group 4 (T6)
|
||||
/// </summary>
|
||||
Group4_2D
|
||||
}
|
||||
}
|
||||
namespace UglyToad.PdfPig.Filters.CcittFax
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the compression type to use with <see cref="T:UglyToad.PdfPig.Filters.CcittFaxDecoderStream" />.
|
||||
/// </summary>
|
||||
internal enum CcittFaxCompressionType
|
||||
{
|
||||
/// <summary>
|
||||
/// Modified Huffman (MH) - Group 3 variation (T2)
|
||||
/// </summary>
|
||||
ModifiedHuffman,
|
||||
/// <summary>
|
||||
/// Modified Huffman (MH) - Group 3 (T4)
|
||||
/// </summary>
|
||||
Group3_1D,
|
||||
/// <summary>
|
||||
/// Modified Read (MR) - Group 3 (T4)
|
||||
/// </summary>
|
||||
Group3_2D,
|
||||
/// <summary>
|
||||
/// Modified Modified Read (MMR) - Group 4 (T6)
|
||||
/// </summary>
|
||||
Group4_2D
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,7 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Tokens;
|
||||
using CcittFax;
|
||||
using Util;
|
||||
|
||||
/// <summary>
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace UglyToad.PdfPig.Filters
|
||||
namespace UglyToad.PdfPig.Filters.Lzw
|
||||
{
|
||||
using System;
|
||||
|
||||
@ -53,9 +53,9 @@
|
||||
}
|
||||
|
||||
// 'And' out the leading bits.
|
||||
var firstBitOfDataWithinInt = (sizeof(int) * 8) - numberOfBits;
|
||||
var firstBitOfDataWithinInt = sizeof(int) * 8 - numberOfBits;
|
||||
result &= (int)(0xffffffff >> firstBitOfDataWithinInt);
|
||||
|
||||
|
||||
currentWithinByteBitOffset = endWithinByteBitOffset;
|
||||
|
||||
return result;
|
@ -4,6 +4,7 @@ namespace UglyToad.PdfPig.Filters
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Lzw;
|
||||
using Tokens;
|
||||
using Util;
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
/// <inheritdoc />
|
||||
/// <summary>
|
||||
/// The Run Length filterencodes data in a simple byte-oriented format based on run length.
|
||||
/// The Run Length filter encodes data in a simple byte-oriented format based on run length.
|
||||
/// The encoded data is a sequence of runs, where each run consists of a length byte followed by 1 to 128 bytes of data.
|
||||
/// </summary>
|
||||
internal sealed class RunLengthFilter : IFilter
|
||||
|
Loading…
Reference in New Issue
Block a user