Hi,
I see the DEMO_VC_RTP_TX_RX demo in vcrdk,
when i read the function
static Int rtpTx_send(Void *pEncodeBuffer,Int32 frameSize,Int32 frameType)
{
int sentlen = 0;
sentlen = rtp_h264_send_stream(gRtpTx_config.rtpTxSession, pEncodeBuffer, frameSize, gRtpTx_config.rtpTxTimeStamp);
gRtpTx_config.rtpTxTimeStamp += 90000/gRtpTx_config.rtpTxFrameRate; /* 90Khz rate fixed for h264 by rfc3984 FRAME_RATE = 30*/
if (sentlen == 0) {
OSA_printf("RTPTX: In rtpTx_send: sentlen is 0 !!!!\n");
}
else {
//OSA_printf("sentlen = %d\n",sentlen);
}
gRtpTx_config.total_bytes_sent += sentlen;
gRtpTx_config.num_frames_sent++;
if ((gRtpTx_config.num_frames_sent % 600) == 0) {
OSA_printf("RTPTX: Frames Sent = %u. Total bytes sent = %u",gRtpTx_config.num_frames_sent, gRtpTx_config.total_bytes_sent);
ortp_global_stats_display();
}
return 0;
}
There is no source for this function.
1) If i want to write my own project how to use it ?
should i include some libs or i have to rewrite by myself ?
2) If lib is supplied by ti ,in which folder?
3) the follow functions also have same problem
extern void * rtp_init_video_recv(int videoUdpPort,int audioUdpPort);
extern void * rtp_session_recvm_with_ts (void * session, int user_ts);
extern int rtp_session_parse_h264_mb2buf (void *mb, int *buff, int buflen, int *rx_observed_markbit);
extern int rtp_session_wait_for_rxpkt (void *s);