AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Android ndk reference11/23/2023 Whether the new portion of this frame may contain alpha. This ensures that any blending and/or restoring prior frames works correctly.ĪImageDecoder did not recognize the format. This method cannot be called while the AImageDecoder is in its current state.įor example, various setters (like AImageDecoder_setTargetSize) can only be called while the AImageDecoder is set to decode the first frame of an animation. It may have overflowed, or it may be incompatible with the current alpha setting. Input was invalid before decoding any pixels. ![]() The input contained an error after decoding some lines.įor example, an internal allocation failed.įor example, attempting to decode an image with alpha to an opaque format. Use AImageDecoder_resultToString for a readable version of the result code. On failure, any out-parameters should be considered uninitialized, except where specified. Many functions will return this to indicate success ( ANDROID_IMAGE_DECODER_SUCCESS) or the reason for the failure. EnumerationsĪNDROID_IMAGE_DECODER_INVALID_CONVERSION = -3,ĪNDROID_IMAGE_DECODER_INVALID_SCALE = -4,ĪNDROID_IMAGE_DECODER_BAD_PARAMETER = -5,ĪNDROID_IMAGE_DECODER_INVALID_INPUT = -6,ĪNDROID_IMAGE_DECODER_INTERNAL_ERROR = -8,ĪNDROID_IMAGE_DECODER_UNSUPPORTED_FORMAT = -9,ĪNDROID_IMAGE_DECODER_INVALID_STATE = -11 For more information, see the Image decoder developer guide. Unlike the Java API, which can create an or object, AImageDecoder decodes directly into memory provided by the client. It has similar options for scaling, cropping, and choosing the output format. Similar to the Java counterpart, it can be used to decode images in the following formats: ![]() ANeuralNetworksSymmPerChannelQuantParamsįunctions for converting encoded images into RGBA pixels.ACameraManager_ExtendedAvailabilityListener. ![]()
0 Comments
Read More
Leave a Reply. |