/external/deqp/framework/delibs/destream/ |
D | deRingbuffer.c | 54 deRingbuffer* ringbuffer = (deRingbuffer*)deCalloc(sizeof(deRingbuffer)); in deRingbuffer_create() local 56 DE_ASSERT(ringbuffer); in deRingbuffer_create() 60 ringbuffer->blockSize = blockSize; in deRingbuffer_create() 61 ringbuffer->blockCount = blockCount; in deRingbuffer_create() 62 ringbuffer->buffer = (deUint8*)deMalloc(sizeof(deUint8) * blockSize * blockCount); in deRingbuffer_create() 63 ringbuffer->blockUsage = (deInt32*)deMalloc(sizeof(deUint32) * blockCount); in deRingbuffer_create() 64 ringbuffer->emptyCount = deSemaphore_create(ringbuffer->blockCount, DE_NULL); in deRingbuffer_create() 65 ringbuffer->fullCount = deSemaphore_create(0, DE_NULL); in deRingbuffer_create() 67 if (!ringbuffer->buffer || in deRingbuffer_create() 68 !ringbuffer->blockUsage || in deRingbuffer_create() [all …]
|
D | deThreadStream.c | 31 deRingbuffer* ringbuffer; member 41 deRingbuffer* ringbuffer; member 78 deRingbuffer_stop(threadStream->ringbuffer); in inStreamCopy() 110 deRingbuffer_stop(threadStream->ringbuffer); in threadStream_deinit() 118 deRingbuffer_destroy(threadStream->ringbuffer); in threadStream_deinit() 139 threadStream->ringbuffer = deRingbuffer_create(ringbufferBlockSize, ringbufferBlockCount); in deThreadInStream_init() 140 DE_ASSERT(threadStream->ringbuffer); in deThreadInStream_init() 144 deProducerStream_init(&(threadStream->producerStream), threadStream->ringbuffer); in deThreadInStream_init() 145 deConsumerStream_init(&(threadStream->consumerStream), threadStream->ringbuffer); in deThreadInStream_init() 197 threadStream->ringbuffer = deRingbuffer_create(ringbufferBlockSize, ringbufferBlockCount); in deThreadOutStream_init() [all …]
|
D | deRingbuffer.h | 39 void deRingbuffer_stop (deRingbuffer* ringbuffer); 40 void deRingbuffer_destroy (deRingbuffer* ringbuffer);
|
/external/chromium_org/third_party/brotli/src/brotli/enc/ |
D | backward_references.cc | 29 const uint8_t* ringbuffer, in CreateBackwardReferences() argument 70 ringbuffer, literal_cost, ringbuffer_mask, in CreateBackwardReferences() 81 hasher->Store(ringbuffer + i, i + i_diff); in CreateBackwardReferences() 102 hasher->Store(ringbuffer + i, i + i_diff); in CreateBackwardReferences() 104 ringbuffer, literal_cost, ringbuffer_mask, in CreateBackwardReferences() 165 hasher->Store(ringbuffer + i, i + i_diff); in CreateBackwardReferences() 174 ringbuffer, literal_cost, ringbuffer_mask, in CreateBackwardReferences() 190 hasher->Store(ringbuffer + i, i + i_diff); in CreateBackwardReferences() 196 hasher->Store(ringbuffer + i, i + i_diff); in CreateBackwardReferences() 213 hasher->Store(ringbuffer + i, i + i_diff); in CreateBackwardReferences() [all …]
|
D | histogram.cc | 34 const uint8_t* ringbuffer, in BuildHistograms() argument 51 uint8_t prev_byte = pos > 0 ? ringbuffer[(pos - 1) & mask] : 0; in BuildHistograms() 52 uint8_t prev_byte2 = pos > 1 ? ringbuffer[(pos - 2) & mask] : 0; in BuildHistograms() 55 (*literal_histograms)[context].Add(ringbuffer[pos & mask]); in BuildHistograms() 71 const uint8_t* ringbuffer, in BuildLiteralHistogramsForBlockType() argument 83 uint8_t prev_byte = pos > 0 ? ringbuffer[(pos - 1) & mask] : 0; in BuildLiteralHistogramsForBlockType() 84 uint8_t prev_byte2 = pos > 1 ? ringbuffer[(pos - 2) & mask] : 0; in BuildLiteralHistogramsForBlockType() 86 (*histograms)[context].Add(ringbuffer[pos & mask]); in BuildLiteralHistogramsForBlockType()
|
D | histogram.h | 94 const uint8_t* ringbuffer, 105 const uint8_t* ringbuffer,
|
D | encode.cc | 638 int ringbuffer[2] = { 0, 1 }; in ComputeBlockTypeShortCodes() local 643 if (type == ringbuffer[index & 1]) { in ComputeBlockTypeShortCodes() 645 } else if (type == ringbuffer[(index - 1) & 1] + 1) { in ComputeBlockTypeShortCodes() 650 ringbuffer[index & 1] = type; in ComputeBlockTypeShortCodes() 721 const uint8_t* ringbuffer, in BuildMetaBlock() argument 734 &ringbuffer[pos & mask], in BuildMetaBlock() 757 ringbuffer, in BuildMetaBlock() 796 const uint8_t* ringbuffer, in StoreMetaBlock() argument 850 uint8_t prev_byte = *pos > 0 ? ringbuffer[(*pos - 1) & mask] : 0; in StoreMetaBlock() 851 uint8_t prev_byte2 = *pos > 1 ? ringbuffer[(*pos - 2) & mask] : 0; in StoreMetaBlock() [all …]
|
D | backward_references.h | 30 const uint8_t* ringbuffer,
|
/external/chromium_org/third_party/brotli/src/brotli/dec/ |
D | decode.c | 326 static int TranslateShortCodes(int code, int* ringbuffer, int index) { in TranslateShortCodes() argument 331 val = ringbuffer[index] + kDistanceShortCodeValueOffset[code]; in TranslateShortCodes() 480 int* ringbuffer = ringbuffers + tree_type * 2; in DecodeBlockType() local 485 block_type = ringbuffer[*index & 1]; in DecodeBlockType() 487 block_type = ringbuffer[(*index - 1) & 1] + 1; in DecodeBlockType() 495 ringbuffer[(*index) & 1] = block_type; in DecodeBlockType() 548 uint8_t* ringbuffer, int ringbuffer_mask, in CopyUncompressedBlockToOutput() argument 551 uint8_t* ringbuffer_end = ringbuffer + rb_size; in CopyUncompressedBlockToOutput() 562 ringbuffer[rb_pos++]= (uint8_t)BrotliReadBits(br, 8); in CopyUncompressedBlockToOutput() 564 if (BrotliWrite(output, ringbuffer, (size_t)rb_size) < rb_size) { in CopyUncompressedBlockToOutput() [all …]
|
/external/chromium_org/third_party/brotli/src/brotli/ |
D | brotlispec.txt | 594 not pushed to the ringbuffer of last distances.
|