mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec: Add av_cold attributes to init functions missing them
This commit is contained in:
parent
72e228b274
commit
6fee1b90ce
@ -24,6 +24,7 @@
|
|||||||
* AAC encoder psychoacoustic model
|
* AAC encoder psychoacoustic model
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "aactab.h"
|
#include "aactab.h"
|
||||||
#include "psymodel.h"
|
#include "psymodel.h"
|
||||||
@ -248,7 +249,8 @@ static float lame_calc_attack_threshold(int bitrate)
|
|||||||
/**
|
/**
|
||||||
* LAME psy model specific initialization
|
* LAME psy model specific initialization
|
||||||
*/
|
*/
|
||||||
static void lame_window_init(AacPsyContext *ctx, AVCodecContext *avctx) {
|
static av_cold void lame_window_init(AacPsyContext *ctx, AVCodecContext *avctx)
|
||||||
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
for (i = 0; i < avctx->channels; i++) {
|
for (i = 0; i < avctx->channels; i++) {
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/avassert.h"
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/avstring.h"
|
#include "libavutil/avstring.h"
|
||||||
#include "libavutil/channel_layout.h"
|
#include "libavutil/channel_layout.h"
|
||||||
@ -754,7 +755,7 @@ static void count_frame_bits_fixed(AC3EncodeContext *s)
|
|||||||
* Initialize bit allocation.
|
* Initialize bit allocation.
|
||||||
* Set default parameter codes and calculate parameter values.
|
* Set default parameter codes and calculate parameter values.
|
||||||
*/
|
*/
|
||||||
static void bit_alloc_init(AC3EncodeContext *s)
|
static av_cold void bit_alloc_init(AC3EncodeContext *s)
|
||||||
{
|
{
|
||||||
int ch;
|
int ch;
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/float_dsp.h"
|
#include "libavutil/float_dsp.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "bytestream.h"
|
#include "bytestream.h"
|
||||||
@ -839,7 +840,7 @@ static int atrac3_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
return avctx->block_align;
|
return avctx->block_align;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void atrac3_init_static_data(AVCodec *codec)
|
static av_cold void atrac3_init_static_data(AVCodec *codec)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -19,12 +19,13 @@
|
|||||||
* 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/common.h"
|
#include "libavutil/common.h"
|
||||||
#include "libavutil/mathematics.h"
|
#include "libavutil/mathematics.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "audio_frame_queue.h"
|
#include "audio_frame_queue.h"
|
||||||
|
|
||||||
void ff_af_queue_init(AVCodecContext *avctx, AudioFrameQueue *afq)
|
av_cold void ff_af_queue_init(AVCodecContext *avctx, AudioFrameQueue *afq)
|
||||||
{
|
{
|
||||||
afq->avctx = avctx;
|
afq->avctx = avctx;
|
||||||
afq->next_pts = AV_NOPTS_VALUE;
|
afq->next_pts = AV_NOPTS_VALUE;
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
* 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/mem.h"
|
#include "libavutil/mem.h"
|
||||||
#include "avfft.h"
|
#include "avfft.h"
|
||||||
#include "fft.h"
|
#include "fft.h"
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
* @author Thilo Borgmann <thilo.borgmann _at_ googlemail.com>
|
* @author Thilo Borgmann <thilo.borgmann _at_ googlemail.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "bgmc.h"
|
#include "bgmc.h"
|
||||||
|
|
||||||
#define FREQ_BITS 14 // bits used by frequency counters
|
#define FREQ_BITS 14 // bits used by frequency counters
|
||||||
@ -456,7 +457,8 @@ static uint8_t *bgmc_lut_getp(uint8_t *lut, int *lut_status, int delta)
|
|||||||
|
|
||||||
|
|
||||||
/** Initialize the lookup table arrays */
|
/** Initialize the lookup table arrays */
|
||||||
int ff_bgmc_init(AVCodecContext *avctx, uint8_t **cf_lut, int **cf_lut_status)
|
av_cold int ff_bgmc_init(AVCodecContext *avctx,
|
||||||
|
uint8_t **cf_lut, int **cf_lut_status)
|
||||||
{
|
{
|
||||||
*cf_lut = av_malloc(sizeof(*cf_lut) * LUT_BUFF * 16 * LUT_SIZE);
|
*cf_lut = av_malloc(sizeof(*cf_lut) * LUT_BUFF * 16 * LUT_SIZE);
|
||||||
*cf_lut_status = av_malloc(sizeof(*cf_lut_status) * LUT_BUFF);
|
*cf_lut_status = av_malloc(sizeof(*cf_lut_status) * LUT_BUFF);
|
||||||
@ -483,8 +485,8 @@ void ff_bgmc_end(uint8_t **cf_lut, int **cf_lut_status)
|
|||||||
|
|
||||||
|
|
||||||
/** Initialize decoding and reads the first value */
|
/** Initialize decoding and reads the first value */
|
||||||
void ff_bgmc_decode_init(GetBitContext *gb, unsigned int *h, unsigned int *l,
|
av_cold void ff_bgmc_decode_init(GetBitContext *gb, unsigned int *h,
|
||||||
unsigned int *v)
|
unsigned int *l, unsigned int *v)
|
||||||
{
|
{
|
||||||
*h = TOP_VALUE;
|
*h = TOP_VALUE;
|
||||||
*l = 0;
|
*l = 0;
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
* 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/imgutils.h"
|
#include "libavutil/imgutils.h"
|
||||||
#include "libavutil/internal.h"
|
#include "libavutil/internal.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
@ -524,14 +525,14 @@ static inline int get_value(BinkContext *c, int bundle)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void binkb_init_bundle(BinkContext *c, int bundle_num)
|
static av_cold void binkb_init_bundle(BinkContext *c, int bundle_num)
|
||||||
{
|
{
|
||||||
c->bundle[bundle_num].cur_dec =
|
c->bundle[bundle_num].cur_dec =
|
||||||
c->bundle[bundle_num].cur_ptr = c->bundle[bundle_num].data;
|
c->bundle[bundle_num].cur_ptr = c->bundle[bundle_num].data;
|
||||||
c->bundle[bundle_num].len = 13;
|
c->bundle[bundle_num].len = 13;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void binkb_init_bundles(BinkContext *c)
|
static av_cold void binkb_init_bundles(BinkContext *c)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < BINKB_NB_SRC; i++)
|
for (i = 0; i < BINKB_NB_SRC; i++)
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
* Bink DSP routines
|
* Bink DSP routines
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "dsputil.h"
|
#include "dsputil.h"
|
||||||
#include "binkdsp.h"
|
#include "binkdsp.h"
|
||||||
|
|
||||||
@ -128,7 +129,7 @@ static void scale_block_c(const uint8_t src[64]/*align 8*/, uint8_t *dst/*align
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_binkdsp_init(BinkDSPContext *c)
|
av_cold void ff_binkdsp_init(BinkDSPContext *c)
|
||||||
{
|
{
|
||||||
c->idct_add = bink_idct_add_c;
|
c->idct_add = bink_idct_add_c;
|
||||||
c->idct_put = bink_idct_put_c;
|
c->idct_put = bink_idct_put_c;
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "dcadsp.h"
|
#include "dcadsp.h"
|
||||||
|
|
||||||
static void dca_lfe_fir_c(float *out, const float *in, const float *coefs,
|
static void dca_lfe_fir_c(float *out, const float *in, const float *coefs,
|
||||||
@ -44,7 +45,7 @@ static void dca_lfe_fir_c(float *out, const float *in, const float *coefs,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_dcadsp_init(DCADSPContext *s)
|
av_cold void ff_dcadsp_init(DCADSPContext *s)
|
||||||
{
|
{
|
||||||
s->lfe_fir = dca_lfe_fir_c;
|
s->lfe_fir = dca_lfe_fir_c;
|
||||||
if (ARCH_ARM) ff_dcadsp_init_arm(s);
|
if (ARCH_ARM) ff_dcadsp_init_arm(s);
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
#define RC_VARIANCE 1 // use variance or ssd for fast rc
|
#define RC_VARIANCE 1 // use variance or ssd for fast rc
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/internal.h"
|
#include "libavutil/internal.h"
|
||||||
#include "libavutil/opt.h"
|
#include "libavutil/opt.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
@ -100,7 +101,7 @@ static int dnxhd_10bit_dct_quantize(MpegEncContext *ctx, int16_t *block,
|
|||||||
return last_non_zero;
|
return last_non_zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dnxhd_init_vlc(DNXHDEncContext *ctx)
|
static av_cold int dnxhd_init_vlc(DNXHDEncContext *ctx)
|
||||||
{
|
{
|
||||||
int i, j, level, run;
|
int i, j, level, run;
|
||||||
int max_level = 1<<(ctx->cid_table->bit_depth+2);
|
int max_level = 1<<(ctx->cid_table->bit_depth+2);
|
||||||
@ -155,7 +156,7 @@ static int dnxhd_init_vlc(DNXHDEncContext *ctx)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dnxhd_init_qmat(DNXHDEncContext *ctx, int lbias, int cbias)
|
static av_cold int dnxhd_init_qmat(DNXHDEncContext *ctx, int lbias, int cbias)
|
||||||
{
|
{
|
||||||
// init first elem to 1 to avoid div by 0 in convert_matrix
|
// init first elem to 1 to avoid div by 0 in convert_matrix
|
||||||
uint16_t weight_matrix[64] = {1,}; // convert_matrix needs uint16_t*
|
uint16_t weight_matrix[64] = {1,}; // convert_matrix needs uint16_t*
|
||||||
@ -214,7 +215,7 @@ static int dnxhd_init_qmat(DNXHDEncContext *ctx, int lbias, int cbias)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dnxhd_init_rc(DNXHDEncContext *ctx)
|
static av_cold int dnxhd_init_rc(DNXHDEncContext *ctx)
|
||||||
{
|
{
|
||||||
FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_rc, 8160*ctx->m.avctx->qmax*sizeof(RCEntry), fail);
|
FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_rc, 8160*ctx->m.avctx->qmax*sizeof(RCEntry), fail);
|
||||||
if (ctx->m.avctx->mb_decision != FF_MB_DECISION_RD)
|
if (ctx->m.avctx->mb_decision != FF_MB_DECISION_RD)
|
||||||
@ -228,7 +229,7 @@ static int dnxhd_init_rc(DNXHDEncContext *ctx)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dnxhd_encode_init(AVCodecContext *avctx)
|
static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
DNXHDEncContext *ctx = avctx->priv_data;
|
DNXHDEncContext *ctx = avctx->priv_data;
|
||||||
int i, index, bit_depth;
|
int i, index, bit_depth;
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
* DSP utils
|
* DSP utils
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/imgutils.h"
|
#include "libavutil/imgutils.h"
|
||||||
#include "libavutil/internal.h"
|
#include "libavutil/internal.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
@ -106,7 +107,9 @@ static const uint8_t simple_mmx_permutation[64]={
|
|||||||
|
|
||||||
static const uint8_t idct_sse2_row_perm[8] = {0, 4, 1, 5, 2, 6, 3, 7};
|
static const uint8_t idct_sse2_row_perm[8] = {0, 4, 1, 5, 2, 6, 3, 7};
|
||||||
|
|
||||||
void ff_init_scantable(uint8_t *permutation, ScanTable *st, const uint8_t *src_scantable){
|
av_cold void ff_init_scantable(uint8_t *permutation, ScanTable *st,
|
||||||
|
const uint8_t *src_scantable)
|
||||||
|
{
|
||||||
int i;
|
int i;
|
||||||
int end;
|
int end;
|
||||||
|
|
||||||
@ -127,7 +130,7 @@ void ff_init_scantable(uint8_t *permutation, ScanTable *st, const uint8_t *src_s
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_init_scantable_permutation(uint8_t *idct_permutation,
|
av_cold void ff_init_scantable_permutation(uint8_t *idct_permutation,
|
||||||
int idct_permutation_type)
|
int idct_permutation_type)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "get_bits.h"
|
#include "get_bits.h"
|
||||||
#include "dsputil.h"
|
#include "dsputil.h"
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/colorspace.h"
|
#include "libavutil/colorspace.h"
|
||||||
#include "libavutil/imgutils.h"
|
#include "libavutil/imgutils.h"
|
||||||
#include "libavutil/avstring.h"
|
#include "libavutil/avstring.h"
|
||||||
@ -501,7 +502,7 @@ static int dvdsub_decode(AVCodecContext *avctx,
|
|||||||
return buf_size;
|
return buf_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dvdsub_init(AVCodecContext *avctx)
|
static av_cold int dvdsub_init(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
DVDSubContext *ctx = avctx->priv_data;
|
DVDSubContext *ctx = avctx->priv_data;
|
||||||
char *data, *cur;
|
char *data, *cur;
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define CONFIG_AC3ENC_FLOAT 1
|
#define CONFIG_AC3ENC_FLOAT 1
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "ac3enc.h"
|
#include "ac3enc.h"
|
||||||
#include "eac3enc.h"
|
#include "eac3enc.h"
|
||||||
#include "eac3_data.h"
|
#include "eac3_data.h"
|
||||||
@ -43,7 +45,7 @@ static const AVClass eac3enc_class = { "E-AC-3 Encoder", av_default_item_name,
|
|||||||
static int8_t eac3_frame_expstr_index_tab[3][4][4][4][4][4];
|
static int8_t eac3_frame_expstr_index_tab[3][4][4][4][4][4];
|
||||||
|
|
||||||
|
|
||||||
void ff_eac3_exponent_init(void)
|
av_cold void ff_eac3_exponent_init(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
* FF Video Codec 1 (a lossless codec)
|
* FF Video Codec 1 (a lossless codec)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/avassert.h"
|
#include "libavutil/avassert.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "get_bits.h"
|
#include "get_bits.h"
|
||||||
@ -130,7 +131,7 @@ const uint8_t ffv1_ver2_state[256] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
int ffv1_common_init(AVCodecContext *avctx)
|
av_cold int ffv1_common_init(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
FFV1Context *s = avctx->priv_data;
|
FFV1Context *s = avctx->priv_data;
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
* FF Video Codec 1 (a lossless codec) encoder
|
* FF Video Codec 1 (a lossless codec) encoder
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/avassert.h"
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/pixdesc.h"
|
#include "libavutil/pixdesc.h"
|
||||||
#include "libavutil/crc.h"
|
#include "libavutil/crc.h"
|
||||||
@ -544,7 +545,7 @@ static int sort_stt(FFV1Context *s, uint8_t stt[256])
|
|||||||
return print;
|
return print;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int init_slices_state(FFV1Context *f)
|
static av_cold int init_slices_state(FFV1Context *f)
|
||||||
{
|
{
|
||||||
int i, ret;
|
int i, ret;
|
||||||
for (i = 0; i < f->slice_count; i++) {
|
for (i = 0; i < f->slice_count; i++) {
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
* The parser returns the frame with the highest score.
|
* The parser returns the frame with the highest score.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/crc.h"
|
#include "libavutil/crc.h"
|
||||||
#include "libavutil/fifo.h"
|
#include "libavutil/fifo.h"
|
||||||
#include "bytestream.h"
|
#include "bytestream.h"
|
||||||
@ -653,7 +654,7 @@ handle_error:
|
|||||||
return read_end - buf;
|
return read_end - buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flac_parse_init(AVCodecParserContext *c)
|
static av_cold int flac_parse_init(AVCodecParserContext *c)
|
||||||
{
|
{
|
||||||
FLACParseContext *fpc = c->priv_data;
|
FLACParseContext *fpc = c->priv_data;
|
||||||
fpc->pc = c;
|
fpc->pc = c;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
* H.261 encoder.
|
* H.261 encoder.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "mpegvideo.h"
|
#include "mpegvideo.h"
|
||||||
#include "h263.h"
|
#include "h263.h"
|
||||||
@ -311,7 +312,7 @@ void ff_h261_encode_mb(MpegEncContext *s, int16_t block[6][64],
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_h261_encode_init(MpegEncContext *s)
|
av_cold void ff_h261_encode_init(MpegEncContext *s)
|
||||||
{
|
{
|
||||||
ff_h261_common_init();
|
ff_h261_common_init();
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
* @author Michael Niedermayer <michaelni@gmx.at>
|
* @author Michael Niedermayer <michaelni@gmx.at>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
#include "h264data.h"
|
#include "h264data.h"
|
||||||
#include "golomb.h"
|
#include "golomb.h"
|
||||||
@ -333,7 +334,7 @@ static void close(AVCodecParserContext *s)
|
|||||||
ff_h264_free_context(h);
|
ff_h264_free_context(h);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int init(AVCodecParserContext *s)
|
static av_cold int init(AVCodecParserContext *s)
|
||||||
{
|
{
|
||||||
H264Context *h = s->priv_data;
|
H264Context *h = s->priv_data;
|
||||||
h->thread_context[0] = h;
|
h->thread_context[0] = h;
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "h264chroma.h"
|
#include "h264chroma.h"
|
||||||
|
|
||||||
#define BIT_DEPTH 8
|
#define BIT_DEPTH 8
|
||||||
@ -35,7 +36,7 @@
|
|||||||
c->avg_h264_chroma_pixels_tab[1] = avg_h264_chroma_mc4_ ## depth ## _c; \
|
c->avg_h264_chroma_pixels_tab[1] = avg_h264_chroma_mc4_ ## depth ## _c; \
|
||||||
c->avg_h264_chroma_pixels_tab[2] = avg_h264_chroma_mc2_ ## depth ## _c; \
|
c->avg_h264_chroma_pixels_tab[2] = avg_h264_chroma_mc2_ ## depth ## _c; \
|
||||||
|
|
||||||
void ff_h264chroma_init(H264ChromaContext *c, int bit_depth)
|
av_cold void ff_h264chroma_init(H264ChromaContext *c, int bit_depth)
|
||||||
{
|
{
|
||||||
if (bit_depth > 8 && bit_depth <= 16) {
|
if (bit_depth > 8 && bit_depth <= 16) {
|
||||||
SET_CHROMA(16);
|
SET_CHROMA(16);
|
||||||
|
@ -26,6 +26,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "h264dsp.h"
|
#include "h264dsp.h"
|
||||||
#include "h264idct.h"
|
#include "h264idct.h"
|
||||||
@ -51,7 +53,8 @@
|
|||||||
#include "h264addpx_template.c"
|
#include "h264addpx_template.c"
|
||||||
#undef BIT_DEPTH
|
#undef BIT_DEPTH
|
||||||
|
|
||||||
void ff_h264dsp_init(H264DSPContext *c, const int bit_depth, const int chroma_format_idc)
|
av_cold void ff_h264dsp_init(H264DSPContext *c, const int bit_depth,
|
||||||
|
const int chroma_format_idc)
|
||||||
{
|
{
|
||||||
#undef FUNC
|
#undef FUNC
|
||||||
#define FUNC(a, depth) a ## _ ## depth ## _c
|
#define FUNC(a, depth) a ## _ ## depth ## _c
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
* @author Michael Niedermayer <michaelni@gmx.at>
|
* @author Michael Niedermayer <michaelni@gmx.at>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "dsputil.h"
|
#include "dsputil.h"
|
||||||
#include "h264pred.h"
|
#include "h264pred.h"
|
||||||
|
|
||||||
@ -397,7 +398,8 @@ static void pred8x8_tm_vp8_c(uint8_t *src, ptrdiff_t stride)
|
|||||||
/**
|
/**
|
||||||
* Set the intra prediction function pointers.
|
* Set the intra prediction function pointers.
|
||||||
*/
|
*/
|
||||||
void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth,
|
av_cold void ff_h264_pred_init(H264PredContext *h, int codec_id,
|
||||||
|
const int bit_depth,
|
||||||
const int chroma_format_idc)
|
const int chroma_format_idc)
|
||||||
{
|
{
|
||||||
#undef FUNC
|
#undef FUNC
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
* 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 "h264qpel.h"
|
#include "h264qpel.h"
|
||||||
|
|
||||||
#define BIT_DEPTH 8
|
#define BIT_DEPTH 8
|
||||||
@ -33,7 +34,7 @@
|
|||||||
#include "h264qpel_template.c"
|
#include "h264qpel_template.c"
|
||||||
#undef BIT_DEPTH
|
#undef BIT_DEPTH
|
||||||
|
|
||||||
void ff_h264qpel_init(H264QpelContext *c, int bit_depth)
|
av_cold void ff_h264qpel_init(H264QpelContext *c, int bit_depth)
|
||||||
{
|
{
|
||||||
#undef FUNCC
|
#undef FUNCC
|
||||||
#define FUNCC(f, depth) f ## _ ## depth ## _c
|
#define FUNCC(f, depth) f ## _ ## depth ## _c
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include "iirfilter.h"
|
#include "iirfilter.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -48,7 +49,8 @@ typedef struct FFIIRFilterState{
|
|||||||
/// maximum supported filter order
|
/// maximum supported filter order
|
||||||
#define MAXORDER 30
|
#define MAXORDER 30
|
||||||
|
|
||||||
static int butterworth_init_coeffs(void *avc, struct FFIIRFilterCoeffs *c,
|
static av_cold int butterworth_init_coeffs(void *avc,
|
||||||
|
struct FFIIRFilterCoeffs *c,
|
||||||
enum IIRFilterMode filt_mode,
|
enum IIRFilterMode filt_mode,
|
||||||
int order, float cutoff_ratio,
|
int order, float cutoff_ratio,
|
||||||
float stopband)
|
float stopband)
|
||||||
@ -113,7 +115,7 @@ static int butterworth_init_coeffs(void *avc, struct FFIIRFilterCoeffs *c,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int biquad_init_coeffs(void *avc, struct FFIIRFilterCoeffs *c,
|
static av_cold int biquad_init_coeffs(void *avc, struct FFIIRFilterCoeffs *c,
|
||||||
enum IIRFilterMode filt_mode, int order,
|
enum IIRFilterMode filt_mode, int order,
|
||||||
float cutoff_ratio, float stopband)
|
float cutoff_ratio, float stopband)
|
||||||
{
|
{
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/internal.h"
|
#include "libavutil/internal.h"
|
||||||
#include "libavutil/mathematics.h"
|
#include "libavutil/mathematics.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
@ -101,7 +102,7 @@ static VLC cbpc_b_vlc;
|
|||||||
/* init vlcs */
|
/* init vlcs */
|
||||||
|
|
||||||
/* XXX: find a better solution to handle static init */
|
/* XXX: find a better solution to handle static init */
|
||||||
void ff_h263_decode_init_vlc(void)
|
av_cold void ff_h263_decode_init_vlc(void)
|
||||||
{
|
{
|
||||||
static int done = 0;
|
static int done = 0;
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "mpegvideo.h"
|
#include "mpegvideo.h"
|
||||||
#include "h263.h"
|
#include "h263.h"
|
||||||
@ -682,7 +683,7 @@ void ff_h263_encode_motion(MpegEncContext * s, int val, int f_code)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void init_mv_penalty_and_fcode(MpegEncContext *s)
|
static av_cold void init_mv_penalty_and_fcode(MpegEncContext *s)
|
||||||
{
|
{
|
||||||
int f_code;
|
int f_code;
|
||||||
int mv;
|
int mv;
|
||||||
@ -724,7 +725,9 @@ static void init_mv_penalty_and_fcode(MpegEncContext *s)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void init_uni_h263_rl_tab(RLTable *rl, uint32_t *bits_tab, uint8_t *len_tab){
|
static av_cold void init_uni_h263_rl_tab(RLTable *rl, uint32_t *bits_tab,
|
||||||
|
uint8_t *len_tab)
|
||||||
|
{
|
||||||
int slevel, run, last;
|
int slevel, run, last;
|
||||||
|
|
||||||
assert(MAX_LEVEL >= 64);
|
assert(MAX_LEVEL >= 64);
|
||||||
@ -767,7 +770,7 @@ static void init_uni_h263_rl_tab(RLTable *rl, uint32_t *bits_tab, uint8_t *len_t
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_h263_encode_init(MpegEncContext *s)
|
av_cold void ff_h263_encode_init(MpegEncContext *s)
|
||||||
{
|
{
|
||||||
static int done = 0;
|
static int done = 0;
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ static int ivi_create_huff_from_desc(const IVIHuffDesc *cb, VLC *vlc, int flag)
|
|||||||
(flag ? INIT_VLC_USE_NEW_STATIC : 0) | INIT_VLC_LE);
|
(flag ? INIT_VLC_USE_NEW_STATIC : 0) | INIT_VLC_LE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_ivi_init_static_vlc(void)
|
av_cold void ff_ivi_init_static_vlc(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
static VLC_TYPE table_data[8192 * 16][2];
|
static VLC_TYPE table_data[8192 * 16][2];
|
||||||
|
@ -23,8 +23,9 @@
|
|||||||
* function definitions common to libschroedinger decoder and encoder
|
* function definitions common to libschroedinger decoder and encoder
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libschroedinger.h"
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/mem.h"
|
#include "libavutil/mem.h"
|
||||||
|
#include "libschroedinger.h"
|
||||||
|
|
||||||
static const SchroVideoFormatInfo ff_schro_video_format_info[] = {
|
static const SchroVideoFormatInfo ff_schro_video_format_info[] = {
|
||||||
{ 640, 480, 24000, 1001},
|
{ 640, 480, 24000, 1001},
|
||||||
@ -66,7 +67,7 @@ static unsigned int get_video_format_idx(AVCodecContext *avctx)
|
|||||||
return ret_idx;
|
return ret_idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_schro_queue_init(FFSchroQueue *queue)
|
av_cold void ff_schro_queue_init(FFSchroQueue *queue)
|
||||||
{
|
{
|
||||||
queue->p_head = queue->p_tail = NULL;
|
queue->p_head = queue->p_tail = NULL;
|
||||||
queue->size = 0;
|
queue->size = 0;
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
#include <schroedinger/schrodebug.h>
|
#include <schroedinger/schrodebug.h>
|
||||||
#include <schroedinger/schrovideoformat.h>
|
#include <schroedinger/schrovideoformat.h>
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "libschroedinger.h"
|
#include "libschroedinger.h"
|
||||||
@ -102,7 +103,7 @@ static int set_chroma_format(AVCodecContext *avctx)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int libschroedinger_encode_init(AVCodecContext *avctx)
|
static av_cold int libschroedinger_encode_init(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
SchroEncoderParams *p_schro_params = avctx->priv_data;
|
SchroEncoderParams *p_schro_params = avctx->priv_data;
|
||||||
SchroVideoFormatEnum preset;
|
SchroVideoFormatEnum preset;
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "libxvid.h"
|
#include "libxvid.h"
|
||||||
#include "mpegvideo.h"
|
#include "mpegvideo.h"
|
||||||
@ -70,7 +71,8 @@ int ff_tempfile(const char *prefix, char **filename) {
|
|||||||
return fd; /* success */
|
return fd; /* success */
|
||||||
}
|
}
|
||||||
|
|
||||||
int ff_xvid_rate_control_init(MpegEncContext *s){
|
av_cold int ff_xvid_rate_control_init(MpegEncContext *s)
|
||||||
|
{
|
||||||
char *tmp_name;
|
char *tmp_name;
|
||||||
int fd, i;
|
int fd, i;
|
||||||
xvid_plg_create_t xvid_plg_create = { 0 };
|
xvid_plg_create_t xvid_plg_create = { 0 };
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "mlpdsp.h"
|
#include "mlpdsp.h"
|
||||||
#include "mlp.h"
|
#include "mlp.h"
|
||||||
|
|
||||||
@ -56,7 +57,7 @@ static void mlp_filter_channel(int32_t *state, const int32_t *coeff,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_mlpdsp_init(MLPDSPContext *c)
|
av_cold void ff_mlpdsp_init(MLPDSPContext *c)
|
||||||
{
|
{
|
||||||
c->mlp_filter_channel = mlp_filter_channel;
|
c->mlp_filter_channel = mlp_filter_channel;
|
||||||
if (ARCH_X86)
|
if (ARCH_X86)
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
* divided into 32 subbands.
|
* divided into 32 subbands.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "get_bits.h"
|
#include "get_bits.h"
|
||||||
#include "mpegaudiodsp.h"
|
#include "mpegaudiodsp.h"
|
||||||
@ -34,7 +35,7 @@
|
|||||||
#include "mpc.h"
|
#include "mpc.h"
|
||||||
#include "mpcdata.h"
|
#include "mpcdata.h"
|
||||||
|
|
||||||
void ff_mpc_init(void)
|
av_cold void ff_mpc_init(void)
|
||||||
{
|
{
|
||||||
ff_mpa_synth_init_fixed(ff_mpa_synth_window_fixed);
|
ff_mpa_synth_init_fixed(ff_mpa_synth_window_fixed);
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "dsputil.h"
|
#include "dsputil.h"
|
||||||
@ -55,7 +56,7 @@ uint8_t ff_mpeg12_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3];
|
|||||||
init_2d_vlc_rl(&rl);\
|
init_2d_vlc_rl(&rl);\
|
||||||
}
|
}
|
||||||
|
|
||||||
static void init_2d_vlc_rl(RLTable *rl)
|
static av_cold void init_2d_vlc_rl(RLTable *rl)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -88,7 +89,7 @@ static void init_2d_vlc_rl(RLTable *rl)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_mpeg12_common_init(MpegEncContext *s)
|
av_cold void ff_mpeg12_common_init(MpegEncContext *s)
|
||||||
{
|
{
|
||||||
|
|
||||||
s->y_dc_scale_table =
|
s->y_dc_scale_table =
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
#include "mpeg12data.h"
|
#include "mpeg12data.h"
|
||||||
#include "bytestream.h"
|
#include "bytestream.h"
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/log.h"
|
#include "libavutil/log.h"
|
||||||
#include "libavutil/opt.h"
|
#include "libavutil/opt.h"
|
||||||
|
|
||||||
@ -67,7 +68,8 @@ static uint32_t mpeg1_chr_dc_uni[512];
|
|||||||
static uint8_t mpeg1_index_run[2][64];
|
static uint8_t mpeg1_index_run[2][64];
|
||||||
static int8_t mpeg1_max_level[2][64];
|
static int8_t mpeg1_max_level[2][64];
|
||||||
|
|
||||||
static void init_uni_ac_vlc(RLTable *rl, uint8_t *uni_ac_vlc_len){
|
static av_cold void init_uni_ac_vlc(RLTable *rl, uint8_t *uni_ac_vlc_len)
|
||||||
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for(i=0; i<128; i++){
|
for(i=0; i<128; i++){
|
||||||
@ -702,7 +704,7 @@ static void mpeg1_encode_motion(MpegEncContext *s, int val, int f_or_b_code)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_mpeg1_encode_init(MpegEncContext *s)
|
av_cold void ff_mpeg1_encode_init(MpegEncContext *s)
|
||||||
{
|
{
|
||||||
static int done=0;
|
static int done=0;
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
* 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/log.h"
|
#include "libavutil/log.h"
|
||||||
#include "libavutil/opt.h"
|
#include "libavutil/opt.h"
|
||||||
#include "mpegvideo.h"
|
#include "mpegvideo.h"
|
||||||
@ -1083,7 +1084,7 @@ void ff_mpeg4_encode_picture_header(MpegEncContext * s, int picture_number)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void init_uni_dc_tab(void)
|
static av_cold void init_uni_dc_tab(void)
|
||||||
{
|
{
|
||||||
int level, uni_code, uni_len;
|
int level, uni_code, uni_len;
|
||||||
|
|
||||||
@ -1135,7 +1136,9 @@ static void init_uni_dc_tab(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void init_uni_mpeg4_rl_tab(RLTable *rl, uint32_t *bits_tab, uint8_t *len_tab){
|
static av_cold void init_uni_mpeg4_rl_tab(RLTable *rl, uint32_t *bits_tab,
|
||||||
|
uint8_t *len_tab)
|
||||||
|
{
|
||||||
int slevel, run, last;
|
int slevel, run, last;
|
||||||
|
|
||||||
assert(MAX_LEVEL >= 64);
|
assert(MAX_LEVEL >= 64);
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
* MPEG Audio decoder
|
* MPEG Audio decoder
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/avassert.h"
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/channel_layout.h"
|
#include "libavutil/channel_layout.h"
|
||||||
#include "libavutil/float_dsp.h"
|
#include "libavutil/float_dsp.h"
|
||||||
@ -1820,7 +1821,7 @@ static av_cold int decode_close_mp3on4(AVCodecContext * avctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int decode_init_mp3on4(AVCodecContext * avctx)
|
static av_cold int decode_init_mp3on4(AVCodecContext * avctx)
|
||||||
{
|
{
|
||||||
MP3On4DecodeContext *s = avctx->priv_data;
|
MP3On4DecodeContext *s = avctx->priv_data;
|
||||||
MPEG4AudioConfig cfg;
|
MPEG4AudioConfig cfg;
|
||||||
|
@ -19,11 +19,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "mpegaudiodsp.h"
|
#include "mpegaudiodsp.h"
|
||||||
#include "dct.h"
|
#include "dct.h"
|
||||||
#include "dct32.h"
|
#include "dct32.h"
|
||||||
|
|
||||||
void ff_mpadsp_init(MPADSPContext *s)
|
av_cold void ff_mpadsp_init(MPADSPContext *s)
|
||||||
{
|
{
|
||||||
DCTContext dct;
|
DCTContext dct;
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/mem.h"
|
#include "libavutil/mem.h"
|
||||||
#include "dct32.h"
|
#include "dct32.h"
|
||||||
#include "mathops.h"
|
#include "mathops.h"
|
||||||
@ -220,7 +221,7 @@ av_cold void RENAME(ff_mpa_synth_init)(MPA_INT *window)
|
|||||||
window[512+128+16*i+j] = window[64*i+48-j];
|
window[512+128+16*i+j] = window[64*i+48-j];
|
||||||
}
|
}
|
||||||
|
|
||||||
void RENAME(ff_init_mpadsp_tabs)(void)
|
av_cold void RENAME(ff_init_mpadsp_tabs)(void)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
/* compute mdct windows */
|
/* compute mdct windows */
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
* The simplest mpeg encoder (well, it was the simplest!).
|
* The simplest mpeg encoder (well, it was the simplest!).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/avassert.h"
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/imgutils.h"
|
#include "libavutil/imgutils.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
@ -1303,7 +1304,7 @@ void ff_MPV_common_end(MpegEncContext *s)
|
|||||||
s->linesize = s->uvlinesize = 0;
|
s->linesize = s->uvlinesize = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_init_rl(RLTable *rl,
|
av_cold void ff_init_rl(RLTable *rl,
|
||||||
uint8_t static_store[2][2 * MAX_RUN + MAX_LEVEL + 3])
|
uint8_t static_store[2][2 * MAX_RUN + MAX_LEVEL + 3])
|
||||||
{
|
{
|
||||||
int8_t max_level[MAX_RUN + 1], max_run[MAX_LEVEL + 1];
|
int8_t max_level[MAX_RUN + 1], max_run[MAX_LEVEL + 1];
|
||||||
@ -1355,7 +1356,7 @@ void ff_init_rl(RLTable *rl,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_init_vlc_rl(RLTable *rl)
|
av_cold void ff_init_vlc_rl(RLTable *rl)
|
||||||
{
|
{
|
||||||
int i, q;
|
int i, q;
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/avutil.h"
|
#include "libavutil/avutil.h"
|
||||||
#include "libavutil/mem.h"
|
#include "libavutil/mem.h"
|
||||||
#include "mpegvideo.h"
|
#include "mpegvideo.h"
|
||||||
@ -45,7 +46,7 @@
|
|||||||
static uint8_t rl_length[NB_RL_TABLES][MAX_LEVEL+1][MAX_RUN+1][2];
|
static uint8_t rl_length[NB_RL_TABLES][MAX_LEVEL+1][MAX_RUN+1][2];
|
||||||
|
|
||||||
/* build the table which associate a (x,y) motion vector to a vlc */
|
/* build the table which associate a (x,y) motion vector to a vlc */
|
||||||
static void init_mv_table(MVTable *tab)
|
static av_cold void init_mv_table(MVTable *tab)
|
||||||
{
|
{
|
||||||
int i, x, y;
|
int i, x, y;
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
* 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/common.h"
|
#include "libavutil/common.h"
|
||||||
#include "png.h"
|
#include "png.h"
|
||||||
#include "pngdsp.h"
|
#include "pngdsp.h"
|
||||||
@ -39,7 +40,7 @@ static void add_bytes_l2_c(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w)
|
|||||||
dst[i] = src1[i] + src2[i];
|
dst[i] = src1[i] + src2[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_pngdsp_init(PNGDSPContext *dsp)
|
av_cold void ff_pngdsp_init(PNGDSPContext *dsp)
|
||||||
{
|
{
|
||||||
dsp->add_bytes_l2 = add_bytes_l2_c;
|
dsp->add_bytes_l2 = add_bytes_l2_c;
|
||||||
dsp->add_paeth_prediction = ff_add_png_paeth_prediction;
|
dsp->add_paeth_prediction = ff_add_png_paeth_prediction;
|
||||||
|
@ -20,11 +20,12 @@
|
|||||||
* 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/common.h"
|
||||||
#include "dct.h"
|
#include "dct.h"
|
||||||
#include "dsputil.h"
|
#include "dsputil.h"
|
||||||
#include "proresdsp.h"
|
#include "proresdsp.h"
|
||||||
#include "simple_idct.h"
|
#include "simple_idct.h"
|
||||||
#include "libavutil/common.h"
|
|
||||||
|
|
||||||
#define BIAS (1 << (PRORES_BITS_PER_SAMPLE - 1)) ///< bias value for converting signed pixels into unsigned ones
|
#define BIAS (1 << (PRORES_BITS_PER_SAMPLE - 1)) ///< bias value for converting signed pixels into unsigned ones
|
||||||
#define CLIP_MIN (1 << (PRORES_BITS_PER_SAMPLE - 8)) ///< minimum value for clipping resulting pixels
|
#define CLIP_MIN (1 << (PRORES_BITS_PER_SAMPLE - 8)) ///< minimum value for clipping resulting pixels
|
||||||
@ -71,7 +72,7 @@ static void prores_fdct_c(const uint16_t *src, int linesize, int16_t *block)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void ff_proresdsp_init(ProresDSPContext *dsp)
|
av_cold void ff_proresdsp_init(ProresDSPContext *dsp)
|
||||||
{
|
{
|
||||||
#if CONFIG_PRORES_DECODER
|
#if CONFIG_PRORES_DECODER
|
||||||
dsp->idct_put = prores_idct_put_c;
|
dsp->idct_put = prores_idct_put_c;
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
* Dedicated to the mastermind behind it, Ralph Wiggum.
|
* Dedicated to the mastermind behind it, Ralph Wiggum.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/channel_layout.h"
|
#include "libavutil/channel_layout.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "get_bits.h"
|
#include "get_bits.h"
|
||||||
@ -72,7 +73,7 @@ typedef struct RALFContext {
|
|||||||
|
|
||||||
#define MAX_ELEMS 644 // no RALF table uses more than that
|
#define MAX_ELEMS 644 // no RALF table uses more than that
|
||||||
|
|
||||||
static int init_ralf_vlc(VLC *vlc, const uint8_t *data, int elems)
|
static av_cold int init_ralf_vlc(VLC *vlc, const uint8_t *data, int elems)
|
||||||
{
|
{
|
||||||
uint8_t lens[MAX_ELEMS];
|
uint8_t lens[MAX_ELEMS];
|
||||||
uint16_t codes[MAX_ELEMS];
|
uint16_t codes[MAX_ELEMS];
|
||||||
|
@ -33,11 +33,12 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "rangecoder.h"
|
#include "rangecoder.h"
|
||||||
#include "bytestream.h"
|
#include "bytestream.h"
|
||||||
|
|
||||||
void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size)
|
av_cold void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size)
|
||||||
{
|
{
|
||||||
c->bytestream_start =
|
c->bytestream_start =
|
||||||
c->bytestream = buf;
|
c->bytestream = buf;
|
||||||
@ -48,7 +49,8 @@ void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size)
|
|||||||
c->outstanding_byte = -1;
|
c->outstanding_byte = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, int buf_size)
|
av_cold void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf,
|
||||||
|
int buf_size)
|
||||||
{
|
{
|
||||||
/* cast to avoid compiler warning */
|
/* cast to avoid compiler warning */
|
||||||
ff_init_range_encoder(c, (uint8_t *)buf, buf_size);
|
ff_init_range_encoder(c, (uint8_t *)buf, buf_size);
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
* Rate control for video encoders.
|
* Rate control for video encoders.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "ratecontrol.h"
|
#include "ratecontrol.h"
|
||||||
#include "mpegvideo.h"
|
#include "mpegvideo.h"
|
||||||
@ -78,7 +79,7 @@ static inline double bits2qp(RateControlEntry *rce, double bits)
|
|||||||
return rce->qscale * (double)(rce->i_tex_bits + rce->p_tex_bits + 1) / bits;
|
return rce->qscale * (double)(rce->i_tex_bits + rce->p_tex_bits + 1) / bits;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ff_rate_control_init(MpegEncContext *s)
|
av_cold int ff_rate_control_init(MpegEncContext *s)
|
||||||
{
|
{
|
||||||
RateControlContext *rcc = &s->rc_context;
|
RateControlContext *rcc = &s->rc_context;
|
||||||
int i, res;
|
int i, res;
|
||||||
@ -282,7 +283,7 @@ int ff_rate_control_init(MpegEncContext *s)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_rate_control_uninit(MpegEncContext *s)
|
av_cold void ff_rate_control_uninit(MpegEncContext *s)
|
||||||
{
|
{
|
||||||
RateControlContext *rcc = &s->rc_context;
|
RateControlContext *rcc = &s->rc_context;
|
||||||
emms_c();
|
emms_c();
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "roqvideo.h"
|
#include "roqvideo.h"
|
||||||
#include "bytestream.h"
|
#include "bytestream.h"
|
||||||
#include "elbg.h"
|
#include "elbg.h"
|
||||||
@ -952,7 +953,7 @@ static int roq_encode_end(AVCodecContext *avctx)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int roq_encode_init(AVCodecContext *avctx)
|
static av_cold int roq_encode_init(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
RoqContext *enc = avctx->priv_data;
|
RoqContext *enc = avctx->priv_data;
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "sipr.h"
|
#include "sipr.h"
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
#include "libavutil/float_dsp.h"
|
#include "libavutil/float_dsp.h"
|
||||||
#include "libavutil/mathematics.h"
|
#include "libavutil/mathematics.h"
|
||||||
@ -268,7 +269,7 @@ void ff_sipr_decode_frame_16k(SiprContext *ctx, SiprParameters *params,
|
|||||||
memcpy(ctx->iir_mem, Az[1], LP_FILTER_ORDER_16k * sizeof(float));
|
memcpy(ctx->iir_mem, Az[1], LP_FILTER_ORDER_16k * sizeof(float));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_sipr_init_16k(SiprContext *ctx)
|
av_cold void ff_sipr_init_16k(SiprContext *ctx)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/avassert.h"
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/avstring.h"
|
#include "libavutil/avstring.h"
|
||||||
#include "libavutil/channel_layout.h"
|
#include "libavutil/channel_layout.h"
|
||||||
@ -109,7 +110,7 @@ AVCodec *av_codec_next(const AVCodec *c)
|
|||||||
return first_avcodec;
|
return first_avcodec;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void avcodec_init(void)
|
static av_cold void avcodec_init(void)
|
||||||
{
|
{
|
||||||
static int initialized = 0;
|
static int initialized = 0;
|
||||||
|
|
||||||
@ -131,7 +132,7 @@ int av_codec_is_decoder(const AVCodec *codec)
|
|||||||
return codec && codec->decode;
|
return codec && codec->decode;
|
||||||
}
|
}
|
||||||
|
|
||||||
void avcodec_register(AVCodec *codec)
|
av_cold void avcodec_register(AVCodec *codec)
|
||||||
{
|
{
|
||||||
AVCodec **p;
|
AVCodec **p;
|
||||||
avcodec_init();
|
avcodec_init();
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "mpegvideo.h"
|
#include "mpegvideo.h"
|
||||||
@ -1484,7 +1485,7 @@ static const uint16_t vlc_offs[] = {
|
|||||||
* @param v The VC1Context to initialize
|
* @param v The VC1Context to initialize
|
||||||
* @return Status
|
* @return Status
|
||||||
*/
|
*/
|
||||||
int ff_vc1_init_common(VC1Context *v)
|
av_cold int ff_vc1_init_common(VC1Context *v)
|
||||||
{
|
{
|
||||||
static int done = 0;
|
static int done = 0;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
* VC-1 and WMV3 parser
|
* VC-1 and WMV3 parser
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
#include "vc1.h"
|
#include "vc1.h"
|
||||||
#include "get_bits.h"
|
#include "get_bits.h"
|
||||||
@ -189,7 +190,7 @@ static int vc1_split(AVCodecContext *avctx,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int vc1_parse_init(AVCodecParserContext *s)
|
static av_cold int vc1_parse_init(AVCodecParserContext *s)
|
||||||
{
|
{
|
||||||
VC1ParseContext *vpc = s->priv_data;
|
VC1ParseContext *vpc = s->priv_data;
|
||||||
vpc->v.s.slice_context_count = 1;
|
vpc->v.s.slice_context_count = 1;
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
* 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/common.h"
|
#include "libavutil/common.h"
|
||||||
#include "videodsp.h"
|
#include "videodsp.h"
|
||||||
|
|
||||||
@ -33,7 +34,7 @@ static void just_return(uint8_t *buf, ptrdiff_t stride, int h)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_videodsp_init(VideoDSPContext *ctx, int bpc)
|
av_cold void ff_videodsp_init(VideoDSPContext *ctx, int bpc)
|
||||||
{
|
{
|
||||||
ctx->prefetch = just_return;
|
ctx->prefetch = just_return;
|
||||||
if (bpc <= 8) {
|
if (bpc <= 8) {
|
||||||
|
@ -17,10 +17,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "vorbisdsp.h"
|
#include "vorbisdsp.h"
|
||||||
#include "vorbis.h"
|
#include "vorbis.h"
|
||||||
|
|
||||||
void ff_vorbisdsp_init(VorbisDSPContext *dsp)
|
av_cold void ff_vorbisdsp_init(VorbisDSPContext *dsp)
|
||||||
{
|
{
|
||||||
dsp->vorbis_inverse_coupling = ff_vorbis_inverse_coupling;
|
dsp->vorbis_inverse_coupling = ff_vorbis_inverse_coupling;
|
||||||
|
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "vp56dsp.h"
|
#include "vp56dsp.h"
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
@ -75,7 +77,7 @@ VP56_EDGE_FILTER(vp5, ver, stride, 1)
|
|||||||
VP56_EDGE_FILTER(vp6, hor, 1, stride)
|
VP56_EDGE_FILTER(vp6, hor, 1, stride)
|
||||||
VP56_EDGE_FILTER(vp6, ver, stride, 1)
|
VP56_EDGE_FILTER(vp6, ver, stride, 1)
|
||||||
|
|
||||||
void ff_vp56dsp_init(VP56DSPContext *s, enum AVCodecID codec)
|
av_cold void ff_vp56dsp_init(VP56DSPContext *s, enum AVCodecID codec)
|
||||||
{
|
{
|
||||||
if (codec == AV_CODEC_ID_VP5) {
|
if (codec == AV_CODEC_ID_VP5) {
|
||||||
s->edge_filter_hor = vp5_edge_filter_hor;
|
s->edge_filter_hor = vp5_edge_filter_hor;
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
* 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 "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "sinewin.h"
|
#include "sinewin.h"
|
||||||
#include "wma.h"
|
#include "wma.h"
|
||||||
@ -30,7 +31,7 @@
|
|||||||
|
|
||||||
/* XXX: use same run/length optimization as mpeg decoders */
|
/* XXX: use same run/length optimization as mpeg decoders */
|
||||||
//FIXME maybe split decode / encode or pass flag
|
//FIXME maybe split decode / encode or pass flag
|
||||||
static void init_coef_vlc(VLC *vlc, uint16_t **prun_table,
|
static av_cold void init_coef_vlc(VLC *vlc, uint16_t **prun_table,
|
||||||
float **plevel_table, uint16_t **pint_table,
|
float **plevel_table, uint16_t **pint_table,
|
||||||
const CoefVLCTable *vlc_table)
|
const CoefVLCTable *vlc_table)
|
||||||
{
|
{
|
||||||
@ -68,7 +69,7 @@ static void init_coef_vlc(VLC *vlc, uint16_t **prun_table,
|
|||||||
av_free(level_table);
|
av_free(level_table);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ff_wma_init(AVCodecContext *avctx, int flags2)
|
av_cold int ff_wma_init(AVCodecContext *avctx, int flags2)
|
||||||
{
|
{
|
||||||
WMACodecContext *s = avctx->priv_data;
|
WMACodecContext *s = avctx->priv_data;
|
||||||
int i;
|
int i;
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* should be 4 extra bytes for v1 data and 6 extra bytes for v2 data.
|
* should be 4 extra bytes for v1 data and 6 extra bytes for v2 data.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "wma.h"
|
#include "wma.h"
|
||||||
@ -66,7 +67,7 @@ static void dump_floats(WMACodecContext *s, const char *name, int prec, const fl
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int wma_decode_init(AVCodecContext * avctx)
|
static av_cold int wma_decode_init(AVCodecContext * avctx)
|
||||||
{
|
{
|
||||||
WMACodecContext *s = avctx->priv_data;
|
WMACodecContext *s = avctx->priv_data;
|
||||||
int i, flags2;
|
int i, flags2;
|
||||||
@ -143,7 +144,7 @@ static inline float pow_m1_4(WMACodecContext *s, float x)
|
|||||||
return s->lsp_pow_e_table[e] * (a + b * t.f);
|
return s->lsp_pow_e_table[e] * (a + b * t.f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void wma_lsp_to_curve_init(WMACodecContext *s, int frame_len)
|
static av_cold void wma_lsp_to_curve_init(WMACodecContext *s, int frame_len)
|
||||||
{
|
{
|
||||||
float wdel, a, b;
|
float wdel, a, b;
|
||||||
int i, e, m;
|
int i, e, m;
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
* 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 "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "wma.h"
|
#include "wma.h"
|
||||||
@ -27,7 +28,8 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
||||||
static int encode_init(AVCodecContext * avctx){
|
static av_cold int encode_init(AVCodecContext *avctx)
|
||||||
|
{
|
||||||
WMACodecContext *s = avctx->priv_data;
|
WMACodecContext *s = avctx->priv_data;
|
||||||
int i, flags1, flags2, block_align;
|
int i, flags1, flags2, block_align;
|
||||||
uint8_t *extradata;
|
uint8_t *extradata;
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/cpu.h"
|
#include "libavutil/cpu.h"
|
||||||
#include "libavutil/x86/cpu.h"
|
#include "libavutil/x86/cpu.h"
|
||||||
#include "libavcodec/h264chroma.h"
|
#include "libavcodec/h264chroma.h"
|
||||||
@ -66,7 +67,7 @@ CHROMA_MC(avg, 8, 10, sse2)
|
|||||||
CHROMA_MC(put, 8, 10, avx)
|
CHROMA_MC(put, 8, 10, avx)
|
||||||
CHROMA_MC(avg, 8, 10, avx)
|
CHROMA_MC(avg, 8, 10, avx)
|
||||||
|
|
||||||
void ff_h264chroma_init_x86(H264ChromaContext *c, int bit_depth)
|
av_cold void ff_h264chroma_init_x86(H264ChromaContext *c, int bit_depth)
|
||||||
{
|
{
|
||||||
#if HAVE_YASM
|
#if HAVE_YASM
|
||||||
int high_bit_depth = bit_depth > 8;
|
int high_bit_depth = bit_depth > 8;
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
* 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/x86/cpu.h"
|
#include "libavutil/x86/cpu.h"
|
||||||
#include "libavcodec/dsputil.h"
|
#include "libavcodec/dsputil.h"
|
||||||
#include "libavcodec/proresdsp.h"
|
#include "libavcodec/proresdsp.h"
|
||||||
@ -31,7 +32,7 @@ void ff_prores_idct_put_10_sse4(uint16_t *dst, int linesize,
|
|||||||
void ff_prores_idct_put_10_avx (uint16_t *dst, int linesize,
|
void ff_prores_idct_put_10_avx (uint16_t *dst, int linesize,
|
||||||
int16_t *block, const int16_t *qmat);
|
int16_t *block, const int16_t *qmat);
|
||||||
|
|
||||||
void ff_proresdsp_x86_init(ProresDSPContext *dsp)
|
av_cold void ff_proresdsp_x86_init(ProresDSPContext *dsp)
|
||||||
{
|
{
|
||||||
#if ARCH_X86_64
|
#if ARCH_X86_64
|
||||||
int flags = av_get_cpu_flags();
|
int flags = av_get_cpu_flags();
|
||||||
|
Loading…
Reference in New Issue
Block a user