case PIX_FMT_UYVY422:
void img_copy(AVPicture *dst, const AVPicture *src,              int pix_fmt, int width, int height){    int bwidth, bits, i;    PixFmtInfo *pf = &pix_fmt_info[pix_fmt];        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;        }        bwidth = (width * bits + 7) >> 3;        img_copy_plane(dst->data[0], dst->linesize[0],                       src->data[0], src->linesize[0],                       bwidth, height);        break;    case FF_PIXEL_PLANAR:        for(i = 0; i < pf->nb_channels; i++) {            int w, h;            w = width;            h = height;            if (i == 1 || i == 2) {                w >>= pf->x_chroma_shift;                h >>= pf->y_chroma_shift;            }            bwidth = (w * pf->depth + 7) >> 3;            img_copy_plane(dst->data[i], dst->linesize[i],                           src->data[i], src->linesize[i],                           bwidth, h);        }        break;    case FF_PIXEL_PALETTE:        img_copy_plane(dst->data[0], dst->linesize[0],                       src->data[0], src->linesize[0],                       width, height);        /* copy the palette */        img_copy_plane(dst->data[1], dst->linesize[1],                       src->data[1], src->linesize[1],                       4, 256);        break;    }}