Andreas Rheinhardt
7c43cc4cb7
avcodec/parser_internal: Remove prefix from parser_{init,parse,close}
...
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2025-11-01 16:57:03 +01:00
Andreas Rheinhardt
e0b0ca8111
avcodec/avcodec: Schedule moving private fields of AVCodecParser out of avcodec.h
...
AVCodecParser has several fields which are not really meant
to be accessed by users, but it has no public-private
demarkation line, so these fields are technically public
and can therefore not simply be made private like
20f9727018 did for AVCodec.*
This commit therefore deprecates these fields and
schedules them to become private. All parsers have already
been switched to FFCodecParser, which (for now) is a union
of AVCodecParser and an unnamed clone of AVCodecParser
(new fields can be added at the end of this clone).
*: This is also the reason why split has never been removed despite
not being set for several years now.
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2025-11-01 16:57:02 +01:00
Andreas Rheinhardt
e9fe30ccd1
avcodec/parsers: Add macro to set list of codec ids
...
The current code relies on AV_CODEC_ID_NONE being zero, so that
unused codec ids are set to their proper value. This commit adds
a macro to set unset ids to AV_CODEC_ID_NONE.
(The actual rationale for this macro is to simplify
the transition to making the private fields that are
currently public in avcodec.h really private.)
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2025-11-01 16:57:02 +01:00
Andreas Rheinhardt
1df63acdc4
avcodec: Add av_cold to flush,init,close functions missing it
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2025-09-13 20:37:03 +00:00
Andreas Rheinhardt
6e5e74c55b
avcodec/evc*: Improve included headers
...
In particular, don't include avcodec.h in evc_frame_merge_bsf.c.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-07-24 10:37:07 +02:00
James Almer
1bcb8a7338
avcodec/evc_parser: use a GetBitContext to parse entire NALUs
...
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-21 13:31:14 -03:00
James Almer
e5da2ec456
avcodec/evc_parse: pass a GetBitContext to the slice header parsing function
...
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-21 13:31:14 -03:00
James Almer
2212808a72
avcodec/evc_ps: pass a GetBitContext to the SPS and PPS parsing functions
...
This is in preparation for the following patch.
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-21 13:31:14 -03:00
James Almer
921596e677
avcodec/evc_ps: make ff_evc_parse_{sps,pps} return an error code
...
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-19 16:00:55 -03:00
James Almer
5cb9ef9300
avcodec/evc_parse: remove ff_evc_parse_nal_unit()
...
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-19 12:57:31 -03:00
James Almer
fdd8daf899
avcodec/evc_parser: remove write only variable
...
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-19 12:57:31 -03:00
James Almer
a5663f2d9a
avcodec/evc_parser: make ff_evc_parse_nal_unit() local to the parser
...
This is in preparation for the following commits.
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-19 12:57:31 -03:00
James Almer
f7e0af5edc
avcodec/evc_parser: stop exporting delay and gop_size
...
The former is a property a decoder may export, and the latter is only
used in encoding scenarios.
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-19 12:57:31 -03:00
James Almer
1e189fed7a
avcodec/evc_parse: split off Parameter Set parsing into its own file
...
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-19 12:57:31 -03:00
James Almer
9fc1d9adc8
avcodec/evc_parse: make freeing EVCParserContext buffers a shared function
...
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-17 10:08:54 -03:00
James Almer
44f26315c8
avcodec/evc_parse: use a local EVCParserSliceHeader when parsing slices
...
There's no need to store EVC_MAX_PPS_COUNT amount of slice headers in EVCParserContext.
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-17 10:08:54 -03:00
James Almer
da2af70ffa
avcodec/evc_parser: export framerate to the AVCodecContext
...
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-17 10:08:53 -03:00
James Almer
d00f0eebbd
avcodec/evc_parser: remove superfluous memset calls
...
The entire EVCParserContext will be zeroed during allocation.
Signed-off-by: James Almer <jamrial@gmail.com >
2023-06-16 09:57:35 -03:00
Dawid Kozinski
34e4f18360
avcodec/evc_parser: Added parser implementation for EVC format
...
- Added constants definitions for EVC parser
- Provided NAL units parsing following ISO_IEC_23094-1
- EVC parser registration
Signed-off-by: Dawid Kozinski <d.kozinski@samsung.com >
2023-06-15 09:51:04 -03:00