Home | History | Annotate | Download | only in enc

Lines Matching refs:dst

94   dst[(x) + (y) * BPS] = clip_8b(ref[(x) + (y) * BPS] + ((v) >> 3))
101 uint8_t* dst) {
133 static void ITransform(const uint8_t* ref, const int16_t* in, uint8_t* dst,
135 ITransformOne(ref, in, dst);
137 ITransformOne(ref + 4, in + 16, dst + 4);
232 #define OUT(x, y) dst[(x) + (y) * BPS]
234 static inline void Fill(uint8_t* dst, int value, int size) {
237 memset(dst + j * BPS, value, size);
241 static inline void VerticalPred(uint8_t* dst, const uint8_t* top, int size) {
244 for (j = 0; j < size; ++j) memcpy(dst + j * BPS, top, size);
246 Fill(dst, 127, size);
250 static inline void HorizontalPred(uint8_t* dst, const uint8_t* left, int size) {
254 memset(dst + j * BPS, left[j], size);
257 Fill(dst, 129, size);
261 static inline void TrueMotion(uint8_t* dst, const uint8_t* left,
271 dst[x] = clip_table[top[x]];
273 dst += BPS;
276 HorizontalPred(dst, left, size);
284 VerticalPred(dst, top, size);
286 Fill(dst, 129, size);
291 static inline void DCMode(uint8_t* dst, const uint8_t* left,
311 Fill(dst, DC, size);
317 static void IntraChromaPreds(uint8_t* dst, const uint8_t* left,
320 DCMode(C8DC8 + dst, left, top, 8, 8, 4);
321 VerticalPred(C8VE8 + dst, top, 8);
322 HorizontalPred(C8HE8 + dst, left, 8);
323 TrueMotion(C8TM8 + dst, left, top, 8);
325 dst += 8;
328 DCMode(C8DC8 + dst, left, top, 8, 8, 4);
329 VerticalPred(C8VE8 + dst, top, 8);
330 HorizontalPred(C8HE8 + dst, left, 8);
331 TrueMotion(C8TM8 + dst, left, top, 8);
337 static void Intra16Preds(uint8_t* dst,
339 DCMode(I16DC16 + dst, left, top, 16, 16, 5);
340 VerticalPred(I16VE16 + dst, top, 16);
341 HorizontalPred(I16HE16 + dst, left, 16);
342 TrueMotion(I16TM16 + dst, left, top, 16);
351 static void VE4(uint8_t* dst, const uint8_t* top) { // vertical
360 memcpy(dst + i * BPS, vals, 4);
364 static void HE4(uint8_t* dst, const uint8_t* top) { // horizontal
370 *(uint32_t*)(dst + 0 * BPS) = 0x01010101U * AVG3(X, I, J);
371 *(uint32_t*)(dst + 1 * BPS) = 0x01010101U * AVG3(I, J, K);
372 *(uint32_t*)(dst + 2 * BPS) = 0x01010101U * AVG3(J, K, L);
373 *(uint32_t*)(dst + 3 * BPS) = 0x01010101U * AVG3(K, L, L);
376 static void DC4(uint8_t* dst, const uint8_t* top) {
380 Fill(dst, dc >> 3, 4);
383 static void RD4(uint8_t* dst, const uint8_t* top) {
402 static void LD4(uint8_t* dst, const uint8_t* top) {
420 static void VR4(uint8_t* dst, const uint8_t* top) {
442 static void VL4(uint8_t* dst, const uint8_t* top) {
464 static void HU4(uint8_t* dst, const uint8_t* top) {
479 static void HD4(uint8_t* dst, const uint8_t* top) {
502 static void TM4(uint8_t* dst, const uint8_t* top) {
508 dst[x] = clip_table[top[x]];
510 dst += BPS;
519 static void Intra4Preds(uint8_t* dst, const uint8_t* top) {
520 DC4(I4DC4 + dst, top);
521 TM4(I4TM4 + dst, top);
522 VE4(I4VE4 + dst, top);
523 HE4(I4HE4 + dst, top);
524 RD4(I4RD4 + dst, top);
525 VR4(I4VR4 + dst, top);
526 LD4(I4LD4 + dst, top);
527 VL4(I4VL4 + dst, top);
528 HD4(I4HD4 + dst, top);
529 HU4(I4HU4 + dst, top);
655 static inline void Copy(const uint8_t* src, uint8_t* dst, int size) {
658 memcpy(dst, src, size);
660 dst += BPS;
664 static void Copy4x4(const uint8_t* src, uint8_t* dst) { Copy(src, dst, 4); }
665 static void Copy8x8(const uint8_t* src, uint8_t* dst) { Copy(src, dst, 8); }
666 static void Copy16x16(const uint8_t* src, uint8_t* dst) { Copy(src, dst, 16); }