blob: 097915b5d719711c37559f860791ca3b50936dd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkCodecTools_DEFINED
#define SkCodecTools_DEFINED
inline float get_scale_from_sample_size(uint32_t sampleSize) {
return 1.0f / (float) sampleSize;
}
#endif // SkCodecTools_DEFINED
|