static inline void dxt3_block_internal(uint8_t *dst, ptrdiff_t stride,

                                       const uint8_t *block)

{

    int x, y;

    uint32_t colors[4];

    uint16_t color0 = AV_RL16(block +  8);

    uint16_t color1 = AV_RL16(block + 10);

    uint32_t code   = AV_RL32(block + 12);



    extract_color(colors, color0, color1, 1, 0);



    for (y = 0; y < 4; y++) {

        const uint16_t alpha_code = AV_RL16(block + 2 * y);

        uint8_t alpha_values[4];



        alpha_values[0] = ((alpha_code >>  0) & 0x0F) * 17;

        alpha_values[1] = ((alpha_code >>  4) & 0x0F) * 17;

        alpha_values[2] = ((alpha_code >>  8) & 0x0F) * 17;

        alpha_values[3] = ((alpha_code >> 12) & 0x0F) * 17;



        for (x = 0; x < 4; x++) {

            uint8_t alpha = alpha_values[x];

            uint32_t pixel = colors[code & 3] | (alpha << 24);

            code >>= 2;



            AV_WL32(dst + x * 4, pixel);

        }

        dst += stride;

    }

}

static inline void dxt3_block_internal(uint8_t *dst, ptrdiff_t stride,

                                       const uint8_t *block)

{

    int x, y;

    uint32_t colors[4];

    uint16_t color0 = AV_RL16(block +  8);

    uint16_t color1 = AV_RL16(block + 10);

    uint32_t code   = AV_RL32(block + 12);



    extract_color(colors, color0, color1, 1, 0);



    for (y = 0; y < 4; y++) {

        const uint16_t alpha_code = AV_RL16(block + 2 * y);

        uint8_t alpha_values[4];



        alpha_values[0] = ((alpha_code >>  0) & 0x0F) * 17;

        alpha_values[1] = ((alpha_code >>  4) & 0x0F) * 17;

        alpha_values[2] = ((alpha_code >>  8) & 0x0F) * 17;

        alpha_values[3] = ((alpha_code >> 12) & 0x0F) * 17;



        for (x = 0; x < 4; x++) {

            uint8_t alpha = alpha_values[x];

            uint32_t pixel = colors[code & 3] | (alpha << 24);

            code >>= 2;



            AV_WL32(dst + x * 4, pixel);

        }

        dst += stride;

    }

}

            uint32_t pixel = colors[code & 3] | (alpha << 24);
static inline void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1,

                                       const uint8_t *VAR_2)

{

    int VAR_3, VAR_4;

    uint32_t colors[4];

    uint16_t color0 = AV_RL16(VAR_2 +  8);

    uint16_t color1 = AV_RL16(VAR_2 + 10);

    uint32_t code   = AV_RL32(VAR_2 + 12);



    extract_color(colors, color0, color1, 1, 0);



    for (VAR_4 = 0; VAR_4 < 4; VAR_4++) {

        const uint16_t VAR_5 = AV_RL16(VAR_2 + 2 * VAR_4);

        uint8_t alpha_values[4];



        alpha_values[0] = ((VAR_5 >>  0) & 0x0F) * 17;

        alpha_values[1] = ((VAR_5 >>  4) & 0x0F) * 17;

        alpha_values[2] = ((VAR_5 >>  8) & 0x0F) * 17;

        alpha_values[3] = ((VAR_5 >> 12) & 0x0F) * 17;



        for (VAR_3 = 0; VAR_3 < 4; VAR_3++) {

            uint8_t alpha = alpha_values[VAR_3];

            uint32_t pixel = colors[code & 3] | (alpha << 24);

            code >>= 2;



            AV_WL32(VAR_0 + VAR_3 * 4, pixel);

        }

        VAR_0 += VAR_1;

    }

}

static inline void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1,
const uint8_t *VAR_2)
{ int VAR_3, VAR_4; uint32_t colors[4]; uint16_t color0 = AV_RL16(VAR_2 +  8); uint16_t color1 = AV_RL16(VAR_2 + 10); uint32_t code   = AV_RL32(VAR_2 + 12); extract_color(colors, color0, color1, 1, 0); for (VAR_4 = 0; VAR_4 < 4; VAR_4++) { const uint16_t VAR_5 = AV_RL16(VAR_2 + 2 * VAR_4); uint8_t alpha_values[4]; alpha_values[0] = ((VAR_5 >>  0) & 0x0F) * 17; alpha_values[1] = ((VAR_5 >>  4) & 0x0F) * 17; alpha_values[2] = ((VAR_5 >>  8) & 0x0F) * 17; alpha_values[3] = ((VAR_5 >> 12) & 0x0F) * 17; for (VAR_3 = 0; VAR_3 < 4; VAR_3++) { uint8_t alpha = alpha_values[VAR_3]; uint32_t pixel = colors[code & 3] | (alpha << 24); code >>= 2; AV_WL32(VAR_0 + VAR_3 * 4, pixel); } VAR_0 += VAR_1; } }