int ff_get_schro_frame_format (SchroChromaFormat schro_pix_fmt,

                               SchroFrameFormat  *schro_frame_fmt)

{

    unsigned int num_formats = sizeof(schro_pixel_format_map) /

                               sizeof(schro_pixel_format_map[0]);



    int idx;



    for (idx = 0; idx < num_formats; ++idx) {

        if (schro_pixel_format_map[idx].schro_pix_fmt == schro_pix_fmt) {

            *schro_frame_fmt = schro_pixel_format_map[idx].schro_frame_fmt;

            return 0;

        }

    }

    return -1;

}

int ff_get_schro_frame_format (SchroChromaFormat schro_pix_fmt,

                               SchroFrameFormat  *schro_frame_fmt)

{

    unsigned int num_formats = sizeof(schro_pixel_format_map) /

                               sizeof(schro_pixel_format_map[0]);



    int idx;



    for (idx = 0; idx < num_formats; ++idx) {

        if (schro_pixel_format_map[idx].schro_pix_fmt == schro_pix_fmt) {

            *schro_frame_fmt = schro_pixel_format_map[idx].schro_frame_fmt;

            return 0;

        }

    }

    return -1;

}

int ff_get_schro_frame_format (SchroChromaFormat schro_pix_fmt,                                SchroFrameFormat  *schro_frame_fmt)     unsigned int num_formats = sizeof(schro_pixel_format_map) /                                sizeof(schro_pixel_format_map[0]);     int idx;     for (idx = 0; idx < num_formats; ++idx) {         if (schro_pixel_format_map[idx].schro_pix_fmt == schro_pix_fmt) {             *schro_frame_fmt = schro_pixel_format_map[idx].schro_frame_fmt;             return 0;     return -1;     int idx;     int idx;     for (idx = 0; idx < num_formats; ++idx) {             return 0;     return -1;
int FUNC_0 (SchroChromaFormat VAR_0,

                               SchroFrameFormat  *VAR_1)

{

    unsigned int VAR_2 = sizeof(schro_pixel_format_map) /

                               sizeof(schro_pixel_format_map[0]);



    int VAR_3;



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

        if (schro_pixel_format_map[VAR_3].VAR_0 == VAR_0) {

            *VAR_1 = schro_pixel_format_map[VAR_3].VAR_1;

            return 0;

        }

    }

    return -1;

}

int FUNC_0 (SchroChromaFormat VAR_0,
SchroFrameFormat  *VAR_1)
{ unsigned int VAR_2 = sizeof(schro_pixel_format_map) /
sizeof(schro_pixel_format_map[0]); int VAR_3; for (VAR_3 = 0; VAR_3 < VAR_2; ++VAR_3) { if (schro_pixel_format_map[VAR_3].VAR_0 == VAR_0) { *VAR_1 = schro_pixel_format_map[VAR_3].VAR_1; return 0; } } return -1; }