summaryrefslogtreecommitdiff
path: root/libavdevice/pulse_audio_enc.c
Commit message (Collapse)AuthorAgeFilesLines
* avformat/avformat: Move AVOutputFormat internals out of public headerAndreas Rheinhardt2023-02-091-7/+7
| | | | | | | | | | | | | | 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>
* lavd: use AVFrame.duration instead of AVFrame.pkt_durationAnton Khirnov2022-07-191-1/+8
|
* avformat/internal: Move muxing-only functions to new mux.h headerAndreas Rheinhardt2022-05-101-0/+1
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* libavformat: Split version.hMartin Storsjö2022-03-161-0/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* pulseaudio: convert to new channel layout APIJames Almer2022-03-151-33/+33
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* 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: 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>
* 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>
* avdevice: migrate to AVFormatContext->urlMarton Balint2018-01-281-2/+2
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice: do not use AVFrame accessorMuhammad Faiz2017-04-231-2/+2
| | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis2016-04-101-13/+12
| | | | | | | | | | | | | | | | * commit '9200514ad8717c63f82101dc394f4378854325bf': lavf: replace AVStream.codec with AVStream.codecpar This has been a HUGE effort from: - Derek Buitenhuis <derek.buitenhuis@gmail.com> - Hendrik Leppkes <h.leppkes@gmail.com> - wm4 <nfxjfg@googlemail.com> - Clément Bœsch <clement@stupeflix.com> - James Almer <jamrial@gmail.com> - Michael Niedermayer <michael@niedermayer.cc> - Rostislav Pehlivanov <atomnuker@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* lavd/pulse_audio_enc: replace lround by lrintGanesh Ajjanagadde2015-12-211-1/+2
| | | | | | | Here it is mostly a cosmetic change, but there might be benefits in that there are no compat hacks for lround, while there are for lrint. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avdevice/pulse_audio_enc: use getter function for AVFrame.channelsMichael Niedermayer2014-07-281-1/+1
| | | | | | This is required by the API/ABI for things outside libavutil Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/pulse_audio_enc: respect minreq while checking buffer fullnessLukasz Marek2014-04-301-1/+1
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* lavd/pulse_audio_enc: signal that buffer is still writable after writeLukasz Marek2014-04-301-0/+4
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* lavd/pulse_audio_enc: add pointer checksLukasz Marek2014-04-301-2/+4
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* lavd/pulse_audio_enc: add more buffer attributesLukasz Marek2014-04-301-0/+16
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* Merge remote-tracking branch 'lukaszmluki/master'Michael Niedermayer2014-04-181-66/+629
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lukaszmluki/master: lavd/pulse_audio_enc: implement pause messages lavd/pulse_audio_enc: implement volume messages lavd/avdevice: add volume messages lavd/pulse_audio_enc: add buffer fullness messages lavd/pulse_audio_enc: add nonblocking mode lavd/pulse_audio_enc: replace simple API with async API lavd/pulse_audio_enc: cosmetics lavd/pulse_audio_common: add context helper functions lavd/pulse_audio_common: rename variables and enums Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavd/pulse_audio_enc: implement pause messagesLukasz Marek2014-04-181-0/+14
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
| * lavd/pulse_audio_enc: implement volume messagesLukasz Marek2014-04-181-0/+246
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
| * lavd/pulse_audio_enc: add buffer fullness messagesLukasz Marek2014-04-181-0/+18
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
| * lavd/pulse_audio_enc: add nonblocking modeLukasz Marek2014-04-181-2/+9
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
| * lavd/pulse_audio_enc: replace simple API with async APILukasz Marek2014-04-181-36/+311
| | | | | | | | | | | | Async API allows to use full capabilites of PulseAudio. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
| * lavd/pulse_audio_enc: cosmeticsLukasz Marek2014-04-181-32/+35
|/
* lavd/pulse_audio_enc: implement get_device_list callbackLukasz Marek2014-03-291-0/+7
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse_audio_enc: implement write_uncoded_frame callbackLukasz Marek2014-03-291-0/+19
| | | | | | Provided implementation doesn't support planar formats yet. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd: add categories to device implementationsLukasz Marek2014-03-031-0/+1
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse_audio_enc: add buffer size control optionsLukasz Marek2013-11-271-0/+17
| | | | | | | 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/pulse: add ff_ prefix and fix param typeLukasz Marek2013-11-041-1/+1
| | | | | | | 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>
* avdevice/pulse_audio_enc: remove double ;Michael Niedermayer2013-10-281-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* 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>
* 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/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>
* avdevice/pulse_audio_enc: fix stream indexLukasz Marek2013-10-121-1/+1
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/pulse: move common code to separate fileLukasz Marek2013-10-081-20/+3
| | | | | | 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 audio encoderLukasz Marek2013-10-081-0/+171
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>