|
|
|
@ -27,7 +27,8 @@ |
|
|
|
|
#include "intreadwrite.h" |
|
|
|
|
|
|
|
|
|
void av_read_image_line(uint16_t *dst, const uint8_t *data[4], const int linesize[4], |
|
|
|
|
const AVPixFmtDescriptor *desc, int x, int y, int c, int w, int read_pal_component) |
|
|
|
|
const AVPixFmtDescriptor *desc, int x, int y, int c, int w, |
|
|
|
|
int read_pal_component) |
|
|
|
|
{ |
|
|
|
|
AVComponentDescriptor comp = desc->comp[c]; |
|
|
|
|
int plane = comp.plane; |
|
|
|
@ -1151,8 +1152,8 @@ char *av_get_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt) |
|
|
|
|
snprintf (buf, buf_size, "name" " nb_components" " nb_bits"); |
|
|
|
|
} else { |
|
|
|
|
const AVPixFmtDescriptor *pixdesc = &av_pix_fmt_descriptors[pix_fmt]; |
|
|
|
|
snprintf(buf, buf_size, "%-11s %7d %10d", |
|
|
|
|
pixdesc->name, pixdesc->nb_components, av_get_bits_per_pixel(pixdesc)); |
|
|
|
|
snprintf(buf, buf_size, "%-11s %7d %10d", pixdesc->name, |
|
|
|
|
pixdesc->nb_components, av_get_bits_per_pixel(pixdesc)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return buf; |
|
|
|
|