code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/windows/SDL_windowswindow.h | C | apache-2.0 | 3,755 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/windows/wmmsg.h | C | apache-2.0 | 22,805 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtevents.cpp | C++ | apache-2.0 | 3,963 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtevents_c.h | C | apache-2.0 | 3,320 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtgamebar.cpp | C++ | apache-2.0 | 6,639 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtgamebar_cpp.h | C | apache-2.0 | 1,319 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtkeyboard.cpp | C++ | apache-2.0 | 20,288 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtmessagebox.cpp | C++ | apache-2.0 | 4,602 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtmessagebox.h | C | apache-2.0 | 1,163 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtmouse.cpp | C++ | apache-2.0 | 8,739 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtmouse_c.h | C | apache-2.0 | 1,272 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtopengles.cpp | C++ | apache-2.0 | 8,644 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtopengles.h | C | apache-2.0 | 2,912 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtpointerinput.cpp | C++ | apache-2.0 | 14,716 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtvideo.cpp | C++ | apache-2.0 | 30,613 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/winrt/SDL_winrtvideo_cpp.h | C | apache-2.0 | 3,835 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11clipboard.c | C | apache-2.0 | 6,741 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11clipboard.h | C | apache-2.0 | 1,308 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11dyn.c | C | apache-2.0 | 6,142 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11dyn.h | C | apache-2.0 | 3,278 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11events.c | C | apache-2.0 | 54,895 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11events.h | C | apache-2.0 | 1,168 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11framebuffer.c | C | apache-2.0 | 7,525 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11framebuffer.h | C | apache-2.0 | 1,513 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11keyboard.c | C | apache-2.0 | 17,358 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11keyboard.h | C | apache-2.0 | 1,409 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11messagebox.c | C | apache-2.0 | 32,448 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11messagebox.h | C | apache-2.0 | 1,219 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11modes.c | C | apache-2.0 | 37,649 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11modes.h | C | apache-2.0 | 2,597 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11mouse.c | C | apache-2.0 | 13,736 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11mouse.h | C | apache-2.0 | 1,155 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11opengl.c | C | apache-2.0 | 33,335 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11opengl.h | C | apache-2.0 | 3,321 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11opengles.c | C | apache-2.0 | 3,950 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11opengles.h | C | apache-2.0 | 2,167 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11shape.c | C | apache-2.0 | 3,966 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11shape.h | C | apache-2.0 | 1,427 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11sym.h | C | apache-2.0 | 23,484 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11touch.c | C | apache-2.0 | 1,449 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11touch.h | C | apache-2.0 | 1,190 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11video.c | C | apache-2.0 | 15,844 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11video.h | C | apache-2.0 | 4,137 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11vulkan.c | C | apache-2.0 | 9,310 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11vulkan.h | C | apache-2.0 | 1,834 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11window.c | C | apache-2.0 | 58,350 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11window.h | C | apache-2.0 | 4,421 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11xinput2.c | C | apache-2.0 | 11,181 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/SDL_x11xinput2.h | C | apache-2.0 | 1,674 |
/*
* Copyright 2007 Red Hat, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* on the rights to use, copy, modify, merge, publis... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/edid-parse.c | C | apache-2.0 | 19,841 |
typedef unsigned char uchar;
typedef struct MonitorInfo MonitorInfo;
typedef struct Timing Timing;
typedef struct DetailedTiming DetailedTiming;
typedef enum
{
UNDEFINED,
DVI,
HDMI_A,
HDMI_B,
MDDI,
DISPLAY_PORT
} Interface;
typedef enum
{
UNDEFINED_COLOR,
MONOCHROME,
RGB,
OTHER... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/edid.h | C | apache-2.0 | 3,215 |
/*
Copyright (C) 2003-2006,2008 Jamey Sharp, Josh Triplett
Copyright © 2009 Red Hat, Inc.
Copyright 1990-1992,1999,2000,2004,2009,2010 Oracle and/or its affiliates.
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/imKStoUCS.c | C | apache-2.0 | 22,525 |
#ifndef _imKStoUCS_h
#define _imKStoUCS_h
/*
Copyright (C) 2003-2006,2008 Jamey Sharp, Josh Triplett
Copyright © 2009 Red Hat, Inc.
Copyright 1990-1992,1999,2000,2004,2009,2010 Oracle and/or its affiliates.
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this soft... | YifuLiu/AliOS-Things | components/SDL2/src/video/x11/imKStoUCS.h | C | apache-2.0 | 1,372 |
// Copyright 2016 Adrien Descamps
// Distributed under BSD 3-Clause License
#include "../../SDL_internal.h"
#if SDL_HAVE_YUV
#include "yuv_rgb.h"
#include "SDL_cpuinfo.h"
/*#include <x86intrin.h>*/
#define PRECISION 6
#define PRECISION_FACTOR (1<<PRECISION)
typedef struct
{
uint8_t y_shift;
int16_t matrix[3][3];... | YifuLiu/AliOS-Things | components/SDL2/src/video/yuv2rgb/yuv_rgb.c | C | apache-2.0 | 25,673 |
// Copyright 2016 Adrien Descamps
// Distributed under BSD 3-Clause License
// Provide optimized functions to convert images from 8bits yuv420 to rgb24 format
// There are a few slightly different variations of the YCbCr color space with different parameters that
// change the conversion matrix.
// The three most co... | YifuLiu/AliOS-Things | components/SDL2/src/video/yuv2rgb/yuv_rgb.h | C | apache-2.0 | 13,746 |
// Copyright 2016 Adrien Descamps
// Distributed under BSD 3-Clause License
/* You need to define the following macros before including this file:
SSE_FUNCTION_NAME
STD_FUNCTION_NAME
YUV_FORMAT
RGB_FORMAT
*/
/* You may define the following macro, which affects generated code:
SSE_ALIGNED
*/
#ifdef SSE_ALIGNED
/*... | YifuLiu/AliOS-Things | components/SDL2/src/video/yuv2rgb/yuv_rgb_sse_func.h | C | apache-2.0 | 19,011 |
// Copyright 2016 Adrien Descamps
// Distributed under BSD 3-Clause License
/* You need to define the following macros before including this file:
STD_FUNCTION_NAME
YUV_FORMAT
RGB_FORMAT
*/
#if RGB_FORMAT == RGB_FORMAT_RGB565
#define PACK_PIXEL(rgb_ptr) \
*(Uint16 *)rgb_ptr = \
((((Uint16)clampU8(y_tmp+r_tmp))... | YifuLiu/AliOS-Things | components/SDL2/src/video/yuv2rgb/yuv_rgb_std_func.h | C | apache-2.0 | 6,333 |
cmake_minimum_required(VERSION 2.8.11)
project(SDL2 C)
# Global settings for all of the test targets
# FIXME: is this wrong?
remove_definitions(-DUSING_GENERATED_CONFIG_H)
link_libraries(SDL2_test SDL2-static)
# FIXME: Parent directory CMakeLists.txt only sets these for mingw/cygwin,
# but we need them for VS as well... | YifuLiu/AliOS-Things | components/SDL2/test/CMakeLists.txt | CMake | apache-2.0 | 5,975 |
# Makefile to build the SDL tests
srcdir = @srcdir@
CC = @CC@
EXE = @EXE@
CFLAGS = @CFLAGS@ -g
LIBS = @LIBS@
TARGETS = \
checkkeys$(EXE) \
controllermap$(EXE) \
loopwave$(EXE) \
loopwavequeue$(EXE) \
testatomic$(EXE) \
testaudiocapture$(EXE) \
testaudiohotplug$(EXE) \
testaudioinfo$(EXE) \
testautoma... | YifuLiu/AliOS-Things | components/SDL2/test/Makefile.in | Makefile | apache-2.0 | 8,580 |
# Configure paths for SDL
# Sam Lantinga 9/21/99
# stolen from Manish Singh
# stolen back from Frank Belew
# stolen from Manish Singh
# Shamelessly stolen from Owen Taylor
# serial 1
dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
dnl
... | YifuLiu/AliOS-Things | components/SDL2/test/acinclude.m4 | M4Sugar | apache-2.0 | 12,406 |
#!/bin/sh
#
# Regenerate configuration files
cp acinclude.m4 aclocal.m4
found=false
for autoconf in autoconf autoconf259 autoconf-2.59
do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
done
if test x$found = xfalse; then
echo "Couldn't find autoconf, aborting"
exit 1
fi
| YifuLiu/AliOS-Things | components/SDL2/test/autogen.sh | Shell | apache-2.0 | 308 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/checkkeys.c | C | apache-2.0 | 6,370 |
dnl Process this file with autoconf to produce a configure script.
AC_INIT(README)
dnl Detect the canonical build and host environments
AC_CONFIG_AUX_DIRS($srcdir/../build-scripts)
AC_CANONICAL_HOST
dnl Check for tools
AC_PROG_CC
dnl Check for compiler environment
AC_C_CONST
dnl We only care about this for buildi... | YifuLiu/AliOS-Things | components/SDL2/test/configure.ac | M4Sugar | apache-2.0 | 4,564 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/controllermap.c | C | apache-2.0 | 31,259 |
Module['arguments'] = ['0'];
//Gamepads don't appear until a button is pressed and the joystick/gamepad tests expect one to be connected
Module['preRun'].push(function()
{
Module['print']("Waiting for gamepad...");
Module['addRunDependency']("gamepad");
window.addEventListener('gamepadconnected', function()... | YifuLiu/AliOS-Things | components/SDL2/test/emscripten/joystick-pre.js | JavaScript | apache-2.0 | 749 |
#!/bin/sh
#
# Build Universal binaries on Mac OS X, thanks Ryan!
#
# Usage: ./configure CC="sh gcc-fat.sh" && make && rm -rf ppc x86
# PowerPC compiler flags (10.2 runtime compatibility)
GCC_COMPILE_PPC="gcc-3.3 -arch ppc \
-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 \
-nostdinc \
-F/Developer/SDKs/MacOSX10.2.8.sdk/System/Li... | YifuLiu/AliOS-Things | components/SDL2/test/gcc-fat.sh | Shell | apache-2.0 | 2,966 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/loopwave.c | C | apache-2.0 | 4,308 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/loopwavequeue.c | C | apache-2.0 | 3,805 |
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# GNU Makefile based on shared rules provided by the Native Client SDK.
# See README.Makefiles for more details.
VALID_TOOLCHAINS := pnacl
# NACL_SDK_R... | YifuLiu/AliOS-Things | components/SDL2/test/nacl/Makefile | Makefile | apache-2.0 | 2,130 |
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
function makeURL(toolchain, config) {
return 'index.html?tc=' + toolchain + '&config=' + config;
}
function createWindow(url) {
console.log('load... | YifuLiu/AliOS-Things | components/SDL2/test/nacl/background.js | JavaScript | apache-2.0 | 1,272 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Set to true when the Document is loaded IFF "test=true" is in the query
// string.
var isTest = false;
// Set to true when loading a "Release" NaC... | YifuLiu/AliOS-Things | components/SDL2/test/nacl/common.js | JavaScript | apache-2.0 | 15,989 |
<!DOCTYPE html>
<html>
<!--
Copyright (c) 2012 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<title>SDL NACL Test</title>... | YifuLiu/AliOS-Things | components/SDL2/test/nacl/index.html | HTML | apache-2.0 | 755 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/testatomic.c | C | apache-2.0 | 20,680 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/testaudiocapture.c | C | apache-2.0 | 5,185 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/testaudiohotplug.c | C | apache-2.0 | 5,579 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/testaudioinfo.c | C | apache-2.0 | 2,101 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation.c | C | apache-2.0 | 3,408 |
/**
* Original code: automated SDL audio test written by Edgar Simo "bobbens"
* New/updated tests: aschiffler at ferzkopp dot net
*/
/* quiet windows compiler warnings */
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include "SDL.h"
#include "SDL_test.h"
/* ================= Test Case I... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_audio.c | C | apache-2.0 | 38,582 |
/**
* New/updated tests: aschiffler at ferzkopp dot net
*/
#include <stdio.h>
#include <string.h>
#include "SDL.h"
#include "SDL_test.h"
/* ================= Test Case Implementation ================== */
/* Test case functions */
/**
* \brief Check call to SDL_HasClipboardText
*
* \sa
* http://wiki.libsdl.o... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_clipboard.c | C | apache-2.0 | 5,958 |
/**
* Events test suite
*/
#include <stdio.h>
#include "SDL.h"
#include "SDL_test.h"
/* ================= Test Case Implementation ================== */
/* Test case functions */
/* Flag indicating if the userdata should be checked */
int _userdataCheck = 0;
/* Userdata value to check */
int _userdataValue = 0;... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_events.c | C | apache-2.0 | 6,167 |
/**
* Hints test suite
*/
#include <stdio.h>
#include "SDL.h"
#include "SDL_test.h"
const int _numHintsEnum = 25;
char* _HintsEnum[] =
{
SDL_HINT_ACCELEROMETER_AS_JOYSTICK,
SDL_HINT_FRAMEBUFFER_ACCELERATION,
SDL_HINT_GAMECONTROLLERCONFIG,
SDL_HINT_GRAB_KEYBOARD,
SDL_HINT_IDLE_TIMER_DISABLED,... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_hints.c | C | apache-2.0 | 5,125 |
/**
* Keyboard test suite
*/
#include <stdio.h>
#include <limits.h>
#include "SDL_config.h"
#include "SDL.h"
#include "SDL_test.h"
/* ================= Test Case Implementation ================== */
/* Test case functions */
/**
* @brief Check call to SDL_GetKeyboardState with and without numkeys reference.
*
... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_keyboard.c | C | apache-2.0 | 26,515 |
/**
* Automated SDL subsystems management test.
*
* Written by J�rgen Tjern� "jorgenpt"
*
* Released under Public Domain.
*/
#include "SDL.h"
#include "SDL_test.h"
/* !
* \brief Tests SDL_Init() and SDL_Quit() of Joystick and Haptic subsystems
* \sa
* http://wiki.libsdl.org/moin.cgi/SDL_Init
* http://wiki.... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_main.c | C | apache-2.0 | 6,343 |
/**
* Mouse test suite
*/
#include <stdio.h>
#include <limits.h>
#include "SDL.h"
#include "SDL_test.h"
/* ================= Test Case Implementation ================== */
/* Test case functions */
/* Helper to evaluate state returned from SDL_GetMouseState */
int _mouseStateCheck(Uint32 state)
{
return (state... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_mouse.c | C | apache-2.0 | 19,996 |
/**
* Pixels test suite
*/
#include <stdio.h>
#include "SDL.h"
#include "SDL_test.h"
/* Test case functions */
/* Definition of all RGB formats used to test pixel conversions */
const int _numRGBPixelFormats = 31;
Uint32 _RGBPixelFormats[] =
{
SDL_PIXELFORMAT_INDEX1LSB,
SDL_PIXELFORMAT_INDEX1MSB,
SD... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_pixels.c | C | apache-2.0 | 18,303 |
/**
* Original code: automated SDL platform test written by Edgar Simo "bobbens"
* Extended and updated by aschiffler at ferzkopp dot net
*/
#include <stdio.h>
#include "SDL.h"
#include "SDL_test.h"
/* ================= Test Case Implementation ================== */
/* Helper functions */
/**
* @brief Compare ... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_platform.c | C | apache-2.0 | 17,533 |
/**
* Original code: automated SDL rect test written by Edgar Simo "bobbens"
* New/updated tests: aschiffler at ferzkopp dot net
*/
#include <stdio.h>
#include "SDL.h"
#include "SDL_test.h"
/* ================= Test Case Implementation ================== */
/* Helper functions */
/* !
* \brief Private helper t... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_rect.c | C | apache-2.0 | 67,080 |
/**
* Original code: automated SDL platform test written by Edgar Simo "bobbens"
* Extended and extensively updated by aschiffler at ferzkopp dot net
*/
#include <stdio.h>
#include "SDL.h"
#include "SDL_test.h"
/* ================= Test Case Implementation ================== */
#define TESTRENDER_SCREEN_W 80... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_render.c | C | apache-2.0 | 34,596 |
/**
* Automated SDL_RWops test.
*
* Original code written by Edgar Simo "bobbens"
* Ported by Markus Kauppila (markus.kauppila@gmail.com)
* Updated and extended for SDL_test by aschiffler at ferzkopp dot net
*
* Released under Public Domain.
*/
/* quiet windows compiler warnings */
#define _CRT_SECURE_NO_WARN... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_rwops.c | C | apache-2.0 | 26,863 |
/**
* SDL_test test suite
*/
#include <limits.h>
/* Visual Studio 2008 doesn't have stdint.h */
#if defined(_MSC_VER) && _MSC_VER <= 1500
#define UINT8_MAX _UI8_MAX
#define UINT16_MAX _UI16_MAX
#define UINT32_MAX _UI32_MAX
#define INT64_MIN _I64_MIN
#define INT64_MAX _I64_MAX
#define UINT64_MAX _UI64_MAX
... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_sdltest.c | C | apache-2.0 | 60,393 |
/**
* Standard C library routine test suite
*/
#include <stdio.h>
#include "SDL.h"
#include "SDL_test.h"
/* Test case functions */
/**
* @brief Call to SDL_strlcpy
*/
#undef SDL_strlcpy
int
stdlib_strlcpy(void *arg)
{
size_t result;
char text[1024];
const char *expected;
result = SDL_strlcpy(text, "fo... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_stdlib.c | C | apache-2.0 | 12,593 |
/**
* Reference to all test suites.
*
*/
#ifndef _testsuites_h
#define _testsuites_h
#include "SDL_test.h"
/* Test collections */
extern SDLTest_TestSuiteReference audioTestSuite;
extern SDLTest_TestSuiteReference clipboardTestSuite;
extern SDLTest_TestSuiteReference eventsTestSuite;
extern SDLTest_TestSuiteRefer... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_suites.h | C | apache-2.0 | 1,535 |
/**
* Original code: automated SDL surface test written by Edgar Simo "bobbens"
* Adapted/rewritten for test lib by Andreas Schiffler
*/
/* Supress C4996 VS compiler warnings for unlink() */
#define _CRT_SECURE_NO_DEPRECATE
#define _CRT_NONSTDC_NO_DEPRECATE
#include <stdio.h>
#ifndef _MSC_VER
#include <unistd.h>
#... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_surface.c | C | apache-2.0 | 20,674 |
/**
* SysWM test suite
*/
#include <stdio.h>
#include "SDL.h"
#include "SDL_syswm.h"
#include "SDL_test.h"
/* Test case functions */
/**
* @brief Call to SDL_GetWindowWMInfo
*/
int
syswm_getWindowWMInfo(void *arg)
{
SDL_bool result;
SDL_Window *window;
SDL_SysWMinfo info;
window = SDL_CreateWindow("", ... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_syswm.c | C | apache-2.0 | 1,489 |
/**
* Timer test suite
*/
#include <stdio.h>
#include "SDL.h"
#include "SDL_test.h"
/* Flag indicating if the param should be checked */
int _paramCheck = 0;
/* Userdata value to check */
int _paramValue = 0;
/* Flag indicating that the callback was called */
int _timerCallbackCalled = 0;
/* Fixture */
void
_t... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_timer.c | C | apache-2.0 | 6,351 |
/**
* Video test suite
*/
#include <stdio.h>
#include <string.h>
/* Visual Studio 2008 doesn't have stdint.h */
#if defined(_MSC_VER) && _MSC_VER <= 1500
#define UINT8_MAX ~(Uint8)0
#define UINT16_MAX ~(Uint16)0
#define UINT32_MAX ~(Uint32)0
#define UINT64_MAX ~(Uint64)0
#else
#include <stdint.h>
#endif
#incl... | YifuLiu/AliOS-Things | components/SDL2/test/testautomation_video.c | C | apache-2.0 | 65,630 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/testbounds.c | C | apache-2.0 | 1,163 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/testcustomcursor.c | C | apache-2.0 | 6,778 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/testdisplayinfo.c | C | apache-2.0 | 3,002 |
/*
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
... | YifuLiu/AliOS-Things | components/SDL2/test/testdraw2.c | C | apache-2.0 | 9,125 |