Home
last modified time | relevance | path

Searched refs:outPos (Results 1 – 5 of 5) sorted by relevance

/hardware/google/av/media/codecs/amr_nb_wb/
DC2SoftAmrNbEnc.cpp238 size_t outPos = 0; in process() local
258 wView.data() + outPos, &frameType, in process()
260 if (numEncBytes < 0 || numEncBytes > ((int)outCapacity - (int)outPos)) { in process()
261 ALOGE("encodeFrame call failed, state [%d %zu %zu]", numEncBytes, outPos, outCapacity); in process()
268 wView.data()[outPos] = ((wView.data()[outPos] << 3) | 4) & 0x7c; in process()
269 outPos += numEncBytes; in process()
279 if (outPos != 0) { in process()
281 createLinearBuffer(std::move(outputBlock), 0, outPos)); in process()
DC2SoftAmrWbEnc.cpp321 size_t outPos = 0; in process() local
338 int numEncBytes = encodeInput((wView.data() + outPos), outCapacity - outPos); in process()
340 ALOGE("encodeFrame call failed, state [%d %zu %zu]", numEncBytes, outPos, outCapacity); in process()
345 outPos += numEncBytes; in process()
355 if (outPos != 0) { in process()
357 createLinearBuffer(std::move(outputBlock), 0, outPos)); in process()
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_utils.cpp487 Dim outPos(outRect.left, outRect.top, outRect.right - outRect.left, in getAspectRatioPosition() local
511 outPos.x = uint32_t((xRatio * width) + (float)xPos); in getAspectRatioPosition()
512 outPos.y = uint32_t((yRatio * height) + (float)yPos); in getAspectRatioPosition()
513 outPos.w = uint32_t(wRatio * width); in getAspectRatioPosition()
514 outPos.h = uint32_t(hRatio * height); in getAspectRatioPosition()
516 "y = %d w = %d h = %d", __FUNCTION__, outPos.x, outPos.y, in getAspectRatioPosition()
517 outPos.w, outPos.h); in getAspectRatioPosition()
527 xRatio = (float)(outPos.x - xPos)/width; in getAspectRatioPosition()
536 wRatio = (float)outPos.w/width; in getAspectRatioPosition()
540 outPos.x = uint32_t(xRatio * fbWidth); in getAspectRatioPosition()
[all …]
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_utils.cpp474 Dim outPos(outRect.left, outRect.top, outRect.right - outRect.left, in getAspectRatioPosition() local
498 outPos.x = uint32_t((xRatio * width) + (float)xPos); in getAspectRatioPosition()
499 outPos.y = uint32_t((yRatio * height) + (float)yPos); in getAspectRatioPosition()
500 outPos.w = uint32_t(wRatio * width); in getAspectRatioPosition()
501 outPos.h = uint32_t(hRatio * height); in getAspectRatioPosition()
503 "y = %d w = %d h = %d", __FUNCTION__, outPos.x, outPos.y, in getAspectRatioPosition()
504 outPos.w, outPos.h); in getAspectRatioPosition()
514 xRatio = (float)(outPos.x - xPos)/width; in getAspectRatioPosition()
523 wRatio = (float)outPos.w/width; in getAspectRatioPosition()
527 outPos.x = uint32_t(xRatio * fbWidth); in getAspectRatioPosition()
[all …]
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_utils.cpp635 Dim outPos(outRect.left, outRect.top, outRect.right - outRect.left, in getAspectRatioPosition() local
659 outPos.x = uint32_t((xRatio * width) + (float)xPos); in getAspectRatioPosition()
660 outPos.y = uint32_t((yRatio * height) + (float)yPos); in getAspectRatioPosition()
661 outPos.w = uint32_t(wRatio * width); in getAspectRatioPosition()
662 outPos.h = uint32_t(hRatio * height); in getAspectRatioPosition()
664 "y = %d w = %d h = %d", __FUNCTION__, outPos.x, outPos.y, in getAspectRatioPosition()
665 outPos.w, outPos.h); in getAspectRatioPosition()
675 xRatio = (float)(outPos.x - xPos)/width; in getAspectRatioPosition()
684 wRatio = (float)outPos.w/width; in getAspectRatioPosition()
688 outPos.x = uint32_t(xRatio * fbWidth); in getAspectRatioPosition()
[all …]