Disabled BMP for now
This commit is contained in:
@@ -315,8 +315,8 @@ namespace ANSCENTER
|
|||||||
|
|
||||||
std::string CompressJpegToString(const cv::Mat& image, int quality) {
|
std::string CompressJpegToString(const cv::Mat& image, int quality) {
|
||||||
// Try GPU path first (returns "" if non-NVIDIA, pool full, or encode fails)
|
// Try GPU path first (returns "" if non-NVIDIA, pool full, or encode fails)
|
||||||
std::string result = NvJpegPool::Instance().tryCompress(image, quality);
|
//std::string result = NvJpegPool::Instance().tryCompress(image, quality);
|
||||||
if (!result.empty()) return result;
|
//if (!result.empty()) return result;
|
||||||
|
|
||||||
// CPU fallback — always available
|
// CPU fallback — always available
|
||||||
static thread_local TurboJpegCompressor compressor;
|
static thread_local TurboJpegCompressor compressor;
|
||||||
@@ -6582,6 +6582,8 @@ struct BmpInfoHeader {
|
|||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
extern "C" __declspec(dllexport) int ANSCV_ImageToBmp(cv::Mat** imageIn, int maxWidth, int& newWidth, int& newHeight, LStrHandle outputImage) {
|
extern "C" __declspec(dllexport) int ANSCV_ImageToBmp(cv::Mat** imageIn, int maxWidth, int& newWidth, int& newHeight, LStrHandle outputImage) {
|
||||||
|
|
||||||
|
return ANSCV_GetImage_S(imageIn,maxWidth,80,newWidth,newHeight,outputImage);
|
||||||
try {
|
try {
|
||||||
if (!imageIn || !(*imageIn) || (*imageIn)->empty() || !outputImage) {
|
if (!imageIn || !(*imageIn) || (*imageIn)->empty() || !outputImage) {
|
||||||
ANS_DBG("ANSCV", "ImageToBmp: invalid input");
|
ANS_DBG("ANSCV", "ImageToBmp: invalid input");
|
||||||
|
|||||||
Reference in New Issue
Block a user