| Index: source/libvpx/vp9/common/vp9_reconintra.c
|
| ===================================================================
|
| --- source/libvpx/vp9/common/vp9_reconintra.c (revision 292608)
|
| +++ source/libvpx/vp9/common/vp9_reconintra.c (working copy)
|
| @@ -41,11 +41,11 @@
|
| }
|
|
|
| #if CONFIG_VP9_HIGHBITDEPTH
|
| -#define intra_pred_high_sized(type, size) \
|
| - void vp9_high_##type##_predictor_##size##x##size##_c( \
|
| +#define intra_pred_highbd_sized(type, size) \
|
| + void vp9_highbd_##type##_predictor_##size##x##size##_c( \
|
| uint16_t *dst, ptrdiff_t stride, const uint16_t *above, \
|
| const uint16_t *left, int bd) { \
|
| - high_##type##_predictor(dst, stride, size, above, left, bd); \
|
| + highbd_##type##_predictor(dst, stride, size, above, left, bd); \
|
| }
|
|
|
| #define intra_pred_allsizes(type) \
|
| @@ -53,10 +53,10 @@
|
| intra_pred_sized(type, 8) \
|
| intra_pred_sized(type, 16) \
|
| intra_pred_sized(type, 32) \
|
| - intra_pred_high_sized(type, 4) \
|
| - intra_pred_high_sized(type, 8) \
|
| - intra_pred_high_sized(type, 16) \
|
| - intra_pred_high_sized(type, 32)
|
| + intra_pred_highbd_sized(type, 4) \
|
| + intra_pred_highbd_sized(type, 8) \
|
| + intra_pred_highbd_sized(type, 16) \
|
| + intra_pred_highbd_sized(type, 32)
|
|
|
| #else
|
|
|
| @@ -68,9 +68,9 @@
|
| #endif // CONFIG_VP9_HIGHBITDEPTH
|
|
|
| #if CONFIG_VP9_HIGHBITDEPTH
|
| -static INLINE void high_d207_predictor(uint16_t *dst, ptrdiff_t stride, int bs,
|
| - const uint16_t *above,
|
| - const uint16_t *left, int bd) {
|
| +static INLINE void highbd_d207_predictor(uint16_t *dst, ptrdiff_t stride,
|
| + int bs, const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int r, c;
|
| (void) above;
|
| (void) bd;
|
| @@ -102,9 +102,9 @@
|
| }
|
| }
|
|
|
| -static INLINE void high_d63_predictor(uint16_t *dst, ptrdiff_t stride, int bs,
|
| - const uint16_t *above,
|
| - const uint16_t *left, int bd) {
|
| +static INLINE void highbd_d63_predictor(uint16_t *dst, ptrdiff_t stride,
|
| + int bs, const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int r, c;
|
| (void) left;
|
| (void) bd;
|
| @@ -120,9 +120,9 @@
|
| }
|
| }
|
|
|
| -static INLINE void high_d45_predictor(uint16_t *dst, ptrdiff_t stride, int bs,
|
| - const uint16_t *above,
|
| - const uint16_t *left, int bd) {
|
| +static INLINE void highbd_d45_predictor(uint16_t *dst, ptrdiff_t stride, int bs,
|
| + const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int r, c;
|
| (void) left;
|
| (void) bd;
|
| @@ -137,9 +137,9 @@
|
| }
|
| }
|
|
|
| -static INLINE void high_d117_predictor(uint16_t *dst, ptrdiff_t stride,
|
| - int bs, const uint16_t *above,
|
| - const uint16_t *left, int bd) {
|
| +static INLINE void highbd_d117_predictor(uint16_t *dst, ptrdiff_t stride,
|
| + int bs, const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int r, c;
|
| (void) bd;
|
|
|
| @@ -168,9 +168,9 @@
|
| }
|
| }
|
|
|
| -static INLINE void high_d135_predictor(uint16_t *dst, ptrdiff_t stride, int bs,
|
| - const uint16_t *above,
|
| - const uint16_t *left, int bd) {
|
| +static INLINE void highbd_d135_predictor(uint16_t *dst, ptrdiff_t stride,
|
| + int bs, const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int r, c;
|
| (void) bd;
|
| dst[0] = ROUND_POWER_OF_TWO(left[0] + above[-1] * 2 + above[0], 2);
|
| @@ -190,9 +190,9 @@
|
| }
|
| }
|
|
|
| -static INLINE void high_d153_predictor(uint16_t *dst, ptrdiff_t stride, int bs,
|
| - const uint16_t *above,
|
| - const uint16_t *left, int bd) {
|
| +static INLINE void highbd_d153_predictor(uint16_t *dst, ptrdiff_t stride,
|
| + int bs, const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int r, c;
|
| (void) bd;
|
| dst[0] = ROUND_POWER_OF_TWO(above[-1] + left[0], 1);
|
| @@ -218,9 +218,9 @@
|
| }
|
| }
|
|
|
| -static INLINE void high_v_predictor(uint16_t *dst, ptrdiff_t stride, int bs,
|
| - const uint16_t *above,
|
| - const uint16_t *left, int bd) {
|
| +static INLINE void highbd_v_predictor(uint16_t *dst, ptrdiff_t stride,
|
| + int bs, const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int r;
|
| (void) left;
|
| (void) bd;
|
| @@ -230,9 +230,9 @@
|
| }
|
| }
|
|
|
| -static INLINE void high_h_predictor(uint16_t *dst, ptrdiff_t stride, int bs,
|
| - const uint16_t *above, const uint16_t *left,
|
| - int bd) {
|
| +static INLINE void highbd_h_predictor(uint16_t *dst, ptrdiff_t stride,
|
| + int bs, const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int r;
|
| (void) above;
|
| (void) bd;
|
| @@ -242,9 +242,9 @@
|
| }
|
| }
|
|
|
| -static INLINE void high_tm_predictor(uint16_t *dst, ptrdiff_t stride, int bs,
|
| - const uint16_t *above,
|
| - const uint16_t *left, int bd) {
|
| +static INLINE void highbd_tm_predictor(uint16_t *dst, ptrdiff_t stride,
|
| + int bs, const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int r, c;
|
| int ytop_left = above[-1];
|
| (void) bd;
|
| @@ -251,14 +251,14 @@
|
|
|
| for (r = 0; r < bs; r++) {
|
| for (c = 0; c < bs; c++)
|
| - dst[c] = clip_pixel_high(left[r] + above[c] - ytop_left, bd);
|
| + dst[c] = clip_pixel_highbd(left[r] + above[c] - ytop_left, bd);
|
| dst += stride;
|
| }
|
| }
|
|
|
| -static INLINE void high_dc_128_predictor(uint16_t *dst, ptrdiff_t stride,
|
| - int bs, const uint16_t *above,
|
| - const uint16_t *left, int bd) {
|
| +static INLINE void highbd_dc_128_predictor(uint16_t *dst, ptrdiff_t stride,
|
| + int bs, const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int r;
|
| (void) above;
|
| (void) left;
|
| @@ -269,9 +269,9 @@
|
| }
|
| }
|
|
|
| -static INLINE void high_dc_left_predictor(uint16_t *dst, ptrdiff_t stride,
|
| - int bs, const uint16_t *above,
|
| - const uint16_t *left, int bd) {
|
| +static INLINE void highbd_dc_left_predictor(uint16_t *dst, ptrdiff_t stride,
|
| + int bs, const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int i, r, expected_dc, sum = 0;
|
| (void) above;
|
| (void) bd;
|
| @@ -286,9 +286,9 @@
|
| }
|
| }
|
|
|
| -static INLINE void high_dc_top_predictor(uint16_t *dst, ptrdiff_t stride,
|
| - int bs, const uint16_t *above,
|
| - const uint16_t *left, int bd) {
|
| +static INLINE void highbd_dc_top_predictor(uint16_t *dst, ptrdiff_t stride,
|
| + int bs, const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int i, r, expected_dc, sum = 0;
|
| (void) left;
|
| (void) bd;
|
| @@ -303,9 +303,9 @@
|
| }
|
| }
|
|
|
| -static INLINE void high_dc_predictor(uint16_t *dst, ptrdiff_t stride,
|
| - int bs, const uint16_t *above,
|
| - const uint16_t *left, int bd) {
|
| +static INLINE void highbd_dc_predictor(uint16_t *dst, ptrdiff_t stride,
|
| + int bs, const uint16_t *above,
|
| + const uint16_t *left, int bd) {
|
| int i, r, expected_dc, sum = 0;
|
| const int count = 2 * bs;
|
| (void) bd;
|
| @@ -602,20 +602,20 @@
|
| INIT_ALL_SIZES(dc_pred[1][1], dc);
|
|
|
| #if CONFIG_VP9_HIGHBITDEPTH
|
| - INIT_ALL_SIZES(pred_high[V_PRED], high_v);
|
| - INIT_ALL_SIZES(pred_high[H_PRED], high_h);
|
| - INIT_ALL_SIZES(pred_high[D207_PRED], high_d207);
|
| - INIT_ALL_SIZES(pred_high[D45_PRED], high_d45);
|
| - INIT_ALL_SIZES(pred_high[D63_PRED], high_d63);
|
| - INIT_ALL_SIZES(pred_high[D117_PRED], high_d117);
|
| - INIT_ALL_SIZES(pred_high[D135_PRED], high_d135);
|
| - INIT_ALL_SIZES(pred_high[D153_PRED], high_d153);
|
| - INIT_ALL_SIZES(pred_high[TM_PRED], high_tm);
|
| + INIT_ALL_SIZES(pred_high[V_PRED], highbd_v);
|
| + INIT_ALL_SIZES(pred_high[H_PRED], highbd_h);
|
| + INIT_ALL_SIZES(pred_high[D207_PRED], highbd_d207);
|
| + INIT_ALL_SIZES(pred_high[D45_PRED], highbd_d45);
|
| + INIT_ALL_SIZES(pred_high[D63_PRED], highbd_d63);
|
| + INIT_ALL_SIZES(pred_high[D117_PRED], highbd_d117);
|
| + INIT_ALL_SIZES(pred_high[D135_PRED], highbd_d135);
|
| + INIT_ALL_SIZES(pred_high[D153_PRED], highbd_d153);
|
| + INIT_ALL_SIZES(pred_high[TM_PRED], highbd_tm);
|
|
|
| - INIT_ALL_SIZES(dc_pred_high[0][0], high_dc_128);
|
| - INIT_ALL_SIZES(dc_pred_high[0][1], high_dc_top);
|
| - INIT_ALL_SIZES(dc_pred_high[1][0], high_dc_left);
|
| - INIT_ALL_SIZES(dc_pred_high[1][1], high_dc);
|
| + INIT_ALL_SIZES(dc_pred_high[0][0], highbd_dc_128);
|
| + INIT_ALL_SIZES(dc_pred_high[0][1], highbd_dc_top);
|
| + INIT_ALL_SIZES(dc_pred_high[1][0], highbd_dc_left);
|
| + INIT_ALL_SIZES(dc_pred_high[1][1], highbd_dc);
|
| #endif // CONFIG_VP9_HIGHBITDEPTH
|
|
|
| #undef intra_pred_allsizes
|
|
|