sl@0: // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: sl@0: sl@0: #ifdef HAVE_CONFIG_H sl@0: #include "config.h" sl@0: #endif sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #define LOG_FILE "c:\\logs\\testsuite_diff_log.txt" sl@0: #include "std_log_result.h" sl@0: #include "utils.h" sl@0: #define LOG_FILENAME_LINE __FILE__, __LINE__ sl@0: sl@0: #define RES_SIZE 1 sl@0: #define MAX_SIZE 64 sl@0: #define MAX_SIZE1 10 sl@0: #define MAX_SIZE2 15 sl@0: sl@0: sl@0: void create_xml(int result) sl@0: { sl@0: if(result) sl@0: assert_failed = 1; sl@0: sl@0: testResultXml("testsuite_diff"); sl@0: close_log_file(); sl@0: } sl@0: sl@0: sl@0: void test_average_s16_u8(void) sl@0: { sl@0: int i; sl@0: int16_t dest[MAX_SIZE]; sl@0: uint8_t src1[MAX_SIZE],src2[MAX_SIZE], src3[MAX_SIZE]; sl@0: int16_t check[MAX_SIZE] = {0,2,3,5,6,8,9,11,5,6,8,9,11,12,14,15,9,11,12,14,15,17,18,20,14,15,17,18,20,21,23,24,18,20,21,23,24,26,27,29,23,24,26,27,29,30,32,33,27,29,30,32,33,35,36,38,32,33,35,36,38,39,41,42}; sl@0: for(i=0;i