Here you can find the source of clipSigned(int v)
private static int clipSigned(int v)
//package com.java2s; /**/* w ww . jav a 2 s . c o m*/ * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * @author The JCodec project * */ public class Main { private static int clipSigned(int v) { return (int) (v < -128 ? -128 : (v > 127 ? 127 : v)); } }