/frameworks/native/headers/media_plugin/media/hardware/ |
D | VideoAPI.h | 60 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 …]
|
D | HardwareAPI.h | 294 MediaImage2 sMediaImage;
|
/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2BufferUtils.h | 52 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);
|
D | Codec2BufferUtils.cpp | 66 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/ |
D | OMXUtils.cpp | 80 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/ |
D | HeicCompositeStream.cpp | 1492 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/ |
D | Codec2Buffer.h | 55 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()
|
D | Codec2Buffer.cpp | 228 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()
|
D | CCodecBuffers.cpp | 88 MediaImage2 *img = (MediaImage2*)imageDataCandidate->data(); in handleImageData()
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | MediaCodec_sanity_test.cpp | 345 EXPECT_EQ(imgBuf->size(), sizeof(MediaImage2)); in TEST_P() 348 MediaImage2 *img = (MediaImage2*)imgBuf->data(); in TEST_P()
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxEnc.cpp | 513 MediaImage2 img = CreateYUV420PlanarMediaImage2(width, height, stride, vstride); in process()
|
/frameworks/av/media/codec2/components/mpeg4_h263/ |
D | C2SoftMpeg4Enc.cpp | 531 MediaImage2 img = CreateYUV420PlanarMediaImage2(width, height, width, height); in process()
|
/frameworks/av/media/libstagefright/ |
D | ACodecBufferChannel.cpp | 304 buffer->base(), (const MediaImage2 *)(imageData->base()), view); in attachBuffer()
|
D | ACodec.cpp | 5097 MediaImage2 &img = describeParams.sMediaImage; in getPortFormat() 5098 MediaImage2::PlaneInfo *plane = img.mPlane; in getPortFormat()
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcEnc.cpp | 731 MediaImage2 img = in setEncodeArgs()
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcEnc.cpp | 1301 MediaImage2 img = CreateYUV420PlanarMediaImage2(width, height, yStride, height); in setEncodeArgs()
|