Do not try to load bitmap for unsupported file format. 30/294630/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 22 Jun 2023 02:13:37 +0000 (11:13 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 22 Jun 2023 02:40:24 +0000 (11:40 +0900)
commit52c49c42aae0863d13c738e5f4a98651c4810931
tree02687e2f16d206bc98c556a0eb9a7842cb110aec
parent6bd4a21bc4de83c23d0cfd51b2d2a5f403859405
Do not try to load bitmap for unsupported file format.

When we try to call GetClosestImageSize for svg, lottie format files,
It will always try to decode WBMP format, which is not has magic number.

To avoid this useless file decode works, let we implement to fast-cancel
of full image decode logics for some case.

Change-Id: I6f6ba1e05ce4d12be62440923f383362d2df73d3
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/imaging/common/image-loader.cpp