Reorganise Filters folder

This commit is contained in:
BobLd 2024-10-15 22:00:45 +01:00
parent e903b6c365
commit c6793da4f4
7 changed files with 805 additions and 802 deletions

View File

@ -1,6 +1,6 @@
namespace UglyToad.PdfPig.Tests.Filters
{
using PdfPig.Filters;
using PdfPig.Filters.Lzw;
public class BitStreamTests
{

View File

@ -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
}
}

View File

@ -3,6 +3,7 @@
using System;
using System.IO;
using Tokens;
using CcittFax;
using Util;
/// <summary>

View File

@ -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;

View File

@ -4,6 +4,7 @@ namespace UglyToad.PdfPig.Filters
{
using System;
using System.Collections.Generic;
using Lzw;
using Tokens;
using Util;

View File

@ -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