/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 4503 MediaImage2 &image = params.sMediaImage; local 4504 memset(&image, 0, sizeof(image)); 4506 image.mType = MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN; 4507 image.mNumPlanes = 0; 4510 image.mWidth = params.nFrameWidth; 4511 image.mHeight = params.nFrameHeight; 4541 image.mType = MediaImage2::MEDIA_IMAGE_TYPE_YUV; 4542 image.mNumPlanes = 3; 4543 image [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm/ |
H A D | h264bsdWriteMacroblock.s | 25 image RN 0 label 74 ; Write one macroblock into the image. Both luma and chroma 82 ; image pointer to the image where the macroblock will be written 93 LDR width, [image, #4] 94 LDR luma, [image, #0xC] 95 LDR cb, [image, #0x10] 96 LDR cr, [image, #0x14]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/ |
H A D | h264bsdWriteMacroblock.S | 27 #define image r0 define 76 Write one macroblock into the image. Both luma and chroma 84 image pointer to the image where the macroblock will be written 95 LDR width, [image, #4] 96 LDR luma, [image, #0xC] 97 LDR cb, [image, #0x10] 98 LDR cr, [image, #0x14]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_deblocking.c | 556 on the original image. Parameters controlling the filtering process 562 image pointer to image to be filtered 567 image filtered image stored here 575 image_t *image, 591 ASSERT(image); 593 ASSERT(image->data); 594 ASSERT(image->width); 595 ASSERT(image 574 h264bsdFilterPicture( image_t *image, mbStorage_t *mb) argument 1766 h264bsdFilterPicture( image_t *image, mbStorage_t *mb) argument [all...] |
H A D | h264bsd_dpb.c | 609 image pointer to current picture to be placed in the buffer 632 image_t *image, 653 if (image->data != dpb->currentOut->data) 868 function to allocate memory for a image. This function does not 873 pointer to memory area for the image 1029 * image size + 32 + 15, where 32 cames from the fact that in ARM OpenMax 629 h264bsdMarkDecRefPic( dpbStorage_t *dpb, decRefPicMarking_t *mark, image_t *image, u32 frameNum, i32 picOrderCnt, u32 isIdr, u32 currentPicId, u32 numErrMbs) argument
|
H A D | h264bsd_image.c | 65 Write one macroblock into the image. Both luma and chroma 73 image pointer to the image where the macroblock will be written 80 void h264bsdWriteMacroblock(image_t *image, u8 *data) argument 93 ASSERT(image); 97 width = image->width; 101 lum = (u32*)image->luma; 102 cb = (u32*)image->cb; 103 cr = (u32*)image->cr; 151 Write one macroblock into the image 171 h264bsdWriteOutputBlocks(image_t *image, u32 mbNum, u8 *data, i32 residual[][16]) argument [all...] |
H A D | h264bsd_intra_prediction.c | 372 u32 h264bsdIntraChromaPrediction(mbStorage_t *pMb, u8 *data, image_t *image, argument 386 ASSERT(image); 402 ptr = image->cb; 403 width = image->width*8; 421 ptr = image->cr; 452 (prediction + residual) into the output image (image) 457 image pointer to output image 465 image curren 473 h264bsdIntraPrediction(mbStorage_t *pMb, macroblockLayer_t *mbLayer, image_t *image, u32 mbNum, u32 constrainedIntraPred, u8 *data) argument 540 h264bsdGetNeighbourPels(image_t *image, u8 *above, u8 *left, u32 mbNum) argument [all...] |
H A D | h264bsd_macroblock_layer.c | 101 macroblockLayer_t *mbLayer, const u8 **pSrc, image_t *image); 104 u32 intraChromaPredMode, const u8 **pSrc, image_t *image); 942 Decode one macroblock and write into output image. 947 currImage pointer to output image 956 currImage decoded macroblock is written into output image 1218 image_t *image) 1240 if (h264bsdIntra16x16Prediction(pMb, data, image->luma, 1241 image->width*16, constrainedIntraPred) != HANTRO_OK) 1264 image, 1286 image_t *image) 1213 ProcessIntra16x16Residual(mbStorage_t *pMb, u8 *data, u32 constrainedIntraPred, u32 intraChromaPredMode, const u8** pSrc, image_t *image) argument 1281 ProcessIntra4x4Residual(mbStorage_t *pMb, u8 *data, u32 constrainedIntraPred, macroblockLayer_t *mbLayer, const u8 **pSrc, image_t *image) argument [all...] |
H A D | h264bsd_util.c | 255 image Current image 264 void h264bsdSetCurrImageMbPointers(image_t *image, u32 mbNum) argument 271 width = image->width; 272 height = image->height; 279 image->luma = (u8*)(image->data + col * 16 + tmp * 256); 280 image->cb = (u8*)(image->data + picSize * 256 + tmp * 64 + col * 8); 281 image [all...] |
/frameworks/av/media/libstagefright/omx/ |
H A D | OMXUtils.cpp | 71 void MediaImage2::initFromV1(const MediaImage &image) { argument 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 [all...] |
/frameworks/av/media/ndk/ |
H A D | NdkImage.cpp | 109 ALOGE("%s: image %p has been closed!", __FUNCTION__, this); 123 ALOGE("%s: image %p has been closed!", __FUNCTION__, this); 137 ALOGE("%s: image %p has been closed!", __FUNCTION__, this); 151 ALOGE("%s: image %p has been closed!", __FUNCTION__, this); 165 ALOGE("%s: image %p has been closed!", __FUNCTION__, this); 183 ALOGE("%s: image %p has been closed!", __FUNCTION__, this); 238 ALOGE("%s: image %p has been closed!", __FUNCTION__, this); 346 ALOGE("%s: image %p has been closed!", __FUNCTION__, this); 501 void AImage_delete(AImage* image) { argument 503 if (image ! 516 AImage_getWidth(const AImage* image, int32_t* width) argument 527 AImage_getHeight(const AImage* image, int32_t* height) argument 538 AImage_getFormat(const AImage* image, int32_t* format) argument 549 AImage_getCropRect(const AImage* image, AImageCropRect* rect) argument 575 AImage_getTimestamp(const AImage* image, int64_t* timestampNs) argument 586 AImage_getNumberOfPlanes(const AImage* image, int32_t* numPlanes) argument 597 AImage_getPlanePixelStride( const AImage* image, int planeIdx, int32_t* pixelStride) argument 609 AImage_getPlaneRowStride( const AImage* image, int planeIdx, int32_t* rowStride) argument 621 AImage_getPlaneData( const AImage* image, int planeIdx, uint8_t** data, int* dataLength) argument [all...] |
H A D | NdkImageReader.cpp | 236 AImage* image = *it; local 237 image->close(); 253 AImageReader::acquireCpuConsumerImageLocked(/*out*/AImage** image) { argument 254 *image = nullptr; 329 *image = new AImage(this, mFormat, buffer, buffer->timestamp, 332 *image = new AImage(this, mFormat, buffer, buffer->timestamp, 335 mAcquiredImages.push_back(*image); 357 AImageReader::releaseImageLocked(AImage* image) { argument 358 CpuConsumer::LockedBuffer* buffer = image->mBuffer; 361 ALOGW("AImage %p has no buffer!", image); 407 acquireNextImage( AImage** image) argument 413 acquireLatestImage( AImage** image) argument 554 AImageReader_acquireNextImage(AImageReader* reader, AImage** image) argument 565 AImageReader_acquireLatestImage(AImageReader* reader, AImage** image) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_opengl_GLES11Ext.cpp | 864 /* void glEGLImageTargetTexture2DOES ( GLenum target, GLeglImageOES image ) */ 871 GLeglImageOES image = (GLeglImageOES) 0; local 873 image = (GLeglImageOES)getPointer(_env, image_buf, (jarray*)&_array, &_remaining, &_bufferOffset); 874 if (image == NULL) { 876 image = (GLeglImageOES) (_imageBase + _bufferOffset); 880 (GLeglImageOES)image 883 releasePointer(_env, _array, image, JNI_TRUE); 887 /* void glEGLImageTargetRenderbufferStorageOES ( GLenum target, GLeglImageOES image ) */ 894 GLeglImageOES image = (GLeglImageOES) 0; local 896 image [all...] |
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
H A D | VirtualDisplayTest.java | 364 // Create a solid color image to use as the content of the presentation. 374 * Watches for an image with a large amount of some particular solid color to be shown. 411 Log.d(TAG, "New image available from virtual display."); 414 Image image = reader.acquireLatestImage(); 415 if (image != null) { 418 int color = scanImage(image); 426 image.close(); 434 private int scanImage(Image image) { argument 435 final Image.Plane plane = image.getPlanes()[0]; 437 final int width = image [all...] |
/frameworks/base/libs/hwui/ |
H A D | FontRenderer.cpp | 294 // Copy the glyph image, taking the mask format into account 564 DropShadow image; local 565 image.width = 0; 566 image.height = 0; 567 image.image = nullptr; 568 image.penX = 0; 569 image.penY = 0; 572 return image; 588 return image; 689 blurImage(uint8_t** image, int32_t width, int32_t height, float radius) argument [all...] |
H A D | FontRenderer.h | 121 uint8_t* image; member in struct:android::uirenderer::FontRenderer::DropShadow 126 // After renderDropShadow returns, the called owns the memory in DropShadow.image 215 // the input image handle may have its pointer replaced (to avoid copies) 216 void blurImage(uint8_t** image, int32_t width, int32_t height, float radius);
|
/frameworks/base/libs/hwui/debug/ |
H A D | nullegl.cpp | 155 EGLBoolean eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR image) { argument 156 free(image);
|
H A D | nullgles.cpp | 275 void glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image) {} argument
|
/frameworks/base/media/java/android/media/ |
H A D | ImageReader.java | 37 * <p>The ImageReader class allows direct application access to image data 43 * {@link android.renderscript.Allocation RenderScript Allocations}. The image 47 * <p>The image data is encapsulated in {@link Image} objects, and multiple such 51 * or {@link #acquireNextImage} call. Due to memory limits, an image source will 59 * Returned by nativeImageSetup when acquiring the image was successful. 86 * The valid sizes and formats depend on the source of the image data. 101 * ImageReaders} are more efficient to use when application access to image 138 "The image dimensions must be positive"); 142 "Maximum outstanding image count must be at least 1"); 195 * The default {@link ImageFormat image forma 563 detachImage(Image image) argument 583 isImageOwnedbyMe(Image image) argument [all...] |
H A D | ImageUtils.java | 76 * Copy source image data to destination Image. 81 * source image will be copied to the byteBuffers from the destination Image 82 * starting from position zero, and the destination image will be rewound to 86 * @param src The source image to be copied from. 87 * @param dst The destination image to be copied to. 107 throw new IllegalArgumentException("Destination image is not from ImageWriter. Only" 113 throw new IllegalArgumentException("source image size " + srcSize + " is different" 114 + " with " + "destination image size " + dstSize); 131 throw new IllegalArgumentException("Source plane image pixel stride " + 133 " must be same as destination image pixe 229 getEffectivePlaneSizeForImage(Image image, int planeIdx) argument [all...] |
H A D | ImageWriter.java | 207 * image buffer is inaccessible to the application, and calling this method 254 * filled the input image with data. This method then passes the filled 283 * @param image The Image to be queued back to ImageWriter for future 285 * @throws IllegalStateException if the image was already queued previously, 286 * or the image was aborted previously, or the input 292 public void queueInputImage(Image image) { argument 293 if (image == null) { 294 throw new IllegalArgumentException("image shouldn't be null"); 296 boolean ownedByMe = isImageOwnedByMe(image); 297 if (ownedByMe && !(((WriterSurfaceImage) image) 497 attachAndQueueInputImage(Image image) argument 585 abortImage(Image image) argument 612 isImageOwnedByMe(Image image) argument 818 nativeQueueInputImage(long nativeCtx, Image image, long timestampNs, int left, int top, int right, int bottom) argument 825 cancelImage(long nativeCtx, Image image) argument [all...] |
H A D | MediaCodec.java | 48 <center><object style="width: 540px; height: 205px;" type="image/svg+xml" 176 valid column/bottom-most valid row of the cropped output image. 206 <center><object style="width: 516px; height: 353px;" type="image/svg+xml" 443 <center><object style="width: 516px; height: 353px;" type="image/svg+xml" 2542 * get-image methods each time one has been dequeued. 2761 public void setImage(@Nullable Image image) { argument 2763 mImage = image; 3010 * @return the input image, or null if the index is not a 3012 * raw image. 3067 * @return the output image, o [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_ImageReader.cpp | 275 static BufferItem* Image_getBufferItem(JNIEnv* env, jobject image) argument 278 env->GetLongField(image, gSurfaceImageClassInfo.mNativeBuffer)); 424 static sp<Fence> Image_unlockIfLocked(JNIEnv* env, jobject image) { argument 426 BufferItem* buffer = Image_getBufferItem(env, image); 437 planes = env->GetObjectField(image, gSurfaceImageClassInfo.mPlanes); 452 ALOGV("Successfully unlocked the image"); 457 static void ImageReader_imageRelease(JNIEnv* env, jobject thiz, jobject image) argument 467 BufferItem* buffer = Image_getBufferItem(env, image); 469 // Release an already closed image is harmless. 473 sp<Fence> releaseFence = Image_unlockIfLocked(env, image); 480 ImageReader_imageSetup(JNIEnv* env, jobject thiz, jobject image) argument 584 ImageReader_detachImage(JNIEnv* env, jobject thiz, jobject image) argument 628 Image_getLockedImage(JNIEnv* env, jobject thiz, LockedImage *image) argument [all...] |
H A D | android_media_ImageWriter.cpp | 317 static void ImageWriter_dequeueImage(JNIEnv* env, jobject thiz, jlong nativeCtx, jobject image) { argument 353 // Finally, set the native info into image object. 354 Image_setNativeContext(env, image, buffer, fenceFd); 392 static void ImageWriter_cancelImage(JNIEnv* env, jobject thiz, jlong nativeCtx, jobject image) { argument 404 Image_getNativeContext(env, image, &buffer, &fenceFd); 406 // Cancel an already cancelled image is harmless. 410 // Unlock the image if it was locked 411 Image_unlockIfLocked(env, image); 415 Image_setNativeContext(env, image, NULL, -1); 418 static void ImageWriter_queueImage(JNIEnv* env, jobject thiz, jlong nativeCtx, jobject image, argument 686 Image_getLockedImage(JNIEnv* env, jobject thiz, LockedImage *image) argument [all...] |
H A D | android_media_MediaCodec.cpp | 530 // check if buffer is an image 532 if (!buffer->meta()->findBuffer("image-data", &imageData)) { 1609 jobject image; local 1610 status_t err = codec->getImage(env, input, index, &image); 1613 return image;
|