Buckets:

soixantesept's picture
download
raw
376 Bytes
#include "PredictorBlock.hpp"
#include "ArithmeticEncoder.hpp"
PredictorBlock::PredictorBlock(Shared* const sh) : Predictor(sh), mixerFactory(sh), contextModelBlock(sh, &mixerFactory) {}
uint32_t PredictorBlock::p() {
uint32_t pr = contextModelBlock.p(); // pr is 12 bits
pr <<= (ArithmeticEncoder::PRECISION - 12); // scale up for the arithmetic encoder
return pr;
}

Xet Storage Details

Size:
376 Bytes
·
Xet hash:
5640a14289a5358b895dbdb72b51760119e11e62ed2a3e250b5c7b6f95f5dbaf

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.