/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
"DALI_ENABLE_DECODE_JPEG_TO_YUV_420",
"",
"DALI_ENABLE_DECODE_JPEG_TO_YUV_440",
- "DALI_ENABLE_DECODE_JPEG_TO_YUV_411"};
+ "DALI_ENABLE_DECODE_JPEG_TO_YUV_411",
+ "DALI_ENABLE_DECODE_JPEG_TO_YUV_441"};
static bool gSubsamplingFormatTable[TJ_NUMSAMP] = {
false,
}
/// @brief Pointer to Pointer cast operator
- operator T**()
+ operator T* *()
{
return &mRawPointer;
}
switch(pixelFormat)
{
+ case Pixel::L8:
+ {
+ jpegPixelFormat = TJPF_GRAY;
+ break;
+ }
case Pixel::RGB888:
{
jpegPixelFormat = TJPF_RGB;
}
default:
{
- DALI_LOG_ERROR("Unsupported pixel format for encoding to JPEG.\n");
+ DALI_LOG_ERROR("Unsupported pixel format for encoding to JPEG. Format enum : [%d]\n", pixelFormat);
return false;
}
}