Home
last modified time | relevance | path

Searched refs:MediaImage2 (Results 1 – 22 of 22) sorted by relevance

/frameworks/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.h54 MediaImage2 CreateYUV420PlanarMediaImage2(
65 MediaImage2 CreateYUV420SemiPlanarMediaImage2(
77 status_t ImageCopy(uint8_t *imgBase, const MediaImage2 *img, const C2GraphicView &view);
88 status_t ImageCopy(C2GraphicView &view, const uint8_t *imgBase, const MediaImage2 *img);
123 bool IsYUV420(const MediaImage2 *img);
128 bool IsNV12(const MediaImage2 *img);
133 bool IsNV21(const MediaImage2 *img);
138 bool IsI420(const MediaImage2 *img);
DCodec2BufferUtils.cpp69 static status_t _ImageCopy(View &view, const MediaImage2 *img, ImagePixel *imgBase) { in _ImageCopy()
123 status_t ImageCopy(uint8_t *imgBase, const MediaImage2 *img, const C2GraphicView &view) { in ImageCopy()
208 status_t ImageCopy(C2GraphicView &view, const uint8_t *imgBase, const MediaImage2 *img) { in ImageCopy()
398 bool IsYUV420(const MediaImage2 *img) { in IsYUV420()
399 return (img->mType == MediaImage2::MEDIA_IMAGE_TYPE_YUV in IsYUV420()
411 bool IsNV12(const MediaImage2 *img) { in IsNV12()
420 bool IsNV21(const MediaImage2 *img) { in IsNV21()
429 bool IsI420(const MediaImage2 *img) { in IsI420()
508 MediaImage2 CreateYUV420PlanarMediaImage2( in CreateYUV420PlanarMediaImage2()
510 return MediaImage2 { in CreateYUV420PlanarMediaImage2()
[all …]
/frameworks/native/headers/media_plugin/media/hardware/
DVideoAPI.h60 struct __attribute__ ((__packed__)) MediaImage2 { struct
101 static_assert(sizeof(MediaImage2::PlaneInfo) == 20, "wrong struct size"); argument
102 static_assert(sizeof(MediaImage2) == 104, "wrong struct size");
248 inline static const char *asString(MediaImage2::Type i, const char *def = "??") {
250 case MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN: return "Unknown";
251 case MediaImage2::MEDIA_IMAGE_TYPE_YUV: return "YUV";
252 case MediaImage2::MEDIA_IMAGE_TYPE_YUVA: return "YUVA";
253 case MediaImage2::MEDIA_IMAGE_TYPE_RGB: return "RGB";
254 case MediaImage2::MEDIA_IMAGE_TYPE_RGBA: return "RGBA";
255 case MediaImage2::MEDIA_IMAGE_TYPE_Y: return "Y";
[all …]
DHardwareAPI.h294 MediaImage2 sMediaImage;
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp249 MediaImage2 *img = (MediaImage2 *)imageData->data(); in TEST()
250 ASSERT_EQ(MediaImage2::MEDIA_IMAGE_TYPE_YUV, img->mType); in TEST()
256 const MediaImage2::PlaneInfo &yPlane = img->mPlane[MediaImage2::Y]; in TEST()
257 const MediaImage2::PlaneInfo &uPlane = img->mPlane[MediaImage2::U]; in TEST()
258 const MediaImage2::PlaneInfo &vPlane = img->mPlane[MediaImage2::V]; in TEST()
389 MediaImage2 *img = (MediaImage2 *)imageData->data(); in TEST()
390 ASSERT_EQ(MediaImage2::MEDIA_IMAGE_TYPE_YUV, img->mType); in TEST()
396 const MediaImage2::PlaneInfo &yPlane = img->mPlane[MediaImage2::Y]; in TEST()
397 const MediaImage2::PlaneInfo &uPlane = img->mPlane[MediaImage2::U]; in TEST()
398 const MediaImage2::PlaneInfo &vPlane = img->mPlane[MediaImage2::V]; in TEST()
[all …]
DMediaCodec_sanity_test.cpp345 EXPECT_EQ(imgBuf->size(), sizeof(MediaImage2)); in TEST_P()
348 MediaImage2 *img = (MediaImage2*)imgBuf->data(); in TEST_P()
/frameworks/av/media/libstagefright/omx/
DOMXUtils.cpp80 void MediaImage2::initFromV1(const MediaImage &image) { in initFromV1()
84 mType = MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN; in initFromV1()
91 mType = MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN; in initFromV1()
96 mType = (MediaImage2::Type)image.mType; in initFromV1()
212 MediaImage2 &image = params.sMediaImage; in DescribeDefaultColorFormat()
215 image.mType = MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN; in DescribeDefaultColorFormat()
253 image.mType = MediaImage2::MEDIA_IMAGE_TYPE_YUV; in DescribeDefaultColorFormat()
340 return describeParams.sMediaImage.mType != MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN; in DescribeColorFormat()
346 return describeParams.sMediaImage.mType != MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN; in DescribeColorFormat()
372 const MediaImage2 &img = describeParams.sMediaImage; in IsFlexibleColorFormat()
[all …]
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp144 static MediaImage2 CreateYUV420PlanarMediaImage2( in CreateYUV420PlanarMediaImage2()
148 return MediaImage2 { in CreateYUV420PlanarMediaImage2()
149 .mType = MediaImage2::MEDIA_IMAGE_TYPE_YUV, in CreateYUV420PlanarMediaImage2()
181 static MediaImage2 CreateYUV420SemiPlanarMediaImage2( in CreateYUV420SemiPlanarMediaImage2()
185 return MediaImage2 { in CreateYUV420SemiPlanarMediaImage2()
186 .mType = MediaImage2::MEDIA_IMAGE_TYPE_YUV, in CreateYUV420SemiPlanarMediaImage2()
218 ColorConverter::Image::Image(const MediaImage2& img) in Image()
222 const MediaImage2::PlaneInfo &yPlane = in Image()
223 img.mPlane[MediaImage2::PlaneIndex::Y]; in Image()
224 const MediaImage2::PlaneInfo &uPlane = in Image()
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DHeicCompositeStream.cpp1531 if (imageData->size() != sizeof(MediaImage2)) { in copyOneYuvTile()
1533 __FUNCTION__, imageData->size(), sizeof(MediaImage2)); in copyOneYuvTile()
1536 MediaImage2* imageInfo = reinterpret_cast<MediaImage2*>(imageData->data()); in copyOneYuvTile()
1537 if (imageInfo->mType != MediaImage2::MEDIA_IMAGE_TYPE_YUV || in copyOneYuvTile()
1551 __FUNCTION__, imageInfo->mPlane[MediaImage2::U].mOffset, in copyOneYuvTile()
1552 imageInfo->mPlane[MediaImage2::V].mOffset, in copyOneYuvTile()
1553 imageInfo->mPlane[MediaImage2::U].mRowInc, in copyOneYuvTile()
1554 imageInfo->mPlane[MediaImage2::V].mRowInc, in copyOneYuvTile()
1555 imageInfo->mPlane[MediaImage2::U].mColInc, in copyOneYuvTile()
1556 imageInfo->mPlane[MediaImage2::V].mColInc); in copyOneYuvTile()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DColorConverter.h41 void setSrcMediaImage2(MediaImage2 img);
106 Image(const MediaImage2& img);
109 const MediaImage2 getMediaImage2() const { in getMediaImage2()
138 MediaImage2 mImage;
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.h56 status_t ImageCopy(uint8_t *imgBase, const MediaImage2 *img, const C2GraphicView &view);
67 status_t ImageCopy(C2GraphicView &view, const uint8_t *imgBase, const MediaImage2 *img);
232 inline MediaImage2 *imageData() { return (MediaImage2 *)mImageData->data(); } in imageData()
DCodec2Buffer.cpp239 mMediaImage(new ABuffer(sizeof(MediaImage2))) { in GraphicView2MediaImageConverter()
252 MediaImage2 *mediaImage = (MediaImage2 *)mMediaImage->base(); in GraphicView2MediaImageConverter()
271 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_YUV; in GraphicView2MediaImageConverter()
486 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_RGB; in GraphicView2MediaImageConverter()
511 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_RGBA; in GraphicView2MediaImageConverter()
537 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN; in GraphicView2MediaImageConverter()
687 MediaImage2 *getMediaImage() { in getMediaImage()
688 return (MediaImage2 *)mMediaImage->base(); in getMediaImage()
DCCodecBuffers.cpp106 MediaImage2 *img = (MediaImage2*)imageDataCandidate->data(); in handleImageData()
DCCodec.cpp1738 MediaImage2 *img = nullptr; in configure()
1740 && imageData->size() >= sizeof(MediaImage2)) { in configure()
1741 img = (MediaImage2*)imageData->data(); in configure()
/frameworks/av/media/libstagefright/
DFrameDecoder.cpp729 MediaImage2 *imageData = nullptr; in onOutputReceived()
730 imageData = (MediaImage2 *)(imgObj.get()->data()); in onOutputReceived()
1013 MediaImage2 *imageData = nullptr; in onOutputReceived()
1014 imageData = (MediaImage2 *)(imgObj.get()->data()); in onOutputReceived()
DACodecBufferChannel.cpp315 buffer->base(), (const MediaImage2 *)(imageData->base()), view); in attachBuffer()
DACodec.cpp5288 MediaImage2 &img = describeParams.sMediaImage; in getPortFormat()
5289 MediaImage2::PlaneInfo *plane = img.mPlane; in getPortFormat()
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Enc.cpp633 MediaImage2 img = CreateYUV420PlanarMediaImage2(width, height, width, height); in process()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxEnc.cpp958 MediaImage2 img = CreateYUV420PlanarMediaImage2(width, height, stride, vstride); in process()
/frameworks/av/media/codec2/components/hevc/
DC2SoftHevcEnc.cpp932 MediaImage2 img = in setEncodeArgs()
/frameworks/av/media/codec2/components/aom/
DC2SoftAomEnc.cpp941 MediaImage2 img = CreateYUV420PlanarMediaImage2(width, height, stride, vstride); in process()
/frameworks/av/media/codec2/components/avc/
DC2SoftAvcEnc.cpp1577 MediaImage2 img = CreateYUV420PlanarMediaImage2(width, height, yStride, height); in setEncodeArgs()