Lines Matching refs:buf
45 int32_t* const buf = static_cast<int32_t*>(buffer); in flatten() local
46 reinterpret_cast<float&>(buf[0]) = mMaxLuminance; in flatten()
47 reinterpret_cast<float&>(buf[1]) = mMaxAverageLuminance; in flatten()
48 reinterpret_cast<float&>(buf[2]) = mMinLuminance; in flatten()
49 buf[3] = static_cast<int32_t>(mSupportedHdrTypes.size()); in flatten()
51 buf[4 + i] = mSupportedHdrTypes[i]; in flatten()
67 int32_t const * const buf = static_cast<int32_t const *>(buffer); in unflatten() local
68 const size_t itemCount = size_t(buf[3]); in unflatten()
75 mMaxLuminance = reinterpret_cast<float const&>(buf[0]); in unflatten()
76 mMaxAverageLuminance = reinterpret_cast<float const&>(buf[1]); in unflatten()
77 mMinLuminance = reinterpret_cast<float const&>(buf[2]); in unflatten()
81 mSupportedHdrTypes[i] = buf[4 + i]; in unflatten()