Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-03avcodec/codec_internal: Add macro to set AVCodec.long_nameAndreas Rheinhardt
It reduces typing: Before this patch, there were 105 codecs whose long_name-definition exceeded the 80 char line length limit. Now there are only nine of them. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-07-18avcodec: Add FF_CODEC_CAP_NOT_INIT_THREADSAFEAndreas Rheinhardt
This is in preparation of switching the default init-thread-safety to a codec being init-thread-safe. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-05-06avcodec/libxavs2: Improve r redundancy in occuredMichael Niedermayer
Reviewed-by: "mypopy@gmail.com" <mypopy@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2022-04-05avcodec/codec_internal: Use union for FFCodec decode/encode callbacksAndreas Rheinhardt
This is possible, because every given FFCodec has to implement exactly one of these. Doing so decreases sizeof(FFCodec) and therefore decreases the size of the binary. Notice that in case of position-independent code the decrease is in .data.rel.ro, so that this translates to decreased memory consumption. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-03-21avcodec/codec_internal: Rename AVCodecDefault->FFCodecDefaultAndreas Rheinhardt
This structure is no longer declared in a public header, so using an FF-prefix is more appropriate. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-03-21avcodec/codec_internal: Add FFCodec, hide internal part of AVCodecAndreas Rheinhardt
Up until now, codec.h contains both public and private parts of AVCodec. This exposes the internals of AVCodec to users and leads them into the temptation of actually using them and forces us to forward-declare structures and types that users can't use at all. This commit changes this by adding a new structure FFCodec to codec_internal.h that extends AVCodec, i.e. contains the public AVCodec as first member; the private fields of AVCodec are moved to this structure, leaving codec.h clean. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-03-21avcodec/internal: Move FF_CODEC_CAP_* to a new header codec_internal.hAndreas Rheinhardt
Also move FF_CODEC_TAGS_END as well as struct AVCodecDefault. This reduces the amount of files that have to include internal.h (which comes with quite a lot of indirect inclusions), as e.g. most encoders don't need it. It is furthemore in preparation for moving the private part of AVCodec out of the public codec.h. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-02-13avcodec/mpegvideo: Move encoder-only stuff to a new headerAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-05-23avcodec/libxavs2: Allow user-supplied buffersAndreas Rheinhardt
Here the packet size is known before allocating the packet, so that supporting user-supplied buffers is trivial. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-04-27avcodec: Constify AVCodecsAndreas Rheinhardt
Given that the AVCodec.next pointer has now been removed, most of the AVCodecs are not modified at all any more and can therefore be made const (as this patch does); the only exceptions are the very few codecs for external libraries that have a init_static_data callback. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2021-03-16lavc: rename AV_CODEC_CAP_AUTO_THREADS->AV_CODEC_CAP_OTHER_THREADSAnton Khirnov
This cap is currently used to mark multithreading-capable codecs that wrap external libraries with their own multithreading code. The name is highly confusing for our API users, since libavcodec ALWAYS handles thread_count=0 (see commit message in previous commit). Therefore rename the cap and update its documentation to make its meaning clear. The old name is kept deprecated until next+1 major bump.
2021-03-16lavc: replace internal use of AV_CODEC_CAP_AUTO_THREADS with an internal capAnton Khirnov
AV_CODEC_CAP_AUTO_THREADS was originally added in b4d44a45f9a to mark codecs that spawn threads internally and are able to select an optimal threads count by themselves (all such codecs are wrappers around external libraries). It is used by lavc generic code to check whether it should handle thread_count=0 itself or pass the zero directly to the codec implementation. Within this meaning, it is clearly supposed to be an internal cap rather than a public one, since from the viewpoint of a libavcodec user, lavc ALWAYS handles thread_count=0. Whether it happens in the generic code or within the codec internals is not a meaningful difference for the caller. External aspects of this flag will be dealt with in the following commit.
2020-07-28lavc/libxavs2.c: mark key-frame packetshwren
Signed-off-by: hwren <hwrenx@126.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-01-01avcodec/libxavs2: use AV_OPT_TYPE_DICT for xavs2-paramsMarton Balint
Signed-off-by: Marton Balint <cus@passwd.hu>
2019-12-04lavc/libxavs2.c: optimize error descriptionshwren
Signed-off-by: hwren <hwrenx@126.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-12-04lavc/libxavs2.c: fix code style - spaceshwren
Signed-off-by: hwren <hwrenx@126.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-12-04lavc/libxavs2.c: avoid recomputations of pointers in xavs2_copy_frame* functionshwren
Signed-off-by: hwren <hwrenx@126.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-12-04lavc/libxavs2.c: use more descriptive variable names in xavs2_copy_frame* ↵hwren
functions Signed-off-by: hwren <hwrenx@126.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-10-15lavc/libxavs2: fix parameter setting result determinationhwren
Signed-off-by: hwren <hwrenx@126.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-02-19lavc/libxavs2: use upper layer qp parameters firsthwren
Signed-off-by: hwrenx <hwrenx@126.com>
2019-02-19lavc/libxavs2: remove unused context parameterhwren
Signed-off-by: hwrenx <hwrenx@126.com>
2019-01-04lavc/libxavs2: Cosmetics: Fix indentation for switch statementJun Zhao
Cosmetics: Fix indentation for switch statement like the Linux kerenl style. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
2018-10-28lavc/libxavs2: Remove yuv420p10le from fromat list.Jun Zhao
now libxavs2 can't support 10bits mode, so remove the yuv420p10le from fromat list. Signed-off-by: Jun Zhao <jun.zhao@intel.com>
2018-10-28lavc/libxavs2: enable OpenGophwren
Signed-off-by: hwren <hwrenx@126.com>
2018-10-28lavc/libxavs2: fix intra period meaning conflicthwren
Signed-off-by: hwren <hwrenx@126.com>
2018-10-28lavc/libxavs2: unified naming stylehwren
Signed-off-by: hwren <hwrenx@126.com>
2018-09-18lavc/libxavs2: remove nonexistent parametershwren
Signed-off-by: hwren <hwrenx@126.com>
2018-09-11lavc, doc, configure: add libxavs2 video encoder wrapperhwren
Signed-off-by: hwren <hwrenx@126.com>