Lines Matching refs:buf
40 int32_t* const buf = static_cast<int32_t*>(buffer); in flatten() local
41 reinterpret_cast<float&>(buf[0]) = mMaxLuminance; in flatten()
42 reinterpret_cast<float&>(buf[1]) = mMaxAverageLuminance; in flatten()
43 reinterpret_cast<float&>(buf[2]) = mMinLuminance; in flatten()
44 buf[3] = static_cast<int32_t>(mSupportedHdrTypes.size()); in flatten()
46 buf[4 + i] = static_cast<int32_t>(mSupportedHdrTypes[i]); in flatten()
62 int32_t const * const buf = static_cast<int32_t const *>(buffer); in unflatten() local
63 const size_t itemCount = size_t(buf[3]); in unflatten()
70 mMaxLuminance = reinterpret_cast<float const&>(buf[0]); in unflatten()
71 mMaxAverageLuminance = reinterpret_cast<float const&>(buf[1]); in unflatten()
72 mMinLuminance = reinterpret_cast<float const&>(buf[2]); in unflatten()
76 mSupportedHdrTypes[i] = static_cast<ui::Hdr>(buf[4 + i]); in unflatten()