/third_party/skia/third_party/externals/libwebp/src/enc/ |
H A D | predictor_enc.c | 150 static uint8_t NearLosslessComponent(uint8_t value, uint8_t predict, in NearLosslessComponent() argument 152 const int residual = (value - predict) & 0xff; in NearLosslessComponent() 153 const int boundary_residual = (boundary - predict) & 0xff; in NearLosslessComponent() 187 // value and predict have undergone subtract green, which means that red and 189 static uint32_t NearLossless(uint32_t value, uint32_t predict, in NearLossless() argument 197 return VP8LSubPixels(value, predict); in NearLossless() 205 a = NearLosslessDiff((value >> 24) & 0xff, (predict >> 24) & 0xff); in NearLossless() 207 a = NearLosslessComponent(value >> 24, predict >> 24, 0xff, quantization); in NearLossless() 209 g = NearLosslessComponent((value >> 8) & 0xff, (predict >> 8) & 0xff, 0xff, in NearLossless() 214 new_green = ((predict >> in NearLossless() 245 uint32_t predict; GetResidual() local [all...] |
H A D | vp8l_enc.c | 94 uint32_t predict = 0x000000; in PaletteHasNonMonotonousDeltas() local 98 const uint32_t diff = VP8LSubPixels(palette[i], predict); in PaletteHasNonMonotonousDeltas() 111 predict = palette[i]; in PaletteHasNonMonotonousDeltas() 118 uint32_t predict = 0x00000000; in PaletteSortMinimizeDeltas() local 129 const uint32_t cur_score = PaletteColorDistance(palette[k], predict); in PaletteSortMinimizeDeltas() 136 predict = palette[i]; in PaletteSortMinimizeDeltas()
|
/third_party/libsnd/src/ |
H A D | ms_adpcm.c | 221 int predict ; in msadpcm_decode_block() local 304 predict = ((pms->samples [k - pms->channels] * AdaptCoeff1 [bpred [chan]]) in msadpcm_decode_block() 306 current = (bytecode * idelta) + predict ; in msadpcm_decode_block() 529 int chan, k, predict, bpred [2] = { 0 }, idelta [2] = { 0 }, in msadpcm_encode_block() local 551 { predict = (pms->samples [k-1] * AdaptCoeff1 [bpred [0]] + pms->samples [k-2] * AdaptCoeff2 [bpred [0]]) >> 8 ; in msadpcm_encode_block() 552 errordelta = (pms->samples [k] - predict) / idelta [0] ; in msadpcm_encode_block() 557 newsamp = predict + (idelta [0] * errordelta) ; in msadpcm_encode_block() 604 predict = (pms->samples [k-2] * AdaptCoeff1 [bpred [chan]] + pms->samples [k-4] * AdaptCoeff2 [bpred [chan]]) >> 8 ; in msadpcm_encode_block() 605 errordelta = (pms->samples [k] - predict) / idelta [chan] ; in msadpcm_encode_block() 612 newsamp = predict in msadpcm_encode_block() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | magicyuvenc.c | 72 void (*predict)(struct MagicYUVContext *s, const uint8_t *src, uint8_t *dst, member 216 case LEFT: s->predict = left_predict; break; in magy_encode_init() 217 case GRADIENT: s->predict = gradient_predict; break; in magy_encode_init() 218 case MEDIAN: s->predict = median_predict; break; in magy_encode_init() 485 s->predict(s, data[i], s->slices[i], linesize[i], in magy_encode_frame() 492 s->predict(s, frame->data[i], s->slices[i], frame->linesize[i], in magy_encode_frame()
|
H A D | ffv1dec_template.c | 97 sample[1][x] = RENAME(predict)(sample[1] + x, sample[0] + x); in decode_line() 122 sample[1][x] = av_mod_uintp2(RENAME(predict)(sample[1] + x, sample[0] + x) + (SUINT)diff, bits); in decode_line()
|
H A D | ffv1_template.c | 23 static inline int RENAME(predict)(TYPE *src, TYPE *last) in predict() function
|
H A D | dstdec.c | 352 const int16_t predict = F( 0) + F( 1) + F( 2) + F( 3) + in decode_frame() local 360 unsigned index = FFABS(predict) >> 3; in decode_frame() 367 v = ((predict >> 15) ^ residual) & 1; in decode_frame()
|
H A D | aacenc_pred.c | 64 static inline void predict(PredictorState *ps, float *coef, float *rcoef, int set) in predict() function 127 predict(&sce->predictor_state[k], &sce->coeffs[k], &sce->prcoeffs[k], in ff_aac_apply_main_pred()
|
H A D | dca_lbr.c | 1469 static void predict(float *samples, const float *coeff, int nsamples) in predict() function 1493 predict(samples, s->lpc_coeff[f^1][ch][sb][1], 16); in synth_lpc() 1494 predict(samples + 16, s->lpc_coeff[f ][ch][sb][0], 64); in synth_lpc() 1495 predict(samples + 80, s->lpc_coeff[f ][ch][sb][1], 48); in synth_lpc() 1497 predict(samples, s->lpc_coeff[f^1][ch][sb][0], 16); in synth_lpc() 1498 predict(samples + 16, s->lpc_coeff[f ][ch][sb][0], 112); in synth_lpc()
|
H A D | ffv1enc_template.c | 62 diff = sample[0][x] - RENAME(predict)(sample[0] + x, sample[1] + x); in encode_line()
|
H A D | aacdec.c | 178 static av_always_inline void predict(PredictorState *ps, float *coef, in predict() function
|
H A D | aacdec_fixed.c | 281 static av_always_inline void predict(PredictorState *ps, int *coef, in predict() function
|
H A D | mobiclip.c | 993 int x, int y, int predict) in decode_macroblock() 1005 if (predict) { in decode_macroblock() 992 decode_macroblock(AVCodecContext *avctx, AVFrame *frame, int x, int y, int predict) decode_macroblock() argument
|
H A D | aacdec_template.c | 2079 predict(&sce->predictor_state[k], &sce->coeffs[k], in apply_prediction()
|