public static Codec[] generateEncodingCodecChain(String encoding){
  if (encoding.equalsIgnoreCase(H264VideoFormat.ENCODING)) {
    Codec[] chain={new com.orangelabs.rcs.core.ims.protocol.rtp.codec.video.h264.JavaPacketizer()};
    return chain;
  }
 else {
    return new Codec[0];
  }
}

public static Codec [ ] generateEncodingCodecChain ( String encoding ) { if ( encoding . equalsIgnoreCase ( H264VideoFormat . ENCODING ) ) { Codec [ ] chain = { new com . orangelabs . rcs . core . ims . protocol . rtp . codec . video . h264 . JavaPacketizer ( ) } ; return chain ; } else { return new Codec [ 0 ] ; } }
generate the codec encoding chain
