2 * Copyright (c) 2014 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.
20 #include <dali-test-suite-utils.h>
22 #include <dali/internal/imaging/common/loader-gif.h>
23 #include "image-loaders.h"
28 static const LoadFunctions GifLoaders( TizenPlatform::LoadGifHeader, TizenPlatform::LoadBitmapFromGif );
32 void gif_loader_startup(void)
36 void gif_loader_cleanup(void)
40 int UtcDaliGifLoaderInterlaced(void)
42 ImageDetails interlaced( TEST_IMAGE_DIR "/interlaced.gif", 365u, 227u );
43 TestImageLoading( interlaced, GifLoaders );
47 int UtcDaliGifLoaderErrorBits(void)
49 ImageDetails errorBits( TEST_IMAGE_DIR "/error-bits.gif", 534u, 749u, 1280u, 1024u );
50 TestImageLoading( errorBits, GifLoaders );
54 int UtcDaliGifLoaderPattern(void)
56 ImageDetails pattern( TEST_IMAGE_DIR "/pattern.gif", 600u, 600u );
57 TestImageLoading( pattern, GifLoaders );
61 int UtcDaliGifLoaderTransparency(void)
63 ImageDetails transparency( TEST_IMAGE_DIR "/transparency.gif", 320u, 280u );
64 TestImageLoading( transparency, GifLoaders );