Home
last modified time | relevance | path

Searched full:picture (Results 1 – 25 of 1203) sorted by relevance

12345678910>>...49

/external/mesa3d/src/gallium/frontends/vdpau/
Ddecode.c226 vlVdpDecoderRenderMpeg12(struct pipe_mpeg12_picture_desc *picture, in vlVdpDecoderRenderMpeg12() argument
233 r = vlVdpGetReferenceFrame(picture_info->forward_reference, &picture->ref[0]); in vlVdpDecoderRenderMpeg12()
237 r = vlVdpGetReferenceFrame(picture_info->backward_reference, &picture->ref[1]); in vlVdpDecoderRenderMpeg12()
241 picture->picture_coding_type = picture_info->picture_coding_type; in vlVdpDecoderRenderMpeg12()
242 picture->picture_structure = picture_info->picture_structure; in vlVdpDecoderRenderMpeg12()
243 picture->frame_pred_frame_dct = picture_info->frame_pred_frame_dct; in vlVdpDecoderRenderMpeg12()
244 picture->q_scale_type = picture_info->q_scale_type; in vlVdpDecoderRenderMpeg12()
245 picture->alternate_scan = picture_info->alternate_scan; in vlVdpDecoderRenderMpeg12()
246 picture->intra_vlc_format = picture_info->intra_vlc_format; in vlVdpDecoderRenderMpeg12()
247 picture->concealment_motion_vectors = picture_info->concealment_motion_vectors; in vlVdpDecoderRenderMpeg12()
[all …]
/external/webp/src/enc/
Dpicture_enc.c26 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 …]
Dpicture_csp_enc.c69 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()
179 WebPPicture* const picture) { in PreprocessARGB() argument
[all …]
Dpicture_rescale_enc.c88 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
169 // Simple picture rescaler
205 int WebPPictureRescale(WebPPicture* picture, int width, int height) { in WebPPictureRescale() argument
210 if (picture == NULL) return 0; in WebPPictureRescale()
211 prev_width = picture->width; in WebPPictureRescale()
[all …]
Dpicture_tools_enc.c193 void WebPBlendAlpha(WebPPicture* picture, uint32_t background_rgb) { in WebPBlendAlpha() argument
198 if (picture == NULL) return; in WebPBlendAlpha()
199 if (!picture->use_argb) { in WebPBlendAlpha()
201 const int uv_width = (picture->width >> 1); in WebPBlendAlpha()
206 const int has_alpha = picture->colorspace & WEBP_CSP_ALPHA_BIT; in WebPBlendAlpha()
207 uint8_t* y_ptr = picture->y; in WebPBlendAlpha()
208 uint8_t* u_ptr = picture->u; in WebPBlendAlpha()
209 uint8_t* v_ptr = picture->v; in WebPBlendAlpha()
210 uint8_t* a_ptr = picture->a; in WebPBlendAlpha()
212 for (y = 0; y < picture->height; ++y) { in WebPBlendAlpha()
[all …]
/external/flac/src/share/grabbag/
Dpicture.c44 …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 …]
/external/crosvm/media/libva/src/
Dimage.rs8 use crate::picture::Picture;
9 use crate::picture::PictureSync;
12 /// Wrapper around `VAImage` that is tied to the lifetime of a given `Picture`.
17 /// The picture whose `Surface` we use as the source of pixel data.
18 picture: &'a Picture<PictureSync>, field
34 /// from an underlying Picture. Note that Image has a borrowed Picture, so
40 /// * `picture` - The [`Picture`] that owns the Surface this image will be created from.
44 /// * `derive` - Whether to try deriving the image from `picture`, which allows zero-copy access
48 picture: &'a mut Picture<PictureSync>, in new()
60 derived = Image::derive_image(picture, &mut image)?; in new()
[all …]
Dpicture.rs27 /// A `Picture` will only have valid YUV data after a sequence of operations are performed in a
48 /// Represents a `Picture` that has just been created.
53 /// Represents a `Picture` after `vaBeginPicture` has been called.
58 /// Represents a `Picture` after `vaRenderPicture` has been called.
63 /// Represents a `Picture` after `vaEndPicture` has been called.
68 /// Represents a `Picture` after `vaSyncSurface` has been called on the underlying surface.
73 /// Represents a state where one can reclaim the underlying `Surface` for this `Picture`. This is
81 /// Timestamp of the picture.
83 /// A context associated with this picture.
93 /// Returns a reference to the Context used by the Picture
[all …]
/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/
DShadowNativePictureTest.java15 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 …]
/external/mesa3d/src/gallium/frontends/omx/bellagio/
Dvid_dec_mpeg12.c82 priv->picture.base.profile = PIPE_VIDEO_PROFILE_MPEG2_MAIN; in vid_dec_mpeg12_Init()
83 priv->picture.mpeg12.intra_matrix = default_intra_matrix; in vid_dec_mpeg12_Init()
84 priv->picture.mpeg12.non_intra_matrix = default_non_intra_matrix; in vid_dec_mpeg12_Init()
93 if (priv->picture.mpeg12.picture_coding_type != PIPE_MPEG12_PICTURE_CODING_TYPE_B) { in BeginFrame()
94 priv->picture.mpeg12.ref[0] = priv->picture.mpeg12.ref[1]; in BeginFrame()
95 priv->picture.mpeg12.ref[1] = NULL; in BeginFrame()
98 if (priv->target == priv->picture.mpeg12.ref[0]) { in BeginFrame()
106 priv->codec->begin_frame(priv->codec, priv->target, &priv->picture.base); in BeginFrame()
114 priv->codec->end_frame(priv->codec, priv->target, &priv->picture.base); in vid_dec_mpeg12_EndFrame()
117 if (priv->picture.mpeg12.picture_coding_type != PIPE_MPEG12_PICTURE_CODING_TYPE_B) { in vid_dec_mpeg12_EndFrame()
[all …]
/external/flac/src/metaflac/
Doperations_shorthand_picture.c33 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 …]
/external/openscreen/cast/standalone_receiver/
Dsdl_video_player.cc81 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 …]
/external/webp/src/webp/
Dencode.h88 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
235 // data/data_size is the segment of data to write, and 'picture' is for
236 // reference (and so one can make use of picture->custom_ptr).
238 const WebPPicture* picture);
259 const WebPPicture* picture);
264 typedef int (*WebPProgressHook)(int percent, const WebPPicture* picture);
282 VP8_ENC_ERROR_BAD_DIMENSION, // picture has invalid width/height
[all …]
/external/skia/tests/
DPictureShaderTest.cpp32 sk_sp<SkPicture> picture = makePicture(); in DEF_TEST() local
33 REPORTER_ASSERT(reporter, picture->unique()); in DEF_TEST()
39 paint.setShader(picture->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in DEF_TEST()
44 REPORTER_ASSERT(reporter, !picture->unique()); in DEF_TEST()
47 // Draw another picture shader to have a chance to purge. in DEF_TEST()
57 REPORTER_ASSERT(reporter, picture->unique()); in DEF_TEST()
61 * Check caching of picture-shaders
64 * - after deleting the picture, the cache entry is purged
67 auto picture = []() { in DEF_TEST() local
72 REPORTER_ASSERT(reporter, picture->unique()); in DEF_TEST()
[all …]
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowPictureTest.java5 import android.graphics.Picture;
15 Picture picture = new Picture(); in beginRecordingSetsHeightAndWidth() local
16 picture.beginRecording(100, 100); in beginRecordingSetsHeightAndWidth()
17 assertThat(picture.getHeight()).isEqualTo(100); in beginRecordingSetsHeightAndWidth()
18 assertThat(picture.getWidth()).isEqualTo(100); in beginRecordingSetsHeightAndWidth()
23 Picture originalPicture = new Picture(); in copyConstructor()
26 Picture copiedPicture = new Picture(originalPicture); in copyConstructor()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPictureTest.java5 import android.graphics.Picture;
15 Picture picture = new Picture(); in beginRecordingSetsHeightAndWidth() local
16 picture.beginRecording(100, 100); in beginRecordingSetsHeightAndWidth()
17 assertThat(picture.getHeight()).isEqualTo(100); in beginRecordingSetsHeightAndWidth()
18 assertThat(picture.getWidth()).isEqualTo(100); in beginRecordingSetsHeightAndWidth()
23 Picture originalPicture = new Picture(); in copyConstructor()
26 Picture copiedPicture = new Picture(originalPicture); in copyConstructor()
/external/flac/src/test_grabbag/picture/
Dmain.c1 /* test_picture - Simple tester for picture routines in grabbag
87 obj->data.picture.type, in test_one_picture()
88 obj->data.picture.type < FLAC__STREAM_METADATA_PICTURE_TYPE_UNDEFINED? in test_one_picture()
89 FLAC__StreamMetadata_Picture_TypeString[obj->data.picture.type] : "UNDEFINED", in test_one_picture()
90 obj->data.picture.mime_type, in test_one_picture()
91 obj->data.picture.description, in test_one_picture()
92 obj->data.picture.width, in test_one_picture()
93 obj->data.picture.height, in test_one_picture()
94 obj->data.picture.depth, in test_one_picture()
95 obj->data.picture.colors, in test_one_picture()
[all …]
/external/webp/examples/
Dcwebp.c306 // 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
309 const int uv_width = (picture->width + 1) / 2; in DumpPicture()
310 const int uv_height = (picture->height + 1) / 2; in DumpPicture()
311 const int stride = (picture->width + 1) & ~1; in DumpPicture()
312 const uint8_t* src_y = picture->y; in DumpPicture()
313 const uint8_t* src_u = picture->u; in DumpPicture()
314 const uint8_t* src_v = picture->v; in DumpPicture()
315 const uint8_t* src_a = picture->a; in DumpPicture()
317 WebPPictureHasTransparency(picture) ? picture->height : 0; in DumpPicture()
[all …]
/external/mesa3d/src/gallium/frontends/omx/
Dvid_dec_h264_common.c48 templat.max_references = priv->picture.h264.num_ref_frames; in vid_dec_h264_BeginFrame()
59 templat.level = priv->picture.h264.pps->sps->level_idc; in vid_dec_h264_BeginFrame()
70 priv->picture.h264.num_ref_frames = priv->picture.h264.pps->sps->max_num_ref_frames; in vid_dec_h264_BeginFrame()
72 priv->picture.h264.slice_count = 0; in vid_dec_h264_BeginFrame()
73 priv->codec->begin_frame(priv->codec, priv->target, &priv->picture.base); in vid_dec_h264_BeginFrame()
117 priv->codec->end_frame(priv->codec, priv->target, &priv->picture.base); in vid_dec_h264_EndFrame()
121 priv->picture.h264.frame_num_list[0] = priv->picture.h264.frame_num; in vid_dec_h264_EndFrame()
122 priv->picture.h264.field_order_cnt_list[0][0] = priv->picture.h264.frame_num; in vid_dec_h264_EndFrame()
123 priv->picture.h264.field_order_cnt_list[0][1] = priv->picture.h264.frame_num; in vid_dec_h264_EndFrame()
125 top_field_first = priv->picture.h264.field_order_cnt[0] < priv->picture.h264.field_order_cnt[1]; in vid_dec_h264_EndFrame()
[all …]
/external/crosvm/media/cros-codecs/src/decoders/h264/
Ddpb.rs14 use crate::decoders::h264::picture::Field;
15 use crate::decoders::h264::picture::IsIdr;
16 use crate::decoders::h264::picture::PictureData;
17 use crate::decoders::h264::picture::Reference;
24 // The second member is the backend handle of the frame. It can be `None` if the inserted picture
93 /// Find the short term reference picture with the lowest `frame_num_wrap`
115 for mut picture in self.pictures_mut() { in mark_all_as_unused_for_ref()
116 picture.set_reference(Reference::None, false); in mark_all_as_unused_for_ref()
120 /// Remove unused pictures from the DPB. A picture is not going to be used
128 log::debug!("Removing unused picture {:#?}", pic); in remove_unused()
[all …]
/external/python/uritemplates/tests/fixtures/
Dextended-tests.json7 "fields" : ["id", "name", "picture"],
32 "/person?fields=id,name,picture&first_name=John&last.name=Doe&token=12345",
33 "/person?fields=id,picture,name&first_name=John&last.name=Doe&token=12345",
34 "/person?fields=picture,name,id&first_name=John&last.name=Doe&token=12345",
35 "/person?fields=picture,id,name&first_name=John&last.name=Doe&token=12345",
36 "/person?fields=name,picture,id&first_name=John&last.name=Doe&token=12345",
37 "/person?fields=name,id,picture&first_name=John&last.name=Doe&token=12345"]
60 "fields" : ["id", "name", "picture"],
72 "/person/albums?fields=id,name,picture&token=12345",
73 "/person/albums?fields=id,picture,name&token=12345",
[all …]
/external/crosvm/media/cros-codecs/src/utils/
Dvaapi.rs111 PictureState::Ready { picture, .. } => picture.take_surface().map(Some), in try_into()
400 /// This includes the VA picture which can be pending rendering or complete, as well as useful
426 picture: libva::Picture<PictureNew>, in new_pending()
429 let surface_id = picture.surface().id(); in new_pending()
430 let picture = picture.begin()?.render()?.end()?; in new_pending() localVariable
433 picture, in new_pending()
444 PictureState::Pending { picture, .. } => { in sync()
445 let picture = picture.sync()?; in sync() localVariable
448 picture, in sync()
467 picture, in image()
[all …]
/external/flac/test/metaflac-test-files/
Dcase59-expect.meta47 type: 6 (PICTURE)
60 type: 6 (PICTURE)
73 type: 6 (PICTURE)
86 type: 6 (PICTURE)
99 type: 6 (PICTURE)
112 type: 6 (PICTURE)
125 type: 6 (PICTURE)
138 type: 6 (PICTURE)
151 type: 6 (PICTURE)
164 type: 6 (PICTURE)
[all …]
Dcase58-expect.meta47 type: 6 (PICTURE)
60 type: 6 (PICTURE)
73 type: 6 (PICTURE)
86 type: 6 (PICTURE)
99 type: 6 (PICTURE)
112 type: 6 (PICTURE)
125 type: 6 (PICTURE)
138 type: 6 (PICTURE)
151 type: 6 (PICTURE)
164 type: 6 (PICTURE)
[all …]
/external/libmpeg2/decoder/
Dimpeg2d_globals.c46 /* frame prediction in P frame picture */
49 /* field prediction in P frame picture */
52 /* frame prediction in B frame picture */
55 /* field prediction in B frame picture */
58 /* dual prime prediction in P frame picture */
62 /* field prediction in P field picture */
64 /* 16x8 prediction in P field picture */
66 /* field prediction in B field picture */
68 /* 16x8 prediction in B field picture */
70 /* dual prime prediction in P field picture */
[all …]

12345678910>>...49