Loading lib_enc/lib_enc_fx.c +30 −0 Original line number Diff line number Diff line Loading @@ -1525,6 +1525,36 @@ move16(); return error; } #ifdef IVAS_RTPDUMP /*---------------------------------------------------------------------* * IVAS_ENC_EncodeFrameToCompact() * * Main function to encode one frame to a compact bitstream (bytestream) *---------------------------------------------------------------------*/ ivas_error IVAS_ENC_EncodeFrameToCompact( IVAS_ENC_HANDLE hIvasEnc, /* i/o: IVAS encoder handle */ Word16 *inputBuffer, /* i : PCM input */ const Word16 inputBufferSize, /* i : total number of samples in the input buffer. Related function: IVAS_ENC_GetInputBufferSize() */ UWord8 *outputBitStream, /* o : pointer to compact output bitstream. The array must already be allocated. */ UWord16 *numOutBits /* o : number of bits written to output bitstream */ ) { ivas_error error; UWord16 bitstream[IVAS_MAX_BITS_PER_FRAME]; if ( ( error = IVAS_ENC_EncodeFrameToSerial( hIvasEnc, inputBuffer, inputBufferSize, bitstream, numOutBits ) ) != IVAS_ERR_OK ) { return error; } convertSerialToBytestream_fx( bitstream, *numOutBits, outputBitStream ); return IVAS_ERR_OK; } #endif /*---------------------------------------------------------------------* Loading Loading
lib_enc/lib_enc_fx.c +30 −0 Original line number Diff line number Diff line Loading @@ -1525,6 +1525,36 @@ move16(); return error; } #ifdef IVAS_RTPDUMP /*---------------------------------------------------------------------* * IVAS_ENC_EncodeFrameToCompact() * * Main function to encode one frame to a compact bitstream (bytestream) *---------------------------------------------------------------------*/ ivas_error IVAS_ENC_EncodeFrameToCompact( IVAS_ENC_HANDLE hIvasEnc, /* i/o: IVAS encoder handle */ Word16 *inputBuffer, /* i : PCM input */ const Word16 inputBufferSize, /* i : total number of samples in the input buffer. Related function: IVAS_ENC_GetInputBufferSize() */ UWord8 *outputBitStream, /* o : pointer to compact output bitstream. The array must already be allocated. */ UWord16 *numOutBits /* o : number of bits written to output bitstream */ ) { ivas_error error; UWord16 bitstream[IVAS_MAX_BITS_PER_FRAME]; if ( ( error = IVAS_ENC_EncodeFrameToSerial( hIvasEnc, inputBuffer, inputBufferSize, bitstream, numOutBits ) ) != IVAS_ERR_OK ) { return error; } convertSerialToBytestream_fx( bitstream, *numOutBits, outputBitStream ); return IVAS_ERR_OK; } #endif /*---------------------------------------------------------------------* Loading