summaryrefslogtreecommitdiffstats
path: root/libavdevice
Commit message (Collapse)AuthorAgeFilesLines
* build: miscellaneous cosmeticsDiego Biurrun2016-04-071-2/+2
| | | | | | Restore alphabetical order in lists, break overly long lines, do some prettyprinting, add some explanatory section comments, group parts together that belong together logically.
* testprogs: Clean up #includesDiego Biurrun2016-03-241-1/+1
|
* timefilter-test: Only compile timefilter-test if JACK is enabledDiego Biurrun2016-03-231-1/+1
|
* lavf: replace AVStream.codec with AVStream.codecparAnton Khirnov2016-02-2317-102/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, AVStream contains an embedded AVCodecContext instance, which is used by demuxers to export stream parameters to the caller and by muxers to receive stream parameters from the caller. It is also used internally as the codec context that is passed to parsers. In addition, it is also widely used by the callers as the decoding (when demuxer) or encoding (when muxing) context, though this has been officially discouraged since Libav 11. There are multiple important problems with this approach: - the fields in AVCodecContext are in general one of * stream parameters * codec options * codec state However, it's not clear which ones are which. It is consequently unclear which fields are a demuxer allowed to set or a muxer allowed to read. This leads to erratic behaviour depending on whether decoding or encoding is being performed or not (and whether it uses the AVStream embedded codec context). - various synchronization issues arising from the fact that the same context is used by several different APIs (muxers/demuxers, parsers, bitstream filters and encoders/decoders) simultaneously, with there being no clear rules for who can modify what and the different processes being typically delayed with respect to each other. - avformat_find_stream_info() making it necessary to support opening and closing a single codec context multiple times, thus complicating the semantics of freeing various allocated objects in the codec context. Those problems are resolved by replacing the AVStream embedded codec context with a newly added AVCodecParameters instance, which stores only the stream parameters exported by the demuxers or read by the muxers.
* avfoundation: Simple captureAlexandre Lision2015-11-264-1/+689
| | | | | | | Originally based on the capture written by Thilo Borgmann <thilo.borgmann@mail.de>. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avpacket: Replace av_free_packet with av_packet_unrefLuca Barbato2015-10-267-8/+8
| | | | | | | `av_packet_unref` matches the AVFrame ref-counted API and can be used as a drop in replacement. Deprecate `av_free_packet`.
* Replace any remaining avpicture function with imgutilsVittorio Giovara2015-10-212-3/+5
| | | | | | avpicture_get_size() -> av_image_get_buffer_size() Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Bump major versions of all librariesVittorio Giovara2015-08-281-2/+2
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Drop deprecated destruct_packet related functionsVittorio Giovara2015-08-281-12/+0
| | | | Deprecated in 10/2012.
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-272-2/+2
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Deprecate avctx.coded_frameVittorio Giovara2015-07-201-0/+8
| | | | | | | | | | | | | | | | | The rationale is that coded_frame was only used to communicate key_frame, pict_type and quality to the caller, as well as a few other random fields, in a non predictable, let alone consistent way. There was agreement that there was no use case for coded_frame, as it is a full-sized AVFrame container used for just 2-3 int-sized properties, which shouldn't even belong into the AVCodecContext in the first place. The appropriate AVPacket flag can be used instead of key_frame, while quality is exported with the new AVPacketSideData quality factor. There is no replacement for the other fields as they were unreliable, mishandled or just not used at all. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* fbdev: Support the RGB565 colour space.Dan Flett2015-07-111-0/+1
| | | | | | Tested on a Raspberry Pi. Signed-off-by: Martin Storsjö <martin@martin.st>
* xcbgrab: Explicitly include xcb/shape.hLuca Barbato2015-07-061-0/+1
| | | | Found-By: Cheristheus
* lavd: Add library identifierVittorio Giovara2015-07-011-1/+3
|
* jack: Check memory allocationVittorio Giovara2015-06-081-0/+4
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1292520
* xcbgrab: Accept geometries matching the screen sizeNicolas George2015-05-061-2/+2
| | | | Introduced in e8c4db0d4d077.
* xcbgrab: Validate the capture areaLuca Barbato2015-04-301-2/+11
| | | | | | And notify why the capture is impossible. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* xcbgrab: Do not assume the non shm image data is always availableLuca Barbato2015-04-301-2/+14
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jack: Check memory allocationFederico Tomassetti2015-04-191-0/+2
| | | | | Bug-Id: CID 1265785 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Replace av_dlog with normal av_log at trace levelVittorio Giovara2015-04-192-3/+3
| | | | This applies to every library where performance is not critical.
* libdc1394: Unbreak build after c201069faMichael Kostylev2015-04-111-10/+10
|
* vfwcap: Unbreak building after c201069faMartin Storsjö2015-04-111-3/+6
| | | | | | These headers can't be included in any arbitrary order. Signed-off-by: Martin Storsjö <martin@martin.st>
* avdevice: Apply a more consistent file naming schemeDiego Biurrun2015-04-0914-29/+27
|
* avdevice: Add missing header for NULL_IF_CONFIG_SMALLDiego Biurrun2015-04-0910-19/+40
| | | | Also reshuffle headers into canonical order where appropriate.
* xcbgrab: Check av_strdup() allocationVittorio Giovara2015-03-121-0/+2
| | | | Bug-Id: CID 1274038
* xcbgrab: Free the host string after checking the connectionLuca Barbato2015-03-081-3/+6
| | | | | | | Prevent an use after free in the error message. Bug-Id: CID 1274040 CC: libav-stable@libav.org
* v4l2: Add support for h264Luca Barbato2015-03-021-1/+6
|
* v4l2: Use the codec descriptor facilityLuca Barbato2015-03-021-2/+2
| | | | | The encoder or decoder might be disabled but the format would be supported for at least remuxing.
* x11grab: Unbreak buildingChristian Hujer2015-02-281-2/+2
| | | | | | | The correct macro is DEC not D. Broken in b31328d008985f87f0a7c83c700847cef1a4f08c Signed-off-by: Anton Khirnov <anton@khirnov.net>
* xcbgrab: Unbreak parsing filename optionsLuca Barbato2015-02-241-6/+14
| | | | | | CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* xcbgrab: Provide better names for the y and x optionLuca Barbato2015-02-242-0/+4
| | | | | | | | | | Incidentally `-y` also collides with avconv global options. Update x11grab to match and document the option. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* bktr: Use av_strerror and propagate error codesHimangi Saraogi2015-02-151-10/+22
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* xcbgrab: Use the correct geometry for the region highlightDaniel Moran2015-02-151-1/+1
| | | | | | | The feature is implemented using a transparent window and drawing inside it a rectangle filling the whole window to highlight it. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* xcbgrab: Correctly make shm optionalLuca Barbato2015-02-151-4/+4
| | | | | The segment field in the struct has to be conditionally build as well.
* libdc1394: Add support for MONO8 (gray) video modeClay McClure2015-01-281-0/+1
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* xcbgrab: Move NULL check before pointer dereferenceVittorio Giovara2014-12-181-1/+5
| | | | Bug-Id: CID 1254668
* xcbgrab: Support empty filename string correctlyLuca Barbato2014-12-101-2/+2
| | | | | Bug-Id: CID 1254664 CC: libav-stable@libav.org
* v4l2: Unify one instance of reading/storing errnoMartin Storsjö2014-11-111-3/+3
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* v4l2: Preserve errno valuesLuca Barbato2014-11-091-16/+23
| | | | av_log usually resets it.
* v4l2: Use av_strerrorTristan Matthews2014-11-091-15/+34
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jack: Use av_strerrorLuca Barbato2014-10-291-1/+4
|
* fbdev: Use av_strerrorLuca Barbato2014-10-291-6/+14
|
* lavd: fix building x11grab after a6674d2Anton Khirnov2014-10-281-1/+1
|
* xcbgrab: XCB-based screen captureLuca Barbato2014-10-264-2/+659
| | | | Matches the x11grab screen capture by features.
* oss_audio: use a macro to simplify ioctl() error checkingTimothy Gu2014-10-181-14/+17
| | | | | | | | | Also add a note about SNDCTL_DSP_GETFMTS which may fail even if OSS is available. CC: libav-stable@libav.org Bug-Id: CID 1238992 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* x11grab: Check the XQueryPointer return valueAntonio Ospite2014-10-041-8/+10
| | | | | | | | | | | | | | The paint_mouse_pointer() code uses XFixes to retrieve the cursor coordinates, but XFixes gives no information about which screen the pointer is on; this results in always drawing the cursor on the captured screen even if the mouse pointer was on another screen. For example, when capturing from screen 1 (i.e. -f x11grab -i ":0.1") the cursor was being drawn in the captured image even when the mouse pointer was actually on screen 0, which is wrong and visually confusing. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* x11grab: Check XFixesGetCursorImage return valueLuca Barbato2014-10-041-0/+2
| | | | | | | It could return NULL if the cursor is outside the screen, the connection timed out or the system is out of memory. CC: libav-stable@libav.org
* x11grab: Check for XFixes availability at runtimeLuca Barbato2014-10-041-0/+19
|
* x11grab: Refactor pixel format parsingLuca Barbato2014-09-031-60/+57
|
* x11grab: Fallback to normal XImage if SHM is not supportedLuca Barbato2014-09-031-26/+34
|
OpenPOWER on IntegriCloud