2 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include <dali-test-suite-utils.h>
22 #include <dali/internal/imaging/common/loader-bmp.h>
23 #include "image-loaders.h"
29 static const LoadFunctions BmpLoaders(TizenPlatform::LoadBmpHeader, TizenPlatform::LoadBitmapFromBmp);
31 } // Unnamed namespace.
33 int UtcDaliBmp24bpp(void)
35 ImageDetails image(TEST_IMAGE_DIR "/flag-24bpp.bmp", 32u, 32u);
37 TestImageLoading(image, BmpLoaders);
41 int UtcDaliBmp32bpp(void)
43 ImageDetails image(TEST_IMAGE_DIR "/test_32bpp.bmp", 127u, 64u);
45 // Note : Currently we hard-overrite alpha channel as 255.
46 // Please fix UTC if we change current policy.
47 TestImageLoading(image, BmpLoaders);
51 int UtcDaliBmpRGB8(void)
53 ImageDetails image(TEST_IMAGE_DIR "/w3c_home_256.bmp", 72u, 48u);
55 TestImageLoading(image, BmpLoaders);