Home
last modified time | relevance | path

Searched refs:mStride (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp151 mStride = 2 * mWidth; in BitmapParams()
158 mStride = 4 * mWidth; in BitmapParams()
166 mStride = mWidth; in BitmapParams()
172 mStride = mWidth; in BitmapParams()
177 mStride = stride; in BitmapParams()
336 + dst.mCropTop * dst.mStride + dst.mCropLeft * dst.mBpp; in convertYUV420PlanarUseLibYUV()
339 (const uint8_t *)src.mBits + src.mCropTop * src.mStride + src.mCropLeft; in convertYUV420PlanarUseLibYUV()
342 (const uint8_t *)src.mBits + src.mStride * src.mHeight in convertYUV420PlanarUseLibYUV()
343 + (src.mCropTop / 2) * (src.mStride / 2) + (src.mCropLeft / 2); in convertYUV420PlanarUseLibYUV()
346 src_u + (src.mStride / 2) * (src.mHeight / 2); in convertYUV420PlanarUseLibYUV()
[all …]
DSoftwareRenderer.cpp47 mStride(0), in SoftwareRenderer()
111 mStride = strideNew; in resetFormatIfChanged()
282 mWidth, mHeight, mStride, in render()
288 const uint8_t *src_y = (const uint8_t *)data + mCropTop * mStride + mCropLeft; in render()
289 const uint8_t *src_u = (const uint8_t *)data + mStride * mHeight + mCropTop * mStride / 4; in render()
290 const uint8_t *src_v = (const uint8_t *)src_u + mStride * mHeight / 4; in render()
306 src_y += mStride; in render()
314 src_u += mStride / 2; in render()
315 src_v += mStride / 2; in render()
320 const uint8_t *src_y = (const uint8_t *)data + mCropTop * mStride + mCropLeft * 2; in render()
[all …]
/frameworks/native/libs/renderengine/include/renderengine/
DMesh.h45 size_t mStride; variable
46 VertexArray(float* data, size_t stride) : mData(data), mStride(stride) {} in VertexArray()
49 TYPE& operator[](size_t index) { return *reinterpret_cast<TYPE*>(&mData[index * mStride]); }
51 return *reinterpret_cast<TYPE const*>(&mData[index * mStride]);
57 return VertexArray<TYPE>(getPositions(), mStride); in getPositionArray()
62 return VertexArray<TYPE>(getTexCoords(), mStride); in getTexCoordArray()
67 return VertexArray<TYPE>(getCropCoords(), mStride); in getCropCoordArray()
109 size_t mStride; variable
/frameworks/native/libs/renderengine/
DMesh.cpp32 mStride = 0; in Mesh()
50 mStride = 0; in Mesh()
55 mStride = stride; in Mesh()
96 return mStride * sizeof(float); in getByteStride()
100 return mStride; in getStride()
/frameworks/av/media/libstagefright/filters/
DSimpleFilter.cpp27 if (!msg->findInt32("stride", &mStride)) { in configure()
28 mStride = mWidth; in configure()
DSimpleFilter.h31 SimpleFilter() : mWidth(0), mHeight(0), mStride(0), mSliceHeight(0), in SimpleFilter()
44 int32_t mStride, mSliceHeight; member
DMediaFilter.cpp425 if (!msg->findInt32("stride", &mStride)) { in onConfigureComponent()
426 mStride = mWidth; in onConfigureComponent()
465 mInputFormat->setInt32("stride", mStride); in onConfigureComponent()
468 mInputFormat->setRect("crop", 0, 0, mStride, mSliceHeight); in onConfigureComponent()
474 mOutputFormat->setInt32("stride", mStride); in onConfigureComponent()
477 mOutputFormat->setRect("crop", 0, 0, mStride, mSliceHeight); in onConfigureComponent()
677 notify, mStride, mSliceHeight, kBufferCountActual); in onCreateInputSurface()
/frameworks/av/media/libstagefright/codecs/avcdec/
DSoftAVCDec.cpp78 mStride(mWidth), in SoftAVC()
204 mStride = 0; in resetDecoder()
257 mStride = outputBufferWidth(); in initDecoder()
294 setParams(mStride); in initDecoder()
492 if (outputBufferWidth() != mStride) { in onQueueFilled()
494 mStride = outputBufferWidth(); in onQueueFilled()
495 setParams(mStride); in onQueueFilled()
635 mStride = outputBufferWidth(); in onQueueFilled()
636 setParams(mStride); in onQueueFilled()
DSoftAVCDec.h93 size_t mStride; member
/frameworks/av/media/libstagefright/codecs/hevcdec/
DSoftHEVC.cpp70 mStride(mWidth) { in SoftHEVC()
241 mStride = 0; in resetDecoder()
296 mStride = outputBufferWidth(); in initDecoder()
333 setParams(mStride); in initDecoder()
488 if (outputBufferWidth() != mStride) { in onQueueFilled()
490 mStride = outputBufferWidth(); in onQueueFilled()
491 setParams(mStride); in onQueueFilled()
624 mStride = outputBufferWidth(); in onQueueFilled()
625 setParams(mStride); in onQueueFilled()
DSoftHEVC.h99 size_t mStride; member
/frameworks/av/media/libstagefright/codecs/mpeg2dec/
DSoftMPEG2.cpp74 mStride(mWidth) { in SoftMPEG2()
205 mStride = 0; in resetDecoder()
390 mStride = outputBufferWidth(); in initDecoder()
391 setParams(mStride); in initDecoder()
610 if (outputBufferWidth() != mStride) { in onQueueFilled()
612 mStride = outputBufferWidth(); in onQueueFilled()
613 setParams(mStride); in onQueueFilled()
751 mStride = outputBufferWidth(); in onQueueFilled()
752 setParams(mStride); in onQueueFilled()
DSoftMPEG2.h111 size_t mStride; member
/frameworks/av/media/libstagefright/codecs/avcenc/
DSoftAVCEnc.cpp615 mStride = mWidth; in initEncoder()
624 if (((uint64_t)mStride * mHeight) > ((uint64_t)INT32_MAX / 3)) { in initEncoder()
628 mConversionBuffers[i] = (uint8_t *)malloc(mStride * mHeight * 3 / 2); in initEncoder()
1224 pu1_buf += (mStride) * mHeight; in setEncodeArgs()
1226 pu1_buf += (mStride / 2) * mHeight / 2; in setEncodeArgs()
1237 ps_inp_raw_buf->au4_strd[0] = mStride; in setEncodeArgs()
1238 ps_inp_raw_buf->au4_strd[1] = (mStride / 2); in setEncodeArgs()
1239 ps_inp_raw_buf->au4_strd[2] = (mStride / 2); in setEncodeArgs()
1248 ps_inp_raw_buf->au4_strd[0] = mStride * 2; in setEncodeArgs()
1257 pu1_buf += (mStride) * mHeight; in setEncodeArgs()
[all …]
DSoftAVCEnc.h158 int32_t mStride; member
/frameworks/av/media/codec2/components/avc/
DC2SoftAvcDec.cpp377 uint32_t bufferSize = mStride * mHeight * 3 / 2; in onFlush_sm()
500 mStride = ALIGN64(mWidth); in initDecoder()
504 if (OK != setParams(mStride, IVD_DECODE_FRAME)) return UNKNOWN_ERROR; in initDecoder()
517 uint32_t displayStride = mStride; in setDecodeArgs()
639 mStride = 0; in resetDecoder()
755 if (mStride != ALIGN64(mWidth)) { in ensureDecoderState()
756 mStride = ALIGN64(mWidth); in ensureDecoderState()
757 if (OK != setParams(mStride, IVD_DECODE_FRAME)) return C2_CORRUPTED; in ensureDecoderState()
760 (mOutBlock->width() != mStride || mOutBlock->height() != mHeight)) { in ensureDecoderState()
766 c2_status_t err = pool->fetchGraphicBlock(mStride, mHeight, format, usage, &mOutBlock); in ensureDecoderState()
[all …]
DC2SoftAvcDec.h163 uint32_t mStride; variable
/frameworks/av/media/codec2/components/hevc/
DC2SoftHevcDec.cpp369 uint32_t displayStride = mStride; in onFlush_sm()
496 mStride = ALIGN64(mWidth); in initDecoder()
500 if (OK != setParams(mStride, IVD_DECODE_FRAME)) return UNKNOWN_ERROR; in initDecoder()
513 uint32_t displayStride = mStride; in setDecodeArgs()
636 mStride = 0; in resetDecoder()
751 if (mStride != ALIGN64(mWidth)) { in ensureDecoderState()
752 mStride = ALIGN64(mWidth); in ensureDecoderState()
753 if (OK != setParams(mStride, IVD_DECODE_FRAME)) return C2_CORRUPTED; in ensureDecoderState()
756 (mOutBlock->width() != mStride || mOutBlock->height() != mHeight)) { in ensureDecoderState()
762 c2_status_t err = pool->fetchGraphicBlock(mStride, mHeight, format, usage, &mOutBlock); in ensureDecoderState()
[all …]
DC2SoftHevcDec.h121 uint32_t mStride; member
/frameworks/av/media/codec2/components/mpeg2/
DC2SoftMpeg2Dec.cpp362 uint32_t displayStride = mStride; in onFlush_sm()
567 mStride = ALIGN64(mWidth); in initDecoder()
571 if (OK != setParams(mStride)) return UNKNOWN_ERROR; in initDecoder()
584 uint32_t displayStride = mStride; in setDecodeArgs()
708 mStride = 0; in resetDecoder()
829 if (mStride != ALIGN64(mWidth)) { in ensureDecoderState()
830 mStride = ALIGN64(mWidth); in ensureDecoderState()
831 if (OK != setParams(mStride)) return C2_CORRUPTED; in ensureDecoderState()
834 (mOutBlock->width() != mStride || mOutBlock->height() != mHeight)) { in ensureDecoderState()
840 c2_status_t err = pool->fetchGraphicBlock(mStride, mHeight, format, usage, &mOutBlock); in ensureDecoderState()
[all …]
DC2SoftMpeg2Dec.h162 uint32_t mStride; member
/frameworks/av/media/libstagefright/include/
DSoftwareRenderer.h54 int32_t mWidth, mHeight, mStride; variable
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DImageShader.java83 private int mStride; field in ImageShader.VertexAttribute
99 mStride = stride; in set()
115 mStride = stride; in set()
151 mStride, in push()
159 mStride, in push()
/frameworks/av/media/libstagefright/include/media/stagefright/
DColorConverter.h75 size_t mBpp, mStride; member
DMediaFilter.h100 int32_t mStride, mSliceHeight; member

12