Lines Matching refs:streamConfig

31         const pbcamera::StreamConfiguration &streamConfig,  in getRgb()  argument
33 switch (streamConfig.image.format) { in getRgb()
37 if (streamConfig.image.planes.size() != 2) { in getRgb()
39 streamConfig.image.planes.size()); in getRgb()
44 uint32_t yIndex = y * streamConfig.image.planes[0].stride + x; in getRgb()
45 uint32_t vIndex = streamConfig.image.planes[0].scanline * in getRgb()
46 streamConfig.image.planes[0].stride + in getRgb()
47 (y / 2) * streamConfig.image.planes[1].stride + (x & ~0x1); in getRgb()
62 if (streamConfig.image.planes.size() != 1) { in getRgb()
64 streamConfig.image.planes.size()); in getRgb()
68 uint32_t offset = y * streamConfig.image.planes[0].stride + x * 3; in getRgb()
75 ALOGE("%s: Format %d is not supported.", __FUNCTION__, streamConfig.image.format); in getRgb()
80 status_t writePpm(const std::string &filename, const pbcamera::StreamConfiguration &streamConfig, in writePpm() argument
82 if (streamConfig.image.format != HAL_PIXEL_FORMAT_YCrCb_420_SP && in writePpm()
83 streamConfig.image.format != HAL_PIXEL_FORMAT_RGB_888) { in writePpm()
84 ALOGE("%s: format 0x%x is not supported.", __FUNCTION__, streamConfig.image.format); in writePpm()
94 uint32_t width = streamConfig.image.width; in writePpm()
95 uint32_t height = streamConfig.image.height; in writePpm()
105 status_t res = getRgb(&r, &g, &b, x, y, streamConfig, buffer); in writePpm()
120 status_t comparePpm(const std::string &filename, const pbcamera::StreamConfiguration &streamConfig, in comparePpm() argument
122 if (streamConfig.image.format != HAL_PIXEL_FORMAT_YCrCb_420_SP) { in comparePpm()
123 ALOGE("%s: format 0x%x is not supported.", __FUNCTION__, streamConfig.image.format); in comparePpm()
149 if (width != streamConfig.image.width || height != streamConfig.image.height) { in comparePpm()
151 __FUNCTION__, streamConfig.image.width, streamConfig.image.height, in comparePpm()
173 status_t res = getRgb(&r, &g, &b, x, y, streamConfig, buffer); in comparePpm()