Home
last modified time | relevance | path

Searched refs:num_rects (Results 1 – 25 of 53) sorted by relevance

123

/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_scissor.c118 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/
Dtestintersections.c128 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/
Dass.c125 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()
Ddvbsubenc.c283 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()
Dxsubenc.c132 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()
Dsubviewerdec.c64 *got_sub_ptr = sub->num_rects > 0; in subviewer_decode_frame()
Drealtextdec.c73 *got_sub_ptr = sub->num_rects > 0; in realtext_decode_frame()
Ddvdsubdec.c208 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()
Dmpl2dec.c80 *got_sub_ptr = sub->num_rects > 0; in mpl2_decode_frame()
Dassdec.c55 sub->num_rects = 1; in ass_decode_frame()
Dwebvttdec.c97 *got_sub_ptr = sub->num_rects > 0; in webvtt_decode_frame()
Dassenc.c52 for (i=0; i<sub->num_rects; i++) { in ass_encode_frame()
Dsrtdec.c85 *got_sub_ptr = sub->num_rects > 0; in srt_decode_frame()
Ddvbsubdec.c740 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()
Dtextdec.c62 *got_sub_ptr = sub->num_rects > 0; in text_decode_frame()
Dttmlenc.c89 for (i=0; i<sub->num_rects; i++) { in ttml_encode_frame()
Dsamidec.c150 *got_sub_ptr = sub->num_rects > 0; in sami_decode_frame()
/third_party/skia/third_party/externals/imgui/
Dimstb_rectpack.h90 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/
Dimstb_rectpack.h81 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/
Dimstb_rectpack.h88 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/
Detnaviv_2d_test.c76 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/
Dradv_meta.h186 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,
Dradv_meta_bufimage.c1402 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/
Ddvb-sub.h106 guint num_rects; member
Dgstdvbsuboverlay.c816 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()

123