Home
last modified time | relevance | path

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

/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");
244 inline static const char *asString(MediaImage2::Type i, const char *def = "??") {
246 case MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN: return "Unknown";
247 case MediaImage2::MEDIA_IMAGE_TYPE_YUV: return "YUV";
248 case MediaImage2::MEDIA_IMAGE_TYPE_YUVA: return "YUVA";
249 case MediaImage2::MEDIA_IMAGE_TYPE_RGB: return "RGB";
250 case MediaImage2::MEDIA_IMAGE_TYPE_RGBA: return "RGBA";
251 case MediaImage2::MEDIA_IMAGE_TYPE_Y: return "Y";
[all …]
DHardwareAPI.h294 MediaImage2 sMediaImage;
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.h52 MediaImage2 CreateYUV420PlanarMediaImage2(
63 MediaImage2 CreateYUV420SemiPlanarMediaImage2(
75 status_t ImageCopy(uint8_t *imgBase, const MediaImage2 *img, const C2GraphicView &view);
86 status_t ImageCopy(C2GraphicView &view, const uint8_t *imgBase, const MediaImage2 *img);
106 bool IsYUV420(const MediaImage2 *img);
111 bool IsNV12(const MediaImage2 *img);
116 bool IsI420(const MediaImage2 *img);
DCodec2BufferUtils.cpp66 static status_t _ImageCopy(View &view, const MediaImage2 *img, ImagePixel *imgBase) { in _ImageCopy()
120 status_t ImageCopy(uint8_t *imgBase, const MediaImage2 *img, const C2GraphicView &view) { in ImageCopy()
155 status_t ImageCopy(C2GraphicView &view, const uint8_t *imgBase, const MediaImage2 *img) { in ImageCopy()
242 bool IsYUV420(const MediaImage2 *img) { in IsYUV420()
243 return (img->mType == MediaImage2::MEDIA_IMAGE_TYPE_YUV in IsYUV420()
255 bool IsNV12(const MediaImage2 *img) { in IsNV12()
264 bool IsI420(const MediaImage2 *img) { in IsI420()
273 MediaImage2 CreateYUV420PlanarMediaImage2( in CreateYUV420PlanarMediaImage2()
275 return MediaImage2 { in CreateYUV420PlanarMediaImage2()
276 .mType = MediaImage2::MEDIA_IMAGE_TYPE_YUV, in CreateYUV420PlanarMediaImage2()
[all …]
/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()
210 MediaImage2 &image = params.sMediaImage; in DescribeDefaultColorFormat()
213 image.mType = MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN; in DescribeDefaultColorFormat()
251 image.mType = MediaImage2::MEDIA_IMAGE_TYPE_YUV; in DescribeDefaultColorFormat()
338 return describeParams.sMediaImage.mType != MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN; in DescribeColorFormat()
344 return describeParams.sMediaImage.mType != MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN; in DescribeColorFormat()
370 const MediaImage2 &img = describeParams.sMediaImage; in IsFlexibleColorFormat()
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DHeicCompositeStream.cpp1492 if (imageData->size() != sizeof(MediaImage2)) { in copyOneYuvTile()
1494 __FUNCTION__, imageData->size(), sizeof(MediaImage2)); in copyOneYuvTile()
1497 MediaImage2* imageInfo = reinterpret_cast<MediaImage2*>(imageData->data()); in copyOneYuvTile()
1498 if (imageInfo->mType != MediaImage2::MEDIA_IMAGE_TYPE_YUV || in copyOneYuvTile()
1512 __FUNCTION__, imageInfo->mPlane[MediaImage2::U].mOffset, in copyOneYuvTile()
1513 imageInfo->mPlane[MediaImage2::V].mOffset, in copyOneYuvTile()
1514 imageInfo->mPlane[MediaImage2::U].mRowInc, in copyOneYuvTile()
1515 imageInfo->mPlane[MediaImage2::V].mRowInc, in copyOneYuvTile()
1516 imageInfo->mPlane[MediaImage2::U].mColInc, in copyOneYuvTile()
1517 imageInfo->mPlane[MediaImage2::V].mColInc); in copyOneYuvTile()
[all …]
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.h55 status_t ImageCopy(uint8_t *imgBase, const MediaImage2 *img, const C2GraphicView &view);
66 status_t ImageCopy(C2GraphicView &view, const uint8_t *imgBase, const MediaImage2 *img);
231 inline MediaImage2 *imageData() { return (MediaImage2 *)mImageData->data(); } in imageData()
DCodec2Buffer.cpp228 mMediaImage(new ABuffer(sizeof(MediaImage2))) { in GraphicView2MediaImageConverter()
234 MediaImage2 *mediaImage = (MediaImage2 *)mMediaImage->base(); in GraphicView2MediaImageConverter()
251 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_YUV; in GraphicView2MediaImageConverter()
360 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_YUVA; in GraphicView2MediaImageConverter()
366 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_RGB; in GraphicView2MediaImageConverter()
385 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_RGBA; in GraphicView2MediaImageConverter()
405 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN; in GraphicView2MediaImageConverter()
500 MediaImage2 *getMediaImage() { in getMediaImage()
501 return (MediaImage2 *)mMediaImage->base(); in getMediaImage()
DCCodecBuffers.cpp88 MediaImage2 *img = (MediaImage2*)imageDataCandidate->data(); in handleImageData()
/frameworks/av/media/codec2/sfplugin/tests/
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/codec2/components/vpx/
DC2SoftVpxEnc.cpp513 MediaImage2 img = CreateYUV420PlanarMediaImage2(width, height, stride, vstride); in process()
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Enc.cpp531 MediaImage2 img = CreateYUV420PlanarMediaImage2(width, height, width, height); in process()
/frameworks/av/media/libstagefright/
DACodecBufferChannel.cpp304 buffer->base(), (const MediaImage2 *)(imageData->base()), view); in attachBuffer()
DACodec.cpp5097 MediaImage2 &img = describeParams.sMediaImage; in getPortFormat()
5098 MediaImage2::PlaneInfo *plane = img.mPlane; in getPortFormat()
/frameworks/av/media/codec2/components/hevc/
DC2SoftHevcEnc.cpp731 MediaImage2 img = in setEncodeArgs()
/frameworks/av/media/codec2/components/avc/
DC2SoftAvcEnc.cpp1301 MediaImage2 img = CreateYUV420PlanarMediaImage2(width, height, yStride, height); in setEncodeArgs()