/external/lzma/CS/7zip/Compress/RangeCoder/ |
RangeCoderBit.cs | 13 uint Prob;
15 public void Init() { Prob = kBitModelTotal >> 1; }
20 Prob += (kBitModelTotal - Prob) >> kNumMoveBits;
22 Prob -= (Prob) >> kNumMoveBits;
27 // encoder.EncodeBit(Prob, kNumBitModelTotalBits, symbol);
29 uint newBound = (encoder.Range >> kNumBitModelTotalBits) * Prob;
33 Prob += (kBitModelTotal - Prob) >> kNumMoveBits; [all...] |
/external/lzma/CPP/7zip/Compress/ |
RangeCoderBit.h | 26 UInt32 Prob;
30 Prob -= (Prob + ((symbol - 1) & ((1 << numMoveBits) - 1))) >> numMoveBits;
31 Prob += (1 - symbol) << (kNumBitModelTotalBits - numMoveBits);
34 Prob += (kBitModelTotal - Prob) >> numMoveBits;
36 Prob -= (Prob) >> numMoveBits;
39 void Init() { Prob = kBitModelTotal / 2; }
49 encoder->EncodeBit(this->Prob, kNumBitModelTotalBits, symbol); [all...] |
/external/llvm/unittests/Support/ |
BlockFrequencyTest.cpp | 13 BranchProbability Prob(UINT32_MAX - 1, UINT32_MAX); 14 Freq *= Prob; 18 Freq *= Prob; 24 BranchProbability Prob(UINT32_MAX, UINT32_MAX); 25 Freq *= Prob; 29 Freq *= Prob; 35 BranchProbability Prob(3000000, 9000000); 36 Freq *= Prob; 40 Freq *= Prob; 46 BranchProbability Prob(UINT32_MAX / 2, UINT32_MAX) [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/ |
vp9_cost.h | 22 #define vp9_cost_zero(prob) (vp9_prob_cost[prob]) 24 #define vp9_cost_one(prob) vp9_cost_zero(vp9_complement(prob)) 26 #define vp9_cost_bit(prob, bit) vp9_cost_zero((bit) ? vp9_complement(prob) \ 27 : (prob))
|
/external/libvpx/libvpx/vp9/encoder/ |
vp9_cost.h | 22 #define vp9_cost_zero(prob) (vp9_prob_cost[prob]) 24 #define vp9_cost_one(prob) vp9_cost_zero(vp9_complement(prob)) 26 #define vp9_cost_bit(prob, bit) vp9_cost_zero((bit) ? vp9_complement(prob) \ 27 : (prob))
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
vp9_cost.h | 22 #define vp9_cost_zero(prob) (vp9_prob_cost[prob]) 24 #define vp9_cost_one(prob) vp9_cost_zero(vp9_complement(prob)) 26 #define vp9_cost_bit(prob, bit) vp9_cost_zero((bit) ? vp9_complement(prob) \ 27 : (prob))
|
/external/iproute2/tc/ |
tc_red.h | 4 extern int tc_red_eval_P(unsigned qmin, unsigned qmax, double prob);
|
tc_red.c | 28 Plog = log(prob/(qmax - qmin)) 30 int tc_red_eval_P(unsigned qmin, unsigned qmax, double prob) 37 prob /= i; 40 if (prob > 1.0) 42 prob *= 2;
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/ |
eval.pass.cpp | 36 std::vector<double> prob = d.probabilities(); local 38 assert((double)u[i]/N == prob[i]); 54 std::vector<double> prob = d.probabilities(); local 56 assert((double)u[i]/N == prob[i]); 72 std::vector<double> prob = d.probabilities(); local 74 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); 90 std::vector<double> prob = d.probabilities(); 91 assert((double)u[0]/N == prob[0]); 92 assert((double)u[1]/N == prob[1]) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/ |
eval.pass.cpp | 36 std::vector<double> prob = d.probabilities(); local 38 assert((double)u[i]/N == prob[i]); 54 std::vector<double> prob = d.probabilities(); local 56 assert((double)u[i]/N == prob[i]); 72 std::vector<double> prob = d.probabilities(); local 74 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); 90 std::vector<double> prob = d.probabilities(); 91 assert((double)u[0]/N == prob[0]); 92 assert((double)u[1]/N == prob[1]) [all...] |
/external/llvm/lib/Support/ |
BlockFrequency.cpp | 21 BlockFrequency &BlockFrequency::operator*=(const BranchProbability &Prob) { 22 Frequency = Prob.scale(Frequency); 27 BlockFrequency::operator*(const BranchProbability &Prob) const { 29 Freq *= Prob; 33 BlockFrequency &BlockFrequency::operator/=(const BranchProbability &Prob) { 34 Frequency = Prob.scaleByInverse(Frequency); 38 BlockFrequency BlockFrequency::operator/(const BranchProbability &Prob) const { 40 Freq /= Prob; 56 BlockFrequency::operator+(const BlockFrequency &Prob) const { 58 Freq += Prob; [all...] |
/external/lzma/Java/SevenZip/Compression/RangeCoder/ |
Encoder.java | 104 int prob = probs[index];
local 105 int newBound = (Range >>> kNumBitModelTotalBits) * prob;
109 probs[index] = (short)(prob + ((kBitModelTotal - prob) >>> kNumMoveBits));
115 probs[index] = (short)(prob - ((prob) >>> kNumMoveBits));
139 static public int GetPrice(int Prob, int symbol)
141 return ProbPrices[(((Prob - symbol) ^ ((-symbol))) & (kBitModelTotal - 1)) >>> kNumMoveReducingBits];
143 static public int GetPrice0(int Prob)
145 return ProbPrices[Prob >>> kNumMoveReducingBits]; [all...] |
Decoder.java | 56 int prob = probs[index];
local 57 int newBound = (Range >>> kNumBitModelTotalBits) * prob;
61 probs[index] = (short)(prob + ((kBitModelTotal - prob) >>> kNumMoveBits));
73 probs[index] = (short)(prob - ((prob) >>> kNumMoveBits));
|
/external/chromium_org/third_party/lzma_sdk/ |
LzmaDec.c | 155 CLzmaProb *prob; local 160 prob = probs + IsMatch + (state << kNumPosBitsMax) + posState; 161 IF_BIT_0(prob) 164 UPDATE_0(prob); 165 prob = probs + Literal; 167 prob += (LZMA_LIT_SIZE * (((processedPos & lpMask) << lc) + 174 do { GET_BIT(prob + symbol, symbol) } while (symbol < 0x100); 188 probLit = prob + offs + bit + symbol; 199 UPDATE_1(prob); 200 prob = probs + IsRep + state 497 CLzmaProb *prob; local 509 prob = probs + Literal; local [all...] |
/external/chromium_org/third_party/ots/third_party/lzma_sdk/ |
LzmaDec.c | 156 CLzmaProb *prob; local 161 prob = probs + IsMatch + (state << kNumPosBitsMax) + posState; 162 IF_BIT_0(prob) 165 UPDATE_0(prob); 166 prob = probs + Literal; 168 prob += (LZMA_LIT_SIZE * (((processedPos & lpMask) << lc) + 175 do { GET_BIT(prob + symbol, symbol) } while (symbol < 0x100); 189 probLit = prob + offs + bit + symbol; 200 UPDATE_1(prob); 201 prob = probs + IsRep + state 498 CLzmaProb *prob; local 510 prob = probs + Literal; local [all...] |
/external/lzma/C/ |
LzmaDec.c | 155 CLzmaProb *prob;
local 160 prob = probs + IsMatch + (state << kNumPosBitsMax) + posState;
161 IF_BIT_0(prob)
164 UPDATE_0(prob);
165 prob = probs + Literal;
167 prob += (LZMA_LIT_SIZE * (((processedPos & lpMask) << lc) +
174 do { GET_BIT(prob + symbol, symbol) } while (symbol < 0x100);
188 probLit = prob + offs + bit + symbol;
199 UPDATE_1(prob);
200 prob = probs + IsRep + state; 497 CLzmaProb *prob; local 509 prob = probs + Literal; local [all...] |
Ppmd.h | 23 #define PPMD_UPDATE_PROB_0(prob) ((prob) + (1 << PPMD_INT_BITS) - PPMD_GET_MEAN(prob))
24 #define PPMD_UPDATE_PROB_1(prob) ((prob) - PPMD_GET_MEAN(prob))
|
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/decoder/ |
vp9_detokenize.c | 77 #define ADJUST_COEF(prob, bits_count) \ 79 val += (vp9_read(r, prob) << bits_count); \ 93 const vp9_prob *prob; local 108 prob = coef_probs[band][ctx]; 111 if (!vp9_read(r, prob[EOB_CONTEXT_NODE])) { 116 while (!vp9_read(r, prob[ZERO_CONTEXT_NODE])) { 125 prob = coef_probs[band][ctx]; 129 if (!vp9_read(r, prob[ONE_CONTEXT_NODE])) { 136 prob = vp9_pareto8_full[prob[PIVOT_NODE] - 1] [all...] |
/external/libvpx/libvpx/vp9/decoder/ |
vp9_detokenize.c | 77 #define ADJUST_COEF(prob, bits_count) \ 79 val += (vp9_read(r, prob) << bits_count); \ 93 const vp9_prob *prob; local 108 prob = coef_probs[band][ctx]; 111 if (!vp9_read(r, prob[EOB_CONTEXT_NODE])) { 116 while (!vp9_read(r, prob[ZERO_CONTEXT_NODE])) { 125 prob = coef_probs[band][ctx]; 129 if (!vp9_read(r, prob[ONE_CONTEXT_NODE])) { 136 prob = vp9_pareto8_full[prob[PIVOT_NODE] - 1] [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/ |
vp9_detokenize.c | 77 #define ADJUST_COEF(prob, bits_count) \ 79 val += (vp9_read(r, prob) << bits_count); \ 93 const vp9_prob *prob; local 108 prob = coef_probs[band][ctx]; 111 if (!vp9_read(r, prob[EOB_CONTEXT_NODE])) { 116 while (!vp9_read(r, prob[ZERO_CONTEXT_NODE])) { 125 prob = coef_probs[band][ctx]; 129 if (!vp9_read(r, prob[ONE_CONTEXT_NODE])) { 136 prob = vp9_pareto8_full[prob[PIVOT_NODE] - 1] [all...] |
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/ |
eval.pass.cpp | 49 std::vector<double> prob(std::begin(p), std::end(p)); 50 double s = std::accumulate(prob.begin(), prob.end(), 0.0); 51 for (int i = 0; i < prob.size(); ++i) 52 prob[i] /= s; 60 if (prob[i] == 0) 64 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01); 109 std::vector<double> prob(std::begin(p), std::end(p)); 110 double s = std::accumulate(prob.begin(), prob.end(), 0.0) [all...] |
eval_param.pass.cpp | 51 std::vector<double> prob(std::begin(p), std::end(p)); 52 double s = std::accumulate(prob.begin(), prob.end(), 0.0); 53 for (int i = 0; i < prob.size(); ++i) 54 prob[i] /= s; 62 if (prob[i] == 0) 66 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/ |
eval.pass.cpp | 49 std::vector<double> prob(std::begin(p), std::end(p)); 50 double s = std::accumulate(prob.begin(), prob.end(), 0.0); 51 for (int i = 0; i < prob.size(); ++i) 52 prob[i] /= s; 60 if (prob[i] == 0) 64 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01); 109 std::vector<double> prob(std::begin(p), std::end(p)); 110 double s = std::accumulate(prob.begin(), prob.end(), 0.0) [all...] |
eval_param.pass.cpp | 51 std::vector<double> prob(std::begin(p), std::end(p)); 52 double s = std::accumulate(prob.begin(), prob.end(), 0.0); 53 for (int i = 0; i < prob.size(); ++i) 54 prob[i] /= s; 62 if (prob[i] == 0) 66 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
|
/external/deqp/modules/glshared/ |
glsLongStressCase.hpp | 236 FeatureProbabilities& pRebuildProgram (const float prob) { rebuildProgram = prob; return *this; } 237 FeatureProbabilities& pReuploadTexture (const float prob) { reuploadTexture = prob; return *this; } 238 FeatureProbabilities& pReuploadBuffer (const float prob) { reuploadBuffer = prob; return *this; } 239 FeatureProbabilities& pReuploadWithTexImage (const float prob) { reuploadWithTexImage = prob; return *this; } 240 FeatureProbabilities& pReuploadWithBufferData (const float prob) { reuploadWithBufferData = prob; return *this; [all...] |