yuanhecai
50d8642fa3
Add optimiztion function with LSX in LoongArch
...
1. yuv420_rgb24_lsx
1. yuv420_rgba_lsx
2. yuv420_bgra_lsx
3. yuv420_argb_lsx
4. yuv420_abgr_lsx
2022-06-06 08:49:09 -07:00
Ivan Le Lann
e4b5afa576
fix unused variable depending on YUV format
2022-05-21 09:46:46 -07:00
Sylvain
bf38fd4679
YUV: fix invalid read on last line when converting from SDL_PIXELFORMAT_YUY2 (see bug #4841 )
2022-03-25 11:52:50 +01:00
Sam Lantinga
8589134f16
Fixed potential buffer overflow in YUV conversion
...
Fixes https://github.com/libsdl-org/SDL/issues/5043
2021-11-30 10:23:21 -08:00
Sylvain
50f969c1b2
Fixed bug #4841 - Out of bounds read (by 1 byte) in yuvnv12_rgb24_sseu
2021-10-17 22:02:19 +02:00
Sam Lantinga
b5e3d264f2
Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds
...
Protected more code with #ifdefs to reduce the size of minimal shared library builds
2020-01-23 01:00:52 -08:00
Ryan C. Gordon
5a8ecf4e79
yuv: Patched to make static analysis happy (warned about unused variable).
2018-06-25 13:14:52 -04:00
Ryan C. Gordon
2ea4419a57
yuv: patched to compile.
2018-02-17 20:18:48 -05:00
Ryan C. Gordon
7c0c2c22a8
yuv: fixed variable declaration shadowing warnings.
...
Fixes Bugzilla #4062 .
2018-02-17 20:10:13 -05:00
Sam Lantinga
90e72bf4e2
Fixed ISO C99 compatibility
...
SDL now builds with gcc 7.2 with the following command line options:
-Wall -pedantic-errors -Wno-deprecated-declarations -Wno-overlength-strings --std=c99
2018-01-30 18:08:34 -08:00
Sam Lantinga
14452e9550
Fixed typos (thanks Martin!)
2017-12-04 20:21:52 -08:00
Sam Lantinga
3ac8adbae3
Fixed bug 3973 - Include of stdint is needed to build on linux, mingw and possibly android
...
Stuart Axon
https://discourse.libsdl.org/t/stdint-h-removed/23426
https://discourse.libsdl.org/t/debuild-fails-to-build-the-last-few-days/23429/4
Currently SDL2 is not building in Linux (x86 and ARM), Android and MingW because include stdint.h has been removed from yuv_rgb.h
2017-11-20 00:06:37 -08:00
Sam Lantinga
cd89efb8b9
Fixed building yuv_rgb.h when stdint.h isn't available (thanks Ozkan!)
2017-11-17 10:55:58 -08:00
Sam Lantinga
a6a4e27ae8
Updated SDL's YUV support, many thanks to Adrien Descamps
...
New functions get and set the YUV colorspace conversion mode:
SDL_SetYUVConversionMode()
SDL_GetYUVConversionMode()
SDL_GetYUVConversionModeForResolution()
SDL_ConvertPixels() converts between all supported RGB and YUV formats, with SSE acceleration for converting from planar YUV formats (YV12, NV12, etc) to common RGB/RGBA formats.
Added a new test program, testyuv, to verify correctness and speed of YUV conversion functionality.
2017-11-12 22:51:12 -08:00