diff --git a/libraries/CMakeLists.txt b/libraries/CMakeLists.txt index a7498a1a..b1d52a27 100644 --- a/libraries/CMakeLists.txt +++ b/libraries/CMakeLists.txt @@ -31,3 +31,4 @@ add_subdirectory(tufty2040) add_subdirectory(servo2040) add_subdirectory(motor2040) add_subdirectory(adcfft) +add_subdirectory(jpegdec) diff --git a/libraries/jpegdec/CMakeLists.txt b/libraries/jpegdec/CMakeLists.txt new file mode 100644 index 00000000..9a11ecda --- /dev/null +++ b/libraries/jpegdec/CMakeLists.txt @@ -0,0 +1 @@ +include(jpegdec.cmake) \ No newline at end of file diff --git a/libraries/jpegdec/jpeg.cpp b/libraries/jpegdec/jpeg.cpp new file mode 100644 index 00000000..6cac5d63 --- /dev/null +++ b/libraries/jpegdec/jpeg.cpp @@ -0,0 +1,16 @@ +#include "JPEGDEC.h" +/* +int32_t readRAM(JPEGFILE *pFile, uint8_t *pBuf, int32_t iLen) { + return 0; +} +int32_t seekMem(JPEGFILE *pFile, int32_t iPosition) { + return 0; +} +int32_t readFile(JPEGFILE *pFile, uint8_t *pBuf, int32_t iLen) { + return 0; +} +int32_t seekFile(JPEGFILE *pFile, int32_t iPosition) { + return 0; +} +void closeFile(void *handle) { +}*/ \ No newline at end of file diff --git a/libraries/jpegdec/jpegdec.cmake b/libraries/jpegdec/jpegdec.cmake new file mode 100644 index 00000000..6b759dd3 --- /dev/null +++ b/libraries/jpegdec/jpegdec.cmake @@ -0,0 +1,10 @@ +add_library(jpegdec + ${CMAKE_CURRENT_LIST_DIR}/jpeg.cpp + ${CMAKE_CURRENT_LIST_DIR}/JPEGDEC.cpp +) + +set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/JPEGDEC.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=unused-function") + +target_include_directories(jpegdec INTERFACE ${CMAKE_CURRENT_LIST_DIR}) + +target_link_libraries(jpegdec pico_stdlib) \ No newline at end of file