comparison imgconvert.c @ 9223:53f2c0f6e71d libavcodec

Change the RGB5X5/BGR5X5 pixel format defines so that we have little endian and big endian variants instead of native-endian ones. This patch breaks API/ABI backward-compatibility.
author stefano
date Sat, 21 Mar 2009 23:08:20 +0000
parents e314914641bc
children 4b74d02db3df
comparison
equal deleted inserted replaced
9222:e314914641bc 9223:53f2c0f6e71d
214 .color_type = FF_COLOR_RGB, 214 .color_type = FF_COLOR_RGB,
215 .pixel_type = FF_PIXEL_PACKED, 215 .pixel_type = FF_PIXEL_PACKED,
216 .depth = 16, 216 .depth = 16,
217 .x_chroma_shift = 0, .y_chroma_shift = 0, 217 .x_chroma_shift = 0, .y_chroma_shift = 0,
218 }, 218 },
219 [PIX_FMT_RGB565] = { 219 [PIX_FMT_RGB565BE] = {
220 .name = "rgb565", 220 .name = "rgb565be",
221 .nb_channels = 3, 221 .nb_channels = 3,
222 .color_type = FF_COLOR_RGB, 222 .color_type = FF_COLOR_RGB,
223 .pixel_type = FF_PIXEL_PACKED, 223 .pixel_type = FF_PIXEL_PACKED,
224 .depth = 5, 224 .depth = 5,
225 .x_chroma_shift = 0, .y_chroma_shift = 0, 225 .x_chroma_shift = 0, .y_chroma_shift = 0,
226 }, 226 },
227 [PIX_FMT_RGB555] = { 227 [PIX_FMT_RGB565LE] = {
228 .name = "rgb555", 228 .name = "rgb565le",
229 .nb_channels = 3,
230 .color_type = FF_COLOR_RGB,
231 .pixel_type = FF_PIXEL_PACKED,
232 .depth = 5,
233 .x_chroma_shift = 0, .y_chroma_shift = 0,
234 },
235 [PIX_FMT_RGB555BE] = {
236 .name = "rgb555be",
237 .nb_channels = 3,
238 .color_type = FF_COLOR_RGB,
239 .pixel_type = FF_PIXEL_PACKED,
240 .depth = 5,
241 .x_chroma_shift = 0, .y_chroma_shift = 0,
242 },
243 [PIX_FMT_RGB555LE] = {
244 .name = "rgb555le",
229 .nb_channels = 3, 245 .nb_channels = 3,
230 .color_type = FF_COLOR_RGB, 246 .color_type = FF_COLOR_RGB,
231 .pixel_type = FF_PIXEL_PACKED, 247 .pixel_type = FF_PIXEL_PACKED,
232 .depth = 5, 248 .depth = 5,
233 .x_chroma_shift = 0, .y_chroma_shift = 0, 249 .x_chroma_shift = 0, .y_chroma_shift = 0,
325 .color_type = FF_COLOR_RGB, 341 .color_type = FF_COLOR_RGB,
326 .pixel_type = FF_PIXEL_PACKED, 342 .pixel_type = FF_PIXEL_PACKED,
327 .depth = 8, 343 .depth = 8,
328 .x_chroma_shift = 0, .y_chroma_shift = 0, 344 .x_chroma_shift = 0, .y_chroma_shift = 0,
329 }, 345 },
330 [PIX_FMT_BGR565] = { 346 [PIX_FMT_BGR565BE] = {
331 .name = "bgr565", 347 .name = "bgr565be",
332 .nb_channels = 3, 348 .nb_channels = 3,
333 .color_type = FF_COLOR_RGB, 349 .color_type = FF_COLOR_RGB,
334 .pixel_type = FF_PIXEL_PACKED, 350 .pixel_type = FF_PIXEL_PACKED,
335 .depth = 5, 351 .depth = 5,
336 .x_chroma_shift = 0, .y_chroma_shift = 0, 352 .x_chroma_shift = 0, .y_chroma_shift = 0,
337 }, 353 },
338 [PIX_FMT_BGR555] = { 354 [PIX_FMT_BGR565LE] = {
339 .name = "bgr555", 355 .name = "bgr565le",
356 .nb_channels = 3,
357 .color_type = FF_COLOR_RGB,
358 .pixel_type = FF_PIXEL_PACKED,
359 .depth = 5,
360 .x_chroma_shift = 0, .y_chroma_shift = 0,
361 },
362 [PIX_FMT_BGR555BE] = {
363 .name = "bgr555be",
364 .nb_channels = 3,
365 .color_type = FF_COLOR_RGB,
366 .pixel_type = FF_PIXEL_PACKED,
367 .depth = 5,
368 .x_chroma_shift = 0, .y_chroma_shift = 0,
369 },
370 [PIX_FMT_BGR555LE] = {
371 .name = "bgr555le",
340 .nb_channels = 3, 372 .nb_channels = 3,
341 .color_type = FF_COLOR_RGB, 373 .color_type = FF_COLOR_RGB,
342 .pixel_type = FF_PIXEL_PACKED, 374 .pixel_type = FF_PIXEL_PACKED,
343 .depth = 5, 375 .depth = 5,
344 .x_chroma_shift = 0, .y_chroma_shift = 0, 376 .x_chroma_shift = 0, .y_chroma_shift = 0,