/aosp_15_r20/external/mesa3d/src/gallium/frontends/vdpau/ |
H A D | decode.c | 228 vlVdpDecoderRenderMpeg12(struct pipe_mpeg12_picture_desc *picture, in vlVdpDecoderRenderMpeg12() argument 235 r = vlVdpGetReferenceFrame(picture_info->forward_reference, &picture->ref[0]); in vlVdpDecoderRenderMpeg12() 239 r = vlVdpGetReferenceFrame(picture_info->backward_reference, &picture->ref[1]); in vlVdpDecoderRenderMpeg12() 243 picture->picture_coding_type = picture_info->picture_coding_type; in vlVdpDecoderRenderMpeg12() 244 picture->picture_structure = picture_info->picture_structure; in vlVdpDecoderRenderMpeg12() 245 picture->frame_pred_frame_dct = picture_info->frame_pred_frame_dct; in vlVdpDecoderRenderMpeg12() 246 picture->q_scale_type = picture_info->q_scale_type; in vlVdpDecoderRenderMpeg12() 247 picture->alternate_scan = picture_info->alternate_scan; in vlVdpDecoderRenderMpeg12() 248 picture->intra_vlc_format = picture_info->intra_vlc_format; in vlVdpDecoderRenderMpeg12() 249 picture->concealment_motion_vectors = picture_info->concealment_motion_vectors; in vlVdpDecoderRenderMpeg12() [all …]
|
/aosp_15_r20/external/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_video_enc_hevc.cpp | 36 pipe_h265_enc_picture_desc *picture) in d3d12_video_encoder_update_current_rate_control_hevc() argument 38 assert(picture->pic.temporal_id < ARRAY_SIZE(pipe_h265_enc_picture_desc::rc)); in d3d12_video_encoder_update_current_rate_control_hevc() 39 …assert(picture->pic.temporal_id < std::max(static_cast<uint8_t>(1u), pD3D12Enc->m_currentEncodeCon… in d3d12_video_encoder_update_current_rate_control_hevc() 40 … assert(picture->pic.temporal_id < ARRAY_SIZE(D3D12EncodeConfiguration::m_encoderRateControlDesc)); in d3d12_video_encoder_update_current_rate_control_hevc() 42 …_prevRCState = pD3D12Enc->m_currentEncodeConfig.m_encoderRateControlDesc[picture->pic.temporal_id]; in d3d12_video_encoder_update_current_rate_control_hevc() 43 pD3D12Enc->m_currentEncodeConfig.m_activeRateControlIndex = picture->pic.temporal_id; in d3d12_video_encoder_update_current_rate_control_hevc() 44 pD3D12Enc->m_currentEncodeConfig.m_encoderRateControlDesc[picture->pic.temporal_id] = {}; in d3d12_video_encoder_update_current_rate_control_hevc() 45 …pD3D12Enc->m_currentEncodeConfig.m_encoderRateControlDesc[picture->pic.temporal_id].m_FrameRate.Nu… in d3d12_video_encoder_update_current_rate_control_hevc() 46 picture->rc[picture->pic.temporal_id].frame_rate_num; in d3d12_video_encoder_update_current_rate_control_hevc() 47 …pD3D12Enc->m_currentEncodeConfig.m_encoderRateControlDesc[picture->pic.temporal_id].m_FrameRate.De… in d3d12_video_encoder_update_current_rate_control_hevc() [all …]
|
H A D | d3d12_video_enc_av1.cpp | 35 pipe_av1_enc_picture_desc *picture) in d3d12_video_encoder_update_current_rate_control_av1() argument 37 assert(picture->temporal_id < ARRAY_SIZE(pipe_av1_enc_picture_desc::rc)); in d3d12_video_encoder_update_current_rate_control_av1() 38 assert(picture->temporal_id < ARRAY_SIZE(D3D12EncodeConfiguration::m_encoderRateControlDesc)); in d3d12_video_encoder_update_current_rate_control_av1() 40 …te m_prevRCState = pD3D12Enc->m_currentEncodeConfig.m_encoderRateControlDesc[picture->temporal_id]; in d3d12_video_encoder_update_current_rate_control_av1() 41 pD3D12Enc->m_currentEncodeConfig.m_activeRateControlIndex = picture->temporal_id; in d3d12_video_encoder_update_current_rate_control_av1() 42 pD3D12Enc->m_currentEncodeConfig.m_encoderRateControlDesc[picture->temporal_id] = {}; in d3d12_video_encoder_update_current_rate_control_av1() 43 …urrentEncodeConfig.m_encoderRateControlDesc[picture->temporal_id].m_FrameRate.Numerator = picture-… in d3d12_video_encoder_update_current_rate_control_av1() 44 …rrentEncodeConfig.m_encoderRateControlDesc[picture->temporal_id].m_FrameRate.Denominator = picture… in d3d12_video_encoder_update_current_rate_control_av1() 45 …pD3D12Enc->m_currentEncodeConfig.m_encoderRateControlDesc[picture->temporal_id].m_Flags = D3D12_VI… in d3d12_video_encoder_update_current_rate_control_av1() 47 if (picture->roi.num > 0) in d3d12_video_encoder_update_current_rate_control_av1() [all …]
|
H A D | d3d12_video_enc_h264.cpp | 36 pipe_h264_enc_picture_desc *picture) in d3d12_video_encoder_update_current_rate_control_h264() argument 38 struct pipe_h264_enc_picture_desc *h264Pic = (struct pipe_h264_enc_picture_desc *) picture; in d3d12_video_encoder_update_current_rate_control_h264() 44 …_prevRCState = pD3D12Enc->m_currentEncodeConfig.m_encoderRateControlDesc[picture->pic_ctrl.tempora… in d3d12_video_encoder_update_current_rate_control_h264() 48 picture->rate_ctrl[h264Pic->pic_ctrl.temporal_id].frame_rate_num; in d3d12_video_encoder_update_current_rate_control_h264() 50 picture->rate_ctrl[h264Pic->pic_ctrl.temporal_id].frame_rate_den; in d3d12_video_encoder_update_current_rate_control_h264() 53 if (picture->roi.num > 0) in d3d12_video_encoder_update_current_rate_control_h264() 57 switch (picture->rate_ctrl[h264Pic->pic_ctrl.temporal_id].rate_ctrl_method) { in d3d12_video_encoder_update_current_rate_control_h264() 63 picture->rate_ctrl[h264Pic->pic_ctrl.temporal_id].target_bitrate; in d3d12_video_encoder_update_current_rate_control_h264() 65 picture->rate_ctrl[h264Pic->pic_ctrl.temporal_id].peak_bitrate; in d3d12_video_encoder_update_current_rate_control_h264() 76 } else if (picture->rate_ctrl[h264Pic->pic_ctrl.temporal_id].app_requested_hrd_buffer) { in d3d12_video_encoder_update_current_rate_control_h264() [all …]
|
/aosp_15_r20/external/webp/src/enc/ |
H A D | picture_enc.c | 26 const WebPPicture* const picture) { in DummyWriter() argument 30 (void)picture; in DummyWriter() 34 int WebPPictureInitInternal(WebPPicture* picture, int version) { in WebPPictureInitInternal() argument 38 if (picture != NULL) { in WebPPictureInitInternal() 39 memset(picture, 0, sizeof(*picture)); in WebPPictureInitInternal() 40 picture->writer = DummyWriter; in WebPPictureInitInternal() 41 WebPEncodingSetError(picture, VP8_ENC_OK); in WebPPictureInitInternal() 48 int WebPValidatePicture(const WebPPicture* const picture) { in WebPValidatePicture() argument 49 if (picture == NULL) return 0; in WebPValidatePicture() 50 if (picture->width <= 0 || picture->height <= 0) { in WebPValidatePicture() [all …]
|
H A D | picture_csp_enc.c | 69 int WebPPictureHasTransparency(const WebPPicture* picture) { in WebPPictureHasTransparency() argument 70 if (picture == NULL) return 0; in WebPPictureHasTransparency() 71 if (picture->use_argb) { in WebPPictureHasTransparency() 72 if (picture->argb != NULL) { in WebPPictureHasTransparency() 73 return CheckNonOpaque((const uint8_t*)picture->argb + ALPHA_OFFSET, in WebPPictureHasTransparency() 74 picture->width, picture->height, in WebPPictureHasTransparency() 75 4, picture->argb_stride * sizeof(*picture->argb)); in WebPPictureHasTransparency() 79 return CheckNonOpaque(picture->a, picture->width, picture->height, in WebPPictureHasTransparency() 80 1, picture->a_stride); in WebPPictureHasTransparency() 180 WebPPicture* const picture) { in PreprocessARGB() argument [all …]
|
H A D | picture_rescale_enc.c | 88 int WebPPictureIsView(const WebPPicture* picture) { in WebPPictureIsView() argument 89 if (picture == NULL) return 0; in WebPPictureIsView() 90 if (picture->use_argb) { in WebPPictureIsView() 91 return (picture->memory_argb_ == NULL); in WebPPictureIsView() 93 return (picture->memory_ == NULL); in WebPPictureIsView() 128 // Picture cropping 171 // Simple picture rescaler 207 int WebPPictureRescale(WebPPicture* picture, int width, int height) { in WebPPictureRescale() argument 212 if (picture == NULL) return 0; in WebPPictureRescale() 213 prev_width = picture->width; in WebPPictureRescale() [all …]
|
/aosp_15_r20/external/flac/src/share/grabbag/ |
H A D | picture.c | 44 …tic FLAC__bool local__parse_type_(const char *s, size_t len, FLAC__StreamMetadata_Picture *picture) in local__parse_type_() argument 49 picture->type = FLAC__STREAM_METADATA_PICTURE_TYPE_FRONT_COVER; in local__parse_type_() 62 picture->type = val; in local__parse_type_() 69 …AC__bool local__parse_resolution_(const char *s, size_t len, FLAC__StreamMetadata_Picture *picture) in local__parse_resolution_() argument 75 picture->width = picture->height = picture->depth = picture->colors = 0; in local__parse_resolution_() 83 picture->width = val; in local__parse_resolution_() 85 picture->height = val; in local__parse_resolution_() 93 picture->depth = val; in local__parse_resolution_() 108 picture->depth = val; in local__parse_resolution_() 110 picture->colors = val; in local__parse_resolution_() [all …]
|
/aosp_15_r20/frameworks/base/core/java/android/app/ |
H A D | PictureInPictureParams.java | 34 * Represents a set of parameters used to initialize and update an Activity in picture-in-picture 92 * @param aspectRatio the new aspect ratio for the activity in picture-in-picture, must be 102 * Sets the aspect ratio for the expanded picture-in-picture mode. The aspect ratio is 110 * null}, expanded picture-in-picture mode is not supported. 124 * @param actions the new actions to show in the picture-in-picture menu. 160 * Sets the window-coordinate bounds of an activity transitioning to picture-in-picture. 162 * picture-in-picture mode. For the best effect, these bounds should also match the 166 * picture-in-picture mode. See 167 * <a href="{@docRoot}develop/ui/views/picture-in-picture#smoother-exit">Support 171 * will still be visible following the transition into picture-in-picture (e.g. the video [all …]
|
/aosp_15_r20/frameworks/base/graphics/java/android/graphics/ |
H A D | Picture.java | 26 * A Picture records drawing calls (via the canvas returned by beginRecording) 27 * and can then play them back into Canvas (via {@link Picture#draw(Canvas)} or 28 * {@link Canvas#drawPicture(Picture)}).For most content (e.g. text, lines, rectangles), 29 * drawing a sequence from a picture can be faster than the equivalent API 30 * calls, since the picture performs its playback without incurring any 33 * <p class="note"><strong>Note:</strong> Prior to API level 23 a picture cannot 36 public class Picture { class 46 * Creates an empty picture that is ready to record. 48 public Picture() { in Picture() method in Picture 53 * Create a picture by making a copy of what has already been recorded in [all …]
|
/aosp_15_r20/external/intel-media-driver/media_softlet/agnostic/common/codec/hal/enc/avc/features/ |
H A D | encode_avc_vdenc_const_settings.h | 93 …int8_t *BRC_UPD_GlobalRateQPAdjTabI_U8; //!< I Picture Global Rate QP Adjustment Ta… 94 …int8_t *BRC_UPD_GlobalRateQPAdjTabP_U8; //!< P Picture Global Rate QP Adjustment Ta… 95 …int8_t *BRC_UPD_SlWinGlobalRateQPAdjTabP_U8; //!< P picture Global Rate QP Adjustment Ta… 96 …int8_t *BRC_UPD_GlobalRateQPAdjTabB_U8; //!< B Picture Global Rate QP Adjustment Ta… 97 uint8_t *BRC_UPD_DistThreshldI_U8; //!< I Picture Distortion THreshold. 98 uint8_t *BRC_UPD_DistThreshldP_U8; //!< P Picture Distortion THreshold. 99 uint8_t *BRC_UPD_DistThreshldB_U8; //!< B Picture Distortion THreshold. 100 …int8_t *CBR_UPD_DistQPAdjTabI_U8; //!< I Picture Distortion QP Adjustment Tab… 101 …int8_t *CBR_UPD_DistQPAdjTabP_U8; //!< P Picture Distortion QP Adjustment Tab… 102 …int8_t *CBR_UPD_DistQPAdjTabB_U8; //!< B Picture Distortion QP Adjustment Tab… [all …]
|
/aosp_15_r20/external/rust/cros-libva/lib/src/ |
D | picture.rs | 25 /// A `Picture` will only have valid YUV data after a sequence of operations are performed in a 46 /// Represents a `Picture` that has just been created. 51 /// Represents a `Picture` after `vaBeginPicture` has been called. 56 /// Represents a `Picture` after `vaRenderPicture` has been called. 61 /// Represents a `Picture` after `vaEndPicture` has been called. 66 /// Represents a `Picture` after `vaSyncSurface` has been called on the underlying surface. 71 /// Represents a state where one can reclaim the underlying `Surface` for this `Picture`. This is 78 /// Inner type for [`Picture`], that is, the part that exists in all states. 80 /// Timestamp of the picture. 82 /// A context associated with this picture. [all …]
|
/aosp_15_r20/external/webp/src/webp/ |
H A D | encode.h | 88 WEBP_HINT_PICTURE, // digital picture, like portrait, inner shot 125 int show_compressed; // if true, export the compressed picture back. 156 // of source picture. These presets are used when calling WebPConfigPreset(). 159 WEBP_PRESET_PICTURE, // digital picture, like portrait, inner shot 238 // data/data_size is the segment of data to write, and 'picture' is for 239 // reference (and so one can make use of picture->custom_ptr). 241 const WebPPicture* picture); 262 const uint8_t* data, size_t data_size, const WebPPicture* picture); 267 typedef int (*WebPProgressHook)(int percent, const WebPPicture* picture); 285 VP8_ENC_ERROR_BAD_DIMENSION, // picture has invalid width/height [all …]
|
/aosp_15_r20/external/webp/examples/ |
H A D | cwebp.c | 306 // Dumps a picture as a PGM file using the IMC4 layout. 307 static int DumpPicture(const WebPPicture* const picture, const char* PGM_name) { in DumpPicture() argument 310 const int uv_width = (picture->width + 1) / 2; in DumpPicture() 311 const int uv_height = (picture->height + 1) / 2; in DumpPicture() 312 const int stride = (picture->width + 1) & ~1; in DumpPicture() 313 const uint8_t* src_y = picture->y; in DumpPicture() 314 const uint8_t* src_u = picture->u; in DumpPicture() 315 const uint8_t* src_v = picture->v; in DumpPicture() 316 const uint8_t* src_a = picture->a; in DumpPicture() 318 WebPPictureHasTransparency(picture) ? picture->height : 0; in DumpPicture() [all …]
|
/aosp_15_r20/frameworks/base/libs/hwui/jni/ |
H A D | android_graphics_Picture.cpp | 19 #include "Picture.h" 29 const Picture* src = reinterpret_cast<Picture*>(srcHandle); in android_graphics_Picture_newPicture() 30 return reinterpret_cast<jlong>(new Picture(src)); in android_graphics_Picture_newPicture() 35 Picture* picture = NULL; in android_graphics_Picture_deserialize() local 38 picture = Picture::CreateFromStream(strm); in android_graphics_Picture_deserialize() 41 return reinterpret_cast<jlong>(picture); in android_graphics_Picture_deserialize() 45 Picture* picture = reinterpret_cast<Picture*>(pictureHandle); in android_graphics_Picture_killPicture() local 46 SkASSERT(picture); in android_graphics_Picture_killPicture() 47 delete picture; in android_graphics_Picture_killPicture() 53 Picture* picture = reinterpret_cast<Picture*>(pictureHandle); in android_graphics_Picture_draw() local [all …]
|
/aosp_15_r20/external/flac/src/metaflac/ |
H A D | operations_shorthand_picture.c | 33 static FLAC__bool import_pic_from(const char *filename, FLAC__StreamMetadata **picture, const char … 34 static FLAC__bool export_pic_to(const char *filename, const FLAC__StreamMetadata *picture, const ch… 39 FLAC__StreamMetadata *picture = 0; in do_shorthand_operation__picture() local 49 ok = import_pic_from(filename, &picture, operation->argument.specification.value, needs_write); in do_shorthand_operation__picture() 51 /* append PICTURE block */ in do_shorthand_operation__picture() 54 if(!FLAC__metadata_iterator_insert_block_after(iterator, picture)) { in do_shorthand_operation__picture() 55 … print_error_with_chain_status(chain, "%s: ERROR: adding new PICTURE block to metadata", filename); in do_shorthand_operation__picture() 56 FLAC__metadata_object_delete(picture); in do_shorthand_operation__picture() 61 /* check global PICTURE constraints (max 1 block each of type=1 and type=2) */ in do_shorthand_operation__picture() 67 if(block->data.picture.type == FLAC__STREAM_METADATA_PICTURE_TYPE_FILE_ICON_STANDARD) { in do_shorthand_operation__picture() [all …]
|
/aosp_15_r20/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/ |
H A D | ShadowNativePictureTest.java | 15 import android.graphics.Picture; 31 // This method tests out some edge cases w.r.t. Picture creation. 33 // the created picture (effectively) has balanced saves and restores: 34 // - copy constructed picture from actively recording picture 35 // - actively recording picture after draw call 38 Picture original = new Picture(); in testSaveRestoreBalance() 45 Picture copy = new Picture(original); in testSaveRestoreBalance() 66 private void verifyBalance(Picture picture) { in verifyBalance() argument 77 canvas.drawPicture(picture); in verifyBalance() 91 Picture picture = new Picture(); in testPicture() local [all …]
|
/aosp_15_r20/cts/tests/tests/graphics/src/android/graphics/cts/ |
H A D | PictureTest.java | 29 import android.graphics.Picture; 46 // This method tests out some edge cases w.r.t. Picture creation. 48 // the created picture (effectively) has balanced saves and restores: 49 // - copy constructed picture from actively recording picture 50 // - actively recording picture after draw call 53 Picture original = new Picture(); in testSaveRestoreBalance() 60 Picture copy = new Picture(original); in testSaveRestoreBalance() 81 private void verifyBalance(Picture picture) { in verifyBalance() argument 92 canvas.drawPicture(picture); in verifyBalance() 106 Picture picture = new Picture(); in testPicture() local [all …]
|
/aosp_15_r20/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
H A D | PipUiEventLogger.kt | 69 @UiEvent(doc = "Activity enters picture-in-picture mode") 72 @UiEvent(doc = "Activity enters picture-in-picture mode with auto-enter-pip API") 75 @UiEvent(doc = "Activity enters picture-in-picture mode from content-pip API") 78 @UiEvent(doc = "Expands from picture-in-picture to fullscreen") 81 @UiEvent(doc = "Removes picture-in-picture by tap close button") 84 @UiEvent(doc = "Removes picture-in-picture by drag to dismiss area") 87 @UiEvent(doc = "Shows picture-in-picture menu") 90 @UiEvent(doc = "Hides picture-in-picture menu") 94 doc = "Changes the aspect ratio of picture-in-picture window. This is inherited" + 99 @UiEvent(doc = "User resize of the picture-in-picture window") [all …]
|
/aosp_15_r20/external/intel-media-driver/media_common/agnostic/common/codec/shared/ |
H A D | codec_def_decode_hevc.h | 72 /*! \brief Picture-level parameters of a compressed picture for HEVC decoding. 74 …ghts. The last width and height need to be calculated by driver from the picture dimension. Values… 76 …driver should generate and populate these tile dimension values based on picture resolution and nu… 82 …* The decoded picture width in units of luma samples equals (PicWidthInMinCbsY) * (1 << (log2_mi… 87 …* The decoded picture height in units of luma samples equals (PicHeightInMinCbsY) * (1 << (log2_… 100 /*! \brief Indicates that no picture reordering is used in the coded video sequence. 102 …eceding any picture in decoding order and succeeding that picture in output order is equal to 0. W… 118 /*! \brief Uncompressed destination surface of the frame for the current decoded picture. 211 /*! \brief Indicates whether the current picture is an IRAP picture. 213 …qual to 1 when the current picture is an IRAP picture and shall be equal to 0 when the current pic… [all …]
|
/aosp_15_r20/external/openscreen/cast/standalone_receiver/ |
H A D | sdl_video_player.cc | 81 const AVFrame& picture = *frame.decoded_frame; in RenderNextFrame() local 83 // Punt if the |picture| format is not compatible with those supported by SDL. in RenderNextFrame() 84 const uint32_t sdl_format = GetSDLPixelFormat(picture); in RenderNextFrame() 87 error << "SDL does not support AVPixelFormat " << picture.format; in RenderNextFrame() 92 // that of |picture|. If not, release the existing texture. in RenderNextFrame() 99 if (texture_format != sdl_format || texture_width != picture.width || in RenderNextFrame() 100 texture_height != picture.height) { in RenderNextFrame() 106 // that of |picture|. in RenderNextFrame() 110 error << SDL_GetPixelFormatName(sdl_format) << " at " << picture.width in RenderNextFrame() 111 << "×" << picture.height; in RenderNextFrame() [all …]
|
/aosp_15_r20/external/mesa3d/src/gallium/auxiliary/driver_trace/ |
H A D | tr_video.c | 41 unwrap_refrence_frames(struct pipe_picture_desc **picture) in unwrap_refrence_frames() argument 44 if ((*picture)->entry_point != PIPE_VIDEO_ENTRYPOINT_BITSTREAM) in unwrap_refrence_frames() 46 switch (u_reduce_video_profile((*picture)->profile)) { in unwrap_refrence_frames() 48 …struct pipe_mpeg12_picture_desc *copied = mem_dup(*picture, sizeof(struct pipe_mpeg12_picture_desc… in unwrap_refrence_frames() 51 *picture = (struct pipe_picture_desc*)copied; in unwrap_refrence_frames() 55 …struct pipe_mpeg4_picture_desc *copied = mem_dup(*picture, sizeof(struct pipe_mpeg4_picture_desc)); in unwrap_refrence_frames() 58 *picture = (struct pipe_picture_desc*)copied; in unwrap_refrence_frames() 62 … struct pipe_vc1_picture_desc *copied = mem_dup(*picture, sizeof(struct pipe_vc1_picture_desc)); in unwrap_refrence_frames() 65 *picture = (struct pipe_picture_desc*)copied; in unwrap_refrence_frames() 69 … struct pipe_h264_picture_desc *copied = mem_dup(*picture, sizeof(struct pipe_h264_picture_desc)); in unwrap_refrence_frames() [all …]
|
/aosp_15_r20/external/libva/va/ |
H A D | va_enc_mpeg2.h | 63 * \brief Packed Picture Parameter Set (PPS). 95 /** \brief Picture width. 103 /** \brief Picture height. 174 * \brief Picture parameter for MPEG-2 encoding 179 * If packed picture headers mode is used, i.e. if the encoding 190 /** \brief Forward reference picture */ 192 /** \brief Backward reference picture */ 194 /** \brief Reconstructed(decoded) picture */ 205 * \brief Flag to indicate the picture is the last one or not. 207 * This fields holds 0 if the picture to be encoded is not [all …]
|
/aosp_15_r20/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
H A D | HardwareBitmapTests.java | 33 import android.graphics.Picture; 89 Picture picture = new Picture(); in testCreateFromPicture() local 91 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testCreateFromPicture() 96 picture.endRecording(); in testCreateFromPicture() 98 Bitmap hardwareBitmap = Bitmap.createBitmap(picture); in testCreateFromPicture() 112 Picture picture = new Picture(); in testReadbackThroughPicture() local 114 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testReadbackThroughPicture() 117 picture.endRecording(); in testReadbackThroughPicture() 119 assertTrue(picture.requiresHardwareAcceleration()); in testReadbackThroughPicture() 120 Bitmap result = Bitmap.createBitmap(picture, picture.getWidth(), picture.getHeight(), in testReadbackThroughPicture() [all …]
|
/aosp_15_r20/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | PictureDrawable.java | 22 import android.graphics.Picture; 27 * Drawable subclass that wraps a Picture, allowing the picture to be used 32 private Picture mPicture; 35 * Construct a new drawable referencing the specified picture. The picture 38 * @param picture The picture to associate with the drawable. May be null. 40 public PictureDrawable(Picture picture) { in PictureDrawable() argument 41 mPicture = picture; in PictureDrawable() 45 * Return the picture associated with the drawable. May be null. 47 * @return the picture associated with the drawable, or null. 49 public Picture getPicture() { in getPicture() [all …]
|