Revision 35f6c154

View differences:

libavcodec/imgconvert.c
130 130
        .depth = 8,
131 131
        .x_chroma_shift = 0, .y_chroma_shift = 1,
132 132
    },
133
    [PIX_FMT_YUV420PLE] = {
134
        .name = "yuv420ple",
133
    [PIX_FMT_YUV420P16LE] = {
134
        .name = "yuv420p16le",
135 135
        .nb_channels = 3,
136 136
        .color_type = FF_COLOR_YUV,
137 137
        .pixel_type = FF_PIXEL_PLANAR,
138 138
        .depth = 16,
139 139
        .x_chroma_shift = 1, .y_chroma_shift = 1,
140 140
    },
141
    [PIX_FMT_YUV422PLE] = {
142
        .name = "yuv422ple",
141
    [PIX_FMT_YUV422P16LE] = {
142
        .name = "yuv422p16le",
143 143
        .nb_channels = 3,
144 144
        .color_type = FF_COLOR_YUV,
145 145
        .pixel_type = FF_PIXEL_PLANAR,
146 146
        .depth = 16,
147 147
        .x_chroma_shift = 1, .y_chroma_shift = 0,
148 148
    },
149
    [PIX_FMT_YUV444PLE] = {
150
        .name = "yuv444ple",
149
    [PIX_FMT_YUV444P16LE] = {
150
        .name = "yuv444p16le",
151 151
        .nb_channels = 3,
152 152
        .color_type = FF_COLOR_YUV,
153 153
        .pixel_type = FF_PIXEL_PLANAR,
154 154
        .depth = 16,
155 155
        .x_chroma_shift = 0, .y_chroma_shift = 0,
156 156
    },
157
    [PIX_FMT_YUV420PBE] = {
158
        .name = "yuv420pbe",
157
    [PIX_FMT_YUV420P16BE] = {
158
        .name = "yuv420p16be",
159 159
        .nb_channels = 3,
160 160
        .color_type = FF_COLOR_YUV,
161 161
        .pixel_type = FF_PIXEL_PLANAR,
162 162
        .depth = 16,
163 163
        .x_chroma_shift = 1, .y_chroma_shift = 1,
164 164
    },
165
    [PIX_FMT_YUV422PBE] = {
166
        .name = "yuv422pbe",
165
    [PIX_FMT_YUV422P16BE] = {
166
        .name = "yuv422p16be",
167 167
        .nb_channels = 3,
168 168
        .color_type = FF_COLOR_YUV,
169 169
        .pixel_type = FF_PIXEL_PLANAR,
170 170
        .depth = 16,
171 171
        .x_chroma_shift = 1, .y_chroma_shift = 0,
172 172
    },
173
    [PIX_FMT_YUV444PBE] = {
174
        .name = "yuv444pbe",
173
    [PIX_FMT_YUV444P16BE] = {
174
        .name = "yuv444p16be",
175 175
        .nb_channels = 3,
176 176
        .color_type = FF_COLOR_YUV,
177 177
        .pixel_type = FF_PIXEL_PLANAR,
......
662 662
        picture->linesize[1] = w2;
663 663
        picture->linesize[2] = w2;
664 664
        break;
665
    case PIX_FMT_YUV420PLE:
666
    case PIX_FMT_YUV422PLE:
667
    case PIX_FMT_YUV444PLE:
668
    case PIX_FMT_YUV420PBE:
669
    case PIX_FMT_YUV422PBE:
670
    case PIX_FMT_YUV444PBE:
665
    case PIX_FMT_YUV420P16LE:
666
    case PIX_FMT_YUV422P16LE:
667
    case PIX_FMT_YUV444P16LE:
668
    case PIX_FMT_YUV420P16BE:
669
    case PIX_FMT_YUV422P16BE:
670
    case PIX_FMT_YUV444P16BE:
671 671
        w2 = (width + (1 << pinfo->x_chroma_shift) - 1) >> pinfo->x_chroma_shift;
672 672
        picture->linesize[0] = 2*width;
673 673
        picture->linesize[1] = 2*w2;
......
760 760
    case PIX_FMT_YUVJ422P:
761 761
    case PIX_FMT_YUVJ444P:
762 762
    case PIX_FMT_YUVJ440P:
763
    case PIX_FMT_YUV420PLE:
764
    case PIX_FMT_YUV422PLE:
765
    case PIX_FMT_YUV444PLE:
766
    case PIX_FMT_YUV420PBE:
767
    case PIX_FMT_YUV422PBE:
768
    case PIX_FMT_YUV444PBE:
763
    case PIX_FMT_YUV420P16LE:
764
    case PIX_FMT_YUV422P16LE:
765
    case PIX_FMT_YUV444P16LE:
766
    case PIX_FMT_YUV420P16BE:
767
    case PIX_FMT_YUV422P16BE:
768
    case PIX_FMT_YUV444P16BE:
769 769
        h2 = (height + (1 << pinfo->y_chroma_shift) - 1) >> pinfo->y_chroma_shift;
770 770
        size2 = picture->linesize[1] * h2;
771 771
        picture->data[0] = ptr;
libavcodec/pixdesc.c
511 511
            {0,1,1,0,4},        /* R */
512 512
        },
513 513
    },
514
    [PIX_FMT_YUV420PLE] = {
515
        .name = "yuv420ple",
514
    [PIX_FMT_YUV420P16LE] = {
515
        .name = "yuv420p16le",
516 516
        .nb_channels  = 3,
517 517
        .log2_chroma_w= 1,
518 518
        .log2_chroma_h= 1,
......
522 522
            {2,1,1,0,15},        /* V */
523 523
        },
524 524
    },
525
    [PIX_FMT_YUV420PBE] = {
526
        .name = "yuv420pbe",
525
    [PIX_FMT_YUV420P16BE] = {
526
        .name = "yuv420p16be",
527 527
        .nb_channels  = 3,
528 528
        .log2_chroma_w= 1,
529 529
        .log2_chroma_h= 1,
......
534 534
        },
535 535
        .flags = PIX_FMT_BE,
536 536
    },
537
    [PIX_FMT_YUV422PLE] = {
538
        .name = "yuv422ple",
537
    [PIX_FMT_YUV422P16LE] = {
538
        .name = "yuv422p16le",
539 539
        .nb_channels  = 3,
540 540
        .log2_chroma_w= 1,
541 541
        .log2_chroma_h= 0,
......
545 545
            {2,1,1,0,15},        /* V */
546 546
        },
547 547
    },
548
    [PIX_FMT_YUV422PBE] = {
549
        .name = "yuv422pbe",
548
    [PIX_FMT_YUV422P16BE] = {
549
        .name = "yuv422p16be",
550 550
        .nb_channels  = 3,
551 551
        .log2_chroma_w= 1,
552 552
        .log2_chroma_h= 0,
......
557 557
        },
558 558
        .flags = PIX_FMT_BE,
559 559
    },
560
    [PIX_FMT_YUV444PLE] = {
561
        .name = "yuv444ple",
560
    [PIX_FMT_YUV444P16LE] = {
561
        .name = "yuv444p16le",
562 562
        .nb_channels  = 3,
563 563
        .log2_chroma_w= 0,
564 564
        .log2_chroma_h= 0,
......
568 568
            {2,1,1,0,15},        /* V */
569 569
        },
570 570
    },
571
    [PIX_FMT_YUV444PBE] = {
572
        .name = "yuv444pbe",
571
    [PIX_FMT_YUV444P16BE] = {
572
        .name = "yuv444p16be",
573 573
        .nb_channels  = 3,
574 574
        .log2_chroma_w= 0,
575 575
        .log2_chroma_h= 0,
libavutil/pixfmt.h
117 117
    PIX_FMT_VAAPI_IDCT, ///< HW acceleration through VA API at IDCT entry-point, Picture.data[3] contains a vaapi_render_state struct which contains fields extracted from headers
118 118
    PIX_FMT_VAAPI_VLD,  ///< HW decoding through VA API, Picture.data[3] contains a vaapi_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers
119 119

  
120
    PIX_FMT_YUV420PLE,  ///< planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
121
    PIX_FMT_YUV420PBE,  ///< planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
122
    PIX_FMT_YUV422PLE,  ///< planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
123
    PIX_FMT_YUV422PBE,  ///< planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
124
    PIX_FMT_YUV444PLE,  ///< planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
125
    PIX_FMT_YUV444PBE,  ///< planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
120
    PIX_FMT_YUV420P16LE,  ///< planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
121
    PIX_FMT_YUV420P16BE,  ///< planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
122
    PIX_FMT_YUV422P16LE,  ///< planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
123
    PIX_FMT_YUV422P16BE,  ///< planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
124
    PIX_FMT_YUV444P16LE,  ///< planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
125
    PIX_FMT_YUV444P16BE,  ///< planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
126 126
    PIX_FMT_NB,        ///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions
127 127
};
128 128

  
......
144 144
#define PIX_FMT_BGR565 PIX_FMT_NE(BGR565BE, BGR565LE)
145 145
#define PIX_FMT_BGR555 PIX_FMT_NE(BGR555BE, BGR555LE)
146 146

  
147
#define PIX_FMT_YUV420P16 PIX_FMT_NE(YUV420PBE, YUV420PLE)
148
#define PIX_FMT_YUV422P16 PIX_FMT_NE(YUV422PBE, YUV422PLE)
149
#define PIX_FMT_YUV444P16 PIX_FMT_NE(YUV444PBE, YUV444PLE)
147
#define PIX_FMT_YUV420P16 PIX_FMT_NE(YUV420P16BE, YUV420P16LE)
148
#define PIX_FMT_YUV422P16 PIX_FMT_NE(YUV422P16BE, YUV422P16LE)
149
#define PIX_FMT_YUV444P16 PIX_FMT_NE(YUV444P16BE, YUV444P16LE)
150 150

  
151 151
#endif /* AVUTIL_PIXFMT_H */

Also available in: Unified diff