1 #ifndef HW_EMULATOR_CAMERA_ALIGNMENT_H 2 #define HW_EMULATOR_CAMERA_ALIGNMENT_H 3 4 namespace android { 5 6 // Align |value| to the next larger value that is divisible by |alignment| 7 // |alignment| has to be a power of 2. align(int value,int alignment)8inline int align(int value, int alignment) { 9 return (value + alignment - 1) & (~(alignment - 1)); 10 } 11 12 } // namespace android 13 14 #endif // HW_EMULATOR_CAMERA_ALIGNMENT_H 15