static int truemotion1_decode_header(TrueMotion1Context *s)

{

    int i;

    int width_shift = 0;

    int new_pix_fmt;

    struct frame_header header;

    uint8_t header_buffer[128];  /* logical maximum size of the header */

    const uint8_t *sel_vector_table;



    header.header_size = ((s->buf[0] >> 5) | (s->buf[0] << 3)) & 0x7f;

    if (s->buf[0] < 0x10)

    {

        av_log(s->avctx, AV_LOG_ERROR, "invalid header size (%d)\n", s->buf[0]);

        return -1;

    }



    /* unscramble the header bytes with a XOR operation */

    memset(header_buffer, 0, 128);

    for (i = 1; i < header.header_size; i++)

        header_buffer[i - 1] = s->buf[i] ^ s->buf[i + 1];



    header.compression = header_buffer[0];

    header.deltaset = header_buffer[1];

    header.vectable = header_buffer[2];

    header.ysize = AV_RL16(&header_buffer[3]);

    header.xsize = AV_RL16(&header_buffer[5]);

    header.checksum = AV_RL16(&header_buffer[7]);

    header.version = header_buffer[9];

    header.header_type = header_buffer[10];

    header.flags = header_buffer[11];

    header.control = header_buffer[12];



    /* Version 2 */

    if (header.version >= 2)

    {

        if (header.header_type > 3)

        {

            av_log(s->avctx, AV_LOG_ERROR, "invalid header type (%d)\n", header.header_type);

            return -1;

        } else if ((header.header_type == 2) || (header.header_type == 3)) {

            s->flags = header.flags;

            if (!(s->flags & FLAG_INTERFRAME))

                s->flags |= FLAG_KEYFRAME;

        } else

            s->flags = FLAG_KEYFRAME;

    } else /* Version 1 */

        s->flags = FLAG_KEYFRAME;



    if (s->flags & FLAG_SPRITE) {

        av_log(s->avctx, AV_LOG_INFO, "SPRITE frame found, please report the sample to the developers\n");

        /* FIXME header.width, height, xoffset and yoffset aren't initialized */

#if 0

        s->w = header.width;

        s->h = header.height;

        s->x = header.xoffset;

        s->y = header.yoffset;

#else

        return -1;

#endif

    } else {

        s->w = header.xsize;

        s->h = header.ysize;

        if (header.header_type < 2) {

            if ((s->w < 213) && (s->h >= 176))

            {

                s->flags |= FLAG_INTERPOLATED;

                av_log(s->avctx, AV_LOG_INFO, "INTERPOLATION selected, please report the sample to the developers\n");

            }

        }

    }



    if (header.compression >= 17) {

        av_log(s->avctx, AV_LOG_ERROR, "invalid compression type (%d)\n", header.compression);

        return -1;

    }



    if ((header.deltaset != s->last_deltaset) ||

        (header.vectable != s->last_vectable))

        select_delta_tables(s, header.deltaset);



    if ((header.compression & 1) && header.header_type)

        sel_vector_table = pc_tbl2;

    else {

        if (header.vectable < 4)

            sel_vector_table = tables[header.vectable - 1];

        else {

            av_log(s->avctx, AV_LOG_ERROR, "invalid vector table id (%d)\n", header.vectable);

            return -1;

        }

    }



    if (compression_types[header.compression].algorithm == ALGO_RGB24H) {

        new_pix_fmt = PIX_FMT_RGB32;

        width_shift = 1;

    } else

        new_pix_fmt = PIX_FMT_RGB555; // RGB565 is supported as well



    s->w >>= width_shift;

    if (av_image_check_size(s->w, s->h, 0, s->avctx) < 0)

        return -1;



    if (s->w != s->avctx->width || s->h != s->avctx->height ||

        new_pix_fmt != s->avctx->pix_fmt) {

        if (s->frame.data[0])

            s->avctx->release_buffer(s->avctx, &s->frame);

        s->avctx->sample_aspect_ratio = (AVRational){ 1 << width_shift, 1 };

        s->avctx->pix_fmt = new_pix_fmt;

        avcodec_set_dimensions(s->avctx, s->w, s->h);

        av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx->width * sizeof(unsigned int));

    }



    /* There is 1 change bit per 4 pixels, so each change byte represents

     * 32 pixels; divide width by 4 to obtain the number of change bits and

     * then round up to the nearest byte. */

    s->mb_change_bits_row_size = ((s->avctx->width >> (2 - width_shift)) + 7) >> 3;



    if ((header.deltaset != s->last_deltaset) || (header.vectable != s->last_vectable))

    {

        if (compression_types[header.compression].algorithm == ALGO_RGB24H)

            gen_vector_table24(s, sel_vector_table);

        else

        if (s->avctx->pix_fmt == PIX_FMT_RGB555)

            gen_vector_table15(s, sel_vector_table);

        else

            gen_vector_table16(s, sel_vector_table);

    }



    /* set up pointers to the other key data chunks */

    s->mb_change_bits = s->buf + header.header_size;

    if (s->flags & FLAG_KEYFRAME) {

        /* no change bits specified for a keyframe; only index bytes */

        s->index_stream = s->mb_change_bits;

    } else {

        /* one change bit per 4x4 block */

        s->index_stream = s->mb_change_bits +

            (s->mb_change_bits_row_size * (s->avctx->height >> 2));

    }

    s->index_stream_size = s->size - (s->index_stream - s->buf);



    s->last_deltaset = header.deltaset;

    s->last_vectable = header.vectable;

    s->compression = header.compression;

    s->block_width = compression_types[header.compression].block_width;

    s->block_height = compression_types[header.compression].block_height;

    s->block_type = compression_types[header.compression].block_type;



    if (s->avctx->debug & FF_DEBUG_PICT_INFO)

        av_log(s->avctx, AV_LOG_INFO, "tables: %d / %d c:%d %dx%d t:%d %s%s%s%s\n",

            s->last_deltaset, s->last_vectable, s->compression, s->block_width,

            s->block_height, s->block_type,

            s->flags & FLAG_KEYFRAME ? " KEY" : "",

            s->flags & FLAG_INTERFRAME ? " INTER" : "",

            s->flags & FLAG_SPRITE ? " SPRITE" : "",

            s->flags & FLAG_INTERPOLATED ? " INTERPOL" : "");



    return header.header_size;

}

static int truemotion1_decode_header(TrueMotion1Context *s)

{

    int i;

    int width_shift = 0;

    int new_pix_fmt;

    struct frame_header header;

    uint8_t header_buffer[128];  

    const uint8_t *sel_vector_table;



    header.header_size = ((s->buf[0] >> 5) | (s->buf[0] << 3)) & 0x7f;

    if (s->buf[0] < 0x10)

    {

        av_log(s->avctx, AV_LOG_ERROR, "invalid header size (%d)\n", s->buf[0]);

        return -1;

    }



    

    memset(header_buffer, 0, 128);

    for (i = 1; i < header.header_size; i++)

        header_buffer[i - 1] = s->buf[i] ^ s->buf[i + 1];



    header.compression = header_buffer[0];

    header.deltaset = header_buffer[1];

    header.vectable = header_buffer[2];

    header.ysize = AV_RL16(&header_buffer[3]);

    header.xsize = AV_RL16(&header_buffer[5]);

    header.checksum = AV_RL16(&header_buffer[7]);

    header.version = header_buffer[9];

    header.header_type = header_buffer[10];

    header.flags = header_buffer[11];

    header.control = header_buffer[12];



    

    if (header.version >= 2)

    {

        if (header.header_type > 3)

        {

            av_log(s->avctx, AV_LOG_ERROR, "invalid header type (%d)\n", header.header_type);

            return -1;

        } else if ((header.header_type == 2) || (header.header_type == 3)) {

            s->flags = header.flags;

            if (!(s->flags & FLAG_INTERFRAME))

                s->flags |= FLAG_KEYFRAME;

        } else

            s->flags = FLAG_KEYFRAME;

    } else 

        s->flags = FLAG_KEYFRAME;



    if (s->flags & FLAG_SPRITE) {

        av_log(s->avctx, AV_LOG_INFO, "SPRITE frame found, please report the sample to the developers\n");

        

#if 0

        s->w = header.width;

        s->h = header.height;

        s->x = header.xoffset;

        s->y = header.yoffset;

#else

        return -1;

#endif

    } else {

        s->w = header.xsize;

        s->h = header.ysize;

        if (header.header_type < 2) {

            if ((s->w < 213) && (s->h >= 176))

            {

                s->flags |= FLAG_INTERPOLATED;

                av_log(s->avctx, AV_LOG_INFO, "INTERPOLATION selected, please report the sample to the developers\n");

            }

        }

    }



    if (header.compression >= 17) {

        av_log(s->avctx, AV_LOG_ERROR, "invalid compression type (%d)\n", header.compression);

        return -1;

    }



    if ((header.deltaset != s->last_deltaset) ||

        (header.vectable != s->last_vectable))

        select_delta_tables(s, header.deltaset);



    if ((header.compression & 1) && header.header_type)

        sel_vector_table = pc_tbl2;

    else {

        if (header.vectable < 4)

            sel_vector_table = tables[header.vectable - 1];

        else {

            av_log(s->avctx, AV_LOG_ERROR, "invalid vector table id (%d)\n", header.vectable);

            return -1;

        }

    }



    if (compression_types[header.compression].algorithm == ALGO_RGB24H) {

        new_pix_fmt = PIX_FMT_RGB32;

        width_shift = 1;

    } else

        new_pix_fmt = PIX_FMT_RGB555; 



    s->w >>= width_shift;

    if (av_image_check_size(s->w, s->h, 0, s->avctx) < 0)

        return -1;



    if (s->w != s->avctx->width || s->h != s->avctx->height ||

        new_pix_fmt != s->avctx->pix_fmt) {

        if (s->frame.data[0])

            s->avctx->release_buffer(s->avctx, &s->frame);

        s->avctx->sample_aspect_ratio = (AVRational){ 1 << width_shift, 1 };

        s->avctx->pix_fmt = new_pix_fmt;

        avcodec_set_dimensions(s->avctx, s->w, s->h);

        av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx->width * sizeof(unsigned int));

    }



    





    s->mb_change_bits_row_size = ((s->avctx->width >> (2 - width_shift)) + 7) >> 3;



    if ((header.deltaset != s->last_deltaset) || (header.vectable != s->last_vectable))

    {

        if (compression_types[header.compression].algorithm == ALGO_RGB24H)

            gen_vector_table24(s, sel_vector_table);

        else

        if (s->avctx->pix_fmt == PIX_FMT_RGB555)

            gen_vector_table15(s, sel_vector_table);

        else

            gen_vector_table16(s, sel_vector_table);

    }



    

    s->mb_change_bits = s->buf + header.header_size;

    if (s->flags & FLAG_KEYFRAME) {

        

        s->index_stream = s->mb_change_bits;

    } else {

        

        s->index_stream = s->mb_change_bits +

            (s->mb_change_bits_row_size * (s->avctx->height >> 2));

    }

    s->index_stream_size = s->size - (s->index_stream - s->buf);



    s->last_deltaset = header.deltaset;

    s->last_vectable = header.vectable;

    s->compression = header.compression;

    s->block_width = compression_types[header.compression].block_width;

    s->block_height = compression_types[header.compression].block_height;

    s->block_type = compression_types[header.compression].block_type;



    if (s->avctx->debug & FF_DEBUG_PICT_INFO)

        av_log(s->avctx, AV_LOG_INFO, "tables: %d / %d c:%d %dx%d t:%d %s%s%s%s\n",

            s->last_deltaset, s->last_vectable, s->compression, s->block_width,

            s->block_height, s->block_type,

            s->flags & FLAG_KEYFRAME ? " KEY" : "",

            s->flags & FLAG_INTERFRAME ? " INTER" : "",

            s->flags & FLAG_SPRITE ? " SPRITE" : "",

            s->flags & FLAG_INTERPOLATED ? " INTERPOL" : "");



    return header.header_size;

}

static int FUNC_0(TrueMotion1Context *VAR_0)

{

    int VAR_1;

    int VAR_2 = 0;

    int VAR_3;

    struct frame_header VAR_4;

    uint8_t header_buffer[128];  

    const uint8_t *VAR_5;



    VAR_4.header_size = ((VAR_0->buf[0] >> 5) | (VAR_0->buf[0] << 3)) & 0x7f;

    if (VAR_0->buf[0] < 0x10)

    {

        av_log(VAR_0->avctx, AV_LOG_ERROR, "invalid VAR_4 size (%d)\n", VAR_0->buf[0]);

        return -1;

    }



    

    memset(header_buffer, 0, 128);

    for (VAR_1 = 1; VAR_1 < VAR_4.header_size; VAR_1++)

        header_buffer[VAR_1 - 1] = VAR_0->buf[VAR_1] ^ VAR_0->buf[VAR_1 + 1];



    VAR_4.compression = header_buffer[0];

    VAR_4.deltaset = header_buffer[1];

    VAR_4.vectable = header_buffer[2];

    VAR_4.ysize = AV_RL16(&header_buffer[3]);

    VAR_4.xsize = AV_RL16(&header_buffer[5]);

    VAR_4.checksum = AV_RL16(&header_buffer[7]);

    VAR_4.version = header_buffer[9];

    VAR_4.header_type = header_buffer[10];

    VAR_4.flags = header_buffer[11];

    VAR_4.control = header_buffer[12];



    

    if (VAR_4.version >= 2)

    {

        if (VAR_4.header_type > 3)

        {

            av_log(VAR_0->avctx, AV_LOG_ERROR, "invalid VAR_4 type (%d)\n", VAR_4.header_type);

            return -1;

        } else if ((VAR_4.header_type == 2) || (VAR_4.header_type == 3)) {

            VAR_0->flags = VAR_4.flags;

            if (!(VAR_0->flags & FLAG_INTERFRAME))

                VAR_0->flags |= FLAG_KEYFRAME;

        } else

            VAR_0->flags = FLAG_KEYFRAME;

    } else 

        VAR_0->flags = FLAG_KEYFRAME;



    if (VAR_0->flags & FLAG_SPRITE) {

        av_log(VAR_0->avctx, AV_LOG_INFO, "SPRITE frame found, please report the sample to the developers\n");

        

#if 0

        VAR_0->w = VAR_4.width;

        VAR_0->h = VAR_4.height;

        VAR_0->x = VAR_4.xoffset;

        VAR_0->y = VAR_4.yoffset;

#else

        return -1;

#endif

    } else {

        VAR_0->w = VAR_4.xsize;

        VAR_0->h = VAR_4.ysize;

        if (VAR_4.header_type < 2) {

            if ((VAR_0->w < 213) && (VAR_0->h >= 176))

            {

                VAR_0->flags |= FLAG_INTERPOLATED;

                av_log(VAR_0->avctx, AV_LOG_INFO, "INTERPOLATION selected, please report the sample to the developers\n");

            }

        }

    }



    if (VAR_4.compression >= 17) {

        av_log(VAR_0->avctx, AV_LOG_ERROR, "invalid compression type (%d)\n", VAR_4.compression);

        return -1;

    }



    if ((VAR_4.deltaset != VAR_0->last_deltaset) ||

        (VAR_4.vectable != VAR_0->last_vectable))

        select_delta_tables(VAR_0, VAR_4.deltaset);



    if ((VAR_4.compression & 1) && VAR_4.header_type)

        VAR_5 = pc_tbl2;

    else {

        if (VAR_4.vectable < 4)

            VAR_5 = tables[VAR_4.vectable - 1];

        else {

            av_log(VAR_0->avctx, AV_LOG_ERROR, "invalid vector table id (%d)\n", VAR_4.vectable);

            return -1;

        }

    }



    if (compression_types[VAR_4.compression].algorithm == ALGO_RGB24H) {

        VAR_3 = PIX_FMT_RGB32;

        VAR_2 = 1;

    } else

        VAR_3 = PIX_FMT_RGB555; 



    VAR_0->w >>= VAR_2;

    if (av_image_check_size(VAR_0->w, VAR_0->h, 0, VAR_0->avctx) < 0)

        return -1;



    if (VAR_0->w != VAR_0->avctx->width || VAR_0->h != VAR_0->avctx->height ||

        VAR_3 != VAR_0->avctx->pix_fmt) {

        if (VAR_0->frame.data[0])

            VAR_0->avctx->release_buffer(VAR_0->avctx, &VAR_0->frame);

        VAR_0->avctx->sample_aspect_ratio = (AVRational){ 1 << VAR_2, 1 };

        VAR_0->avctx->pix_fmt = VAR_3;

        avcodec_set_dimensions(VAR_0->avctx, VAR_0->w, VAR_0->h);

        av_fast_malloc(&VAR_0->vert_pred, &VAR_0->vert_pred_size, VAR_0->avctx->width * sizeof(unsigned int));

    }



    





    VAR_0->mb_change_bits_row_size = ((VAR_0->avctx->width >> (2 - VAR_2)) + 7) >> 3;



    if ((VAR_4.deltaset != VAR_0->last_deltaset) || (VAR_4.vectable != VAR_0->last_vectable))

    {

        if (compression_types[VAR_4.compression].algorithm == ALGO_RGB24H)

            gen_vector_table24(VAR_0, VAR_5);

        else

        if (VAR_0->avctx->pix_fmt == PIX_FMT_RGB555)

            gen_vector_table15(VAR_0, VAR_5);

        else

            gen_vector_table16(VAR_0, VAR_5);

    }



    

    VAR_0->mb_change_bits = VAR_0->buf + VAR_4.header_size;

    if (VAR_0->flags & FLAG_KEYFRAME) {

        

        VAR_0->index_stream = VAR_0->mb_change_bits;

    } else {

        

        VAR_0->index_stream = VAR_0->mb_change_bits +

            (VAR_0->mb_change_bits_row_size * (VAR_0->avctx->height >> 2));

    }

    VAR_0->index_stream_size = VAR_0->size - (VAR_0->index_stream - VAR_0->buf);



    VAR_0->last_deltaset = VAR_4.deltaset;

    VAR_0->last_vectable = VAR_4.vectable;

    VAR_0->compression = VAR_4.compression;

    VAR_0->block_width = compression_types[VAR_4.compression].block_width;

    VAR_0->block_height = compression_types[VAR_4.compression].block_height;

    VAR_0->block_type = compression_types[VAR_4.compression].block_type;



    if (VAR_0->avctx->debug & FF_DEBUG_PICT_INFO)

        av_log(VAR_0->avctx, AV_LOG_INFO, "tables: %d / %d c:%d %dx%d t:%d %VAR_0%VAR_0%VAR_0%VAR_0\n",

            VAR_0->last_deltaset, VAR_0->last_vectable, VAR_0->compression, VAR_0->block_width,

            VAR_0->block_height, VAR_0->block_type,

            VAR_0->flags & FLAG_KEYFRAME ? " KEY" : "",

            VAR_0->flags & FLAG_INTERFRAME ? " INTER" : "",

            VAR_0->flags & FLAG_SPRITE ? " SPRITE" : "",

            VAR_0->flags & FLAG_INTERPOLATED ? " INTERPOL" : "");



    return VAR_4.header_size;

}

static int FUNC_0(TrueMotion1Context *VAR_0)
{ int VAR_1; int VAR_2 = 0; int VAR_3; struct frame_header VAR_4; uint8_t header_buffer[128]; const uint8_t *VAR_5; VAR_4.header_size = ((VAR_0->buf[0] >> 5) | (VAR_0->buf[0] << 3)) & 0x7f; if (VAR_0->buf[0] < 0x10)
{ av_log(VAR_0->avctx, AV_LOG_ERROR, "invalid VAR_4 size (%d)\n", VAR_0->buf[0]); return -1; } memset(header_buffer, 0, 128); for (VAR_1 = 1; VAR_1 < VAR_4.header_size; VAR_1++) header_buffer[VAR_1 - 1] = VAR_0->buf[VAR_1] ^ VAR_0->buf[VAR_1 + 1]; VAR_4.compression = header_buffer[0]; VAR_4.deltaset = header_buffer[1]; VAR_4.vectable = header_buffer[2]; VAR_4.ysize = AV_RL16(&header_buffer[3]); VAR_4.xsize = AV_RL16(&header_buffer[5]); VAR_4.checksum = AV_RL16(&header_buffer[7]); VAR_4.version = header_buffer[9]; VAR_4.header_type = header_buffer[10]; VAR_4.flags = header_buffer[11]; VAR_4.control = header_buffer[12]; if (VAR_4.version >= 2)
{ if (VAR_4.header_type > 3)
{ av_log(VAR_0->avctx, AV_LOG_ERROR, "invalid VAR_4 type (%d)\n", VAR_4.header_type); return -1; } else if ((VAR_4.header_type == 2) || (VAR_4.header_type == 3)) { VAR_0->flags = VAR_4.flags; if (!(VAR_0->flags & FLAG_INTERFRAME))
VAR_0->flags |= FLAG_KEYFRAME; } else VAR_0->flags = FLAG_KEYFRAME; } else VAR_0->flags = FLAG_KEYFRAME; if (VAR_0->flags & FLAG_SPRITE) { av_log(VAR_0->avctx, AV_LOG_INFO, "SPRITE frame found, please report the sample to the developers\n"); #if 0
VAR_0->w = VAR_4.width; VAR_0->h = VAR_4.height; VAR_0->x = VAR_4.xoffset; VAR_0->y = VAR_4.yoffset; #else
return -1; #endif
} else { VAR_0->w = VAR_4.xsize; VAR_0->h = VAR_4.ysize; if (VAR_4.header_type < 2) { if ((VAR_0->w < 213) && (VAR_0->h >= 176))
{ VAR_0->flags |= FLAG_INTERPOLATED; av_log(VAR_0->avctx, AV_LOG_INFO, "INTERPOLATION selected, please report the sample to the developers\n"); } } } if (VAR_4.compression >= 17) { av_log(VAR_0->avctx, AV_LOG_ERROR, "invalid compression type (%d)\n", VAR_4.compression); return -1; } if ((VAR_4.deltaset != VAR_0->last_deltaset) ||
(VAR_4.vectable != VAR_0->last_vectable))
select_delta_tables(VAR_0, VAR_4.deltaset); if ((VAR_4.compression & 1) && VAR_4.header_type)
VAR_5 = pc_tbl2; else { if (VAR_4.vectable < 4)
VAR_5 = tables[VAR_4.vectable - 1]; else { av_log(VAR_0->avctx, AV_LOG_ERROR, "invalid vector table id (%d)\n", VAR_4.vectable); return -1; } } if (compression_types[VAR_4.compression].algorithm == ALGO_RGB24H) { VAR_3 = PIX_FMT_RGB32; VAR_2 = 1; } else VAR_3 = PIX_FMT_RGB555; VAR_0->w >>= VAR_2; if (av_image_check_size(VAR_0->w, VAR_0->h, 0, VAR_0->avctx) < 0)
return -1; if (VAR_0->w != VAR_0->avctx->width || VAR_0->h != VAR_0->avctx->height ||
VAR_3 != VAR_0->avctx->pix_fmt) { if (VAR_0->frame.data[0])
VAR_0->avctx->release_buffer(VAR_0->avctx, &VAR_0->frame); VAR_0->avctx->sample_aspect_ratio = (AVRational){ 1 << VAR_2, 1 }; VAR_0->avctx->pix_fmt = VAR_3; avcodec_set_dimensions(VAR_0->avctx, VAR_0->w, VAR_0->h); av_fast_malloc(&VAR_0->vert_pred, &VAR_0->vert_pred_size, VAR_0->avctx->width * sizeof(unsigned int)); } VAR_0->mb_change_bits_row_size = ((VAR_0->avctx->width >> (2 - VAR_2)) + 7) >> 3; if ((VAR_4.deltaset != VAR_0->last_deltaset) || (VAR_4.vectable != VAR_0->last_vectable))
{ if (compression_types[VAR_4.compression].algorithm == ALGO_RGB24H)
gen_vector_table24(VAR_0, VAR_5); else
if (VAR_0->avctx->pix_fmt == PIX_FMT_RGB555)
gen_vector_table15(VAR_0, VAR_5); else
gen_vector_table16(VAR_0, VAR_5); } VAR_0->mb_change_bits = VAR_0->buf + VAR_4.header_size; if (VAR_0->flags & FLAG_KEYFRAME) { VAR_0->index_stream = VAR_0->mb_change_bits; } else { VAR_0->index_stream = VAR_0->mb_change_bits +
(VAR_0->mb_change_bits_row_size * (VAR_0->avctx->height >> 2)); } VAR_0->index_stream_size = VAR_0->size - (VAR_0->index_stream - VAR_0->buf); VAR_0->last_deltaset = VAR_4.deltaset; VAR_0->last_vectable = VAR_4.vectable; VAR_0->compression = VAR_4.compression; VAR_0->block_width = compression_types[VAR_4.compression].block_width; VAR_0->block_height = compression_types[VAR_4.compression].block_height; VAR_0->block_type = compression_types[VAR_4.compression].block_type; if (VAR_0->avctx->debug & FF_DEBUG_PICT_INFO)
av_log(VAR_0->avctx, AV_LOG_INFO, "tables: %d / %d c:%d %dx%d t:%d %VAR_0%VAR_0%VAR_0%VAR_0\n",
VAR_0->last_deltaset, VAR_0->last_vectable, VAR_0->compression, VAR_0->block_width,
VAR_0->block_height, VAR_0->block_type,
VAR_0->flags & FLAG_KEYFRAME ? " KEY" : "",
VAR_0->flags & FLAG_INTERFRAME ? " INTER" : "",
VAR_0->flags & FLAG_SPRITE ? " SPRITE" : "",
VAR_0->flags & FLAG_INTERPOLATED ? " INTERPOL" : ""); return VAR_4.header_size; }