Ejemplo n.º 1
0
void H264Encoder::OnMessage(talk_base::Message *msg) {
    if ( msg->message_id == MSG_START_ENCODER) {
        doEncoding();        
    }
}
/**
 * This method is a wrapper for performing the instant
 * codes obtention and then the encoding process.
 *
 * @param inputFileName The name of the input file.
 */
void LempelZiv78Encoder::encode(char *inputFileName)
{
  getInstantCodes(inputFileName);
  doEncoding(inputFileName);
}
/**
 * This method is a wrapper for performing the addition
 * of the symbols in the dictionary and then the encoding process.
 *
 * @param inputFileName The name of the input file.
 */
void LempelZivWEncoder::encode(char *inputFileName)
{
  addFirstIndex(inputFileName);
  doEncoding(inputFileName);
}