Revision 7b874dcc

View differences:

libavcodec/ffv1.c
973 973

  
974 974
    avctx->coded_frame= &s->picture;
975 975
    switch(avctx->pix_fmt){
976
    case PIX_FMT_YUV420P9:
976 977
    case PIX_FMT_YUV420P10:
977 978
    case PIX_FMT_YUV422P10:
978 979
        s->packed_at_lsb = 1;
......
1624 1625
                av_log(f->avctx, AV_LOG_ERROR, "format not supported\n");
1625 1626
                return -1;
1626 1627
            }
1628
        }else if(f->avctx->bits_per_raw_sample==9) {
1629
            switch(16*f->chroma_h_shift + f->chroma_v_shift){
1630
            case 0x00: f->avctx->pix_fmt= PIX_FMT_YUV444P16; break;
1631
            case 0x10: f->avctx->pix_fmt= PIX_FMT_YUV422P16; break;
1632
            case 0x11: f->avctx->pix_fmt= PIX_FMT_YUV420P9 ; f->packed_at_lsb=1; break;
1633
            default:
1634
                av_log(f->avctx, AV_LOG_ERROR, "format not supported\n");
1635
                return -1;
1636
            }
1627 1637
        }else if(f->avctx->bits_per_raw_sample==10) {
1628 1638
            switch(16*f->chroma_h_shift + f->chroma_v_shift){
1629 1639
            case 0x00: f->avctx->pix_fmt= PIX_FMT_YUV444P16; break;
......
1838 1848
    encode_frame,
1839 1849
    common_end,
1840 1850
    .capabilities = CODEC_CAP_SLICE_THREADS,
1841
    .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV444P, PIX_FMT_YUV422P, PIX_FMT_YUV411P, PIX_FMT_YUV410P, PIX_FMT_RGB32, PIX_FMT_YUV420P16, PIX_FMT_YUV422P16, PIX_FMT_YUV444P16, PIX_FMT_YUV420P10, PIX_FMT_YUV422P10, PIX_FMT_NONE},
1851
    .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV444P, PIX_FMT_YUV422P, PIX_FMT_YUV411P, PIX_FMT_YUV410P, PIX_FMT_RGB32, PIX_FMT_YUV420P16, PIX_FMT_YUV422P16, PIX_FMT_YUV444P16, PIX_FMT_YUV420P9, PIX_FMT_YUV420P10, PIX_FMT_YUV422P10, PIX_FMT_NONE},
1842 1852
    .long_name= NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"),
1843 1853
};
1844 1854
#endif

Also available in: Unified diff