i am trying to send video over ethernet using the tms320dm6437 dvdp from board to the PC.
For capturing and encoding the video i have used video_encdec.pjt(from dvsdk) and for ethernet emac.pjt given by TI.
I send the h.264 encoded video buffer to the following code
"iCount" is the no. of packets which varies with each frame size.
The packet_data[0] to packet_data[15] is the header part
*************************************************
for (i=0 ; i<iCount; i++)/////
{
ptr = & packet_data[16];
memcpy(ptr, encoded1 + TX_SIZE * i,TX_SIZE);
pDesc = pDescBase + 1;
pDesc->pNext = 0;////////
pDesc->pBuffer = packet_data;
pDesc->BufOffLen = 1514;
pDesc->PktFlgLen = EMAC_DSC_FLAG_OWNER
| EMAC_DSC_FLAG_SOP
| EMAC_DSC_FLAG_EOP
| 1514;
pDescTx = pDescBase + 1;
EMAC_TX0HDP = ( Uint32 )pDescTx;
/* Busy period */
_wait( 10000 );
/* Manually check ISR, if using interrupts this will be done automatically */
EMAC_isr( );
}
**********************************************
But for each frame i am getting the same data in every packet and this data corresponds to the data of the last packet of previous frame. So for the first frame i get the data which was present previously (i.e. before running) in the "packet_data".
Same thing happens for raw data also...
Thankyou in advance