Initial compresison.

This commit is contained in:
jmsgrogan 2022-08-01 16:14:14 +01:00
parent 4fce4fc614
commit 1ee31596fb
11 changed files with 195 additions and 1 deletions

View file

@ -11,6 +11,7 @@ list(APPEND TestFiles
audio/TestAudioWriter.cpp
audio/TestMidiReader.cpp
core/TestBinaryStream.cpp
compression/TestStreamCompressor.cpp
database/TestDatabase.cpp
fonts/TestFontReader.cpp
graphics/TestOpenGlRendering.cpp
@ -30,6 +31,7 @@ list(APPEND TestNames
TestAudioWriter
TestMidiReader
TestBinaryStream
TestStreamCompressor
TestDatabase
TestFontReader
TestOpenGlRendering
@ -52,7 +54,7 @@ link_directories(${DBUS_LIBRARY_DIRS})
foreach(TestFile TestName IN ZIP_LISTS TestFiles TestNames)
add_executable(${TestName} ${TestFile})
target_link_libraries(${TestName} PUBLIC core fonts network image publishing video database geometry audio graphics web client test_utils ${DBUS_LIBRARIES})
target_link_libraries(${TestName} PUBLIC core compression fonts network image publishing video database geometry audio graphics web client test_utils ${DBUS_LIBRARIES})
endforeach()

View file

@ -0,0 +1,14 @@
#include <iostream>
#include "HuffmanEncoder.h"
int main()
{
std::string testData = "BCAADDDCCACACAC";
std::vector<unsigned char> stream(testData.begin(), testData.end());
HuffmanEncoder encoder;
encoder.encode(stream);
return 0;
}