/hardware/google/av/media/sfplugin/tests/ |
D | MediaCodec_sanity_test.cpp | 348 MediaImage2 *img = (MediaImage2*)imgBuf->data(); in TEST_P() local 349 EXPECT_EQ(img->mType, img->MEDIA_IMAGE_TYPE_YUV); in TEST_P() 350 EXPECT_EQ(img->mNumPlanes, 3u); in TEST_P() 351 EXPECT_EQ(img->mWidth, 320u); in TEST_P() 352 EXPECT_EQ(img->mHeight, 240u); in TEST_P() 353 EXPECT_EQ(img->mBitDepth, 8u); in TEST_P() 354 EXPECT_EQ(img->mBitDepthAllocated, 8u); in TEST_P() 361 EXPECT_EQ(img->mPlane[img->Y].mHorizSubsampling, 1u); in TEST_P() 362 EXPECT_EQ(img->mPlane[img->Y].mVertSubsampling, 1u); in TEST_P() 363 EXPECT_EQ(img->mPlane[img->U].mHorizSubsampling, 2u); in TEST_P() [all …]
|
/hardware/google/av/media/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 66 static status_t _ImageCopy(View &view, const MediaImage2 *img, ImagePixel *imgBase) { in _ImageCopy() argument 69 const size_t bpp = divUp(img->mBitDepthAllocated, 8u); in _ImageCopy() 73 imgBase + img->mPlane[i].mOffset; in _ImageCopy() 77 if (plane.colSampling != img->mPlane[i].mHorizSubsampling in _ImageCopy() 78 || plane.rowSampling != img->mPlane[i].mVertSubsampling in _ImageCopy() 79 || plane.allocatedDepth != img->mBitDepthAllocated in _ImageCopy() 87 uint32_t planeW = img->mWidth / plane.colSampling; in _ImageCopy() 88 uint32_t planeH = img->mHeight / plane.rowSampling; in _ImageCopy() 90 bool canCopyByRow = (plane.colInc == 1) && (img->mPlane[i].mColInc == 1); in _ImageCopy() 91 bool canCopyByPlane = canCopyByRow && (plane.rowInc == img->mPlane[i].mRowInc); in _ImageCopy() [all …]
|
D | Codec2BufferUtils.h | 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);
|
/hardware/google/av/media/codecs/vpx/ |
D | C2SoftVpxDec.cpp | 560 vpx_image_t *img = vpx_codec_get_frame(mCodecCtx, &iter); in outputBuffer() local 562 if (!img) return false; in outputBuffer() 564 if (img->d_w != mWidth || img->d_h != mHeight) { in outputBuffer() 565 mWidth = img->d_w; in outputBuffer() 566 mHeight = img->d_h; in outputBuffer() 583 CHECK(img->fmt == VPX_IMG_FMT_I420 || img->fmt == VPX_IMG_FMT_I42016); in outputBuffer() 585 if (img->fmt == VPX_IMG_FMT_I42016) { in outputBuffer() 607 block->width(), block->height(), mWidth, mHeight, (int)*(int64_t *)img->user_priv); in outputBuffer() 610 size_t srcYStride = img->stride[VPX_PLANE_Y]; in outputBuffer() 611 size_t srcUStride = img->stride[VPX_PLANE_U]; in outputBuffer() [all …]
|
/hardware/interfaces/media/omx/1.0/vts/functional/video/ |
D | VtsHalMediaOmxV1_0TargetVideoDecTest.cpp | 651 android::MediaImage& img = describeParamsV1.sMediaImage; in isColorFormatFlexibleYUV() local 652 if (img.mType == android::MediaImage::MEDIA_IMAGE_TYPE_YUV) { in isColorFormatFlexibleYUV() 653 if (img.mNumPlanes == 3 && in isColorFormatFlexibleYUV() 654 img.mPlane[img.Y].mHorizSubsampling == 1 && in isColorFormatFlexibleYUV() 655 img.mPlane[img.Y].mVertSubsampling == 1) { in isColorFormatFlexibleYUV() 656 if (img.mPlane[img.U].mHorizSubsampling == 2 && in isColorFormatFlexibleYUV() 657 img.mPlane[img.U].mVertSubsampling == 2 && in isColorFormatFlexibleYUV() 658 img.mPlane[img.V].mHorizSubsampling == 2 && in isColorFormatFlexibleYUV() 659 img.mPlane[img.V].mVertSubsampling == 2) { in isColorFormatFlexibleYUV() 660 if (img.mBitDepth <= 8) { in isColorFormatFlexibleYUV() [all …]
|
D | VtsHalMediaOmxV1_0TargetVideoEncTest.cpp | 673 char* img = new char[size]; in colorFormatConversion() local 674 if (img == nullptr) return 1; in colorFormatConversion() 675 eleStream.read(img, size); in colorFormatConversion() 677 delete[] img; in colorFormatConversion() 681 char* imgTmp = img; in colorFormatConversion() 709 delete[] img; in colorFormatConversion() 921 char* img = new char[size]; in fillByteBuffer() local 922 if (img == nullptr) return 1; in fillByteBuffer() 923 eleStream.read(img, size); in fillByteBuffer() 925 delete[] img; in fillByteBuffer() [all …]
|
/hardware/qcom/display/msm8960/libcopybit/ |
D | copybit.cpp | 141 static void set_image(struct mdp_img *img, const struct copybit_image_t *rhs) in set_image() argument 148 img->width = rhs->w; in set_image() 149 img->height = rhs->h; in set_image() 150 img->format = get_format(rhs->format); in set_image() 151 img->offset = hnd->offset; in set_image() 152 img->memory_id = hnd->fd; in set_image()
|
D | copybit_c2d.cpp | 909 static bool need_temp_buffer(struct copybit_image_t const *img) in need_temp_buffer() argument 911 if (COPYBIT_SUCCESS == is_supported_rgb_format(img->format)) in need_temp_buffer() 914 struct private_handle_t* handle = (struct private_handle_t*)img->handle; in need_temp_buffer() 929 static void populate_buffer_info(struct copybit_image_t const *img, bufferInfo& info) in populate_buffer_info() argument 931 info.width = img->w; in populate_buffer_info() 932 info.height = img->h; in populate_buffer_info() 933 info.format = img->format; in populate_buffer_info()
|
/hardware/google/av/media/sfplugin/ |
D | Codec2Buffer.cpp | 89 MediaImage2 *img = (MediaImage2*)imageData->data(); in setImageData() local 90 if (img->mNumPlanes > 0 && img->mType != img->MEDIA_IMAGE_TYPE_UNKNOWN) { in setImageData() 91 int32_t stride = img->mPlane[0].mRowInc; in setImageData() 93 if (img->mNumPlanes > 1 && stride > 0) { in setImageData() 94 int32_t vstride = (img->mPlane[1].mOffset - img->mPlane[0].mOffset) / stride; in setImageData()
|
D | Codec2Buffer.h | 40 status_t ImageCopy(uint8_t *imgBase, const MediaImage2 *img, const C2GraphicView &view); 51 status_t ImageCopy(C2GraphicView &view, const uint8_t *imgBase, const MediaImage2 *img);
|
/hardware/qcom/display/msm8996/libcopybit/ |
D | copybit.cpp | 156 static void set_image(struct mdp_img *img, const struct copybit_image_t *rhs) in set_image() argument 163 img->width = rhs->w; in set_image() 164 img->height = rhs->h; in set_image() 165 img->format = get_format(rhs->format); in set_image() 166 img->offset = (uint32_t)hnd->offset; in set_image() 167 img->memory_id = hnd->fd; in set_image()
|
D | copybit_c2d.cpp | 933 static bool need_temp_buffer(struct copybit_image_t const *img) in need_temp_buffer() argument 935 if (COPYBIT_SUCCESS == is_supported_rgb_format(img->format)) in need_temp_buffer() 938 struct private_handle_t* handle = (struct private_handle_t*)img->handle; in need_temp_buffer() 953 static void populate_buffer_info(struct copybit_image_t const *img, bufferInfo& info) in populate_buffer_info() argument 955 info.width = img->w; in populate_buffer_info() 956 info.height = img->h; in populate_buffer_info() 957 info.format = img->format; in populate_buffer_info()
|
/hardware/qcom/sdm845/display/libcopybit/ |
D | copybit.cpp | 158 static void set_image(struct mdp_img *img, const struct copybit_image_t *rhs) in set_image() argument 165 img->width = rhs->w; in set_image() 166 img->height = rhs->h; in set_image() 167 img->format = get_format(rhs->format); in set_image() 168 img->offset = (uint32_t)hnd->offset; in set_image() 169 img->memory_id = hnd->fd; in set_image()
|
D | copybit_c2d.cpp | 933 static bool need_temp_buffer(struct copybit_image_t const *img) in need_temp_buffer() argument 935 if (COPYBIT_SUCCESS == is_supported_rgb_format(img->format)) in need_temp_buffer() 938 struct private_handle_t* handle = (struct private_handle_t*)img->handle; in need_temp_buffer() 953 static void populate_buffer_info(struct copybit_image_t const *img, bufferInfo& info) in populate_buffer_info() argument 955 info.width = img->w; in populate_buffer_info() 956 info.height = img->h; in populate_buffer_info() 957 info.format = img->format; in populate_buffer_info()
|
/hardware/qcom/display/msm8994/libcopybit/ |
D | copybit.cpp | 150 static void set_image(struct mdp_img *img, const struct copybit_image_t *rhs) in set_image() argument 157 img->width = rhs->w; in set_image() 158 img->height = rhs->h; in set_image() 159 img->format = get_format(rhs->format); in set_image() 160 img->offset = (uint32_t)hnd->offset; in set_image() 161 img->memory_id = hnd->fd; in set_image()
|
D | copybit_c2d.cpp | 938 static bool need_temp_buffer(struct copybit_image_t const *img) in need_temp_buffer() argument 940 if (COPYBIT_SUCCESS == is_supported_rgb_format(img->format)) in need_temp_buffer() 943 struct private_handle_t* handle = (struct private_handle_t*)img->handle; in need_temp_buffer() 958 static void populate_buffer_info(struct copybit_image_t const *img, bufferInfo& info) in populate_buffer_info() argument 960 info.width = img->w; in populate_buffer_info() 961 info.height = img->h; in populate_buffer_info() 962 info.format = img->format; in populate_buffer_info()
|
/hardware/qcom/display/msm8909/libcopybit/ |
D | copybit.cpp | 158 static void set_image(struct mdp_img *img, const struct copybit_image_t *rhs) in set_image() argument 165 img->width = rhs->w; in set_image() 166 img->height = rhs->h; in set_image() 167 img->format = get_format(rhs->format); in set_image() 168 img->offset = (uint32_t)hnd->offset; in set_image() 169 img->memory_id = hnd->fd; in set_image()
|
D | copybit_c2d.cpp | 933 static bool need_temp_buffer(struct copybit_image_t const *img) in need_temp_buffer() argument 935 if (COPYBIT_SUCCESS == is_supported_rgb_format(img->format)) in need_temp_buffer() 938 struct private_handle_t* handle = (struct private_handle_t*)img->handle; in need_temp_buffer() 953 static void populate_buffer_info(struct copybit_image_t const *img, bufferInfo& info) in populate_buffer_info() argument 955 info.width = img->w; in populate_buffer_info() 956 info.height = img->h; in populate_buffer_info() 957 info.format = img->format; in populate_buffer_info()
|
/hardware/qcom/display/msm8909w_3100/libcopybit/ |
D | copybit.cpp | 158 static void set_image(struct mdp_img *img, const struct copybit_image_t *rhs) in set_image() argument 165 img->width = rhs->w; in set_image() 166 img->height = rhs->h; in set_image() 167 img->format = get_format(rhs->format); in set_image() 168 img->offset = (uint32_t)hnd->offset; in set_image() 169 img->memory_id = hnd->fd; in set_image()
|
D | copybit_c2d.cpp | 933 static bool need_temp_buffer(struct copybit_image_t const *img) in need_temp_buffer() argument 935 if (COPYBIT_SUCCESS == is_supported_rgb_format(img->format)) in need_temp_buffer() 938 struct private_handle_t* handle = (struct private_handle_t*)img->handle; in need_temp_buffer() 953 static void populate_buffer_info(struct copybit_image_t const *img, bufferInfo& info) in populate_buffer_info() argument 955 info.width = img->w; in populate_buffer_info() 956 info.height = img->h; in populate_buffer_info() 957 info.format = img->format; in populate_buffer_info()
|
/hardware/qcom/display/msm8998/libcopybit/ |
D | copybit.cpp | 156 static void set_image(struct mdp_img *img, const struct copybit_image_t *rhs) in set_image() argument 163 img->width = rhs->w; in set_image() 164 img->height = rhs->h; in set_image() 165 img->format = get_format(rhs->format); in set_image() 166 img->offset = (uint32_t)hnd->offset; in set_image() 167 img->memory_id = hnd->fd; in set_image()
|
D | copybit_c2d.cpp | 931 static bool need_temp_buffer(struct copybit_image_t const *img) in need_temp_buffer() argument 933 if (COPYBIT_SUCCESS == is_supported_rgb_format(img->format)) in need_temp_buffer() 936 struct private_handle_t* handle = (struct private_handle_t*)img->handle; in need_temp_buffer() 951 static void populate_buffer_info(struct copybit_image_t const *img, bufferInfo& info) in populate_buffer_info() argument 953 info.width = img->w; in populate_buffer_info() 954 info.height = img->h; in populate_buffer_info() 955 info.format = img->format; in populate_buffer_info()
|
/hardware/qcom/display/msm8226/libcopybit/ |
D | copybit.cpp | 147 static void set_image(struct mdp_img *img, const struct copybit_image_t *rhs) in set_image() argument 154 img->width = rhs->w; in set_image() 155 img->height = rhs->h; in set_image() 156 img->format = get_format(rhs->format); in set_image() 157 img->offset = (uint32_t)hnd->offset; in set_image() 158 img->memory_id = hnd->fd; in set_image()
|
D | copybit_c2d.cpp | 935 static bool need_temp_buffer(struct copybit_image_t const *img) in need_temp_buffer() argument 937 if (COPYBIT_SUCCESS == is_supported_rgb_format(img->format)) in need_temp_buffer() 940 struct private_handle_t* handle = (struct private_handle_t*)img->handle; in need_temp_buffer() 955 static void populate_buffer_info(struct copybit_image_t const *img, bufferInfo& info) in populate_buffer_info() argument 957 info.width = img->w; in populate_buffer_info() 958 info.height = img->h; in populate_buffer_info() 959 info.format = img->format; in populate_buffer_info()
|
/hardware/qcom/display/msm8084/libcopybit/ |
D | copybit.cpp | 147 static void set_image(struct mdp_img *img, const struct copybit_image_t *rhs) in set_image() argument 154 img->width = rhs->w; in set_image() 155 img->height = rhs->h; in set_image() 156 img->format = get_format(rhs->format); in set_image() 157 img->offset = (uint32_t)hnd->offset; in set_image() 158 img->memory_id = hnd->fd; in set_image()
|