@ -1174,6 +1174,30 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
} ,
. flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR ,
} ,
[ AV_PIX_FMT_YUV420P12LE ] = {
. name = " yuv420p12le " ,
. nb_components = 3 ,
. log2_chroma_w = 1 ,
. log2_chroma_h = 1 ,
. comp = {
{ 0 , 2 , 0 , 0 , 12 , 1 , 11 , 1 } , /* Y */
{ 1 , 2 , 0 , 0 , 12 , 1 , 11 , 1 } , /* U */
{ 2 , 2 , 0 , 0 , 12 , 1 , 11 , 1 } , /* V */
} ,
. flags = AV_PIX_FMT_FLAG_PLANAR ,
} ,
[ AV_PIX_FMT_YUV420P12BE ] = {
. name = " yuv420p12be " ,
. nb_components = 3 ,
. log2_chroma_w = 1 ,
. log2_chroma_h = 1 ,
. comp = {
{ 0 , 2 , 0 , 0 , 12 , 1 , 11 , 1 } , /* Y */
{ 1 , 2 , 0 , 0 , 12 , 1 , 11 , 1 } , /* U */
{ 2 , 2 , 0 , 0 , 12 , 1 , 11 , 1 } , /* V */
} ,
. flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR ,
} ,
[ AV_PIX_FMT_YUV420P16LE ] = {
. name = " yuv420p16le " ,
. nb_components = 3 ,
@ -1842,6 +1866,7 @@ enum AVPixelFormat av_pix_fmt_swap_endianness(enum AVPixelFormat pix_fmt)
PIX_FMT_SWAP_ENDIANNESS ( YUV420P10 ) ;
PIX_FMT_SWAP_ENDIANNESS ( YUV422P10 ) ;
PIX_FMT_SWAP_ENDIANNESS ( YUV444P10 ) ;
PIX_FMT_SWAP_ENDIANNESS ( YUV420P12 ) ;
PIX_FMT_SWAP_ENDIANNESS ( YUV420P16 ) ;
PIX_FMT_SWAP_ENDIANNESS ( YUV422P16 ) ;
PIX_FMT_SWAP_ENDIANNESS ( YUV444P16 ) ;