~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/imbuf/intern/dds/Common.h

  • Committer: Bazaar Package Importer
  • Author(s): Kevin Roy
  • Date: 2011-06-24 11:13:28 UTC
  • mto: (14.1.6 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20110624111328-27ribg6l36edf2ay
Tags: upstream-2.58-svn37702
ImportĀ upstreamĀ versionĀ 2.58-svn37702

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: Common.h 35239 2011-02-27 20:23:21Z jesterking $
 
2
 * $Id: Common.h 36546 2011-05-08 09:05:52Z jesterking $
3
3
 *
4
4
 * ***** BEGIN GPL LICENSE BLOCK *****
5
5
 *
17
17
 * along with this program; if not, write to the Free Software Foundation,
18
18
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
19
 *
20
 
 * Contributors: Amorilia (amorilia@gamebox.net)
 
20
 * Contributors: Amorilia (amorilia@users.sourceforge.net)
21
21
 *
22
22
 * ***** END GPL LICENSE BLOCK *****
23
23
 */
55
55
typedef unsigned int       uint32;
56
56
typedef unsigned long long uint64;
57
57
 
 
58
// copied from nvtt src/nvimage/nvimage.h
 
59
inline uint computePitch(uint w, uint bitsize, uint alignment)
 
60
{
 
61
        return ((w * bitsize +  8 * alignment - 1) / (8 * alignment)) * alignment;
 
62
}
 
63
 
58
64
#endif