aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/opengl_enc.c
Commit message (Collapse)AuthorAgeFilesLines
* avdevice: remove deprecated FF_API_OPENGL_DEVICEJames Almer2025-03-281-1325/+0
| | | | | | Deprecated since 2024-02-28. Signed-off-by: James Almer <jamrial@gmail.com>
* libavdevice: Improve example in deprecation message for opengl and sdlAlexander Strasser2024-07-141-1/+1
| | | | | | | | | | | | | | | | | When piping ffmpeg into ffplay both programs write a status line in the terminal. That causes flickering and invisibility of one or the other status line. As compromise set ffplay log level to warning, so it doesn't show the status line. The user is usually testing ffmpeg command lines and want's a preview of the result. This way the user can see the ffmpeg output and still see errors and warnings from ffplay, should they occur. Additionally set PTS to zero in ffplay to lessen the delay until the frames are displayed. Without it delay is quite observable when e.g. live capturing with low frame rates.
* avutil/common: Don't auto-include mem.hAndreas Rheinhardt2024-03-311-0/+1
| | | | | | | | | | | There are lots of files that don't need it: The number of object files that actually need it went down from 2011 to 884 here. Keep it for external users in order to not cause breakages. Also improve the other headers a bit while just at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avdevice: deprecate opengl outdevJ. Dekker2024-02-281-0/+11
| | | | Signed-off-by: J. Dekker <jdek@itanimul.li>
* Revert "all: Don't set AVClass.item_name to its default value"Anton Khirnov2024-01-201-0/+1
| | | | | | | Some callers assume that item_name is always set, so this may be considered an API break. This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.
* all: Don't set AVClass.item_name to its default valueAndreas Rheinhardt2023-12-221-1/+0
| | | | | | | | Unnecessary since acf63d5350adeae551d412db699f8ca03f7e76b9; also avoids relocations. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* all: Replace __FUNCTION__ by __func__Andreas Rheinhardt2023-09-071-1/+1
| | | | | | | Only the latter is valid ISO C. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat/avformat: Avoid including codec.h, frame.hAndreas Rheinhardt2023-09-071-0/+1
| | | | | | | | | | | | | | | | AVCodec is only ever used as an incomplete type (i.e. via a pointer to an AVCodec) in avformat.h and it is not really part of the core of avformat.h or libavformat; almost none of our internal users make use of it (and none make use of hwcontext.h, which is implicitly included). So switch to use struct AVCodec, but continue to include codec.h for external users for compatibility. Also, do the same for AVFrame and frame.h, which is implicitly included by codec.h (via lavu/hwcontext.h). Also, remove an unnecessary inclusion of <time.h>. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* configure: Set WIN32_LEAN_AND_MEAN at configure timeL. E. Segovia2023-08-141-1/+0
| | | | | | | | | | | | | Including winsock2.h or windows.h without WIN32_LEAN_AND_MEAN cause bzlib.h to parse as nonsense, due to an instance of #define char small in rpcndr.h. See: https://stackoverflow.com/a/27794577 Signed-off-by: L. E. Segovia <amy@amyspark.me> Signed-off-by: Martin Storsjö <martin@martin.st>
* lavd/opengl_enc: fix a compiler errorHaihao Xiang2023-07-241-1/+1
| | | | | | | | | | glcontext was added under CONFIG_SDL2 libavdevice/opengl_enc.c: In function ‘opengl_draw’: libavdevice/opengl_enc.c:1204:15: error: ‘OpenGLContext’ has no member named ‘glcontext’ Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
* lavd/opengl: select the GL context before drawingNicolas George2023-07-121-0/+4
| | | | | | Since “2d924b3a63 fftools/ffmpeg: move each muxer to a separate thread”, opengl_write_packet() is called from a different thread than opengl_write_header() and would nothing for lack of a selected context.
* avdevice/opengl_enc: check sscanf return valuePaul B Mahol2023-05-221-1/+2
|
* 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>
* avformat/internal: Move muxing-only functions to new mux.h headerAndreas Rheinhardt2022-05-101-1/+1
| | | | 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>
* avdevice/opengl: add support of wrapped avframe codecMarton Balint2020-04-161-5/+12
| | | | | | Also change the default to that. Signed-off-by: Marton Balint <cus@passwd.hu>
* remove CHAR_MIN/CHAR_MAX usagePaul B Mahol2020-03-171-1/+1
| | | | It is not needed at all.
* lavd/opengl_enc: check strings before parsing them.Nicolas George2020-02-201-0/+4
| | | | | Fix a segfault if OpenGL was not initialized before calling write_header().
* lavd/opengl_enc: use proper context for logging.Nicolas George2020-02-201-9/+10
| | | | Log as [opengl @ 0xaddress] instead of [opengl outdev @ 0xaddress].
* avdevice/opengl_enc: fix build error using msvc compilerDon C. Bigler2019-04-101-1/+0
|
* avdevice: migrate to AVFormatContext->urlMarton Balint2018-01-281-1/+1
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* build: replace use of HAVE_SDL2 with existing CONFIG_SDL2Clément Bœsch2017-09-021-11/+11
| | | | There is no need for duplication.
* lavd/opengl_enc: Fix a typo.Carl Eugen Hoyos2017-02-231-1/+1
|
* lavd/opengl_enc: Support BGR48.Carl Eugen Hoyos2017-02-221-0/+1
|
* lavd/opengl: use SDL2Lukasz Marek2016-09-241-60/+49
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Josh de Kock <josh@itanimul.li>
* Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis2016-04-101-8/+8
| | | | | | | | | | | | | | | | * 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>
* avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPATDerek Buitenhuis2016-01-271-6/+6
| | | | | | | | | | Libav, for some reason, merged this as a public API function. This will aid in future merges. A define is left for backwards compat, just in case some person used it, since it is in a public header. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* Replace all remaining occurances of step/depth_minus1 and offset_plus1Hendrik Leppkes2015-09-081-2/+2
|
* msvc: Fix compilation errors due to header include order.Matthew Oliver2014-11-271-0/+1
| | | | | | | Ensures that the header include order is such that winsock2.h is always included before windows.h or that windows.h does not include winsock.h. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Add missing "const" all over the place.Reimar Döffinger2014-08-291-1/+1
| | | | | | Only "./configure --enable-gpl" on x86 was tested. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* fix various typosLou Logan2014-06-031-5/+5
| | | | | Signed-off-by: Lou Logan <lou@lrcd.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/opengl_enc: fix window size correction codeLukasz Marek2014-05-021-2/+2
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* lavd/opengl_enc: add window size paramLukasz Marek2014-05-021-2/+13
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* lavd/opengl_enc: use flag to mark inited contextLukasz Marek2014-05-021-2/+4
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* lavd/opengl_enc: fix pixel data alignmentLukasz Marek2014-04-301-0/+2
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Fix OpenGL device compilation with msvc gl.hMatt Oliver2014-04-161-3/+3
| | | | | Reveiwed-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd: add categories to device implementationsLukasz Marek2014-03-031-0/+1
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/opengl_enc: implement uncoded frame callbackLukasz Marek2014-02-131-20/+65
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/opengl_enc: add gray8/16 formatsLukasz Marek2014-02-131-0/+2
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/opengl_enc: fix parentheses in if conditionLukasz Marek2014-02-021-1/+1
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavd/opengl_enc: remove inlinesLukasz Marek2014-02-021-6/+4
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/opengl_enc: fix window captionLukasz Marek2014-02-021-0/+1
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/opengl_enc: simplify opengl_load_procedures usageLukasz Marek2014-02-021-6/+11
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/opengl_enc: factorize deinit_context functionLukasz Marek2014-02-021-18/+41
| | | | | | | | This commit also fixes opengl deinitialization. Program and shaders where not deleted. Could impact MacOS implementation based on SDL window. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/opengl_enc: factorize create/release window functionsLukasz Marek2014-02-021-25/+45
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/opengl_enc: rename GL_RED_COMPONENT defineLukasz Marek2014-02-021-23/+23
| | | | | | | Rename GL_RED_COMPONENT into FF_GL_RED_COMPONENT to explicity mark it is internal define, not OpenGL API. Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd/opengl_enc: create format description tableLukasz Marek2014-02-021-84/+59
| | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
* lavd: add opengl deviceLukasz Marek2014-01-271-0/+1221
It can render to OpenGL context provided by application or into SDL window Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>