Searched refs:clip (Results 1 - 25 of 60) sorted by relevance

123

/haiku-fatelf/src/tests/kits/app/bclipboard/
H A DLockTester.cpp33 BClipboard clip("Lock1");
35 CHK(clip.Lock());
40 BClipboard *clip = (BClipboard *)data; local
41 clip->Lock();
43 delete clip;
54 BClipboard *clip = new BClipboard("Lock2"); local
63 thread_id thread = spawn_thread(LockTest2,"locktest",B_NORMAL_PRIORITY,clip);
67 CHK(clip->Lock() == false);
78 BClipboard clip("IsLocked1");
80 clip
[all...]
H A DReadWriteTester.cpp36 BClipboard clip("Clear1");
41 CPPUNIT_ASSERT_DEBUGGER(clip.Clear());
53 BClipboard clip("Clear2");
56 if ( clip.Lock() )
58 CHK(clip.Clear() == B_OK);
59 if ( (data = clip.Data()) )
72 BClipboard clip("Revert1");
77 CPPUNIT_ASSERT_DEBUGGER(clip.Revert());
89 BClipboard clip("Revert2");
94 if ( clip
[all...]
H A DBClipboardTester.cpp37 BClipboard clip(NULL);
38 CHK(strcmp(clip.Name(),"system") == 0);
50 BClipboard clip(name);
52 CHK(strcmp(clip.Name(),name) == 0);
H A DCountTester.cpp33 BClipboard clip("LocalCount1");
35 CHK(clip.LocalCount() == 0);
46 BClipboard clip("LocalCount2");
49 uint32 oldCount = clip.SystemCount();
51 if (clip.Lock()) {
52 clip.Clear();
53 if ((data = clip.Data())) {
55 clip.Commit();
57 clip.Unlock();
60 CHK(clip
[all...]
/haiku-fatelf/src/add-ons/translators/webp/libwebp/dec/
H A Dquant.c18 static inline int clip(int v, int M) { function
93 m->y1_mat_[0] = kDcTable[clip(q + dqy1_dc, 127)];
94 m->y1_mat_[1] = kAcTable[clip(q + 0, 127)];
96 m->y2_mat_[0] = kDcTable[clip(q + dqy2_dc, 127)] * 2;
98 m->y2_mat_[1] = kAcTable[clip(q + dqy2_ac, 127)] * 155 / 100;
101 m->uv_mat_[0] = kDcTable[clip(q + dquv_dc, 117)];
102 m->uv_mat_[1] = kAcTable[clip(q + dquv_ac, 127)];
/haiku-fatelf/src/documentation/docbook-xsl/slides/browser/
H A DxbStyle-nn4.js35 var clip = this.styleObj.clip;
36 var rect = new xbClipRect(clip.top, clip.right, clip.bottom, clip.left);
46 this.styleObj.clip.top = rect.top;
47 this.styleObj.clip.right = rect.right;
48 this.styleObj.clip.bottom = rect.bottom;
49 this.styleObj.clip
[all...]
H A DxbStyle-css.js35 var clip = this.getEffectiveValue('clip');
38 if (clip == 'rect()')
39 clip = '';
41 if (clip == '' || clip == 'auto')
43 clip = 'rect(0px, ' + this.getWidth() + 'px, ' + this.getHeight() + 'px, 0px)';
47 clip = clip.replace(/px /g, 'px, ');
50 return clip;
[all...]
H A Doverlay.js55 overlayH = document.overlayDiv.clip.height;
56 overlayW = body.clip.width; // document.overlayDiv.clip.width;
57 contentH = body.clip.height;
/haiku-fatelf/src/kits/tracker/
H A DFSClipboard.cpp121 BMessage* clip = be_clipboard->Data(); local
122 if (clip != NULL) {
133 if (clip->GetInfo(B_REF_TYPE, 0, &refName, &type, &count) == B_OK
134 && clip->GetInfo(B_INT32_TYPE, 0, &modeName, &type, &count)
222 BMessage* clip = be_clipboard->Data(); local
223 if (clip != NULL) {
242 if (clip->AddInt32(modeName, (int32)moveMode) == B_OK) {
243 if (clip->AddRef(refName, model->EntryRef()) == B_OK) {
253 clip->RemoveName(modeName);
256 if (clip
327 BMessage* clip = be_clipboard->Data(); local
375 BMessage* clip = be_clipboard->Data(); local
537 BMessage* clip = be_clipboard->Data(); local
681 BMessage* clip = be_clipboard->Data(); local
[all...]
/haiku-fatelf/src/bin/
H A Dclipboard.cpp167 fprintf(stderr, "%s: Could not read clip: %s\n", kProgramName, strerror(status));
171 // load clip into clipboard
179 BMessage *clip = be_clipboard->Data(); local
180 *clip = clipFromFile;
206 // get clip
212 BMessage *clip = be_clipboard->Data(); local
216 // flatten clip to file
217 status = clip->Flatten(&file);
248 BMessage *clip = be_clipboard->Data(); local
251 clip
305 BMessage *clip = be_clipboard->Data(); local
[all...]
/haiku-fatelf/src/kits/shared/
H A DColorQuantizer.cpp35 clip(float component) function
133 table[j].r = clip((float)nr / ns);
134 table[j].g = clip((float)ng / ns);
135 table[j].b = clip((float)nb / ns);
136 table[j].a = clip((float)na / ns);
265 table[*_index].r = clip((float)node->sumR / node->pixelCount);
266 table[*_index].g = clip((float)node->sumG / node->pixelCount);
267 table[*_index].b = clip((float)node->sumB / node->pixelCount);
268 table[*_index].a = clip((float)node->sumA / node->pixelCount);
/haiku-fatelf/src/add-ons/opengl/swpipe/
H A DSoftwareRenderer.cpp186 clipping_rect *clip = &fInfo->clip_list[i]; local
187 int32 height = clip->bottom - clip->top + 1;
189 = (clip->right - clip->left + 1) * bytesPerPixel;
191 uint8 *p = (uint8 *)fInfo->bits + clip->top
192 * fInfo->bytes_per_row + clip->left * bytesPerPixel;
194 + (clip->top - fInfo->window_bounds.top) * bytesPerRow
195 + (clip->left - fInfo->window_bounds.left) * bytesPerPixel;
/haiku-fatelf/src/apps/showimage/
H A DShowImageApp.cpp229 BMessage* clip = be_clipboard->Data(); local
230 if (clip != NULL) {
231 dataAvailable = clip->HasMessage("image/bitmap")
232 || clip->HasMessage("image/x-be-bitmap");
/haiku-fatelf/src/add-ons/translators/hpgs/lib/
H A Dhpgsscanline.c1859 /*! Sets the intersection of the given scanlines \c orig and \c clip
1862 visible segments of \c clip and adds them to \c res.
1874 const hpgs_paint_scanline *clip,
1887 while (io < orig->n_points && ic < clip->n_points)
1892 if (clip->points[ic].x < x) x = clip->points[ic].x;
1900 while (ic < clip->n_points && x == clip->points[ic].x)
1902 cwind += clip->points[ic].order;
1923 /*! Sets the intersection of the given scanlines \c orig and \c clip
1872 hpgs_paint_scanline_clip(hpgs_paint_scanline *res, const hpgs_paint_scanline *orig, const hpgs_paint_scanline *clip, hpgs_bool winding) argument
1939 hpgs_paint_scanline_clip_alpha(hpgs_paint_scanline *res, const hpgs_paint_scanline *orig, const hpgs_paint_scanline *clip, hpgs_bool winding) argument
2057 hpgs_paint_clipper_clip(const hpgs_paint_clipper *orig, const hpgs_paint_clipper *clip, hpgs_bool winding) argument
2111 scanline_emit_0(hpgs_image *image, double llx, double urx, int iy, const hpgs_paint_scanline *img, const hpgs_paint_scanline *clip, const hpgs_paint_color *c, hpgs_bool winding, hpgs_bool stroke) argument
2197 scanline_emit_alpha(hpgs_image *image, double llx, double urx, int iy, const hpgs_paint_scanline *img, const hpgs_paint_scanline *clip, const hpgs_paint_color *c, hpgs_bool winding) argument
2388 hpgs_paint_clipper_emit(hpgs_image *image, const hpgs_paint_clipper *img, const hpgs_paint_clipper *clip, const hpgs_paint_color *c, hpgs_bool winding, hpgs_bool stroke) argument
[all...]
H A Dhpgspaint.h101 /*!< A stack of mappings of the clip path' of onto the defined scanlines. */
104 int current_clipper; /*!< The position of the current clip path in \c clippers. */
106 /*!< The current depth of the clip stack, i.e. the number of time
260 const hpgs_paint_clipper *clip,
272 const hpgs_paint_clipper *clip,
H A Dhpgspaint.c122 const hpgs_paint_clipper *clip = pdv->clippers[pdv->current_clipper]; local
129 pdv->path_clipper,clip,
189 return hpgs_set_error(hpgs_i18n("Maximum clip depth of %d exceeded."),
443 // Initial dimension of clip segments is 4.
448 return hpgs_set_error(hpgs_i18n("setplotsize: Out of memory allocating clip clipper."));
451 return hpgs_set_error(hpgs_i18n("setplotsize: Out of memory initializing clip clipper."));
571 // Initial dimesion of clip segments is 4.
638 /*! Fills the intersection of the given path with the current clip
656 const hpgs_paint_clipper *clip = pdv->clippers[pdv->current_clipper]; local
662 pdv->path_clipper,clip,
694 const hpgs_paint_clipper *clip = pdv->clippers[pdv->current_clipper]; local
[all...]
/haiku-fatelf/src/apps/diskprobe/
H A DFindWindow.cpp245 BMessage* clip = clipboard->Data(); local
246 if (clip == NULL)
249 if (clip->HasData(B_FILE_MIME_TYPE, B_MIME_TYPE)
250 || clip->HasData("text/plain", B_MIME_TYPE))
273 BMessage* clip = clipboard->Data(); local
274 if (clip == NULL)
284 clip->AddData(B_FILE_MIME_TYPE, B_MIME_TYPE, data, dataSize);
287 clip->AddData("text/plain", B_MIME_TYPE, data, dataSize);
308 BMessage* clip = clipboard->Data(); local
309 if (clip
325 BMessage* clip = clipboard->Data(); local
[all...]
/haiku-fatelf/src/apps/resedit/
H A DBitmapView.cpp479 BMessage *clip = NULL, flattened; local
484 clip = be_clipboard->Data();
485 if (!clip->IsEmpty()) {
486 returnval = (clip->FindMessage("image/bitmap", &flattened) == B_OK);
491 returnval = (clip->FindString("class", &string) == B_OK && string == "BBitmap");
497 returnval = (clip->FindMessage("image/x-vnd.Be-bitmap", &flattened) == B_OK);
514 BMessage *clip = NULL, flattened; local
520 clip = be_clipboard->Data();
521 if (!clip)
527 status_t status = clip
[all...]
/haiku-fatelf/src/apps/mandelbrot/
H A Dtsb.h45 void clip(long *h, long *v);
H A Dtsb1.cpp358 void TShowBit::clip(long *h, long *v) function in class:TShowBit
393 clip(&h, &v);
414 clip(&h0, &v0);
/haiku-fatelf/src/add-ons/opengl/swrast/
H A DMesaSoftwareRenderer.cpp691 clipping_rect *clip = &fInfo->clip_list[i]; local
692 int32 height = clip->bottom - clip->top + 1;
694 = (clip->right - clip->left + 1) * bytesPerPixel;
695 uint8* p = (uint8*)fInfo->bits + clip->top
696 * fInfo->bytes_per_row + clip->left * bytesPerPixel;
698 + (clip->top - fInfo->window_bounds.top) * bytesPerRow
699 + (clip->left - fInfo->window_bounds.left)
/haiku-fatelf/src/kits/interface/textview_support/
H A DUndoBuffer.cpp105 BMessage* clip = NULL; local
111 if ((clip = clipboard->Data())) {
112 clip->AddData("text/plain", B_MIME_TYPE, fTextData, fTextLength);
114 clip->AddData("application/x-vnd.Be-text_run_array",
/haiku-fatelf/src/add-ons/translators/webp/libwebp/enc/
H A Dquant.c38 static inline int clip(int v, int m, int M) { function
170 m->y1_.q_[0] = kDcTable[clip(q + enc->dq_y1_dc_, 0, 127)];
171 m->y1_.q_[1] = kAcTable[clip(q, 0, 127)];
173 m->y2_.q_[0] = kDcTable[ clip(q + enc->dq_y2_dc_, 0, 127)] * 2;
174 m->y2_.q_[1] = kAcTable2[clip(q + enc->dq_y2_ac_, 0, 127)];
176 m->uv_.q_[0] = kDcTable[clip(q + enc->dq_uv_dc_, 0, 117)];
177 m->uv_.q_[1] = kAcTable[clip(q + enc->dq_uv_ac_, 0, 127)];
254 enc->dqm_[i].quant_ = clip(q, 0, 127);
273 dq_uv_ac = clip(dq_uv_ac, MIN_DQ_UV, MAX_DQ_UV);
278 dq_uv_dc = clip(dq_uv_d
[all...]
H A Danalysis.c154 static inline int clip(int v, int m, int M) { function
176 enc->dqm_[n].alpha_ = clip(alpha, -127, 127);
177 enc->dqm_[n].beta_ = clip(beta, 0, 255);
/haiku-fatelf/src/add-ons/opengl/swrast_legacy/
H A DMesaSoftwareRenderer.cpp884 clipping_rect *clip = &fInfo->clip_list[i]; local
885 int32 height = clip->bottom - clip->top + 1;
887 = (clip->right - clip->left + 1) * bytesPerPixel;
888 uint8* p = (uint8*)fInfo->bits + clip->top
889 * fInfo->bytes_per_row + clip->left * bytesPerPixel;
891 + (clip->top - fInfo->window_bounds.top) * bytesPerRow
892 + (clip->left - fInfo->window_bounds.left)

Completed in 153 milliseconds

123