Lines Matching defs:width
17 int VkYcbcrSamplerHelper::GetExpectedY(int x, int y, int width, int height) {
18 return 16 + (x + y) * 219 / (width + height - 2);
21 std::pair<int, int> VkYcbcrSamplerHelper::GetExpectedUV(int x, int y, int width, int height) {
22 return { 16 + x * 224 / (width - 1), 16 + y * 224 / (height - 1) };
52 bool VkYcbcrSamplerHelper::createBackendTexture(uint32_t width, uint32_t height) {
72 vkImageInfo.extent = VkExtent3D{width, height, 1};
141 for (size_t x = 0; x < width; ++x) {
142 bufferData[y * yLayout.rowPitch + x] = GetExpectedY(x, y, width, height);
153 for (size_t x = 0; x < width / 2; ++x) {
154 auto [u, v] = GetExpectedUV(2*x, 2*y, width, height);
205 fTexture = GrBackendTexture(width, height, imageInfo);