aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/sdl2.c
Commit message (Collapse)AuthorAgeFilesLines
* avdevice: remove deprecated FF_API_SDL2_DEVICEJames Almer2025-03-281-379/+0
| | | | | | Deprecated since 2024-02-28. Signed-off-by: James Almer <jamrial@gmail.com>
* avdevice/sdl2: Suppress macro redefinition warningAndreas Rheinhardt2025-03-211-0/+2
| | | | | | | | | | | | SDL2's headers #define HAVE_PTHREAD_SETNAME_NP (to one here); we also have a config define which leads the compiler to warn about this when the values are distinct (as they are here). Suppress this warning by including config.h before SDL.h. The latter will then redefine our define which doesn't matter and which does not lead to warnings because compilers don't warn about system headers by default (depending upon -Wsystem-headers). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* libavdevice: Improve example in deprecation message for opengl and sdlAlexander Strasser2024-07-141-1/+1
| | | | | | | | | | | | | | | | | When piping ffmpeg into ffplay both programs write a status line in the terminal. That causes flickering and invisibility of one or the other status line. As compromise set ffplay log level to warning, so it doesn't show the status line. The user is usually testing ffmpeg command lines and want's a preview of the result. This way the user can see the ffmpeg output and still see errors and warnings from ffplay, should they occur. Additionally set PTS to zero in ffplay to lessen the delay until the frames are displayed. Without it delay is quite observable when e.g. live capturing with low frame rates.
* avutil/common: Don't auto-include mem.hAndreas Rheinhardt2024-03-311-4/+1
| | | | | | | | | | | There are lots of files that don't need it: The number of object files that actually need it went down from 2011 to 884 here. Keep it for external users in order to not cause breakages. Also improve the other headers a bit while just at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avdevice: deprecate sdl outdevJ. Dekker2024-02-281-0/+10
| | | | Signed-off-by: J. Dekker <jdek@itanimul.li>
* Revert "all: Don't set AVClass.item_name to its default value"Anton Khirnov2024-01-201-0/+1
| | | | | | | Some callers assume that item_name is always set, so this may be considered an API break. This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.
* all: Don't set AVClass.item_name to its default valueAndreas Rheinhardt2023-12-221-1/+0
| | | | | | | | Unnecessary since acf63d5350adeae551d412db699f8ca03f7e76b9; also avoids relocations. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat/avformat: Move AVOutputFormat internals out of public headerAndreas Rheinhardt2023-02-091-7/+8
| | | | | | | | | | | | | | This commit does for AVOutputFormat what commit 20f972701806be20a77f808db332d9489343bb78 did for AVCodec: It adds a new type FFOutputFormat, moves all the internals of AVOutputFormat to it and adds a now reduced AVOutputFormat as first member. This does not affect/improve extensibility of both public or private fields for muxers (it is still a mess due to lavd). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avdevice: Constify all devicesAndreas Rheinhardt2021-04-271-1/+1
| | | | | | | This is possible now that the next-API is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avdevice/sdl2: add option to set window positionDave Rice2018-10-231-4/+8
| | | | | | | | | | | | | | | | Allows arrangement of multiple windows such as: ffmpeg -re -f lavfi -i mandelbrot -f sdl -window_x 1 -window_y 1 mandelbrot -vf waveform,format=yuv420p -f sdl -window_x 641 -window_y 1 waveform -vf vectorscope,format=yuv420p -f sdl -window_x 1 -window_y 481 vectorscop Some changes by Marton Balint: - allow negative position (partially or fully out-of-screen positions seem to be sanitized automatically by SDL (or my WM?), so no special handling is needed) - only show window after the position is set - do not use resizable and borderless flags at the same time, that caused issues in ffplay - add docs Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/sdl2 : add option to define if the window quit action is availableMartin Vignali2018-05-191-1/+3
|
* avdevice/sdl2output : fix setting window_sizeMartin Vignali2018-05-191-4/+2
|
* avdevice: migrate to AVFormatContext->urlMarton Balint2018-01-281-1/+1
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* lavd/sdl2: add sdl aliasJosh de Kock2016-09-251-1/+1
| | | | This commit also adds an sdl alias for the configure script.
* lavd/sdl2: remove unused codeJosh de Kock2016-09-251-22/+5
|
* lavd/sdl2: Fix 32bit rgb formats on little-endian hardware.Carl Eugen Hoyos2016-09-241-8/+13
|
* lavd/sdl2: Move unsupported formats SDL_PIXELFORMAT_xxx888 updwards.Carl Eugen Hoyos2016-09-241-2/+2
| | | | There is a paragraph for unsupported SDL formats.
* lavd: Add SDL2 output deviceJosh de Kock2016-09-241-0/+377
Acked-by: Michael Niedermayer Signed-off-by: Josh de Kock <josh@itanimul.li>