Timothy Gu
228eb6708b
sdl: Remove AVPicture usage
9 years ago
Lukasz Marek
f607767d93
lavd: add categories to device implementations
...
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
11 years ago
Lukasz Marek
20fe316e47
lavd/sdl: reset context variables after destroy
...
SDL device reports double free or hangs when quiting.
Reseting variables solves the issue.
The issue is caused by double call of write_trailer callback.
It is called for the first time in write_packet when quit flag is set.
Second call comes from ffmpeg.c or may come from other client application.
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Lukasz Marek
18c3313e65
lavd/sdl: make waiting spurious wakeup aware
...
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Stefano Sabatini
7043311969
lavd/sdl: add delay when no events are found in the event queue
...
Avoid busy loops and decrease CPU usage.
Suggested-By: Roger Pack
11 years ago
Stefano Sabatini
35349bbb97
lavd/sdl: apply misc cosmetics to options
11 years ago
Stefano Sabatini
b23dea27fd
lavd/sdl: allow to change window size
11 years ago
Stefano Sabatini
0464d272ff
lavd/sdl: move compute_overlay_rect() before event_thread()
...
It will be used in event_thread() in a pending patch.
11 years ago
Stefano Sabatini
7467b4f71b
lavd/sdl: factorize overlay rect size in a separate function
11 years ago
Stefano Sabatini
7de3b1394b
lavd/sdl: add event handler thread
...
SDL_Init() is called on the event handler thread, as required by SDL in
Windows to avoid deadlocks as discovered by Roger Pack.
Fix trac ticket #1743 and #1744 .
11 years ago
Stefano Sabatini
25c675b5a7
lavd/sdl: do not manually free window_title and icon_title fields
...
They are automatically freed when calling av_write_trailer(). Simplify.
11 years ago
dronus
fdca977a22
libavdevice sdl: added window_fullscreen option to switch SDL output into fullscreen mode
12 years ago
Stefano Sabatini
09cc23e0f7
lavd/sdl: decrease debug info notice log level from AV_LOG_INFO to VERBOSE
...
Decrease log spam.
12 years ago
Stefano Sabatini
a7c7b34d29
lavd/sdl: remove trailing dot in messages
...
This is consistent with the apparently prevailing convention.
12 years ago
Stefano Sabatini
7e17389c1e
lavd/sdl: use verb in options help message
...
An help message tells what an option does, not what its argument is.
13 years ago
Nicolas George
4adf5dfadb
sdl: fix aspect ratio computations.
...
The rounding was wrong due to incorrect ue of floats,
changed to rationals and av_rescale.
The results were not properly passed to SDL.
13 years ago
Nicolas George
3ff6b1a2b3
sdl: fix overlay size.
...
The size passed to SDL_CreateYUVOverlay is the size
of the video in pixels, it must not take the aspect ratio
into account.
13 years ago
Nicolas George
2f9907be3e
sdl: add AVFMT_VARIABLE_FPS and AVFMT_NOTIMESTAMPS.
...
It allows vsync to be automatically set to passthrough.
13 years ago
Nicolas George
0ef4924db4
sdl: use AV_OPT_TYPE_IMAGE_SIZE.
13 years ago
Reimar Döffinger
91e7e6b721
Make sdl_overlay_pix_fmt_map static const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Clément Bœsch
539399d4d1
AVOptions: rename remaining FF_OPT_TYPE_* to AV_OPT_TYPE_*.
13 years ago
Stefano Sabatini
e844abc498
sdl: align option fields after last commit
14 years ago
Stefano Sabatini
0d0fdb0ad5
sdl: use the filename for defining the window title, if not specified
...
This allows a more efficient use of the commandline.
14 years ago
Stefano Sabatini
b2a6f25c67
lavdev: add SDL output device
14 years ago