Home
last modified time | relevance | path

Searched refs:fBuffer (Results 1 – 25 of 109) sorted by relevance

12345

/external/dng_sdk/source/
Ddng_ref_counted_block.cpp26 : fBuffer (NULL) in dng_ref_counted_block()
36 : fBuffer (NULL) in dng_ref_counted_block()
63 fBuffer = malloc (size + sizeof (header)); in Allocate()
65 if (!fBuffer) in Allocate()
72 new (fBuffer) header (size); in Allocate()
83 if (fBuffer) in Clear()
89 header *blockHeader = (struct header *)fBuffer; in Clear()
104 free (fBuffer); in Clear()
108 fBuffer = NULL; in Clear()
117 : fBuffer (NULL) in dng_ref_counted_block()
[all …]
Ddng_simple_image.cpp44 fBuffer = dng_pixel_buffer (bounds, 0, planes, pixelType, pcInterleaved, fMemory->Buffer ()); in dng_simple_image()
65 result->fBuffer.CopyArea (fBuffer, in Clone()
81 fBuffer.fPixelType = pixelType; in SetPixelType()
96 fBuffer.fData = fBuffer.DirtyPixel (r.t, r.l); in Trim()
98 fBuffer.fArea = fBounds; in Trim()
110 int32 colStep = fBuffer.fColStep; in Rotate()
111 int32 rowStep = fBuffer.fRowStep; in Rotate()
147 fBuffer.fData = fBuffer.DirtyPixel (originV, originH); in Rotate()
149 fBuffer.fColStep = colStep; in Rotate()
150 fBuffer.fRowStep = rowStep; in Rotate()
[all …]
Ddng_memory.cpp26 : fBuffer (NULL) in dng_memory_data()
36 : fBuffer (NULL) in dng_memory_data()
48 : fBuffer (NULL) in dng_memory_data()
75 fBuffer = (char*)malloc (size); in Allocate()
77 if (!fBuffer) in Allocate()
113 if (fBuffer) in Clear()
116 free (fBuffer); in Clear()
118 fBuffer = NULL; in Clear()
Ddng_memory.h44 char *fBuffer;
98 return fBuffer; in Buffer()
106 return fBuffer; in Buffer()
293 char *fBuffer; variable
299 , fBuffer (NULL) in dng_memory_block()
336 fBuffer = (char *) ((((uintptr) p) + 15) & ~((uintptr) 15)); in SetBuffer()
360 return fBuffer; in Buffer()
368 return fBuffer; in Buffer()
/external/skia/src/gpu/
DGrBufferAllocPool.cpp41 for (; i < fMaxBuffersToCache && fBuffers[i].fBuffer; ++i) { in makeBuffer()
42 SkASSERT(fBuffers[i].fBuffer->size() == kDefaultBufferSize); in makeBuffer()
43 if (fBuffers[i].fBuffer->unique()) { in makeBuffer()
48 fBuffers[i].fBuffer = GrCpuBuffer::Make(size); in makeBuffer()
54 tempResult.fBuffer = GrCpuBuffer::Make(size); in makeBuffer()
59 memset(result->fBuffer->data(), 0, result->fBuffer->size()); in makeBuffer()
61 return result->fBuffer; in makeBuffer()
65 for (int i = 0; i < fMaxBuffersToCache && fBuffers[i].fBuffer; ++i) { in releaseAll()
66 fBuffers[i].fBuffer.reset(); in releaseAll()
83 (float)((block).fBytesFree) / (block).fBuffer->size()); \
[all …]
DGrStagingBufferManager.h24 : fBuffer(buffer), fOffset(offset), fOffsetMapPtr(offsetMapPtr) {} in Slice()
25 GrGpuBuffer* fBuffer = nullptr; member
43 fBuffers[i].fBuffer->unmap(); in reset()
53 : fBuffer(std::move(buffer)) in StagingBuffer()
56 sk_sp<GrGpuBuffer> fBuffer; member
60 size_t remaining() { return fBuffer->size() - fOffset; } in remaining()
/external/icu/icu4c/source/common/
Dunistrappender.h49 if (fIdx == UPRV_LENGTHOF(fBuffer)) { in append()
50 fDest->append(fBuffer, 0, fIdx); in append()
53 fBuffer[fIdx++] = x; in append()
57 if (fIdx >= UPRV_LENGTHOF(fBuffer) - 1) { in append()
58 fDest->append(fBuffer, 0, fIdx); in append()
61 U16_APPEND_UNSAFE(fBuffer, fIdx, x); in append()
69 fDest->append(fBuffer, 0, fIdx); in flush()
83 UChar fBuffer[32]; variable
/external/icu/libicu/cts_headers/
Dunistrappender.h49 if (fIdx == UPRV_LENGTHOF(fBuffer)) { in append()
50 fDest->append(fBuffer, 0, fIdx); in append()
53 fBuffer[fIdx++] = x; in append()
57 if (fIdx >= UPRV_LENGTHOF(fBuffer) - 1) { in append()
58 fDest->append(fBuffer, 0, fIdx); in append()
61 U16_APPEND_UNSAFE(fBuffer, fIdx, x); in append()
69 fDest->append(fBuffer, 0, fIdx); in flush()
83 UChar fBuffer[32]; variable
Dnumparse_types.h64 fBuffer[0] = 0; in CompactUnicodeString()
68 : fBuffer(text.length() + 1, status) { in CompactUnicodeString()
70 uprv_memcpy(fBuffer.getAlias(), text.getBuffer(), sizeof(UChar) * text.length()); in CompactUnicodeString()
71 fBuffer[text.length()] = 0; in CompactUnicodeString()
75 return UnicodeString(true, fBuffer.getAlias(), -1); in toAliasedUnicodeString()
84 MaybeStackArray<UChar, stackCapacity> fBuffer;
/external/skia/src/gpu/dawn/
DGrDawnRingBuffer.h22 : fBuffer(buffer), fOffset(offset) {} in Slice()
24 : fBuffer(nullptr), fOffset(0) {} in Slice()
26 : fBuffer(other.fBuffer), fOffset(other.fOffset) {} in Slice()
28 fBuffer = other.fBuffer;
32 wgpu::Buffer fBuffer; member
40 wgpu::Buffer fBuffer; variable
DGrDawnBuffer.cpp45 fBuffer = this->getDawnGpu()->device().CreateBuffer(&bufferDesc); in GrDawnBuffer()
48 fBuffer = this->getDawnGpu()->device().CreateBuffer(&bufferDesc); in GrDawnBuffer()
49 fMapPtr = fBuffer.GetMappedRange(); in GrDawnBuffer()
67 fStagingBuffer = static_cast<GrDawnBuffer*>(slice.fBuffer)->get(); in onMap()
85 fBuffer, 0, this->size()); in onUnmap()
87 fBuffer.Unmap(); in onUnmap()
118 fBuffer.MapAsync(wgpu::MapMode::Write, 0, 0, callback_write, this); in mapWriteAsync()
122 fBuffer.MapAsync(wgpu::MapMode::Read, 0, 0, callback_read, this); in mapReadAsync()
/external/skqp/src/gpu/
DGrBufferAllocPool.cpp33 (float)((block).fBytesFree) / (block).fBuffer->gpuMemorySize()); \
34 (block).fBuffer->unmap(); \
49 GrBuffer* buffer = fBlocks.back().fBuffer.get(); in deleteBlocks()
81 if (block.fBuffer->isMapped()) { in unmap()
84 size_t flushSize = block.fBuffer->gpuMemorySize() - block.fBytesFree; in unmap()
97 if (!fBlocks.back().fBuffer->isMapped()) { in validate()
101 SkASSERT(fBlocks.empty() || !fBlocks.back().fBuffer->isMapped()); in validate()
105 SkASSERT(!fBlocks[i].fBuffer->isMapped()); in validate()
108 if (fBlocks[i].fBuffer->wasDestroyed()) { in validate()
111 size_t bytes = fBlocks[i].fBuffer->gpuMemorySize() - fBlocks[i].fBytesFree; in validate()
[all …]
/external/skia/src/gpu/geometry/
DGrQuadBuffer.h64 , fBuffer(buffer) in Iter()
72 const T& metadata() const { this->validate(); return *(fBuffer->metadata(fCurrentEntry)); } in metadata()
88 return fBuffer->header(fCurrentEntry)->fHasLocals; in isLocalValid()
96 const GrQuadBuffer<T>* fBuffer; variable
106 SkDEBUGCODE(fBuffer->validate(fCurrentEntry, fExpectedCount);)
118 : fBuffer(list) in MetadataIter()
125 T& operator*() { this->validate(); return *(fBuffer->metadata(fCurrentEntry)); }
127 T* operator->() { this->validate(); return fBuffer->metadata(fCurrentEntry); }
130 GrQuadBuffer<T>* fBuffer;
136 SkDEBUGCODE(fBuffer->validate(fCurrentEntry, fExpectedCount);)
[all …]
/external/skia/src/sksl/
DSkSLStringStream.h21 fBuffer += (char) b; in write8()
25 fBuffer += s; in writeText()
29 fBuffer.append((const char*) s, size); in write()
33 return fBuffer.size(); in bytesWritten()
37 return fBuffer; in str()
41 fBuffer = ""; in reset()
45 String fBuffer;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUnicodeDecompressor.java93 private byte [] fBuffer = new byte [BUFSIZE]; field in UnicodeDecompressor
197 newBytes = fBuffer.length - fBufferLength; in decompress()
204 fBuffer, fBufferLength, newBytes); in decompress()
211 int count = decompress(fBuffer, 0, fBuffer.length, null, in decompress()
278 fBuffer, 0, in decompress()
330 fBuffer, 0, in decompress()
356 fBuffer, 0, in decompress()
387 fBuffer, 0, in decompress()
406 fBuffer, 0, in decompress()
442 fBuffer, 0, in decompress()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DUnicodeDecompressor.java94 private byte [] fBuffer = new byte [BUFSIZE]; field in UnicodeDecompressor
194 newBytes = fBuffer.length - fBufferLength; in decompress()
201 fBuffer, fBufferLength, newBytes); in decompress()
208 int count = decompress(fBuffer, 0, fBuffer.length, null, in decompress()
275 fBuffer, 0, in decompress()
327 fBuffer, 0, in decompress()
353 fBuffer, 0, in decompress()
384 fBuffer, 0, in decompress()
403 fBuffer, 0, in decompress()
439 fBuffer, 0, in decompress()
[all …]
/external/skia/src/gpu/ops/
DGrClearOp.cpp45 , fBuffer(buffer) { in GrClearOp()
52 if (other->fBuffer == fBuffer) { in onCombineIfPossible()
68 if (other->fBuffer & Buffer::kColor) { in onCombineIfPossible()
71 if (other->fBuffer & Buffer::kStencilClip) { in onCombineIfPossible()
74 fBuffer = Buffer::kBoth; in onCombineIfPossible()
82 if (fBuffer & Buffer::kColor) { in onExecute()
86 if (fBuffer & Buffer::kStencilClip) { in onExecute()
/external/skia/client_utils/android/
DFrontBufferedStream.cpp22 bool failedToAllocateBuffer() const { return !fBuffer; } in failedToAllocateBuffer()
49 char* fBuffer; member in __anon027e42c60111::FrontBufferedStream
100 , fBuffer(bufferSize <= kStorageSize ? fStorage in FrontBufferedStream()
104 if (fBuffer != fStorage) { in ~FrontBufferedStream()
105 free(fBuffer); in ~FrontBufferedStream()
135 memcpy(dst, fBuffer + fOffset, bytesToCopy); in readFromBuffer()
149 SkASSERT(fBuffer); in bufferAndWriteTo()
153 char* buffer = fBuffer + fOffset; in bufferAndWriteTo()
178 if (bytesReadDirectly > 0 && fBuffer != fStorage) { in readDirectlyFromStream()
179 free(fBuffer); in readDirectlyFromStream()
[all …]
/external/skqp/src/sksl/
DSkSLStringStream.h20 fBuffer += (char) b; in write8()
24 fBuffer += s; in writeText()
28 fBuffer.append((const char*) s, size); in write()
32 return fBuffer; in str()
36 fBuffer = ""; in reset()
40 String fBuffer;
/external/icu/icu4c/source/i18n/
Dnumparse_types.h64 fBuffer[0] = 0; in CompactUnicodeString()
68 : fBuffer(text.length() + 1, status) { in CompactUnicodeString()
70 uprv_memcpy(fBuffer.getAlias(), text.getBuffer(), sizeof(UChar) * text.length()); in CompactUnicodeString()
71 fBuffer[text.length()] = 0; in CompactUnicodeString()
75 return UnicodeString(true, fBuffer.getAlias(), -1); in toAliasedUnicodeString()
84 MaybeStackArray<UChar, stackCapacity> fBuffer;
/external/skqp/bench/
DMemsetBench.cpp17 , fBuffer(n) in MemsetBench()
27 SkAutoTMalloc<T> fBuffer; member in MemsetBench
33 sk_memset32(fBuffer.get(), 0xFACEB004, fN); in onDraw()
39 sk_memset16(fBuffer.get(), 0x4973, fN); in onDraw()
50 memsetT<uint32_t>(fBuffer.get(), 0xFACEB004, fN); in onDraw()
56 memsetT<uint16_t>(fBuffer.get(), 0x4973, fN); in onDraw()
/external/skqp/src/core/
DSkRWBuffer.cpp157 fBuffer = buffer; in reset()
181 if (fBuffer->fTail == fBlock) { in next()
256 SkASSERT(fGlobalOffset <= fBuffer->size()); in validate()
275 SkROBufferStreamAsset(sk_sp<SkROBuffer> buffer) : fBuffer(std::move(buffer)), fIter(fBuffer) { in SkROBufferStreamAsset()
279 size_t getLength() const override { return fBuffer->size(); } in getLength()
283 fIter.reset(fBuffer.get()); in rewind()
313 SkASSERT(fGlobalOffset <= fBuffer->size()); in read()
318 return fBuffer->size() == fGlobalOffset; in isAtEnd()
347 return new SkROBufferStreamAsset(fBuffer); in onDuplicate()
356 sk_sp<SkROBuffer> fBuffer; member in SkROBufferStreamAsset
/external/skia/tools/sk_app/android/
DRasterWindowContext_android.cpp33 ANativeWindow_Buffer fBuffer; member in __anon3ba054eb0111::RasterWindowContext_android
76 ANativeWindow_lock(fNativeWindow, &fBuffer, &fBounds); in getBackbufferSurface()
77 const int bytePerPixel = fBuffer.format == WINDOW_FORMAT_RGB_565 ? 2 : 4; in getBackbufferSurface()
83 info, fBuffer.bits, fBuffer.stride * bytePerPixel, nullptr); in getBackbufferSurface()
/external/skia/bench/
DMemsetBench.cpp17 , fBuffer(fN) in MemsetBench()
27 SkAutoTMalloc<T> fBuffer; member in MemsetBench
33 sk_memset64(fBuffer.get(), 0xFACEFACEFACEFACE, fN); in onDraw()
39 sk_memset32(fBuffer.get(), 0xFACEB004, fN); in onDraw()
45 sk_memset16(fBuffer.get(), 0x4973, fN); in onDraw()
/external/skqp/tools/sk_app/android/
DRasterWindowContext_android.cpp33 ANativeWindow_Buffer fBuffer; member in __anon8e65c6620111::RasterWindowContext_android
76 ANativeWindow_lock(fNativeWindow, &fBuffer, &fBounds); in getBackbufferSurface()
77 const int bytePerPixel = fBuffer.format == WINDOW_FORMAT_RGB_565 ? 2 : 4; in getBackbufferSurface()
83 info, fBuffer.bits, fBuffer.stride * bytePerPixel, nullptr); in getBackbufferSurface()

12345