summaryrefslogtreecommitdiff
path: root/libavdevice/decklink_dec.cpp
Commit message (Collapse)AuthorAge
* avdevice/decklink_dec: fix signed and unsigned comparison warningMarton Balint2017-08-27
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* libavdevice/decklink: configurablity to set max queue sizeRavindra2017-08-22
| | | | | Signed-off-by: Ravindra Patagar <rpatagar@akamai.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: set field order via codecparMarton Balint2017-07-30
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: add support for receiving op47 teletextMarton Balint2017-07-18
| | | | | | | | | v2: - use uint16_t instead of int to store 10-bit ancillary data - fix ancillary line numbers for 1080p - some comments and clarifications as requested by Aaron Levinson Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: add support for decoding teletext from 10bit ↵Marton Balint2017-07-18
| | | | | | | | | | | | | ancillary data This also add supports for 4K DeckLink cards because they always output the ancillary data in 10-bit. v2: - only try teletext decoding for 576i PAL mode - some comments as requested by Aaron Levinson Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: fix MSVC build issuesAaron Levinson2017-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Purpose: Made minor changes to get the decklink avdevice code to build using Visual C++. Notes: Made changes to configure per Hendrik Leppkes's review of first and second versions of patch. Also made slight alterations per Marton Balint's reviews. Comments: -- configure: Added if enabled decklink section and setting decklink_indev_extralibs and decklink_outdev_extralibs here for both mingw and Windows. Also eliminated the setting of these variables in the mingw section earlier in the file. -- libavdevice/decklink_common.cpp: Switched the order of the include of libavformat/internal.h to workaround build issues with Visual C++. See comment in file for more details. -- libavdevice/decklink_dec.cpp: a) Rearranged the include of libavformat/internal.h (for reasons as described above). b) Made slight alteration to an argument for call to av_rescale_q() to workaround a compiler error with Visual C++. This appears to only be an issue when building C++ files with Visual C++. See comment in code for more details. -- libavdevice/decklink_enc.cpp: Rearranged the include of libavformat/internal.h (for reasons as described above). Signed-off-by: Aaron Levinson <alevinsn@aracnet.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: remove pthread dependencyAaron Levinson2017-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Purpose: avdevice/decklink: Removed pthread dependency by replacing semaphore used in code appropriately. Doing so makes it easier to build ffmpeg using Visual C++ on Windows. This is a contination of Kyle Schwarz's "avdevice/decklink: Remove pthread dependency" patch that is available at https://patchwork.ffmpeg.org/patch/2654/ . This patch wasn't accepted, and as far as I can tell, there was no follow-up after it was rejected. Notes: Used Visual Studio 2015 (with update 3) for this. Comments: -- configure: Eliminated pthreads dependency for decklink_indev_deps and decklink_outdev_deps and replaced with threads dependency -- libavdevice/decklink_common.cpp / .h: a) Eliminated semaphore and replaced with a combination of a mutex, condition variable, and a counter (frames_buffer_available_spots). b) Removed include of pthread.h and semaphore.h and now using libavutil/thread.h instead. -- libavdevice/decklink_dec.cpp: Eliminated include of pthread.h and semaphore.h. -- libavdevice/decklink_enc.cpp: a) Eliminated include of pthread.h and semaphore.h. b) Replaced use of semaphore with the equivalent using a combination of a mutex, condition variable, and a counter (frames_buffer_available_spots). In theory, libavutil/thread.h and the associated code could have been modified instead to add cross-platform implementations of the sem_ functions, but an inspection of the ffmpeg source base indicates that there are only two cases in which semaphores are used (including this one that was replaced), so it was deemed to not be worth the effort. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: deprecate @mode syntax in device name to specify modeMarton Balint2017-03-28
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: new option 'format_code' to set video format by fourCCMatthias Hunstock2017-03-22
| | | | | Signed-off-by: Matthias Hunstock <atze@fem.tu-ilmenau.de> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: properly initialize no_video variableMarton Balint2016-12-27
| | | | | | Fixes Coverity CID 1396859. Signed-off-by: Marton Balint <cus@passwd.hu>
* lavd/decklink_dec: fix indentationMarton Balint2016-10-21
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* lavd/decklink_dec: add option to disable drawing bars on signal lossMarton Balint2016-10-21
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* decklink: fix: set fps on video stream v2Matthias Hunstock2016-08-05
| | | | | | | Provide the stream with the correct fps information when capturing. Signed-off-by: Matthias Hunstock <atze@fem.tu-ilmenau.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* decklink: Remove unneeded spaces in initializersPatrick Felt2016-08-02
|
* cosmetics: Correct comments in decklink_decPatrick Felt2016-08-02
| | | | Signed-off-by: Timothy Gu <timothygu99@gmail.com>
* avdevice/decklink: add support for setting input packet timestamp sourceMarton Balint2016-06-26
| | | | | Reviewed-by: Deti Fliegl <deti@fliegl.de> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: add support for audio and video input selectionMarton Balint2016-06-26
| | | | | Reviewed-by: Deti Fliegl <deti@fliegl.de> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: add support for setting duplex modeMarton Balint2016-06-26
| | | | | | | This patch also makes BlackMagic drivers v10.6.1 a hard requirement. Reviewed-by: Deti Fliegl <deti@fliegl.de> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: always free decklink resources on errorMarton Balint2016-06-26
| | | | | Reviewed-by: Deti Fliegl <deti@fliegl.de> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: factorize device finder functionMarton Balint2016-06-26
| | | | | Reviewed-by: Deti Fliegl <deti@fliegl.de> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: remove unused itermode iteratorsMarton Balint2016-06-26
| | | | | Reviewed-by: Deti Fliegl <deti@fliegl.de> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: factorize cleanup function to common codeMarton Balint2016-06-26
| | | | | Reviewed-by: Deti Fliegl <deti@fliegl.de> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: fix bitrate calculationsMarton Balint2016-06-26
| | | | | Reviewed-by: Deti Fliegl <deti@fliegl.de> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: Convert decklink input module to use codecparFelt, Patrick2016-05-11
| | | | | | | | | | There are still a couple of deprecated calls that I’m not sure what to do with. They are both related to some logic around AVCodecContext.coded_frame. I couldn’t find anywhere that really documented what that was, or where it was intended to move to. I left the warnings on. Reviewed-by: Deti Fliegl <deti@fliegl.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* decklink: support all valid numbers of audio channelsMatthias Hunstock2016-02-03
| | | | | | | | | | As it is already written in the documentation, BMD DeckLink cards are capable of capturing 2, 8 or 16 audio channels (for SDI Inputs). Currently the value is hardcoded to 2. Introduces new option. Reviewed-by: Deti Fliegl <deti@fliegl.de> Signed-off-by: Matthias Hunstock <atze@fem.tu-ilmenau.de> Signed-off-by: Marton Balint <cus@passwd.hu>
* lavd/decklink_dec: add support for teletextMarton Balint2016-01-29
| | | | | | | It uses the libzvbi slicer, therefore teletext capture requires libzvbi. Reviewed-by: Deti Fliegl <deti@fliegl.de> Signed-off-by: Marton Balint <cus@passwd.hu>
* Revert "decklink: Header cleanup"Timothy Gu2016-01-24
| | | | | | This reverts commit 61fb70c3866b19dccf473ad4e5ede79d117e8e1c. Reported in #5183 to break the build. Further investigation needed.
* decklink: Header cleanupTimothy Gu2016-01-24
| | | | | This commit cleans up the decklink files' header usage so that they pass checkheaders.
* remove all uses of the deprecated avpicture_get_size() functionEddie Hao2016-01-17
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Replace remaining occurances of av_free_packet with av_packet_unrefHendrik Leppkes2015-10-27
|
* avdevice/decklink: 10 Bit support for Decklink input deviceGeorg Lippitsch2015-02-08
| | | | | | | Example to capture video clip at 1080i50 10 bit: ffmpeg -bm_v210 1 -f decklink -i 'UltraStudio Mini Recorder@11' -acodec copy -vcodec copy output.avi Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avdevice: add decklink input supportDeti Fliegl2014-09-22
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>