diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2021-03-08 13:56:16 +0000 | 
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2021-03-08 13:56:16 +0000 | 
| commit | c83e740ef94e16ba85574454f3138905edecb029 (patch) | |
| tree | 6e10779ff7b2df5194a3df9d100ba28d53883166 /indra/llimage | |
| parent | 2b385841f3031d599bdb226f0f859e51b09870f8 (diff) | |
Revert "Merge branch 'master' of https://bitbucket.org/lindenlab/viewer into DRTVWR-519"
This reverts commit e61f485a04dc8c8ac6bcf6a24848359092884d14, reversing
changes made to 00c47d079f7e958e473ed4083a7f7691fa02dcd5.
Diffstat (limited to 'indra/llimage')
| -rw-r--r-- | indra/llimage/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | indra/llimage/llimage.cpp | 9 | 
2 files changed, 12 insertions, 3 deletions
| diff --git a/indra/llimage/CMakeLists.txt b/indra/llimage/CMakeLists.txt index dc8e9f7c2f..293ada7548 100644 --- a/indra/llimage/CMakeLists.txt +++ b/indra/llimage/CMakeLists.txt @@ -6,7 +6,7 @@ include(00-Common)  include(LLCommon)  include(LLImage)  include(LLMath) -include(LLFileSystem) +include(LLVFS)  include(LLKDU)  include(LLImageJ2COJ)  include(ZLIB) @@ -17,7 +17,7 @@ include_directories(      ${LLCOMMON_INCLUDE_DIRS}      ${LLCOMMON_SYSTEM_INCLUDE_DIRS}      ${LLMATH_INCLUDE_DIRS} -    ${LLFILESYSTEM_INCLUDE_DIRS} +    ${LLVFS_INCLUDE_DIRS}      ${PNG_INCLUDE_DIRS}      ${ZLIB_INCLUDE_DIRS}      ) @@ -68,7 +68,7 @@ else (USE_KDU)  endif (USE_KDU)  target_link_libraries(llimage -    ${LLFILESYSTEM_LIBRARIES} +    ${LLVFS_LIBRARIES}      ${LLMATH_LIBRARIES}      ${LLCOMMON_LIBRARIES}      ${JPEG_LIBRARIES} diff --git a/indra/llimage/llimage.cpp b/indra/llimage/llimage.cpp index 350a8eb120..aed8943439 100644 --- a/indra/llimage/llimage.cpp +++ b/indra/llimage/llimage.cpp @@ -2219,11 +2219,20 @@ bool LLImageFormatted::save(const std::string &filename)  	return true;  } +// bool LLImageFormatted::save(LLVFS *vfs, const LLUUID &uuid, LLAssetType::EType type) +// Depricated to remove VFS dependency. +// Use: +// LLVFile::writeFile(image->getData(), image->getDataSize(), vfs, uuid, type); + +//---------------------------------------------------------------------------- +  S8 LLImageFormatted::getCodec() const  {  	return mCodec;  } +//============================================================================ +  static void avg4_colors4(const U8* a, const U8* b, const U8* c, const U8* d, U8* dst)  {  	dst[0] = (U8)(((U32)(a[0]) + b[0] + c[0] + d[0])>>2); | 
