test/testyuv_cvt.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 27 Jan 2018 12:05:26 -0800
changeset 11836 a42b155124a3
parent 11811 5d94cb6b24d3
child 12503 806492103856
permissions -rw-r--r--
Fixed bug 4065 - SDL_wave.c fail to compile in armeabi with ndk r16b

Sylvain

armeabi is almost deprecated for android-ndk higher that r13b.
either it doesn't compile (ICE), or it executes wrongly (using long long for instance).

android people advices to use armeabi-v7a (or use r13b).
slouken@11702
     1
/*
slouken@11811
     2
  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
slouken@11702
     3
slouken@11702
     4
  This software is provided 'as-is', without any express or implied
slouken@11702
     5
  warranty.  In no event will the authors be held liable for any damages
slouken@11702
     6
  arising from the use of this software.
slouken@11702
     7
slouken@11702
     8
  Permission is granted to anyone to use this software for any purpose,
slouken@11702
     9
  including commercial applications, and to alter it and redistribute it
slouken@11702
    10
  freely.
slouken@11702
    11
*/
slouken@11702
    12
slouken@11702
    13
/* These functions are designed for testing correctness, not for speed */
slouken@11702
    14
slouken@11702
    15
extern SDL_bool ConvertRGBtoYUV(Uint32 format, Uint8 *src, int pitch, Uint8 *out, int w, int h, SDL_YUV_CONVERSION_MODE mode, int monochrome, int luminance);
slouken@11702
    16
extern int CalculateYUVPitch(Uint32 format, int width);