diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-25 18:29:31 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-25 18:29:31 +0000 |
commit | 75801da5805fc26b4f47270425896ec6f41ea07f (patch) | |
tree | 27a3fc379b1a18718d2e590cb9f2728cf5633c08 /libavcodec | |
parent | ec32cfd2ccb66bf3202a98098d91f3077f2a3a45 (diff) | |
download | ffmpeg-75801da5805fc26b4f47270425896ec6f41ea07f.tar.gz |
Add pixdescs definitions for planar YUV pixfmts with 16 bits per
component.
Originally committed as revision 18690 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pixdesc.c | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/libavcodec/pixdesc.c b/libavcodec/pixdesc.c index f2d1dd196c..162b5826d2 100644 --- a/libavcodec/pixdesc.c +++ b/libavcodec/pixdesc.c @@ -511,4 +511,73 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = { {0,1,1,0,4}, /* R */ }, }, + [PIX_FMT_YUV420PLE] = { + .name = "yuv420ple", + .nb_channels = 3, + .log2_chroma_w= 1, + .log2_chroma_h= 1, + .comp = { + {0,1,1,0,15}, /* Y */ + {1,1,1,0,15}, /* U */ + {2,1,1,0,15}, /* V */ + }, + }, + [PIX_FMT_YUV420PBE] = { + .name = "yuv420pbe", + .nb_channels = 3, + .log2_chroma_w= 1, + .log2_chroma_h= 1, + .comp = { + {0,1,1,0,15}, /* Y */ + {1,1,1,0,15}, /* U */ + {2,1,1,0,15}, /* V */ + }, + .flags = PIX_FMT_BE, + }, + [PIX_FMT_YUV422PLE] = { + .name = "yuv422ple", + .nb_channels = 3, + .log2_chroma_w= 1, + .log2_chroma_h= 0, + .comp = { + {0,1,1,0,15}, /* Y */ + {1,1,1,0,15}, /* U */ + {2,1,1,0,15}, /* V */ + }, + }, + [PIX_FMT_YUV422PBE] = { + .name = "yuv422pbe", + .nb_channels = 3, + .log2_chroma_w= 1, + .log2_chroma_h= 0, + .comp = { + {0,1,1,0,15}, /* Y */ + {1,1,1,0,15}, /* U */ + {2,1,1,0,15}, /* V */ + }, + .flags = PIX_FMT_BE, + }, + [PIX_FMT_YUV444PLE] = { + .name = "yuv444ple", + .nb_channels = 3, + .log2_chroma_w= 0, + .log2_chroma_h= 0, + .comp = { + {0,1,1,0,15}, /* Y */ + {1,1,1,0,15}, /* U */ + {2,1,1,0,15}, /* V */ + }, + }, + [PIX_FMT_YUV444PBE] = { + .name = "yuv444pbe", + .nb_channels = 3, + .log2_chroma_w= 0, + .log2_chroma_h= 0, + .comp = { + {0,1,1,0,15}, /* Y */ + {1,1,1,0,15}, /* U */ + {2,1,1,0,15}, /* V */ + }, + .flags = PIX_FMT_BE, + }, }; |