Moved black border detection code to seperate library

Former-commit-id: 590029949b79689ea05409149677e51b748cb64f
This commit is contained in:
johan 2014-01-26 14:23:08 +01:00
parent 8cf39a9f6f
commit f5317bc2d9
11 changed files with 40 additions and 14 deletions

View File

@ -8,7 +8,9 @@
#include <hyperion/ImageProcessorFactory.h>
#include <hyperion/LedString.h>
#include <hyperion/ImageToLedsMap.h>
#include <hyperion/BlackBorderProcessor.h>
// Black border includes
#include <blackborder/BlackBorderProcessor.h>
///
/// The ImageProcessor translates an RGB-image to RGB-values for the leds. The processing is

View File

@ -4,6 +4,7 @@ SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include)
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc)
add_subdirectory(hyperion)
add_subdirectory(blackborder)
add_subdirectory(jsonserver)
add_subdirectory(protoserver)
add_subdirectory(boblightserver)

View File

@ -1,6 +1,6 @@
// Local-Hyperion includes
#include <hyperion/BlackBorderDetector.h>
// BlackBorders includes
#include <blackborder/BlackBorderDetector.h>
using namespace hyperion;

View File

@ -1,6 +1,6 @@
// Local-Hyperion includes
#include <hyperion/BlackBorderProcessor.h>
// Blackborder includes
#include <blackborder/BlackBorderProcessor.h>
using namespace hyperion;

View File

@ -0,0 +1,23 @@
# Define the current source locations
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/blackborder)
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/blackborder)
SET(Blackborder_HEADERS
${CURRENT_HEADER_DIR}/BlackBorderDetector.h
${CURRENT_HEADER_DIR}/BlackBorderProcessor.h
)
SET(Blackborder_SOURCES
${CURRENT_SOURCE_DIR}/BlackBorderDetector.cpp
${CURRENT_SOURCE_DIR}/BlackBorderProcessor.cpp
)
add_library(blackborder
${Blackborder_HEADERS}
${Blackborder_SOURCES}
)
target_link_libraries(blackborder
hyperion-utils
)

View File

@ -17,9 +17,6 @@ SET(Hyperion_HEADERS
${CURRENT_HEADER_DIR}/LedString.h
${CURRENT_HEADER_DIR}/PriorityMuxer.h
${CURRENT_HEADER_DIR}/BlackBorderDetector.h
${CURRENT_HEADER_DIR}/BlackBorderProcessor.h
${CURRENT_SOURCE_DIR}/MultiColorTransform.h
)
@ -30,8 +27,6 @@ SET(Hyperion_SOURCES
${CURRENT_SOURCE_DIR}/LedString.cpp
${CURRENT_SOURCE_DIR}/PriorityMuxer.cpp
${CURRENT_SOURCE_DIR}/BlackBorderDetector.cpp
${CURRENT_SOURCE_DIR}/BlackBorderProcessor.cpp
${CURRENT_SOURCE_DIR}/ImageToLedsMap.cpp
${CURRENT_SOURCE_DIR}/MultiColorTransform.cpp
${CURRENT_SOURCE_DIR}/LinearColorSmoothing.cpp
@ -54,6 +49,7 @@ add_library(hyperion
)
target_link_libraries(hyperion
blackborder
hyperion-utils
leddevice
effectengine

View File

@ -2,7 +2,9 @@
// Hyperion includes
#include <hyperion/ImageProcessor.h>
#include <hyperion/ImageToLedsMap.h>
#include <hyperion/BlackBorderProcessor.h>
// Blacborder includes
#include <blackborder/BlackBorderProcessor.h>
using namespace hyperion;

View File

@ -3,9 +3,11 @@
#include <random>
// Hyperion includes
#include <hyperion/BlackBorderDetector.h>
#include <utils/ColorRgb.h>
// Blackborder includes
#include <blackborder/BlackBorderDetector.h>
using namespace hyperion;
ColorRgb randomColor()

View File

@ -8,8 +8,8 @@
#include <utils/Image.h>
#include <utils/ColorRgb.h>
// Local-Hyperion includes
#include "hyperion/BlackBorderProcessor.h"
// Blackborder includes
#include "blackborder/BlackBorderProcessor.h"
using namespace hyperion;