Lines Matching refs:ss
240 static void initializeErrorMsg(std::stringstream &ss, int expectDim, bool isSrc) { in initializeErrorMsg() argument
241 ss << (expectDim == 1 ? "rsAllocationCopy1DRange" : "rsAllocationCopy2DRange") << ": "; in initializeErrorMsg()
242 ss << (isSrc? "source" : "destination") << " "; in initializeErrorMsg()
250 std::stringstream ss; in validateCopyArgs() local
253 initializeErrorMsg(ss, expectDim, isSrc); in validateCopyArgs()
254 ss << "Mip level out of range: "; in validateCopyArgs()
255 ss << lod << " >= " << alloc->mHal.drvState.lodCount; in validateCopyArgs()
256 rsc->setError(RS_ERROR_FATAL_DEBUG, ss.str().c_str()); in validateCopyArgs()
264 initializeErrorMsg(ss, expectDim, isSrc); in validateCopyArgs()
265 ss << "X range: "; in validateCopyArgs()
266 ss << "[" << xoff << ", " << xoff + w << ") outside "; in validateCopyArgs()
267 ss << "[0, " << allocDimX << ")"; in validateCopyArgs()
268 rsc->setError(RS_ERROR_FATAL_DEBUG, ss.str().c_str()); in validateCopyArgs()
276 initializeErrorMsg(ss, expectDim, isSrc); in validateCopyArgs()
277 ss << "dimensionality invalid: expected 2D; given 1D rs_allocation"; in validateCopyArgs()
278 rsc->setError(RS_ERROR_FATAL_DEBUG, ss.str().c_str()); in validateCopyArgs()
283 initializeErrorMsg(ss, expectDim, isSrc); in validateCopyArgs()
284 ss << "Y range: "; in validateCopyArgs()
285 ss << "[" << yoff << ", " << yoff + h << ") outside "; in validateCopyArgs()
286 ss << "[0, " << allocDimY << ")"; in validateCopyArgs()
287 rsc->setError(RS_ERROR_FATAL_DEBUG, ss.str().c_str()); in validateCopyArgs()
292 initializeErrorMsg(ss, expectDim, isSrc); in validateCopyArgs()
293 ss << "dimensionality invalid: expected 1D; given 2D rs_allocation"; in validateCopyArgs()
294 rsc->setError(RS_ERROR_FATAL_DEBUG, ss.str().c_str()); in validateCopyArgs()