/hardware/google/av/media/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 73 imgBase + img->mPlane[i].mOffset; in _ImageCopy() 132 uint8_t* dst_y = imgBase + img->mPlane[0].mOffset; in ImageCopy() 133 uint8_t* dst_u = imgBase + img->mPlane[1].mOffset; in ImageCopy() 134 uint8_t* dst_v = imgBase + img->mPlane[2].mOffset; in ImageCopy() 161 const uint8_t* src_y = imgBase + img->mPlane[0].mOffset; in ImageCopy() 162 const uint8_t* src_u = imgBase + img->mPlane[1].mOffset; in ImageCopy() 163 const uint8_t* src_v = imgBase + img->mPlane[2].mOffset; in ImageCopy() 261 && (img->mPlane[2].mOffset - img->mPlane[1].mOffset == 1)); in IsNV12() 270 && img->mPlane[2].mOffset > img->mPlane[1].mOffset); in IsI420() 284 .mOffset = 0, in CreateYUV420PlanarMediaImage2() [all …]
|
/hardware/google/av/media/sfplugin/tests/ |
D | MediaCodec_sanity_test.cpp | 372 EXPECT_EQ(img->mPlane[img->Y].mOffset, 0u); in TEST_P() 376 EXPECT_EQ(img->mPlane[img->U].mOffset, (uint32_t)(stride * vstride)); in TEST_P() 380 EXPECT_EQ(img->mPlane[img->V].mOffset, (uint32_t)(stride * vstride * 5 / 4)); in TEST_P() 390 EXPECT_EQ(img->mPlane[img->Y].mOffset, 0u); in TEST_P() 394 EXPECT_EQ(img->mPlane[img->U].mOffset, (uint32_t)(stride * vstride)); in TEST_P() 398 EXPECT_EQ(img->mPlane[img->V].mOffset, (uint32_t)(stride * vstride + 1)); in TEST_P() 412 img->mPlane[img->Y].mOffset + 239 * img->mPlane[img->Y].mRowInc in TEST_P() 414 img->mPlane[img->U].mOffset + 119 * img->mPlane[img->U].mRowInc in TEST_P() 416 img->mPlane[img->V].mOffset + 119 * img->mPlane[img->V].mRowInc in TEST_P() 428 img->mPlane[0].mOffset, img->mPlane[0].mColInc, img->mPlane[0].mRowInc, in TEST_P() [all …]
|
/hardware/google/av/codec2/include/ |
D | C2Buffer.h | 379 inline constexpr uint32_t offset() const { return mOffset; } in offset() 380 inline constexpr uint32_t endOffset() const { return mOffset + mSize; } in endOffset() 384 return C2Segment(mOffset, mSize); in C2Segment() 391 mOffset(c2_min(offset, capacity())), in _C2LinearRangeAspect() 392 mSize(c2_min(size, capacity() - mOffset)) { in _C2LinearRangeAspect() 399 mOffset(other.offset()), in _C2LinearRangeAspect() 406 mOffset(0), in _C2LinearRangeAspect() 413 mOffset(c2_min(offset, capacity())), in _C2LinearRangeAspect() 414 mSize(c2_min(size, capacity() - mOffset)) { in _C2LinearRangeAspect() 420 mOffset(c2_min(c2_max(offset, parent == nullptr ? 0 : parent->offset()), capacity())), in _C2LinearRangeAspect() [all …]
|
/hardware/google/av/media/sfplugin/ |
D | Codec2Buffer.cpp | 94 int32_t vstride = (img->mPlane[1].mOffset - img->mPlane[0].mOffset) / stride; in setImageData() 291 mediaImage->mPlane[i].mOffset = mView.data()[i] - minPtr; in GraphicView2MediaImageConverter() 305 mediaImage->mPlane[mediaImage->Y].mOffset = 0; in GraphicView2MediaImageConverter() 311 mediaImage->mPlane[mediaImage->U].mOffset = mStride * mVStride; in GraphicView2MediaImageConverter() 317 mediaImage->mPlane[mediaImage->V].mOffset = mStride * mVStride * 5 / 4; in GraphicView2MediaImageConverter() 326 mediaImage->mPlane[mediaImage->Y].mOffset = 0; in GraphicView2MediaImageConverter() 332 mediaImage->mPlane[mediaImage->U].mOffset = mStride * mVStride; in GraphicView2MediaImageConverter() 338 mediaImage->mPlane[mediaImage->V].mOffset = mStride * mVStride + 1; in GraphicView2MediaImageConverter()
|
/hardware/interfaces/camera/device/3.4/default/include/ext_device_v3_4_impl/ |
D | ExternalCameraUtils.h | 133 const uint64_t mOffset; // used for mmap variable
|
/hardware/interfaces/camera/device/3.4/default/ |
D | ExternalCameraUtils.cpp | 36 mBufferIndex(bufIdx), mFd(fd), mDataSize(dataSize), mOffset(offset) {} in V4L2Frame() 47 void* addr = mmap(NULL, mDataSize, PROT_READ, MAP_SHARED, mFd, mOffset); in map()
|
/hardware/google/av/codec2/vndk/ |
D | C2Buffer.cpp | 225 mOffset(C2LinearCapacity(impl->size()).range(offset, size).offset()) { } in C2ReadView() 228 : _C2LinearCapacityAspect(0u), mImpl(std::make_shared<Impl>(error)), mOffset(0u) { in C2ReadView() 233 return mImpl->error() ? nullptr : mImpl->data() + mOffset; in data() 242 return C2ReadView(mImpl, mOffset + subRange.offset(), subRange.size()); in subView()
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
D | omx_swvdec.cpp | 2877 p_img->mPlane[MediaImage::Y].mOffset = 0; in describe_color_format() 2884 p_img->mPlane[MediaImage::Y].mOffset = stride * scanlines; in describe_color_format() 2891 p_img->mPlane[MediaImage::Y].mOffset = stride * scanlines + 1; in describe_color_format() 2916 p_img->mPlane[MediaImage::Y].mOffset = 0; in describe_color_format() 2923 p_img->mPlane[MediaImage::Y].mOffset = stride * scanlines; in describe_color_format() 2930 p_img->mPlane[MediaImage::Y].mOffset = stride * scanlines + 1; in describe_color_format()
|
D | omx_vdec_v4l2.cpp | 12275 img->mPlane[MediaImage::Y].mOffset = 0; in describeColorFormat() 12281 img->mPlane[MediaImage::U].mOffset = planeWidth * planeHeight; in describeColorFormat() 12288 img->mPlane[MediaImage::V].mOffset = planeWidth * planeHeight + 1; in describeColorFormat() 12315 i, img->mPlane[i].mOffset, img->mPlane[i].mColInc, img->mPlane[i].mRowInc); in describeColorFormat()
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/ |
D | omx_swvdec.cpp | 3190 p_img->mPlane[MediaImage::Y].mOffset = 0; in describe_color_format() 3197 p_img->mPlane[MediaImage::U].mOffset = stride * scanlines; in describe_color_format() 3204 p_img->mPlane[MediaImage::V].mOffset = stride * scanlines + 1; in describe_color_format()
|
D | omx_vdec_v4l2.cpp | 13484 img->mPlane[MediaImage::Y].mOffset = 0; in describeColorFormat() 13490 img->mPlane[MediaImage::U].mOffset = planeWidth * planeHeight; in describeColorFormat() 13497 img->mPlane[MediaImage::V].mOffset = planeWidth * planeHeight + 1; in describeColorFormat() 13524 i, img->mPlane[i].mOffset, img->mPlane[i].mColInc, img->mPlane[i].mRowInc); in describeColorFormat()
|
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/vdec/src/ |
D | omx_swvdec.cpp | 3217 p_img->mPlane[MediaImage::Y].mOffset = 0; in describe_color_format() 3224 p_img->mPlane[MediaImage::U].mOffset = stride * scanlines; in describe_color_format() 3231 p_img->mPlane[MediaImage::V].mOffset = stride * scanlines + 1; in describe_color_format()
|
D | omx_vdec_v4l2.cpp | 11772 img->mPlane[MediaImage::Y].mOffset = 0; in describeColorFormat() 11778 img->mPlane[MediaImage::U].mOffset = planeWidth * planeHeight; in describeColorFormat() 11785 img->mPlane[MediaImage::V].mOffset = planeWidth * planeHeight + 1; in describeColorFormat() 11812 i, img->mPlane[i].mOffset, img->mPlane[i].mColInc, img->mPlane[i].mRowInc); in describeColorFormat()
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/ |
D | omx_vdec_msm8974.cpp | 10928 img->mPlane[MediaImage::Y].mOffset = 0; in describeColorFormat() 10934 img->mPlane[MediaImage::U].mOffset = planeWidth * planeHeight; in describeColorFormat() 10941 img->mPlane[MediaImage::V].mOffset = planeWidth * planeHeight + 1; in describeColorFormat() 10968 i, img->mPlane[i].mOffset, img->mPlane[i].mColInc, img->mPlane[i].mRowInc); in describeColorFormat()
|