X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fargb_frame.cc;h=99d6c8145154a3efb0fa6caa5d76502cec42611a;hb=491ac453512ac1982f62fc0d2a310586427601d7;hp=8e54e3b48ef55a94a475babd99d88713886eab92;hpb=ed6a471b61d36a3ba7e8696fa3e5606406c5cf62;p=libdcp.git diff --git a/src/argb_frame.cc b/src/argb_frame.cc index 8e54e3b4..99d6c814 100644 --- a/src/argb_frame.cc +++ b/src/argb_frame.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 Carl Hetherington + Copyright (C) 2012-2014 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,20 +17,22 @@ */ +/** @file src/argb_frame.cc + * @brief ARGBFrame class. + */ + #include "argb_frame.h" -using namespace libdcp; +using namespace dcp; -/** Construct an empty ARGBFrame with a given width and height and with +/** Construct an empty ARGBFrame of a given size and with * undefined contents. - * @param width Width in pixels. - * @param height Height in pixels. + * @param size Size in pixels. */ -ARGBFrame::ARGBFrame (int width, int height) - : _width (width) - , _height (height) +ARGBFrame::ARGBFrame (Size size) + : _size (size) { - _data = new uint8_t[width * height * 4]; + _data = new uint8_t[_size.width * _size.height * 4]; } @@ -43,5 +45,5 @@ ARGBFrame::~ARGBFrame () int ARGBFrame::stride () const { - return _width * 4; + return _size.width * 4; }