summaryrefslogtreecommitdiff
path: root/libavdevice
Commit message (Collapse)AuthorAgeFilesLines
* Add Windows resource file support for shared librariesJames Almer2013-12-052-0/+58
| | | | | | | | | | | | | | | | | | Originally written by James Almer <jamrial@gmail.com> With the following contributions by Timothy Gu <timothygu99@gmail.com> * Use descriptions of libraries from the pkg-config file generation function * Use "FFmpeg Project" as CompanyName (suggested by Alexander Strasser) * Use "FFmpeg" for ProductName as MSDN says "name of the product with which the file is distributed" [1]. * Use FFmpeg's version (N-xxxxx-gxxxxxxx) for ProductVersion per MSDN [1]. * Only build the .rc files when --enable-small is not enabled. [1] http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058.aspx Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/pulse_audio_enc: add buffer size control optionsLukasz Marek2013-11-272-1/+18
| | | | | | | Add options to control the size of the PulseAudio buffer. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/sdl: add delay when no events are found in the event queueStefano Sabatini2013-11-261-2/+6
| | | | | | Avoid busy loops and decrease CPU usage. Suggested-By: Roger Pack
* lavd/sdl: apply misc cosmetics to optionsStefano Sabatini2013-11-261-4/+4
|
* lavd/sdl: allow to change window sizeStefano Sabatini2013-11-261-4/+23
|
* lavd/sdl: move compute_overlay_rect() before event_thread()Stefano Sabatini2013-11-261-40/+40
| | | | It will be used in event_thread() in a pending patch.
* lavd/sdl: factorize overlay rect size in a separate functionStefano Sabatini2013-11-261-35/+49
|
* lavd/sdl: add event handler threadStefano Sabatini2013-11-262-28/+128
| | | | | | | 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.
* lavd/sdl: do not manually free window_title and icon_title fieldsStefano Sabatini2013-11-241-3/+0
| | | | They are automatically freed when calling av_write_trailer(). Simplify.
* lavd/xv: free resources on errorsLukasz Marek2013-11-151-20/+33
| | | | | | | xv_write_header callback leave not freed resources on errors. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/xv: add more supported formatsLukasz Marek2013-11-151-13/+39
| | | | | | | | | Add support for following pixel formats: - AV_PIX_FMT_UYVY422 - AV_PIX_FMT_YUYV422 Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/xv: simplify write_packetLukasz Marek2013-11-151-14/+8
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/xv: fix memory leakLukasz Marek2013-11-131-0/+1
| | | | | | Results of XvQueryAdaptors have to be freed with XvFreeAdaptorInfo. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse: add ff_ prefix and fix param typeLukasz Marek2013-11-044-6/+6
| | | | | | | Add ff_ prefix for internal API function. Change type of param from int into enum AVCodecID as it is more specific. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse_audio_enc: fix flush return codeLukasz Marek2013-11-041-1/+1
| | | | | | Successful flushing is reported by returning 1 instead of 0. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/lavfi: support unknown channel layouts.Nicolas George2013-11-031-0/+4
|
* lavd/alsa: add stream validationLukasz Marek2013-11-031-1/+6
| | | | | | | | Don't trust provided streams. Return with error when stream count is not 1 or provided stream is not an audio stream. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/alsa: fix timestamp calculationLukasz Marek2013-11-032-1/+6
| | | | | | | | | Current implementation didn't include duration of last processed packet. Device may return negative timestamps without this correction. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/xv: free graphics contextLukasz Marek2013-11-011-0/+1
| | | | | | | | Valgrind detects mem leak from XCreateGC. Free it with XFreeGC. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* timefilter: Fix typo in allocation failure messageDerek Buitenhuis2013-10-291-1/+1
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avdevice/pulse_audio_enc: remove double ;Michael Niedermayer2013-10-281-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/fbdev_enc: remove unused variablesLukasz Marek2013-10-271-3/+0
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/fbdev_enc: more stream validation restrictiveLukasz Marek2013-10-271-18/+4
| | | | | | | So far fbdev_enc device picked up first video stream and ignored others. It is required to provide exactly one video stream now. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse_audio_enc: more stream validation restrictiveLukasz Marek2013-10-271-16/+4
| | | | | | | So far pulse device picked up first audio stream and ignored others. It is required to provide exactly one audio stream now. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd:pulse_audio_enc: fix array compared against 0Lukasz Marek2013-10-271-1/+1
| | | | | | fixes CID 1113222 Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse_audio_enc: fix timestamp calculationLukasz Marek2013-10-271-1/+15
| | | | | | | | Current implementation didn't include duration of last processed packet. Also remove access to st->cur_dts and replace with pkt->pts. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* timefilter: Handle memory allocation failureDerek Buitenhuis2013-10-274-0/+16
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* lavd/pulse_audio_enc: avoid vars in for()Lukasz Marek2013-10-261-1/+2
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse_audio_enc: add another default to stream nameLukasz Marek2013-10-261-2/+6
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/fbdev_common: fix compilation with older kernelsIngo Brückl2013-10-241-0/+1
| | | | | | | | This will avoid errors due to conflicting declarations with linux kernels prior to 2.6.30. Reviewed-by: Lukasz M <lukasz.m.luki@gmail.com> Signed-off-by: Ingo Brückl <ib@wupperonline.de>
* lavd/x11grab: Support AV_PIX_FMT_PAL8.Carl Eugen Hoyos2013-10-241-0/+24
| | | | Fixes ticket #3068.
* avdevice/fbdev_enc: avoid declaring variables in for()Michael Niedermayer2013-10-241-2/+4
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/fbdev: move common code to separate fileLukasz Marek2013-10-245-72/+98
| | | | | | | Move common fbdev dec/enc for separate file. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd: rename fbdev.c into fbdev_dec.cLukasz Marek2013-10-242-1/+1
| | | | | | | Rename existing fbdev.c to make it a more meaningful name. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd: add fbdev output deviceLukasz Marek2013-10-244-2/+256
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/pulse_audio_enc: add support for flushingLukasz Marek2013-10-201-4/+10
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/pulse_audio_enc: fix error checkLukasz Marek2013-10-181-1/+1
| | | | | | | Error check should be done by checking negative value, not non-zero. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/fbdev: use av_str2err() macro for printing error messagesStefano Sabatini2013-10-181-5/+5
| | | | | In particular fix wrong strerror(ret) with a negative value, and avoid the use of non thread-safe strerror().
* lavd/pulse_audio_dec: apply cosmetic changesLukasz Marek2013-10-181-7/+7
| | | | | | | | In particular, fix punctuation in docs and make option help messages grammatically consistent. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavd/fbdev: pass proper memory map lengthLukasz Marek2013-10-181-1/+1
| | | | | | | | fbdev->data was allocated with size fbdev->fixinfo.smem_len, release data in fbdev_read_close() using the same size. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* avdevice/pulse_audio_enc: fix stream indexLukasz Marek2013-10-121-1/+1
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/xv.c: Include XShm.h before Xvlib.h.Carl Eugen Hoyos2013-10-091-1/+1
| | | | This may fix compilation with libxv 1.0.4.
* Add pulse_audio_common.h to skipheaders.Carl Eugen Hoyos2013-10-091-0/+1
| | | | Fixes an error when running make checkheaders.
* lavd/pulse: move common code to separate fileLukasz Marek2013-10-085-40/+79
| | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/pulse: rename pulse.c into pulse_audio_dec.cLukasz Marek2013-10-082-1/+1
| | | | | | | | This make name of the file more specific as there is also encoder implementation. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd: pulse audio encoderLukasz Marek2013-10-084-2/+174
| | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avdevice/v4l: remove duplicate includeMichael Niedermayer2013-09-211-1/+0
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/v4l2: do not fail when VIDIOC_ENUMSTD returns EINVAL without a valid matchmrlika2013-09-171-0/+4
| | | | | | | | | | | | | | | | With some (buggy) drivers, the VIDIOC_G_STD ioctl returns a std_id that cannot be matched with any of the enumerated v4l2_standard structures (for example std_id = 0 or std_id = 0xffffff). Do not fail when we reach the end of the enumeration without a valid match. Fixes ticket #2370 Note: This commit message has been modified by Giorgio Vazzana, the original commit message was: "Fixed regression for mandatory VIDIOC_ENUMSTD support by v4l2" Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/v4l2: Improve debug messageGiorgio Vazzana2013-09-081-5/+5
| | | | | | | In particular, print the standard supported by the selected input. Additionally, use PRIx64 everywhere when printing standards. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Read h264 headers from v4l2 to allow stream-copying.Carl Eugen Hoyos2013-09-011-0/+3
| | | | | Fixes ticket #2882. Analyzed and tested by William C Bonner.