float
-Image::bytes_per_pixel (int c) const
+Image::bytes_per_pixel(int component) const
{
auto d = av_pix_fmt_desc_get(_pixel_format);
if (!d) {
throw PixelFormatError ("bytes_per_pixel()", _pixel_format);
}
- if (c >= planes()) {
+ if (component >= planes()) {
return 0;
}
return bpp[0] + bpp[1] + bpp[2] + bpp[3];
}
- return bpp[c];
+ return bpp[component];
}
int vertical_factor (int) const;
int horizontal_factor (int) const;
dcp::Size sample_size (int) const;
- float bytes_per_pixel (int) const;
+ float bytes_per_pixel(int component) const;
std::shared_ptr<Image> convert_pixel_format (dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format, Alignment alignment, bool fast) const;
std::shared_ptr<Image> scale (dcp::Size out_size, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format, Alignment alignment, bool fast) const;