Lines Matching refs:width
71 static void rgba8888_to_nv21(uint8_t* input, uint8_t* output, int width, int height) { in rgba8888_to_nv21() argument
73 int yStride = (width + (align -1)) & ~(align-1); in rgba8888_to_nv21()
77 for (int i = 0; i < width; ++i) { in rgba8888_to_nv21()
78 uint8_t R = input[j*width*4 + i*4]; in rgba8888_to_nv21()
79 uint8_t G = input[j*width*4 + i*4 + 1]; in rgba8888_to_nv21()
80 uint8_t B = input[j*width*4 + i*4 + 2]; in rgba8888_to_nv21()
95 static void nv21_to_rgba8888(uint8_t* input, uint32_t * output, int width, int height) { in nv21_to_rgba8888() argument
97 int yStride = (width + (align -1)) & ~(align-1); in nv21_to_rgba8888()
102 for (int i = 0; i < width; ++i) { in nv21_to_rgba8888()
115 void EmulatedFakeRotatingCameraDevice::render(int width, int height) in render() argument
117 update_scene((float)width, (float)height); in render()
145 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, mPixelBuf); in render()
169 void EmulatedFakeRotatingCameraDevice::create_texture_dotx(int width, int height) { in create_texture_dotx() argument
170 uint32_t* myrgba = new uint32_t[width * height]; in create_texture_dotx()
171 nv21_to_rgba8888(rawData, myrgba, width, height); in create_texture_dotx()
172 uint32_t* myrgba2 = new uint32_t[width * width]; in create_texture_dotx()
173 convert_to_square(myrgba, myrgba2, width, height, width); in create_texture_dotx()
177 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, width, 0, GL_RGBA, GL_UNSIGNED_BYTE, myrgba2); in create_texture_dotx()
248 void EmulatedFakeRotatingCameraDevice::update_scene(float width, float height) in update_scene() argument
250 float ratio = width / height; in update_scene()
251 glViewport(0, 0, width, height); in update_scene()
351 int EmulatedFakeRotatingCameraDevice::init_gl_surface(int width, int height) in init_gl_surface() argument
377 EGLint attribs[] = { EGL_WIDTH, width, EGL_HEIGHT, height, EGL_NONE }; in init_gl_surface()
464 status_t EmulatedFakeRotatingCameraDevice::startDevice(int width, in startDevice() argument
468 ALOGE("%s width %d height %d", __FUNCTION__, width, height); in startDevice()
482 EmulatedCameraDevice::commonStartDevice(width, height, pix_fmt); in startDevice()
525 int width=mFrameWidth; in produceFrame() local
528 mPixelBuf = new uint8_t[width * height * kGlBytesPerPixel]; in produceFrame()