Lines Matching refs:width
28 void copyCbCrPlane(uint8_t* dst, const size_t width, size_t height, in copyCbCrPlane() argument
33 for (size_t rem = width & 15; rem; --rem, ++dst, p += srcStep) { in copyCbCrPlane()
37 for (size_t width16 = width >> 4; width16; --width16) { in copyCbCrPlane()
60 size_t NV21size(const size_t width, const size_t height) { in NV21size() argument
61 LOG_ALWAYS_FATAL_IF((width & 1) || (height & 1)); in NV21size()
62 return width * height * 3 / 2; in NV21size()
65 android_ycbcr NV21init(const size_t width, const size_t height, void* data) { in NV21init() argument
66 LOG_ALWAYS_FATAL_IF((width & 1) || (height & 1)); in NV21init()
68 const size_t area = width * height; in NV21init()
74 nv21.ystride = width; in NV21init()
75 nv21.cstride = width / 2; in NV21init()
81 android_ycbcr toNV21Shallow(const size_t width, const size_t height, in toNV21Shallow() argument
84 LOG_ALWAYS_FATAL_IF((width & 1) || (height & 1)); in toNV21Shallow()
89 const size_t area = width * height; in toNV21Shallow()
97 nv21.cstride = width / 2; in toNV21Shallow()
100 copyCbCrPlane(&((*data)[0]), width / 2, height / 2, in toNV21Shallow()
102 copyCbCrPlane(&((*data)[area / 4]), width / 2, height / 2, in toNV21Shallow()