Clip3 500 libde265/deblock.cc int Q_beta = Clip3(0,51, qP_L + beta_offset); Clip3 504 libde265/deblock.cc int Q_tc = Clip3(0,53, qP_L + 2*(bS-1) + tc_offset); Clip3 595 libde265/deblock.cc pnew[0] = Clip3(p0-2*tc,p0+2*tc, (p2 + 2*p1 + 2*p0 + 2*q0 + q1 +4)>>3); Clip3 596 libde265/deblock.cc pnew[1] = Clip3(p1-2*tc,p1+2*tc, (p2 + p1 + p0 + q0+2)>>2); Clip3 597 libde265/deblock.cc pnew[2] = Clip3(p2-2*tc,p2+2*tc, (2*p3 + 3*p2 + p1 + p0 + q0 + 4)>>3); Clip3 598 libde265/deblock.cc qnew[0] = Clip3(q0-2*tc,q0+2*tc, (p1+2*p0+2*q0+2*q1+q2+4)>>3); Clip3 599 libde265/deblock.cc qnew[1] = Clip3(q1-2*tc,q1+2*tc, (p0+q0+q1+q2+2)>>2); Clip3 600 libde265/deblock.cc qnew[2] = Clip3(q2-2*tc,q2+2*tc, (p0+q0+q1+3*q2+2*q3+4)>>3); Clip3 629 libde265/deblock.cc delta = Clip3(-tc,tc,delta); Clip3 649 libde265/deblock.cc int delta_p = Clip3(-(tc>>1), tc>>1, (((p2+p0+1)>>1)-p1+delta)>>1); Clip3 661 libde265/deblock.cc int delta_q = Clip3(-(tc>>1), tc>>1, (((q2+q0+1)>>1)-q1-delta)>>1); Clip3 776 libde265/deblock.cc int Q = Clip3(0,53, QP_C + 2*(bS-1) + tc_offset); Clip3 794 libde265/deblock.cc int delta = Clip3(-tc,tc, ((((q[0][k]-p[0][k])<<2)+p[1][k]-q[1][k]+4)>>3)); Clip3 810 libde265/deblock.cc int delta = Clip3(-tc,tc, ((((q[0][k]-p[0][k])<<2)+p[1][k]-q[1][k]+4)>>3)); Clip3 97 libde265/fallback-dct.cc g[i][c] = Clip3(-32768,32767, (sum+rndV)>>7); Clip3 126 libde265/fallback-dct.cc int out = Clip3(-32768,32767, (sum+rndH)>>postShift); Clip3 226 libde265/fallback-dct.cc g[c+i*nT] = Clip3(-32768,32767, (sum+rnd1)>>7); Clip3 120 libde265/motion.cc int xA = Clip3(0,w-1,x + xIntOffsL); Clip3 121 libde265/motion.cc int yA = Clip3(0,h-1,y + yIntOffsL); Clip3 133 libde265/motion.cc int xA = Clip3(0,w-1,x + xIntOffsL); Clip3 134 libde265/motion.cc int yA = Clip3(0,h-1,y + yIntOffsL); Clip3 178 libde265/motion.cc int xA = Clip3(0,w-1,x + xIntOffsL); Clip3 179 libde265/motion.cc int yA = Clip3(0,h-1,y + yIntOffsL); Clip3 245 libde265/motion.cc int xB = Clip3(0,wC-1,x + xIntOffsC); Clip3 246 libde265/motion.cc int yB = Clip3(0,hC-1,y + yIntOffsC); Clip3 272 libde265/motion.cc int xA = Clip3(0,wC-1,x + xIntOffsC); Clip3 273 libde265/motion.cc int yA = Clip3(0,hC-1,y + yIntOffsC); Clip3 964 libde265/motion.cc int td = Clip3(-128,127, colDist); Clip3 965 libde265/motion.cc int tb = Clip3(-128,127, currDist); Clip3 973 libde265/motion.cc int distScaleFactor = Clip3(-4096,4095, (tb*tx+32)>>6); Clip3 974 libde265/motion.cc out_mv->x = Clip3(-32768,32767, Clip3 976 libde265/motion.cc out_mv->y = Clip3(-32768,32767, Clip3 166 libde265/sao.cc out_ptr[i] = Clip3(0,maxPixelValue, Clip3 216 libde265/sao.cc out_img[xC+i+(yC+j)*out_stride] = Clip3(0,maxPixelValue, Clip3 233 libde265/sao.cc out_img[xC+i+(yC+j)*out_stride] = Clip3(0,maxPixelValue, Clip3 136 libde265/slice.cc vlc = Clip3(-128,127, (vlc-((128*shdr->ChromaWeight[l][i][j]) Clip3 882 libde265/slice.cc int preCtxState = Clip3(1,126, ((m*Clip3(0,51, shdr->SliceQPY))>>4)+n); Clip3 151 libde265/transform.cc int qPiCb = Clip3(-sps->QpBdOffset_C,57, QPY+pps->pic_cb_qp_offset + shdr->slice_cb_qp_offset); Clip3 152 libde265/transform.cc int qPiCr = Clip3(-sps->QpBdOffset_C,57, QPY+pps->pic_cr_qp_offset + shdr->slice_cr_qp_offset); Clip3 289 libde265/transform.cc currCoeff = Clip3(-32768,32767, Clip3 323 libde265/transform.cc currCoeff = Clip3(-32768,32767,