Commit 21ba8021 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  h264_cabac: Mark functions calling decode_cabac_residual_internal as noinline
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 626739eb ff9d57e7
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#define CABAC(h) 1 #define CABAC(h) 1
#define UNCHECKED_BITSTREAM_READER 1 #define UNCHECKED_BITSTREAM_READER 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,26 +1741,30 @@ decode_cabac_residual_internal(H264Context *h, int16_t *block, ...@@ -1740,26 +1741,30 @@ 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,
int cat, int n, int16_t *block,
const uint8_t *scantable, int cat, int n,
int max_coeff) const uint8_t *scantable,
int max_coeff)
{ {
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 max_coeff) int cat, int n,
const uint8_t *scantable,
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,
int cat, int n, int16_t *block,
const uint8_t *scantable, int cat, int n,
const uint32_t *qmul, const uint8_t *scantable,
int max_coeff) const uint32_t *qmul,
int max_coeff)
{ {
decode_cabac_residual_internal(h, block, cat, n, scantable, qmul, max_coeff, 0, 0); decode_cabac_residual_internal(h, block, cat, n, scantable, qmul, max_coeff, 0, 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment