summaryrefslogtreecommitdiff
path: root/libavdevice/avfoundation.m
Commit message (Collapse)AuthorAgeFilesLines
* avdevice/avfoundation: convert to new channel layout-APIJames Almer2022-11-081-2/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavd/avfoundation: Fix mixed declaration and codeThilo Borgmann2022-02-221-1/+2
|
* avdevice/avfoundation: check strdupZhao Zhili2022-02-221-2/+10
|
* avdevice/avfoundation: fix memleakZhao Zhili2022-02-221-4/+6
|
* libavdevice/avfoundation.m: fix potential unreleased lock issueChengfeng Ye2021-09-171-2/+15
| | | | | | | | | The problem here is that the lock ctx->frame_lock will become an unreleased lock if the program returns at patched lines. Bug tracker link: https://trac.ffmpeg.org/ticket/9386\#ticket Signed-off-by: Chengfeng Ye <cyeaa@connect.ust.hk>
* libavdevice/avfoundation.m: fix protential unreleased lock issueChengfeng Ye2021-09-171-0/+3
| | | | | | | | | | The problem here is that the lock ctx->frame_lock will become an unreleased lock if the program returns at line 697, line 735 and line744. Bug tracker link: https://trac.ffmpeg.org/ticket/9385\#ticket Signed-off-by: Chengfeng Ye <cyeaa@connect.ust.hk>
* avcodec/avcodec: Stop including channel_layout.h in avcodec.hAndreas Rheinhardt2021-07-221-0/+1
| | | | | | Also include channel_layout.h directly wherever used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avdevice/avfoundation: remove first_audio_pts and first_ptsSteven Liu2021-07-191-4/+0
| | | | | | Because these two member of AVFContext not be used. Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
* 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>
* avfoundation: Fix building on iOSMartin Storsjö2020-04-301-0/+4
| | | | | | | | | | | | Apparently the changes from 3c9185bf3a83395d12a987f626dbdb985eac4320 aren't enough; even with that in place, I got errors like this when trying to build for iOS: src/libavdevice/avfoundation.m:135:5: error: 'AVCaptureDeviceTransportControlsPlaybackMode' is unavailable: not available on iOS AVCaptureDeviceTransportControlsPlaybackMode observed_mode; ^
* lavd/avfoundation.m: Do not use transport controls for screen capture devices.Thilo Borgmann2020-04-221-9/+11
|
* lavd/avfoundation.m: Remove transport controls for iOS.Thilo Borgmann2020-04-221-2/+10
|
* lavd/avfoundation: Add basic transport control observation for capable devices.Thilo Borgmann2020-03-161-8/+59
|
* lavd/avfoundation.m: Add an option to drop late frames.Thilo Borgmann2020-02-071-1/+3
| | | | Retains current behaviour by the default value.
* libavdevice: Update the class name as uniform styleJun Zhao2019-08-151-1/+1
| | | | | | | Update the class name to uniform indev/outdev style. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavd/avfoundation: Set correct default value 0 for option capture_raw_data.Thilo Borgmann2019-07-081-1/+1
|
* lavd/avfoundation: Reindent after last commit.Thilo Borgmann2019-07-081-54/+54
|
* lavd/avfoundation: Support muxed type of devices including raw muxed data ↵Thilo Borgmann2019-07-081-9/+80
| | | | capture.
* lavd/avfoundation: Refine some log messages.Thilo Borgmann2019-07-081-4/+4
|
* lavd/avfoundation: Change binary Options to boolean type.Thilo Borgmann2019-07-081-5/+3
|
* lavd/avfoundation: Remove useless index increment.Thilo Borgmann2019-07-081-1/+0
|
* lavd/avfoundation: Fix skewed video outputRick Kern2018-09-141-7/+49
| | | | | | | | Fixes ticket #5654. The linesize can be greater than the minimum required. This copies the frame taking linesize into account. Signed-off-by: Rick Kern <kernrj@gmail.com>
* avdevice: migrate to AVFormatContext->urlMarton Balint2018-01-281-1/+1
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice: Fix max value of AV_OPT_TYPE_VIDEO_RATEMichael Niedermayer2016-06-091-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavd/avfoundation: use AVCodecParametersRick Kern2016-05-051-13/+13
| | | | | | Fixes "Could not find codec parameters for stream" error (#5494) Signed-off-by: Rick Kern <kernrj@gmail.com>
* avdevice/avfoundation: Fix occured typoMichael Niedermayer2015-03-301-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavdevice/avfoundation: use pts/dts provided by the CMSampleBuffer APIMatthieu Bouron2015-03-291-6/+15
| | | | | Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavdevice/avfoundation: add capture_mouse_clicks optionMatthieu Bouron2015-03-291-0/+15
| | | | | | | Support mouse clicks capture while recording a screen on OSX >= 10.7. Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavdevice/avfoundation: add capture_cursor optionMatthieu Bouron2015-03-291-0/+19
| | | | | | | | Add support for cursor capturing while recording a screen for OSX >= 10.8. Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavdevice/avfoundation: add framerate and video size optionsMatthieu Bouron2015-03-291-0/+130
| | | | | | | | | | Support framerate ands video size options on AVCaptureDevices for OSX >= 10.7 and iOS >= 7.0. For screen captures, only the framerate option is taken into account. Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/avfoundation: Silence warnings when compiling for iOS.Carl Eugen Hoyos2015-03-101-5/+5
| | | | Reviewed-by: Thilo Borgmann
* lavd/avfoundation: Silence c99 warnings when using gcc.Carl Eugen Hoyos2015-03-101-36/+41
| | | | Reviewed-by: Thilo Borgmann
* lavd/avfoundation: Add support for 24 and 32bit integer input.John Robinson2015-03-061-0/+10
| | | | | | Tested on Mac Mini soundflower and built-in line input. Reviewed-by: Thilo Borgmann
* lavd/avfoundation: Add support for 16bit integer input.Carl Eugen Hoyos2015-03-061-0/+6
| | | | Reviewed-by: Thilo Borgmann
* lavd/avfoundation: Introduce device alias 'none' to allow the user to record ↵Thilo Borgmann2014-11-141-6/+10
| | | | | | | | only audio or video. Changes the selection of a default device to none instead of the system default device. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/avfoundation: Remove unused -frame_rate option.Carl Eugen Hoyos2014-11-121-2/+0
|
* lavd/avfoundation: Use internal av_strtok instead of std lib strtokThilo Borgmann2014-11-101-3/+5
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/avfoundation: Fix compilation for non MAC OS devices by conditional ↵Thilo Borgmann2014-10-271-0/+8
| | | | | | compilation of screen capture capabilities. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/avfoundation: Add support for screen capturing.Thilo Borgmann2014-10-251-14/+56
| | | | | | Patch based on pull-request by Joseph Benden <joe@benden.us> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/avfoundation: Add basic PCM audio support.Thilo Borgmann2014-09-281-14/+331
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/avfoundation: Use microseconds as common timebase.Thilo Borgmann2014-09-261-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/avfoundation: Simplify debug message generation.Thilo Borgmann2014-09-261-2/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/avfoundation: Using the actual stream index instead of hardcoded value.Thilo Borgmann2014-09-261-1/+4
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/avfoundation: Split adding a device and getting the device ↵Thilo Borgmann2014-09-261-89/+105
| | | | | | configuration into separate functions. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/avfoundation: Add device category.Thilo Borgmann2014-08-051-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avdevice/avfoundation: kCVPixelFormatType_OneComponent8 only exists from ↵Hanspeter Niederstrasser2014-07-161-0/+2
| | | | | | 10.8 onward Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/avfoundation: Support user selected pixel formats and pixel format ↵sfan52014-06-121-3/+92
| | | | | | | autoselection. Signed-off-by: Thilo Borgmann <thilo.borgmann@mail.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Add AVFoundation input device.Thilo Borgmann2014-04-111-0/+374
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>