static void picmemset(PicContext *s, AVFrame *frame, int value, int run,

                      int *x, int *y, int *plane, int bits_per_plane)

{

    uint8_t *d;

    int shift = *plane * bits_per_plane;

    int mask  = ((1 << bits_per_plane) - 1) << shift;

    value   <<= shift;



    while (run > 0) {

        int j;

        for (j = 8-bits_per_plane; j >= 0; j -= bits_per_plane) {

            d = frame->data[0] + *y * frame->linesize[0];

            d[*x] |= (value >> j) & mask;

            *x += 1;

            if (*x == s->width) {

                *y -= 1;

                *x = 0;

                if (*y < 0) {

                   *y = s->height - 1;

                   *plane += 1;

                   if (*plane >= s->nb_planes)

                       return;

                   value <<= bits_per_plane;

                   mask  <<= bits_per_plane;

                }

            }

        }

        run--;

    }

}

static void picmemset(PicContext *s, AVFrame *frame, int value, int run,

                      int *x, int *y, int *plane, int bits_per_plane)

{

    uint8_t *d;

    int shift = *plane * bits_per_plane;

    int mask  = ((1 << bits_per_plane) - 1) << shift;

    value   <<= shift;



    while (run > 0) {

        int j;

        for (j = 8-bits_per_plane; j >= 0; j -= bits_per_plane) {

            d = frame->data[0] + *y * frame->linesize[0];

            d[*x] |= (value >> j) & mask;

            *x += 1;

            if (*x == s->width) {

                *y -= 1;

                *x = 0;

                if (*y < 0) {

                   *y = s->height - 1;

                   *plane += 1;

                   if (*plane >= s->nb_planes)

                       return;

                   value <<= bits_per_plane;

                   mask  <<= bits_per_plane;

                }

            }

        }

        run--;

    }

}

static void picmemset(PicContext *s, AVFrame *frame, int value, int run,
static void FUNC_0(PicContext *VAR_0, AVFrame *VAR_1, int VAR_2, int VAR_3,

                      int *VAR_4, int *VAR_5, int *VAR_6, int VAR_7)

{

    uint8_t *d;

    int VAR_8 = *VAR_6 * VAR_7;

    int VAR_9  = ((1 << VAR_7) - 1) << VAR_8;

    VAR_2   <<= VAR_8;



    while (VAR_3 > 0) {

        int VAR_10;

        for (VAR_10 = 8-VAR_7; VAR_10 >= 0; VAR_10 -= VAR_7) {

            d = VAR_1->data[0] + *VAR_5 * VAR_1->linesize[0];

            d[*VAR_4] |= (VAR_2 >> VAR_10) & VAR_9;

            *VAR_4 += 1;

            if (*VAR_4 == VAR_0->width) {

                *VAR_5 -= 1;

                *VAR_4 = 0;

                if (*VAR_5 < 0) {

                   *VAR_5 = VAR_0->height - 1;

                   *VAR_6 += 1;

                   if (*VAR_6 >= VAR_0->nb_planes)

                       return;

                   VAR_2 <<= VAR_7;

                   VAR_9  <<= VAR_7;

                }

            }

        }

        VAR_3--;

    }

}

static void FUNC_0(PicContext *VAR_0, AVFrame *VAR_1, int VAR_2, int VAR_3,
int *VAR_4, int *VAR_5, int *VAR_6, int VAR_7)
{ uint8_t *d; int VAR_8 = *VAR_6 * VAR_7; int VAR_9  = ((1 << VAR_7) - 1) << VAR_8; VAR_2   <<= VAR_8; while (VAR_3 > 0) { int VAR_10; for (VAR_10 = 8-VAR_7; VAR_10 >= 0; VAR_10 -= VAR_7) { d = VAR_1->data[0] + *VAR_5 * VAR_1->linesize[0]; d[*VAR_4] |= (VAR_2 >> VAR_10) & VAR_9; *VAR_4 += 1; if (*VAR_4 == VAR_0->width) { *VAR_5 -= 1; *VAR_4 = 0; if (*VAR_5 < 0) { *VAR_5 = VAR_0->height - 1; *VAR_6 += 1; if (*VAR_6 >= VAR_0->nb_planes)
return; VAR_2 <<= VAR_7; VAR_9  <<= VAR_7; } } } VAR_3--; } }