Lines Matching defs:image
71 void MediaImage2::initFromV1(const MediaImage &image) {
74 if (image.mType != MediaImage::MEDIA_IMAGE_TYPE_YUV) {
79 for (size_t ix = 0; ix < image.mNumPlanes; ++ix) {
80 if (image.mPlane[ix].mHorizSubsampling > INT32_MAX
81 || image.mPlane[ix].mVertSubsampling > INT32_MAX) {
87 mType = (MediaImage2::Type)image.mType;
88 mNumPlanes = image.mNumPlanes;
89 mWidth = image.mWidth;
90 mHeight = image.mHeight;
91 mBitDepth = image.mBitDepth;
93 for (size_t ix = 0; ix < image.mNumPlanes; ++ix) {
94 mPlane[ix].mOffset = image.mPlane[ix].mOffset;
95 mPlane[ix].mColInc = image.mPlane[ix].mColInc;
96 mPlane[ix].mRowInc = image.mPlane[ix].mRowInc;
97 mPlane[ix].mHorizSubsampling = (int32_t)image.mPlane[ix].mHorizSubsampling;
98 mPlane[ix].mVertSubsampling = (int32_t)image.mPlane[ix].mVertSubsampling;