Searched refs:rects (Results 1 - 25 of 49) sorted by relevance

12

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/
H A Ddvdsubenc.c95 int i, imax, color, alpha, rects = h->num_rects; local
100 if (rects == 0 || h->rects == NULL)
102 if (rects > 20)
103 rects = 20;
110 for (object_id = 0; object_id < rects; object_id++)
111 for (i=0; i<h->rects[object_id]->w*h->rects[object_id]->h; ++i) {
112 color = h->rects[object_id]->pict.data[0][i];
114 alpha = ((uint32_t*)h->rects[object_i
[all...]
H A Dxsubdec.c92 sub->rects = av_mallocz(sizeof(*sub->rects));
93 sub->rects[0] = av_mallocz(sizeof(*sub->rects[0]));
95 sub->rects[0]->x = x; sub->rects[0]->y = y;
96 sub->rects[0]->w = w; sub->rects[0]->h = h;
97 sub->rects[0]->type = SUBTITLE_BITMAP;
98 sub->rects[
[all...]
H A Dass.c100 AVSubtitleRect **rects; local
112 rects = av_realloc(sub->rects, (sub->num_rects+1) * sizeof(*sub->rects));
113 if (!rects)
115 sub->rects = rects;
117 rects[sub->num_rects] = av_mallocz(sizeof(*rects[0]));
118 rects[su
[all...]
H A Ddvdsubdec.c302 if (sub_header->rects != NULL) {
304 av_freep(&sub_header->rects[i]->pict.data[0]);
305 av_freep(&sub_header->rects[i]->pict.data[1]);
306 av_freep(&sub_header->rects[i]);
308 av_freep(&sub_header->rects);
313 sub_header->rects = av_mallocz(sizeof(*sub_header->rects));
314 sub_header->rects[0] = av_mallocz(sizeof(AVSubtitleRect));
316 sub_header->rects[0]->pict.data[0] = bitmap;
321 sub_header->rects[
[all...]
H A Dxsubenc.c131 // TODO: support multiple rects
133 av_log(avctx, AV_LOG_WARNING, "Only single rects supported (%d in subtitle.)\n", h->num_rects);
136 if (!h->rects[0]->pict.data[0] || !h->rects[0]->pict.data[1]) {
142 if (h->rects[0]->nb_colors > 4)
143 av_log(avctx, AV_LOG_WARNING, "No more than 4 subtitle colors supported (%d found.)\n", h->rects[0]->nb_colors);
146 if (((uint32_t *)h->rects[0]->pict.data[1])[0] & 0xff)
163 width = FFALIGN(h->rects[0]->w, 2) + PADDING * 2;
164 height = FFALIGN(h->rects[0]->h, 2);
168 bytestream_put_le16(&hdr, h->rects[
[all...]
H A Dpgssubdec.c99 sub->rects[0]->pict.data[0] = av_malloc(sub->rects[0]->w * sub->rects[0]->h);
101 if (!sub->rects[0]->pict.data[0])
107 while (buf < rle_bitmap_end && line_count < sub->rects[0]->h) {
122 if (run > 0 && pixel_count + run <= sub->rects[0]->w * sub->rects[0]->h) {
123 memset(sub->rects[0]->pict.data[0] + pixel_count, color, run);
130 if (pixel_count % sub->rects[0]->w > 0)
132 pixel_count % sub->rects[
[all...]
H A Ddvbsub.c208 if (h->num_rects == 0 || h->rects == NULL)
231 bytestream_put_be16(&q, h->rects[region_id]->x); /* left pos */
232 bytestream_put_be16(&q, h->rects[region_id]->y); /* top pos */
242 if (h->rects[clut_id]->nb_colors <= 4) {
245 } else if (h->rects[clut_id]->nb_colors <= 16) {
260 for(i = 0; i < h->rects[clut_id]->nb_colors; i++) {
265 uint32_t x= ((uint32_t*)h->rects[clut_id]->pict.data[1])[i];
286 if (h->rects[region_id]->nb_colors <= 4) {
289 } else if (h->rects[region_id]->nb_colors <= 16) {
303 bytestream_put_be16(&q, h->rects[region_i
[all...]
H A Dassenc.c42 if (sub->rects[i]->type != SUBTITLE_ASS) {
47 len = av_strlcpy(buf+total_len, sub->rects[i]->ass, bufsize-total_len);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/
H A Dxsubdec.c95 sub->rects = av_mallocz(sizeof(*sub->rects));
96 sub->rects[0] = av_mallocz(sizeof(*sub->rects[0]));
98 sub->rects[0]->x = x; sub->rects[0]->y = y;
99 sub->rects[0]->w = w; sub->rects[0]->h = h;
100 sub->rects[0]->type = SUBTITLE_BITMAP;
101 sub->rects[
[all...]
H A Dxsubenc.c130 // TODO: support multiple rects
132 av_log(avctx, AV_LOG_WARNING, "Only single rects supported (%d in subtitle.)\n", h->num_rects);
135 if (!h->rects[0]->pict.data[0] || !h->rects[0]->pict.data[1]) {
141 if (h->rects[0]->nb_colors > 4)
142 av_log(avctx, AV_LOG_WARNING, "No more than 4 subtitle colors supported (%d found.)\n", h->rects[0]->nb_colors);
145 if (((uint32_t *)h->rects[0]->pict.data[1])[0] & 0xff000000)
162 width = FFALIGN(h->rects[0]->w, 2) + PADDING * 2;
163 height = FFALIGN(h->rects[0]->h, 2);
167 bytestream_put_le16(&hdr, h->rects[
[all...]
H A Dass.c125 AVSubtitleRect **rects; local
134 rects = av_realloc(sub->rects, (sub->num_rects+1) * sizeof(*sub->rects));
135 if (!rects)
137 sub->rects = rects;
139 rects[sub->num_rects] = av_mallocz(sizeof(*rects[0]));
140 rects[su
[all...]
H A Ddvdsubdec.c198 if (sub_header->rects != NULL) {
200 av_freep(&sub_header->rects[i]->pict.data[0]);
201 av_freep(&sub_header->rects[i]->pict.data[1]);
202 av_freep(&sub_header->rects[i]);
204 av_freep(&sub_header->rects);
355 sub_header->rects = av_mallocz(sizeof(*sub_header->rects));
356 sub_header->rects[0] = av_mallocz(sizeof(AVSubtitleRect));
358 sub_header->rects[0]->pict.data[0] = bitmap;
363 sub_header->rects[
[all...]
H A Ddvbsub.c261 if (h->num_rects && h->rects == NULL)
279 bytestream_put_be16(&q, h->rects[region_id]->x); /* left pos */
280 bytestream_put_be16(&q, h->rects[region_id]->y); /* top pos */
290 if (h->rects[clut_id]->nb_colors <= 4) {
293 } else if (h->rects[clut_id]->nb_colors <= 16) {
296 } else if (h->rects[clut_id]->nb_colors <= 256) {
313 for(i = 0; i < h->rects[clut_id]->nb_colors; i++) {
318 uint32_t x= ((uint32_t*)h->rects[clut_id]->pict.data[1])[i];
339 if (h->rects[region_id]->nb_colors <= 4) {
342 } else if (h->rects[region_i
[all...]
H A Ddvdsubenc.c257 int i, rects = h->num_rects, ret; local
267 if (rects == 0 || h->rects == NULL)
269 for (i = 0; i < rects; i++)
270 if (h->rects[i]->type != SUBTITLE_BITMAP) {
275 for (i = 0; i < rects; i++)
276 if ((h->rects[i]->flags & AV_SUBTITLE_FLAG_FORCED) != 0) {
280 vrect = *h->rects[0];
282 if (rects > 1) {
287 int xmin = h->rects[
[all...]
H A Dpgssubdec.c510 sub->rects = av_mallocz(sizeof(*sub->rects) * ctx->presentation.object_count);
511 if (!sub->rects) {
525 sub->rects[i] = av_mallocz(sizeof(*sub->rects[0]));
526 if (!sub->rects[i]) {
531 sub->rects[i]->type = SUBTITLE_BITMAP;
547 sub->rects[i]->flags |= AV_SUBTITLE_FLAG_FORCED;
549 sub->rects[i]->x = ctx->presentation.objects[i].x;
550 sub->rects[
[all...]
H A Dassenc.c55 const char *ass = sub->rects[i]->ass;
57 if (sub->rects[i]->type != SUBTITLE_ASS) {
H A Dmovtextenc.c122 if (sub->rects[i]->type != SUBTITLE_ASS) {
127 dialog = ff_ass_split_dialog(s->ass_ctx, sub->rects[i]->ass, 0, &num);
H A Dlibzvbi-teletextdec.c460 sub->rects = av_malloc(sizeof(*sub->rects));
461 if (sub->rects) {
463 sub->rects[0] = ctx->pages->sub_rect;
469 sub->rects = NULL;
471 if (!sub->rects) // no rect was passed
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/gpu/drm/
H A Ddrm_drawable.c88 kfree(info->rects);
102 struct drm_clip_rect *rects; local
121 rects = NULL;
123 rects = kmalloc(update->num *
127 rects = info->rects;
129 if (update->num && !rects) {
135 if (update->num && DRM_COPY_FROM_USER(rects,
139 sizeof(*rects))) {
147 if (rects !
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/generic/
H A Dregiong.cpp45 rects = &extents;
56 return i < numRects ? rects + i : NULL;
171 Box *rects; member in struct:REGION
189 rects = ( BOX * )malloc( (unsigned) sizeof( BOX ));
200 rects = (BOX*)malloc(sizeof(BOX));
207 *rects = extents;
214 rects = (BOX*)malloc(sizeof(BOX));
215 *rects = extents;
224 rects = (Box*)malloc(numRects*sizeof(Box));
225 memcpy(rects, refDat
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/include/wx/cocoa/
H A Dregion.h52 wxRegion(const NSRect *rects, int count);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_kms.h102 struct drm_vmw_rect *rects);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/include/wx/mac/carbon/
H A Dregion.h87 void SetRects(long numRects, wxRect *rects);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/mac/carbon/
H A Dregion.cpp324 * Set iterator rects for region
326 void wxRegionIterator::SetRects(long numRects, wxRect *rects) argument
334 if (rects && (numRects > 0))
340 m_rects[i] = rects[i];
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/mac/classic/
H A Dregion.cpp328 * Set iterator rects for region
330 void wxRegionIterator::SetRects(long numRects, wxRect *rects) argument
336 if (rects)
341 m_rects[i] = rects[i];
373 // we cannot dissolve it into rects on mac

Completed in 2907 milliseconds

12