static inline void scale_mv(AVSContext *h, int *d_x, int *d_y,

                            cavs_vector *src, int distp)

{

    int den = h->scale_den[FFMAX(src->ref, 0)];



    *d_x = (src->x * distp * den + 256 + FF_SIGNBIT(src->x)) >> 9;

    *d_y = (src->y * distp * den + 256 + FF_SIGNBIT(src->y)) >> 9;

}

static inline void scale_mv(AVSContext *h, int *d_x, int *d_y,

                            cavs_vector *src, int distp)

{

    int den = h->scale_den[FFMAX(src->ref, 0)];



    *d_x = (src->x * distp * den + 256 + FF_SIGNBIT(src->x)) >> 9;

    *d_y = (src->y * distp * den + 256 + FF_SIGNBIT(src->y)) >> 9;

}

    int den = h->scale_den[FFMAX(src->ref, 0)];
static inline void FUNC_0(AVSContext *VAR_0, int *VAR_1, int *VAR_2,

                            cavs_vector *VAR_3, int VAR_4)

{

    int VAR_5 = VAR_0->scale_den[FFMAX(VAR_3->ref, 0)];



    *VAR_1 = (VAR_3->x * VAR_4 * VAR_5 + 256 + FF_SIGNBIT(VAR_3->x)) >> 9;

    *VAR_2 = (VAR_3->y * VAR_4 * VAR_5 + 256 + FF_SIGNBIT(VAR_3->y)) >> 9;

}

static inline void FUNC_0(AVSContext *VAR_0, int *VAR_1, int *VAR_2,
cavs_vector *VAR_3, int VAR_4)
{ int VAR_5 = VAR_0->scale_den[FFMAX(VAR_3->ref, 0)]; *VAR_1 = (VAR_3->x * VAR_4 * VAR_5 + 256 + FF_SIGNBIT(VAR_3->x)) >> 9; *VAR_2 = (VAR_3->y * VAR_4 * VAR_5 + 256 + FF_SIGNBIT(VAR_3->y)) >> 9; }