mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
h264_cabac: Mark functions calling decode_cabac_residual_internal as noinline
This ensures that decode_cabac_residual_internal actually does get inlined, which it otherwise does not, even though it is marked as always_inline.
This commit is contained in:
parent
f407856968
commit
ff9d57e7df
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#define CABAC(h) 1
|
#define CABAC(h) 1
|
||||||
|
|
||||||
|
#include "libavutil/attributes.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "cabac.h"
|
#include "cabac.h"
|
||||||
#include "cabac_functions.h"
|
#include "cabac_functions.h"
|
||||||
@ -1740,7 +1741,8 @@ decode_cabac_residual_internal(H264Context *h, int16_t *block,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void decode_cabac_residual_dc_internal(H264Context *h, int16_t *block,
|
static av_noinline void decode_cabac_residual_dc_internal(H264Context *h,
|
||||||
|
int16_t *block,
|
||||||
int cat, int n,
|
int cat, int n,
|
||||||
const uint8_t *scantable,
|
const uint8_t *scantable,
|
||||||
int max_coeff)
|
int max_coeff)
|
||||||
@ -1748,14 +1750,17 @@ static void decode_cabac_residual_dc_internal(H264Context *h, int16_t *block,
|
|||||||
decode_cabac_residual_internal(h, block, cat, n, scantable, NULL, max_coeff, 1, 0);
|
decode_cabac_residual_internal(h, block, cat, n, scantable, NULL, max_coeff, 1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void decode_cabac_residual_dc_internal_422(H264Context *h, int16_t *block,
|
static av_noinline void decode_cabac_residual_dc_internal_422(H264Context *h,
|
||||||
int cat, int n, const uint8_t *scantable,
|
int16_t *block,
|
||||||
|
int cat, int n,
|
||||||
|
const uint8_t *scantable,
|
||||||
int max_coeff)
|
int max_coeff)
|
||||||
{
|
{
|
||||||
decode_cabac_residual_internal(h, block, cat, n, scantable, NULL, max_coeff, 1, 1);
|
decode_cabac_residual_internal(h, block, cat, n, scantable, NULL, max_coeff, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void decode_cabac_residual_nondc_internal(H264Context *h, int16_t *block,
|
static av_noinline void decode_cabac_residual_nondc_internal(H264Context *h,
|
||||||
|
int16_t *block,
|
||||||
int cat, int n,
|
int cat, int n,
|
||||||
const uint8_t *scantable,
|
const uint8_t *scantable,
|
||||||
const uint32_t *qmul,
|
const uint32_t *qmul,
|
||||||
|
Loading…
Reference in New Issue
Block a user