Revision 6c2a8608

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",
135
        .nb_channels = 3,
136
        .color_type = FF_COLOR_YUV,
137
        .pixel_type = FF_PIXEL_PLANAR,
138
        .depth = 16,
139
        .x_chroma_shift = 1, .y_chroma_shift = 1,
140
    },
141
    [PIX_FMT_YUV422PLE] = {
142
        .name = "yuv422ple",
143
        .nb_channels = 3,
144
        .color_type = FF_COLOR_YUV,
145
        .pixel_type = FF_PIXEL_PLANAR,
146
        .depth = 16,
147
        .x_chroma_shift = 1, .y_chroma_shift = 0,
148
    },
149
    [PIX_FMT_YUV444PLE] = {
150
        .name = "yuv444ple",
151
        .nb_channels = 3,
152
        .color_type = FF_COLOR_YUV,
153
        .pixel_type = FF_PIXEL_PLANAR,
154
        .depth = 16,
155
        .x_chroma_shift = 0, .y_chroma_shift = 0,
156
    },
157
    [PIX_FMT_YUV420PBE] = {
158
        .name = "yuv420pbe",
159
        .nb_channels = 3,
160
        .color_type = FF_COLOR_YUV,
161
        .pixel_type = FF_PIXEL_PLANAR,
162
        .depth = 16,
163
        .x_chroma_shift = 1, .y_chroma_shift = 1,
164
    },
165
    [PIX_FMT_YUV422PBE] = {
166
        .name = "yuv422pbe",
167
        .nb_channels = 3,
168
        .color_type = FF_COLOR_YUV,
169
        .pixel_type = FF_PIXEL_PLANAR,
170
        .depth = 16,
171
        .x_chroma_shift = 1, .y_chroma_shift = 0,
172
    },
173
    [PIX_FMT_YUV444PBE] = {
174
        .name = "yuv444pbe",
175
        .nb_channels = 3,
176
        .color_type = FF_COLOR_YUV,
177
        .pixel_type = FF_PIXEL_PLANAR,
178
        .depth = 16,
179
        .x_chroma_shift = 0, .y_chroma_shift = 0,
180
    },
181

  
133 182

  
134 183
    /* YUV formats with alpha plane */
135 184
    [PIX_FMT_YUVA420P] = {
......
613 662
        picture->linesize[1] = w2;
614 663
        picture->linesize[2] = w2;
615 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:
671
        w2 = (width + (1 << pinfo->x_chroma_shift) - 1) >> pinfo->x_chroma_shift;
672
        picture->linesize[0] = 2*width;
673
        picture->linesize[1] = 2*w2;
674
        picture->linesize[2] = 2*w2;
675
        break;
616 676
    case PIX_FMT_YUVA420P:
617 677
        w2 = (width + (1 << pinfo->x_chroma_shift) - 1) >> pinfo->x_chroma_shift;
618 678
        picture->linesize[0] = width;
......
696 756
    case PIX_FMT_YUVJ422P:
697 757
    case PIX_FMT_YUVJ444P:
698 758
    case PIX_FMT_YUVJ440P:
759
    case PIX_FMT_YUV420PLE:
760
    case PIX_FMT_YUV422PLE:
761
    case PIX_FMT_YUV444PLE:
762
    case PIX_FMT_YUV420PBE:
763
    case PIX_FMT_YUV422PBE:
764
    case PIX_FMT_YUV444PBE:
699 765
        h2 = (height + (1 << pinfo->y_chroma_shift) - 1) >> pinfo->y_chroma_shift;
700 766
        size2 = picture->linesize[1] * h2;
701 767
        picture->data[0] = ptr;
libavutil/pixfmt.h
116 116
    PIX_FMT_VAAPI_MOCO, ///< HW acceleration through VA API at motion compensation entry-point, Picture.data[3] contains a vaapi_render_state struct which contains macroblocks as well as various fields extracted from headers
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

  
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
119 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
120 127
};
121 128

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

  
147
#define PIX_FMT_YUV420P16 PIX_FMT_NE(PIX_FMT_YUV420PBE, PIX_FMT_YUV420PLE)
148
#define PIX_FMT_YUV422P16 PIX_FMT_NE(PIX_FMT_YUV422PBE, PIX_FMT_YUV422PLE)
149
#define PIX_FMT_YUV444P16 PIX_FMT_NE(PIX_FMT_YUV444PBE, PIX_FMT_YUV444PLE)
150

  
140 151
#endif /* AVUTIL_PIXFMT_H */

Also available in: Unified diff