/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_atom_scissor.c | 118 unsigned num_rects = scissor->NumWindowRects; in st_update_window_rectangles() local 122 num_rects = 0; in st_update_window_rectangles() 125 for (i = 0; i < num_rects; i++) { in st_update_window_rectangles() 132 if (num_rects > 0 && memcmp(new_rects, st->state.window_rects.rects, in st_update_window_rectangles() 133 num_rects * sizeof(struct pipe_scissor_state))) { in st_update_window_rectangles() 135 num_rects * sizeof(struct pipe_scissor_state)); in st_update_window_rectangles() 138 if (st->state.window_rects.num != num_rects) { in st_update_window_rectangles() 139 st->state.window_rects.num = num_rects; in st_update_window_rectangles() 148 st->pipe, include, num_rects, new_rects); in st_update_window_rectangles()
|
/third_party/flutter/skia/third_party/externals/sdl/test/ |
D | testintersections.c | 128 int num_rects = 0; variable 133 if (num_rects >= MAX_RECTS) in add_rect() 146 rects[num_rects].x = x1; in add_rect() 147 rects[num_rects].y = y1; in add_rect() 148 rects[num_rects].w = x2 - x1; in add_rect() 149 rects[num_rects].h = y2 - y1; in add_rect() 151 return ++num_rects; in add_rect() 158 SDL_RenderFillRects(renderer, rects, num_rects); in DrawRects() 168 for (i = 0; i < num_rects; i++) in DrawRectLineIntersections() 192 for (i = 0; i < num_rects; i++) in DrawRectRectIntersections() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | ass.c | 125 rects = av_realloc_array(sub->rects, sub->num_rects+1, sizeof(*sub->rects)); in ff_ass_add_rect() 129 rects[sub->num_rects] = av_mallocz(sizeof(*rects[0])); in ff_ass_add_rect() 130 if (!rects[sub->num_rects]) in ff_ass_add_rect() 132 rects[sub->num_rects]->type = SUBTITLE_ASS; in ff_ass_add_rect() 136 rects[sub->num_rects]->ass = ass_str; in ff_ass_add_rect() 137 sub->num_rects++; in ff_ass_add_rect()
|
D | dvbsubenc.c | 283 if (h->num_rects && !h->rects) in dvbsub_encode() 304 if (buf_size < 8 + h->num_rects * 6) in dvbsub_encode() 316 for (region_id = 0; region_id < h->num_rects; region_id++) { in dvbsub_encode() 324 buf_size -= 8 + h->num_rects * 6; in dvbsub_encode() 326 if (h->num_rects) { in dvbsub_encode() 327 for (clut_id = 0; clut_id < h->num_rects; clut_id++) { in dvbsub_encode() 378 if (buf_size < h->num_rects * 22) in dvbsub_encode() 380 for (region_id = 0; region_id < h->num_rects; region_id++) { in dvbsub_encode() 419 buf_size -= h->num_rects * 22; in dvbsub_encode() 421 for (object_id = 0; object_id < h->num_rects; object_id++) { in dvbsub_encode()
|
D | xsubenc.c | 132 if (h->num_rects != 1) in xsub_encode() 133 … av_log(avctx, AV_LOG_WARNING, "Only single rects supported (%d in subtitle.)\n", h->num_rects); in xsub_encode()
|
D | subviewerdec.c | 64 *got_sub_ptr = sub->num_rects > 0; in subviewer_decode_frame()
|
D | realtextdec.c | 73 *got_sub_ptr = sub->num_rects > 0; in realtext_decode_frame()
|
D | dvdsubdec.c | 208 for (i = 0; i < sub_header->num_rects; i++) { in reset_rects() 214 sub_header->num_rects = 0; in reset_rects() 380 sub_header->num_rects = 1; in decode_dvd_subtitles() 431 if (sub_header->num_rects > 0) in decode_dvd_subtitles() 458 if (s->num_rects == 0 || !s->rects || s->rects[0]->w <= 0 || s->rects[0]->h <= 0) in find_smallest_bounding_rectangle()
|
D | mpl2dec.c | 80 *got_sub_ptr = sub->num_rects > 0; in mpl2_decode_frame()
|
D | assdec.c | 55 sub->num_rects = 1; in ass_decode_frame()
|
D | webvttdec.c | 97 *got_sub_ptr = sub->num_rects > 0; in webvtt_decode_frame()
|
D | assenc.c | 52 for (i=0; i<sub->num_rects; i++) { in ass_encode_frame()
|
D | srtdec.c | 85 *got_sub_ptr = sub->num_rects > 0; in srt_decode_frame()
|
D | dvbsubdec.c | 740 if (sub->num_rects) { in save_subtitle_set() 747 sub->num_rects++; in save_subtitle_set() 757 if (sub->num_rects > 0) { in save_subtitle_set() 759 sub->rects = av_mallocz_array(sizeof(*sub->rects), sub->num_rects); in save_subtitle_set() 765 for (i = 0; i < sub->num_rects; i++) { in save_subtitle_set() 854 for (i=0; i < sub->num_rects; i++) { in save_subtitle_set() 864 sub->num_rects = 0; in save_subtitle_set()
|
D | textdec.c | 62 *got_sub_ptr = sub->num_rects > 0; in text_decode_frame()
|
D | ttmlenc.c | 89 for (i=0; i<sub->num_rects; i++) { in ttml_encode_frame()
|
D | samidec.c | 150 *got_sub_ptr = sub->num_rects > 0; in sami_decode_frame()
|
/third_party/skia/third_party/externals/imgui/ |
D | imstb_rectpack.h | 90 STBRP_DEF int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects); 558 STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects) in stbrp_pack_rects() argument 563 for (i=0; i < num_rects; ++i) { in stbrp_pack_rects() 568 STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_height_compare); in stbrp_pack_rects() 570 for (i=0; i < num_rects; ++i) { in stbrp_pack_rects() 585 STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_original_order); in stbrp_pack_rects() 588 for (i=0; i < num_rects; ++i) { in stbrp_pack_rects()
|
/third_party/flutter/skia/third_party/externals/imgui/ |
D | imstb_rectpack.h | 81 STBRP_DEF int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects); 539 STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects) in stbrp_pack_rects() argument 544 for (i=0; i < num_rects; ++i) { in stbrp_pack_rects() 552 STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_height_compare); in stbrp_pack_rects() 554 for (i=0; i < num_rects; ++i) { in stbrp_pack_rects() 569 STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_original_order); in stbrp_pack_rects() 572 for (i=0; i < num_rects; ++i) { in stbrp_pack_rects()
|
/third_party/mesa3d/src/imgui/ |
D | imstb_rectpack.h | 88 STBRP_DEF int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects); 549 STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects) in stbrp_pack_rects() argument 554 for (i=0; i < num_rects; ++i) { in stbrp_pack_rects() 559 STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_height_compare); in stbrp_pack_rects() 561 for (i=0; i < num_rects; ++i) { in stbrp_pack_rects() 576 STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_original_order); in stbrp_pack_rects() 579 for (i=0; i < num_rects; ++i) { in stbrp_pack_rects()
|
/third_party/libdrm/tests/etnaviv/ |
D | etnaviv_2d_test.c | 76 static int num_rects = 256; in gen_cmd_stream() local 133 …VIV_FE_DRAW_2D_HEADER_OP_DRAW_2D | VIV_FE_DRAW_2D_HEADER_COUNT(num_rects) /* render one rectangle … in gen_cmd_stream() 137 for(rec=0; rec < num_rects; ++rec) { in gen_cmd_stream()
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_meta.h | 186 unsigned num_rects, struct radv_meta_blit2d_rect *rects); 194 struct radv_meta_blit2d_buffer *dst, unsigned num_rects, 199 struct radv_meta_blit2d_surf *dst, unsigned num_rects, 203 struct radv_meta_blit2d_surf *dst, unsigned num_rects,
|
D | radv_meta_bufimage.c | 1402 struct radv_meta_blit2d_buffer *dst, unsigned num_rects, in radv_meta_image_to_buffer() argument 1420 for (unsigned r = 0; r < num_rects; ++r) { in radv_meta_image_to_buffer() 1465 struct radv_meta_blit2d_surf *dst, unsigned num_rects, in radv_meta_buffer_to_image_cs_r32g32b32() argument 1491 for (unsigned r = 0; r < num_rects; ++r) { in radv_meta_buffer_to_image_cs_r32g32b32() 1546 unsigned num_rects, struct radv_meta_blit2d_rect *rects) in radv_meta_buffer_to_image_cs() argument 1556 radv_meta_buffer_to_image_cs_r32g32b32(cmd_buffer, src, dst, num_rects, rects); in radv_meta_buffer_to_image_cs() 1569 for (unsigned r = 0; r < num_rects; ++r) { in radv_meta_buffer_to_image_cs() 1619 struct radv_meta_blit2d_surf *dst, unsigned num_rects, in radv_meta_image_to_image_cs_r32g32b32() argument 1652 for (unsigned r = 0; r < num_rects; ++r) { in radv_meta_image_to_image_cs_r32g32b32() 1707 struct radv_meta_blit2d_surf *dst, unsigned num_rects, in radv_meta_image_to_image_cs() argument [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/dvbsuboverlay/ |
D | dvb-sub.h | 106 guint num_rects; member
|
D | gstdvbsuboverlay.c | 816 subs->page_time_out, subs->num_rects, subs->pts, in new_dvb_subtitles_cb() 915 g_return_val_if_fail (subs != NULL && subs->num_rects > 0, NULL); in gst_dvbsub_overlay_subs_to_comp() 925 subs->num_rects, dw, dh, width, height); in gst_dvbsub_overlay_subs_to_comp() 938 for (i = 0; i < subs->num_rects; i++) { in gst_dvbsub_overlay_subs_to_comp() 1072 } else if (tmp->num_rects == 0) { in gst_dvbsub_overlay_chain_video() 1102 candidate->num_rects); in gst_dvbsub_overlay_chain_video()
|