Home
last modified time | relevance | path

Searched refs:probas (Results 1 – 9 of 9) sorted by relevance

/external/webp/src/enc/
Dtree_enc.c157 VP8EncProba* const probas = &enc->proba_; in VP8DefaultProbas() local
158 probas->use_skip_proba_ = 0; in VP8DefaultProbas()
159 memset(probas->segments_, 255u, sizeof(probas->segments_)); in VP8DefaultProbas()
160 memcpy(probas->coeffs_, VP8CoeffsProba0, sizeof(VP8CoeffsProba0)); in VP8DefaultProbas()
163 probas->dirty_ = 1; in VP8DefaultProbas()
335 const uint8_t* const probas = kBModesProba[top_pred[x]][left]; in VP8CodeIntraModes() local
336 left = PutI4Mode(bw, preds[x], probas); in VP8CodeIntraModes()
485 void VP8WriteProbas(VP8BitWriter* const bw, const VP8EncProba* const probas) { in VP8WriteProbas() argument
491 const uint8_t p0 = probas->coeffs_[t][b][c][p]; in VP8WriteProbas()
500 if (VP8PutBitUniform(bw, probas->use_skip_proba_)) { in VP8WriteProbas()
[all …]
Dframe_enc.c214 uint8_t* const probas = enc->proba_.segments_; in SetSegmentProbas() local
215 probas[0] = GetProba(p[0] + p[1], p[2] + p[3]); in SetSegmentProbas()
216 probas[1] = GetProba(p[0], p[1]); in SetSegmentProbas()
217 probas[2] = GetProba(p[2], p[3]); in SetSegmentProbas()
220 (probas[0] != 255) || (probas[1] != 255) || (probas[2] != 255); in SetSegmentProbas()
223 p[0] * (VP8BitCost(0, probas[0]) + VP8BitCost(0, probas[1])) + in SetSegmentProbas()
224 p[1] * (VP8BitCost(0, probas[0]) + VP8BitCost(1, probas[1])) + in SetSegmentProbas()
225 p[2] * (VP8BitCost(1, probas[0]) + VP8BitCost(0, probas[2])) + in SetSegmentProbas()
226 p[3] * (VP8BitCost(1, probas[0]) + VP8BitCost(1, probas[2])); in SetSegmentProbas()
Dtoken_enc.c201 const uint8_t* const probas, int final_pass) { in VP8EmitTokens() argument
215 VP8PutBit(bw, bit, probas[token & 0x3fffu]); in VP8EmitTokens()
226 size_t VP8EstimateTokenSize(VP8TBuffer* const b, const uint8_t* const probas) { in VP8EstimateTokenSize() argument
241 size += VP8BitCost(bit, probas[token & 0x3fffu]); in VP8EstimateTokenSize()
Dvp8i_enc.h333 const uint8_t* const probas, int final_pass);
340 size_t VP8EstimateTokenSize(VP8TBuffer* const b, const uint8_t* const probas);
426 void VP8WriteProbas(VP8BitWriter* const bw, const VP8EncProba* const probas);
Dcost_enc.c42 static int VariableLevelCost(int level, const uint8_t probas[NUM_PROBAS]) { in VariableLevelCost()
49 cost += VP8BitCost(bits & 1, probas[i]); in VariableLevelCost()
Dquant_enc.c593 const ProbaArray* const probas = enc->proba_.coeffs_[coeff_type]; in TrellisQuantizeBlock() local
608 const int last_proba = probas[VP8EncBands[first]][ctx0][0]; in TrellisQuantizeBlock()
706 (n < 15) ? VP8BitCost(0, probas[band][ctx][0]) : 0; in TrellisQuantizeBlock()
/external/libvpx/libvpx/test/
Dvp9_boolcoder_test.cc33 uint8_t probas[kBitsToTest]; in TEST() local
38 probas[i] = in TEST()
65 vpx_write(&bw, bit, static_cast<int>(probas[i])); in TEST()
85 GTEST_ASSERT_EQ(vpx_read(&br, probas[i]), bit) in TEST()
Dvp8_boolcoder_test.cc60 uint8_t probas[kBitsToTest]; in TEST() local
65 probas[i] = in TEST()
92 vp8_encode_bool(&bw, bit, static_cast<int>(probas[i])); in TEST()
111 GTEST_ASSERT_EQ(vp8dx_decode_bool(&br, probas[i]), bit) in TEST()
/external/libaom/libaom/test/
Dboolcoder_test.cc34 uint8_t probas[kBitsToTest]; in TEST() local
39 probas[i] = in TEST()
66 aom_write(&bw, bit, static_cast<int>(probas[i])); in TEST()
80 GTEST_ASSERT_EQ(aom_read(&br, probas[i], NULL), bit) in TEST()