Mercurial > libavcodec.hg
changeset 10136:399b5d6b5439 libavcodec
Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
Patch by Lars T¸«£uber <lars <dot> taeuber <at> gmx <dot> net>.
author | ramiro |
---|---|
date | Sat, 05 Sep 2009 23:33:25 +0000 |
parents | a3abf068e05e |
children | 9a670cfd1941 |
files | imgconvert.c pixdesc.c |
diffstat | 2 files changed, 36 insertions(+), 36 deletions(-) [+] |
line wrap: on
line diff
--- a/imgconvert.c Sat Sep 05 19:35:59 2009 +0000 +++ b/imgconvert.c Sat Sep 05 23:33:25 2009 +0000 @@ -130,48 +130,48 @@ .depth = 8, .x_chroma_shift = 0, .y_chroma_shift = 1, }, - [PIX_FMT_YUV420PLE] = { - .name = "yuv420ple", + [PIX_FMT_YUV420P16LE] = { + .name = "yuv420p16le", .nb_channels = 3, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 16, .x_chroma_shift = 1, .y_chroma_shift = 1, }, - [PIX_FMT_YUV422PLE] = { - .name = "yuv422ple", + [PIX_FMT_YUV422P16LE] = { + .name = "yuv422p16le", .nb_channels = 3, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 16, .x_chroma_shift = 1, .y_chroma_shift = 0, }, - [PIX_FMT_YUV444PLE] = { - .name = "yuv444ple", + [PIX_FMT_YUV444P16LE] = { + .name = "yuv444p16le", .nb_channels = 3, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 16, .x_chroma_shift = 0, .y_chroma_shift = 0, }, - [PIX_FMT_YUV420PBE] = { - .name = "yuv420pbe", + [PIX_FMT_YUV420P16BE] = { + .name = "yuv420p16be", .nb_channels = 3, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 16, .x_chroma_shift = 1, .y_chroma_shift = 1, }, - [PIX_FMT_YUV422PBE] = { - .name = "yuv422pbe", + [PIX_FMT_YUV422P16BE] = { + .name = "yuv422p16be", .nb_channels = 3, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, .depth = 16, .x_chroma_shift = 1, .y_chroma_shift = 0, }, - [PIX_FMT_YUV444PBE] = { - .name = "yuv444pbe", + [PIX_FMT_YUV444P16BE] = { + .name = "yuv444p16be", .nb_channels = 3, .color_type = FF_COLOR_YUV, .pixel_type = FF_PIXEL_PLANAR, @@ -662,12 +662,12 @@ picture->linesize[1] = w2; picture->linesize[2] = w2; break; - case PIX_FMT_YUV420PLE: - case PIX_FMT_YUV422PLE: - case PIX_FMT_YUV444PLE: - case PIX_FMT_YUV420PBE: - case PIX_FMT_YUV422PBE: - case PIX_FMT_YUV444PBE: + case PIX_FMT_YUV420P16LE: + case PIX_FMT_YUV422P16LE: + case PIX_FMT_YUV444P16LE: + case PIX_FMT_YUV420P16BE: + case PIX_FMT_YUV422P16BE: + case PIX_FMT_YUV444P16BE: w2 = (width + (1 << pinfo->x_chroma_shift) - 1) >> pinfo->x_chroma_shift; picture->linesize[0] = 2*width; picture->linesize[1] = 2*w2; @@ -760,12 +760,12 @@ case PIX_FMT_YUVJ422P: case PIX_FMT_YUVJ444P: case PIX_FMT_YUVJ440P: - case PIX_FMT_YUV420PLE: - case PIX_FMT_YUV422PLE: - case PIX_FMT_YUV444PLE: - case PIX_FMT_YUV420PBE: - case PIX_FMT_YUV422PBE: - case PIX_FMT_YUV444PBE: + case PIX_FMT_YUV420P16LE: + case PIX_FMT_YUV422P16LE: + case PIX_FMT_YUV444P16LE: + case PIX_FMT_YUV420P16BE: + case PIX_FMT_YUV422P16BE: + case PIX_FMT_YUV444P16BE: h2 = (height + (1 << pinfo->y_chroma_shift) - 1) >> pinfo->y_chroma_shift; size2 = picture->linesize[1] * h2; picture->data[0] = ptr;
--- a/pixdesc.c Sat Sep 05 19:35:59 2009 +0000 +++ b/pixdesc.c Sat Sep 05 23:33:25 2009 +0000 @@ -511,8 +511,8 @@ {0,1,1,0,4}, /* R */ }, }, - [PIX_FMT_YUV420PLE] = { - .name = "yuv420ple", + [PIX_FMT_YUV420P16LE] = { + .name = "yuv420p16le", .nb_channels = 3, .log2_chroma_w= 1, .log2_chroma_h= 1, @@ -522,8 +522,8 @@ {2,1,1,0,15}, /* V */ }, }, - [PIX_FMT_YUV420PBE] = { - .name = "yuv420pbe", + [PIX_FMT_YUV420P16BE] = { + .name = "yuv420p16be", .nb_channels = 3, .log2_chroma_w= 1, .log2_chroma_h= 1, @@ -534,8 +534,8 @@ }, .flags = PIX_FMT_BE, }, - [PIX_FMT_YUV422PLE] = { - .name = "yuv422ple", + [PIX_FMT_YUV422P16LE] = { + .name = "yuv422p16le", .nb_channels = 3, .log2_chroma_w= 1, .log2_chroma_h= 0, @@ -545,8 +545,8 @@ {2,1,1,0,15}, /* V */ }, }, - [PIX_FMT_YUV422PBE] = { - .name = "yuv422pbe", + [PIX_FMT_YUV422P16BE] = { + .name = "yuv422p16be", .nb_channels = 3, .log2_chroma_w= 1, .log2_chroma_h= 0, @@ -557,8 +557,8 @@ }, .flags = PIX_FMT_BE, }, - [PIX_FMT_YUV444PLE] = { - .name = "yuv444ple", + [PIX_FMT_YUV444P16LE] = { + .name = "yuv444p16le", .nb_channels = 3, .log2_chroma_w= 0, .log2_chroma_h= 0, @@ -568,8 +568,8 @@ {2,1,1,0,15}, /* V */ }, }, - [PIX_FMT_YUV444PBE] = { - .name = "yuv444pbe", + [PIX_FMT_YUV444P16BE] = { + .name = "yuv444p16be", .nb_channels = 3, .log2_chroma_w= 0, .log2_chroma_h= 0,