d4b605afab
avcodec/avcodec: Remove MpegEncContext forward declaration
...
Forgotten in be95df12bb
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-02-15 10:33:39 +01:00
b648ece34b
lavc: deprecate FF_IDCT_NONE
...
It was only used by XvMC.
2022-02-15 10:16:16 +01:00
be95df12bb
lavc/mpeg*: drop the XvMC hwaccel code
...
XvMC was last relevant over 10 years ago, if ever. There is no reason to
use it today.
2022-02-15 10:16:15 +01:00
ebf1d0f4bb
avcodec/avcodec: Remove outdated comment
...
avcodec_open2() is supposed to be thread-safe (those codecs
whose init functions are not thread-safe are guarded
by a global lock).
Reviewed-by: Anton Khirnov <anton@khirnov.net >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-01-09 09:46:30 +01:00
176b8d785b
avcodec/avcodec, options_table: Deprecate sub_text_format
...
Unused since 1f63665ca5
.
Found-by: Soft Works <softworkz@hotmail.com >
Reviewed-by: Soft Works <softworkz@hotmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-20 01:03:48 +02:00
dd846bc4a9
lavc: deprecate AV_CODEC_(FLAG|CAP)_TRUNCATED
...
It is supported only by a few decoders (h263, h263p, mpeg(1|2|)video
and mpeg4) and is entirely redundant with parsers. Furthermore, using
it leads to missing frames, as flushing the decoder at the end does not
work properly.
Co-authored-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-20 00:20:13 +02:00
cbf111059d
avcodec/avcodec: Allow up to seven codec ids per parser
...
ff_pnm_parser and ff_vp3_parser already hit the current limit;
an addition to the former (to handle pfm) is planned.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-02 19:02:35 +02:00
590a7e02f0
avcodec: add a Film Grain codec property flag
...
Signed-off-by: James Almer <jamrial@gmail.com >
2021-08-24 10:00:06 -03:00
69f120ead7
avcodec/avcodec: Don't include cpu.h
...
It is not used here at all; instead, add it where it is used without
including it or any of the arch-specific CPU headers.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-07-22 12:59:07 +02:00
cea34b9172
avcodec/avcodec: Don't include hwcontext.h
...
It is no longer used directly; but it is still indirectly included via
codec.h.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-07-22 12:49:37 +02:00
912f125c42
avcodec/avcodec: Don't include errno.h
...
This inclusion has been added before libavutil/error.h was split off
from avcodec.h (in 60c144f700
).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-07-22 12:48:22 +02:00
1be3d8a0cb
avcodec/avcodec: Stop including channel_layout.h in avcodec.h
...
Also include channel_layout.h directly wherever used.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-07-22 11:14:31 +02:00
57b5ec6ba7
avcodec/avcodec: Stop including bsf.h in avcodec.h
...
Also include bsf.h directly wherever it is used.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-07-22 11:14:16 +02:00
296dc876ec
lavc: fix and extend AVCodecContext.get_format doxy
...
Remove some incorrect (or at least misleading) statements, such as the
formats being ordered by quality, or the first format being the native
one. Neither of those are true for hardware acceleration, which is the
main use of this callback.
2021-06-26 19:33:42 +02:00
7c9763070d
lavc: move av_get_profile_name() from avcodec.h to codec.h
2021-06-10 16:51:44 +02:00
bb3648e676
lavc: move av_get_audio_frame_duration2() from avcodec.h to codec_par.h
2021-06-10 16:51:44 +02:00
881db34f6a
lavc: move av_get_pcm_codec() from avcodec.h to codec_id.h
2021-06-10 16:51:44 +02:00
2628dff366
lavc: move avcodec_profile_name() from avcodec.h to codec_id.h
2021-06-10 16:51:44 +02:00
000f35125f
lavc: move av_get_[exact_]bits_per_sample() to codec_id.h
2021-06-10 16:51:44 +02:00
ff0a96046d
lavc: move small misc definitions into a separate header
...
This will allow to avoid #including the entire avcodec.h in some places.
2021-06-10 16:51:44 +02:00
f44d4f511d
avcodec: remove leftover references to AVCodecContext.refcounted_frames
...
Signed-off-by: James Almer <jamrial@gmail.com >
2021-05-13 22:36:25 -03:00
5b5398722e
avcodec: be more explicit about the buffer size in get_encode_buffer documentation
...
Signed-off-by: James Almer <jamrial@gmail.com >
2021-05-07 13:16:14 -03:00
83b6471dcb
avcodec/avcodec: Remove unnecessary forward declaration
...
Forgotten in ba6cada92e
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-04-28 01:50:39 +02:00
cb3ac722f4
avcodec: Constify AVCodecParserContext.parser
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:15 -03:00
7c1f347b18
avcodec: Remove deprecated old encode/decode APIs
...
Deprecated in commits 7fc329e2dd
and 31f6a4b4b8
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:12 -03:00
11bc790893
avcodec: Remove deprecated AVCodecContext.coded_frame
...
Deprecated in 40cf1bbacc
.
(The currently disabled filter vf_mcdeint and vf_uspp were users of
this field; they have not been changed, so that whoever wants to fix
them can see the state of these filters when they were disabled.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:12 -03:00
f0c7fa2c48
avcodec: Switch AVCPBProperties to 64bits
...
Announced in 2e8b0446c6
.
Two FATE-tests needed to be updated because the checksums of
side data containing an AVCPBProperties struct changed.
buffer_size has also been switched to 64bits because it is a bitsize.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:07 -03:00
f34521266e
avcodec/parser: Remove deprecated av_parser_change
...
Deprecated in 9a07c1332c
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:07 -03:00
e3d993fab0
avcodec/vaapi: Remove old and deprecated VAAPI context and header
...
Deprecated in 851960f6f8
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:06 -03:00
eb6ea948ed
avcodec: Remove deprecated VBV delay field
...
Deprecated in 2507b5dd67
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:05 -03:00
4a66fe1588
avcodec/imgconvert: Remove deprecated parts of pixel format API
...
Deprecated in 617e866e25
and
2a54ae9df8
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:04 -03:00
d947464ad4
avcodec: Remove deprecated AVPicture API
...
Deprecated in a17a766190
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:04 -03:00
bc9dca5c95
avcodec/options: Remove deprecated avcodec_copy_context
...
Deprecated in 5f30ac2779
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:04 -03:00
ff8f9fcbe5
avcodec: Remove deprecated avcodec_get_context_defaults3
...
Deprecated in 04fc8e24a0
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:04 -03:00
1f63665ca5
avcodec: Remove deprecated ASS with inline timing
...
Deprecated in 22ebbda637
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:04 -03:00
cb172ae9ab
avcodec/mpegvideo_enc: Remove deprecated RTP-callback
...
Deprecated in 462a54e229
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:04 -03:00
d6cb7bf599
avcodec: Remove deprecated avcodec_get_chroma_sub_sample
...
Effectively deprecated in 2c800eb737
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:03 -03:00
f581433e8b
avcodec: Remove remnants of user-visiable HW acceleration API
...
Disabled and deprecated in 3536a3efb9
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:03 -03:00
e8fdb0db16
avcodec: Remove lock manager API
...
Deprecated in a04c2c707d
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:03 -03:00
d1d8a81874
avcodec: Remove deprecated av_codec_get_tag_string
...
Deprecated in f156d35321
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:03 -03:00
23bb78d2ea
avcodec: Remove unneeded getters and setters
...
Deprecated in c4131a0613
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:02 -03:00
d85c41b572
avcodec: Remove private options from AVCodecContext
...
Several options that were too codec-specific were deprecated between
0e6c853221
and
0e9c4fe254
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:02 -03:00
78ce00428f
avcodec: Remove deprecated coder type options
...
Deprecated in be00ec832c
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:01 -03:00
6cf0cb8935
avcodec: Remove deprecated stat-bits fields
...
Deprecated in 16216b713f
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:00 -03:00
df6b44182e
avcodec, avformat: Remove AVPacket.convergence_duration
...
Deprecated in 948f3c19a8
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:43:00 -03:00
26ca5ebd7b
avcodec: Remove sidedata-only-packet cruft
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:42:59 -03:00
0f247986ad
avcodec, avformat: Remove old BSF API
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:42:59 -03:00
4b2be3f8d4
avcodec: Remove AVCodec, AVParser and AVBitStreamFilter next API
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-04-27 10:42:58 -03:00
1af4885014
avcodec: add a mention about get_encode_buffer in the old encode API doxy
...
Direct users to the callback that should be used to keep supporting user
provided buffers with the new encode API.
Reviewed-by: Anton Khirnov <anton@khirnov.net >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-03-14 13:37:01 -03:00
6e7e3a3820
avcodec: add a get_encode_buffer() callback to AVCodecContext
...
This callback is functionally the same as get_buffer2() is for decoders, and
implements for the new encode API the functionality of the old encode API had
where the user could provide their own buffers.
Reviewed-by: Lynne <dev@lynne.ee >
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Reviewed-by: Mark Thompson <sw@jkqxz.net >
Signed-off-by: James Almer <jamrial@gmail.com >
2021-03-12 19:49:08 -03:00