Home
last modified time | relevance | path

Searched refs:windowSize (Results 1 – 25 of 56) sorted by relevance

123

/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz77support/
DParameters.java46 public static Builder builder(int windowSize) { in builder() argument
47 return new Builder(windowSize); in builder()
54 private final int windowSize; field in Parameters.Builder
59 private Builder(int windowSize) { in Builder() argument
60 if (windowSize < 2 || !isPowerOfTwo(windowSize)) { in Builder()
63 this.windowSize = windowSize; in Builder()
65 maxBackReferenceLength = windowSize - 1; in Builder()
66 maxOffset = windowSize - 1; in Builder()
67 maxLiteralLength = windowSize; in Builder()
90 if (windowSize < this.minBackReferenceLength) { in withMinBackReferenceLength()
[all …]
DAbstractLZ77CompressorInputStream.java81 private final int windowSize; field in AbstractLZ77CompressorInputStream
134 …public AbstractLZ77CompressorInputStream(final InputStream is, int windowSize) throws IOException { in AbstractLZ77CompressorInputStream() argument
136 this.windowSize = windowSize; in AbstractLZ77CompressorInputStream()
137 buf = new byte[3 * windowSize]; in AbstractLZ77CompressorInputStream()
185 int len = Math.min(windowSize, data.length); in prefill()
256 if (readIndex > 2 * windowSize) { in readFromBuffer()
265 System.arraycopy(buf, windowSize, buf, 0, windowSize * 2); in slideBuffer()
266 writeIndex -= windowSize; in slideBuffer()
267 readIndex -= windowSize; in slideBuffer()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/
DDescriptiveStatistics.java74 protected int windowSize = INFINITE_WINDOW; field in DescriptiveStatistics
159 if (windowSize != INFINITE_WINDOW) { in addValue()
160 if (getN() == windowSize) { in addValue()
162 } else if (getN() < windowSize) { in addValue()
309 return windowSize; in getWindowSize()
321 public void setWindowSize(int windowSize) { in setWindowSize() argument
322 if (windowSize < 1) { in setWindowSize()
323 if (windowSize != INFINITE_WINDOW) { in setWindowSize()
325 LocalizedFormats.NOT_POSITIVE_WINDOW_SIZE, windowSize); in setWindowSize()
329 this.windowSize = windowSize; in setWindowSize()
[all …]
DSynchronizedDescriptiveStatistics.java129 public synchronized void setWindowSize(int windowSize) { in setWindowSize() argument
130 super.setWindowSize(windowSize); in setWindowSize()
/external/angle/src/libANGLE/renderer/d3d/d3d11/winrt/
DCoreWindowNativeWindow.h42 HRESULT scaleSwapChain(const Size &windowSize, const RECT &clientRect) override;
78 ABI::Windows::Foundation::Size windowSize; in IFACEMETHOD() local
79 if (SUCCEEDED(sizeChangedEventArgs->get_Size(&windowSize))) in IFACEMETHOD()
81 Size windowSizeInPixels = {ConvertDipsToPixels(windowSize.Width), in IFACEMETHOD()
82 ConvertDipsToPixels(windowSize.Height)}; in IFACEMETHOD()
95 Size *windowSize);
DSwapChainPanelNativeWindow.cpp326 HRESULT SwapChainPanelNativeWindow::scaleSwapChain(const Size &windowSize, const RECT &clientRect) in scaleSwapChain() argument
328 Size renderScale = {windowSize.Width / (float)clientRect.right, in scaleSwapChain()
329 windowSize.Height / (float)clientRect.bottom}; in scaleSwapChain()
348 Size *windowSize) in GetSwapChainPanelSize() argument
355 [uiElement, windowSize] { return uiElement->get_RenderSize(windowSize); }, dispatcher); in GetSwapChainPanelSize()
DCoreWindowNativeWindow.cpp193 inline HRESULT CoreWindowNativeWindow::scaleSwapChain(const Size &windowSize, in scaleSwapChain() argument
202 Size *windowSize) in GetCoreWindowSizeInPixels() argument
208 *windowSize = {ConvertDipsToPixels(bounds.Width), ConvertDipsToPixels(bounds.Height)}; in GetCoreWindowSizeInPixels()
DSwapChainPanelNativeWindow.h34 HRESULT scaleSwapChain(const Size &windowSize, const RECT &clientRect) override;
94 Size *windowSize);
/external/adhd/scripts/mic_testing/frontend/
Drecorder.js124 var windowSize = 10, windowSum = 0, i;
126 for (i = 0; i < freqList.length && i < windowSize; i++) {
129 if (checkFreq(windowSum / Math.min(windowSize, freqList.length))) {
134 windowSum = windowSum + freqList[i][0] - freqList[i - windowSize][0];
135 if (checkFreq(windowSum / windowSize)) {
167 var windowSize = 10, windowSum;
176 for (j = scanRange[i][0], k = 0; k < windowSize && j != scanRange[i][1];
182 freqList[j - scanRange[i][2] * windowSize][0];
183 var avg = windowSum / windowSize;
/external/lzma/Java/SevenZip/Compression/LZ/
DOutWindow.java15 public void Create(int windowSize) in Create() argument
17 if (_buffer == null || _windowSize != windowSize) in Create()
18 _buffer = new byte[windowSize]; in Create()
19 _windowSize = windowSize; in Create()
/external/lzma/CS/7zip/Compress/LZ/
DLzOutWindow.cs15 public void Create(uint windowSize) in Create() argument
17 if (_windowSize != windowSize) in Create()
20 _buffer = new byte[windowSize]; in Create()
22 _windowSize = windowSize; in Create()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/lz77support/
DParametersTest.java122 private static Parameters newParameters(int windowSize) { in newParameters() argument
123 return Parameters.builder(windowSize).build(); in newParameters()
126 …private static Parameters newParameters(int windowSize, int minBackReferenceLength, int maxBackRef… in newParameters() argument
128 return Parameters.builder(windowSize) in newParameters()
DLZ77CompressorTest.java338 private static Parameters newParameters(int windowSize) { in newParameters() argument
339 return Parameters.builder(windowSize).build(); in newParameters()
342 …private static Parameters newParameters(int windowSize, int minBackReferenceLength, int maxBackRef… in newParameters() argument
344 return Parameters.builder(windowSize) in newParameters()
/external/swiftshader/tests/VulkanWrapper/
DWindow.cpp19 Window::Window(vk::Instance instance, vk::Extent2D windowSize) in Window() argument
43 Window::Window(vk::Instance instance, vk::Extent2D windowSize) in Window() argument
67 windowRect.right = (long)windowSize.width; in Window()
68 windowRect.bottom = (long)windowSize.height; in Window()
DWindow.hpp29 Window(vk::Instance instance, vk::Extent2D windowSize);
44 Window(vk::Instance instance, vk::Extent2D windowSize);
DDrawTester.cpp66 window.reset(new Window(instance, windowSize)); in initialize()
377 renderPassBeginInfo.renderArea.extent = windowSize; in createCommandBuffers()
383 …k::Viewport viewport(0.0f, 0.0f, static_cast<float>(windowSize.width), static_cast<float>(windowSi… in createCommandBuffers()
386 vk::Rect2D scissor(vk::Offset2D(0, 0), windowSize); in createCommandBuffers()
/external/zstd/tests/fuzz/
Dsequence_compression_api.c144 uint32_t windowSize = 1 << windowLog; in generateRandomSequences() local
156 offsetBound = bytesGenerated > windowSize ? windowSize : bytesGenerated + dictSize; in generateRandomSequences()
158 if (dictSize > 0 && bytesGenerated <= windowSize) { in generateRandomSequences()
163 size_t bytesToReachWindowSize = windowSize - bytesGenerated; in generateRandomSequences()
165 uint32_t newOffsetBound = offsetBound > windowSize ? windowSize : offsetBound; in generateRandomSequences()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DAccelerometerFragment.java152 static List<Entry> smoothEntries(List<Entry> entries, int windowSize) { in smoothEntries() argument
154 for (int i = windowSize; i < entries.size() - windowSize; i++) { in smoothEntries()
157 for (int j = i - windowSize; j <= i + windowSize; j++) { in smoothEntries()
158 avg += entries.get(j).getY() / (2 * windowSize + 1); in smoothEntries()
/external/zstd/lib/decompress/
Dzstd_decompress.c287 U64 windowSize = 0; in ZSTD_getFrameHeader_advanced() local
297 windowSize = (1ULL << windowLog); in ZSTD_getFrameHeader_advanced()
298 windowSize += (windowSize >> 3) * (wlByte&7); in ZSTD_getFrameHeader_advanced()
316 if (singleSegment) windowSize = frameContentSize; in ZSTD_getFrameHeader_advanced()
320 zfhPtr->windowSize = windowSize; in ZSTD_getFrameHeader_advanced()
321 zfhPtr->blockSizeMax = (unsigned) MIN(windowSize, ZSTD_BLOCKSIZE_MAX); in ZSTD_getFrameHeader_advanced()
1529 size_t ZSTD_decodingBufferSize_min(unsigned long long windowSize, unsigned long long frameContentSi… in ZSTD_decodingBufferSize_min() argument
1531 size_t const blockSize = (size_t) MIN(windowSize, ZSTD_BLOCKSIZE_MAX); in ZSTD_decodingBufferSize_min()
1532 unsigned long long const neededRBSize = windowSize + blockSize + (WILDCOPY_OVERLENGTH * 2); in ZSTD_decodingBufferSize_min()
1540 size_t ZSTD_estimateDStreamSize(size_t windowSize) in ZSTD_estimateDStreamSize() argument
[all …]
Dzstd_decompress_block.c1057 size_t const windowSize = dctx->fParams.windowSize; in ZSTD_dictionaryIsActive() local
1065 if ((size_t)(oLitEnd - prefixStart) >= windowSize) return 0; in ZSTD_dictionaryIsActive()
1077 size_t const windowSize = dctx->fParams.windowSize; in ZSTD_assertValidSequence() local
1089 assert(seq.offset <= windowSize + dictSize); in ZSTD_assertValidSequence()
1092 assert(seq.offset <= windowSize); in ZSTD_assertValidSequence()
1460 …Offset = (ZSTD_longOffset_e)(MEM_32bits() && (!frame || (dctx->fParams.windowSize > (1ULL << STREA… in ZSTD_decompressBlock_internal()
1494 && (!frame || (dctx->fParams.windowSize > (1<<24))) in ZSTD_decompressBlock_internal()
/external/zstd/tests/
Ddecodecorpus.c192 unsigned windowSize; /* contentSize >= windowSize means single segment */ member
278 fh.windowSize = (1U << (exponent + 10)); in writeFrameHeader()
279 fh.windowSize += fh.windowSize / 8 * mantissa; in writeFrameHeader()
302 fh.windowSize = (U32) fh.contentSize; in writeFrameHeader()
355 DISPLAYLEVEL(3, " frame window size:\t%u\n", fh.windowSize); in writeFrameHeader()
690 MIN(frame->header.windowSize, in generateSequences()
693 …Dict && (RAND(seed) & 1) && i + 1 != numSequences && dataDecompressed < frame->header.windowSize) { in generateSequences()
698 if (offset > frame->header.windowSize) { in generateSequences()
707 U32 const matchLenBound = MIN(frame->header.windowSize, lenPastStart); in generateSequences()
1100 size_t const maxBlockSize = MIN(g_maxBlockSize, frame->header.windowSize); in writeBlocks()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/snappy/
DSnappyRoundtripTest.java176 …private static Parameters newParameters(int windowSize, int minBackReferenceLength, int maxBackRef… in newParameters() argument
178 return Parameters.builder(windowSize) in newParameters()
/external/deqp/external/vulkancts/modules/vulkan/wsi/
DvktWsiFullScreenExclusiveTests.cpp242 tcu::UVec2 windowSize; member
249 , windowSize (getFullScreenSize(wsiType, *display.get(), tcu::UVec2(256U, 256U))) in NativeObjects()
250 , window (createWindow(*display, windowSize)) in NativeObjects()
416 …Type, instHelper.vki, devHelper.physicalDevice, *surface, surfaceFormats[0], native.windowSize, 2); in fullScreenExclusiveTest()
/external/zstd/programs/
Dfileio.c2068 unsigned long long const windowSize = header.windowSize; in FIO_zstdErrorHelp() local
2069 … unsigned const windowLog = FIO_highbit64(windowSize) + ((windowSize & (windowSize - 1)) != 0); in FIO_zstdErrorHelp()
2072 srcFileName, windowSize, prefs->memLimit); in FIO_zstdErrorHelp()
2074 … unsigned const windowMB = (unsigned)((windowSize >> 20) + ((windowSize & ((1 MB) - 1)) != 0)); in FIO_zstdErrorHelp()
2075 assert(windowSize < (U64)(1ULL << 52)); /* ensure now overflow for windowMB */ in FIO_zstdErrorHelp()
2789 U64 windowSize; member
2849 info->windowSize = header.windowSize; in FIO_analyzeFrames()
2938 double const windowSizeUnit = (double)info->windowSize / unit; in displayInfo()
2964 (unsigned long long)info->windowSize); in displayInfo()
/external/skia/src/core/
DSkBlurMask.cpp515 int windowSize = SkScalarCeilToInt(sigma*6); in BlurGroundTruth() local
517 windowSize |= 1; in BlurGroundTruth()
519 SkAutoTMalloc<float> gaussWindow(windowSize); in BlurGroundTruth()
521 int halfWindow = windowSize >> 1; in BlurGroundTruth()

123