You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/dovi_rpuenc: Use av_cold for ff_dovi_configure init functions
Reviewed-by: Niklas Haas <ffmpeg@haasn.xyz> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -20,16 +20,17 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/avassert.h"
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/crc.h"
|
#include "libavutil/crc.h"
|
||||||
#include "libavutil/mem.h"
|
#include "libavutil/mem.h"
|
||||||
|
#include "libavutil/refstruct.h"
|
||||||
|
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "dovi_rpu.h"
|
#include "dovi_rpu.h"
|
||||||
#include "itut35.h"
|
#include "itut35.h"
|
||||||
#include "put_bits.h"
|
#include "put_bits.h"
|
||||||
#include "put_golomb.h"
|
#include "put_golomb.h"
|
||||||
#include "libavutil/refstruct.h"
|
|
||||||
|
|
||||||
static const struct {
|
static const struct {
|
||||||
uint64_t pps; // maximum pixels per second
|
uint64_t pps; // maximum pixels per second
|
||||||
@ -52,7 +53,7 @@ static const struct {
|
|||||||
[13] = {7680*4320*120u, 7680, 240, 800},
|
[13] = {7680*4320*120u, 7680, 240, 800},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int dovi_configure_ext(DOVIContext *s, enum AVCodecID codec_id,
|
static av_cold int dovi_configure_ext(DOVIContext *s, enum AVCodecID codec_id,
|
||||||
const AVDOVIMetadata *metadata,
|
const AVDOVIMetadata *metadata,
|
||||||
enum AVDOVICompression compression,
|
enum AVDOVICompression compression,
|
||||||
int strict_std_compliance,
|
int strict_std_compliance,
|
||||||
@ -246,7 +247,7 @@ skip:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ff_dovi_configure_from_codedpar(DOVIContext *s, AVCodecParameters *par,
|
av_cold int ff_dovi_configure_from_codedpar(DOVIContext *s, AVCodecParameters *par,
|
||||||
const AVDOVIMetadata *metadata,
|
const AVDOVIMetadata *metadata,
|
||||||
enum AVDOVICompression compression,
|
enum AVDOVICompression compression,
|
||||||
int strict_std_compliance)
|
int strict_std_compliance)
|
||||||
@ -258,7 +259,7 @@ int ff_dovi_configure_from_codedpar(DOVIContext *s, AVCodecParameters *par,
|
|||||||
&par->coded_side_data, &par->nb_coded_side_data);
|
&par->coded_side_data, &par->nb_coded_side_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx)
|
av_cold int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
const AVDOVIMetadata *metadata = NULL;
|
const AVDOVIMetadata *metadata = NULL;
|
||||||
const AVFrameSideData *sd;
|
const AVFrameSideData *sd;
|
||||||
|
Reference in New Issue
Block a user