case PIX_FMT_UYVY422:
static int avg_bits_per_pixel(int pix_fmt){    int bits;    const PixFmtInfo *pf;    pf = &pix_fmt_info[pix_fmt];    switch(pf->pixel_type) {    case FF_PIXEL_PACKED:        switch(pix_fmt) {        case PIX_FMT_YUV422:        case PIX_FMT_RGB565:        case PIX_FMT_RGB555:            bits = 16;            break;        default:            bits = pf->depth * pf->nb_channels;            break;        }        break;    case FF_PIXEL_PLANAR:        if (pf->x_chroma_shift == 0 && pf->y_chroma_shift == 0) {            bits = pf->depth * pf->nb_channels;        } else {            bits = pf->depth + ((2 * pf->depth) >>                                 (pf->x_chroma_shift + pf->y_chroma_shift));        }        break;    case FF_PIXEL_PALETTE:        bits = 8;        break;    default:        bits = -1;        break;    }    return bits;}