static int get_pcm(HEVCContext *s, int x, int y)

{

    int log2_min_pu_size = s->sps->log2_min_pu_size;

    int x_pu             = x >> log2_min_pu_size;

    int y_pu             = y >> log2_min_pu_size;



    if (x < 0 || x_pu >= s->sps->min_pu_width ||

        y < 0 || y_pu >= s->sps->min_pu_height)

        return 2;

    return s->is_pcm[y_pu * s->sps->min_pu_width + x_pu];

}

static int get_pcm(HEVCContext *s, int x, int y)

{

    int log2_min_pu_size = s->sps->log2_min_pu_size;

    int x_pu             = x >> log2_min_pu_size;

    int y_pu             = y >> log2_min_pu_size;



    if (x < 0 || x_pu >= s->sps->min_pu_width ||

        y < 0 || y_pu >= s->sps->min_pu_height)

        return 2;

    return s->is_pcm[y_pu * s->sps->min_pu_width + x_pu];

}

static int FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2)

{

    int VAR_3 = VAR_0->sps->VAR_3;

    int VAR_4             = VAR_1 >> VAR_3;

    int VAR_5             = VAR_2 >> VAR_3;



    if (VAR_1 < 0 || VAR_4 >= VAR_0->sps->min_pu_width ||

        VAR_2 < 0 || VAR_5 >= VAR_0->sps->min_pu_height)

        return 2;

    return VAR_0->is_pcm[VAR_5 * VAR_0->sps->min_pu_width + VAR_4];

}

static int FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2)
{ int VAR_3 = VAR_0->sps->VAR_3; int VAR_4             = VAR_1 >> VAR_3; int VAR_5             = VAR_2 >> VAR_3; if (VAR_1 < 0 || VAR_4 >= VAR_0->sps->min_pu_width ||
VAR_2 < 0 || VAR_5 >= VAR_0->sps->min_pu_height)
return 2; return VAR_0->is_pcm[VAR_5 * VAR_0->sps->min_pu_width + VAR_4]; }