The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

Xiangdong ABSTRACT This application report describes video data transf


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



Real-Time Digital Video Transfer High-Speed RTDX
Xiangdong ABSTRACT This application report describes video data transferred host through TI's XDS-560 emulator with HS-RTDX technology. video data captured using hardware platform provided TI's C6000 imaging developer's (IDK) displayed monitor frames second. Contents Introduction.2 Target Implementation DSP.2 Video Capture Preprocessing.2 HS-RTDX Setup DSP/PC Handshaking Transferring Data Host Host Implementation HS-RTDX Setup PC/DSP Handshaking.4 Receiving Data From Video Post-Processing Display Summary C6000 Applications
Figures Figure Block Diagram.2 Figure Setup HS-RTDX Through DSP/BIOS GCONF Figure HS-RTDX Setup Target/Host Handshaking Figure Transfer Data Host Figure Host HS-RTDX Setup Figure Receiving Video Data.6 Figure Pixel Duplicating Display
Windows trademark Microsoft Corporation. other trademarks property their respective owners.
SPRA398
Introduction
This application provides testing vehicle HS-RTDX. Continuous video data flow with high data rates offers excellent data source stress testing HS-RTDX connections through XDS-560 emulator. design application straightforward. Video data first captured rate frames second C6000 hardware platform, which consists C6711 board imaging processing daughter card imaging capture display. video data then down sampled reduce bit-rate transferred host through HS-RTDX link. Video displayed monitor same rate captured. This application consists functional modules: host module target module. host module, name suggests, resides host while target module runs DSP. Below block diagram application:
BITBLT primary surface (front buffer)
Video Capture
Transfer non-visible surface (back buffer)
Host
Target
Down-sampling
Up-Sampling
Color Space Conversion Y/Cr/Cb
Data Reception from target HS-RTDX
Data Transmission Host HS-RTDX
Figure
Block Diagram
Target Implementation
Video Capture Preprocessing
Video data capture realized daughtercard. NTSC analog video signal sampled digitized square pixel mode daughtercard. digital video data consists fields, each with resolution, with combined resolution 480. data 4:2:2 Y/Cb/Cr format with frame rate fps.
Real-Time Digital Video Transfer High-Speed RTDX
SPRA398
Transferring data requires bandwidth 18.432 Mbytes/second, while HS-RTDX link bandwidth Mbytes/second. overcome this bandwidth limitation video data subjected scaling down-sampling. First, only fields retained, cutting data rate half. Then image scaled down factor horizontally factor vertically make final resolution 120. resulting total data rate 1.152 Mbtes/second. Since computer monitor only display data, Y/Cb/Cr color space conversion performed scaled down image. more information C6000 video capture preprocessing, please refer TMS320C6000 Imaging Developer's User's Guide, literature number SPRU494.
HS-RTDX Setup DSP/PC Handshaking
From applications point view, setting HS-RTDX link almost same setting traditional RTDX link, since HS-RTDX JTAG RTDX have same functions. only thing different linking application with HS-RTDX library rather than normal RTDX library. This done easily through DSP/BIOS GCONF GUI.
Figure
Setup HS-RTDX Through DSP/BIOS GCONF
shown Figure above, RTDX buffer size 64000 bytes. following source code shows RTDX channels defined enabled. output channel ochanData transferring video data from target host. input channel ichanInfo used handshaking between target host, which synchronizes target host after channels enabled.
Real-Time Digital Video Transfer High-Speed RTDX
SPRA398
RTDX_CreateOutputChannel( ochanData RTDX_CreateInputChannel( ichanInfo void Task_Ch(int ChaNo) RTDX_enableOutput( &ochanData RTDX_enableInput( &ichanInfo perform target host hand-shaking returncode RTDX_read( &ichanInfo, received, while(received[0] 654321);
Figure
HS-RTDX Setup Target/Host Handshaking
Transferring Data Host
Transferring video data host RTDX very straightforward. need call RTDX write. this implementation, video data broken into several RTDX data packets, each size RTDX_PACKET_SIZE.
Size 160*120*2; write video data RTDX buffer for(i i<Size-RTDX_PACKET_SIZE; i+=RTDX_PACKET_SIZE) check RTDX channel ready while(RTDX_writing); make sure writes through while(!RTDX_write( &ochanData, ((char *)vBuf)+i, RTDX_DATA_COUNT)); perform last write while(!RTDX_write( &ochanData, ((char *)vBuf)+i, Size-i));
Figure
Transfer Data Host
Host Implementation
HS-RTDX Setup PC/DSP Handshaking
Host RTDX setup done similar manner. RTDX channels created dynamically objects. RTDX then configured enabled-finally, channels opened. Host/target handshake then performed.
Real-Time Digital Video Transfer High-Speed RTDX
SPRA398
initialize ::CoInitialize( NULL ::VariantInit(&sa); Instantiate RTDX Objects DataChannel.CreateInstance( L"RTDX" FAILED(hr) MessageBox(hWnd, "RTDX Channel Instantiation failed!", "RTDX Error", MB_OK); return E_FAIL; H2TInfoChannel.CreateInstance( L"RTDX" FAILED(hr) MessageBox(hWnd, "RTDX Channel Instantiation failed!", "RTDX Error", MB_OK); DataChannel.Release(); return E_FAIL; DataChannel->EnableRtdx(); puts("Opening RTDX Channels."); (DataChannel->Open( "ochanData", Success) (H2TInfoChannel->Open( "ichanInfo", Success)) MessageBox(hWnd, "RTDX Channel Open failed!", "RTDX Error", MB_OK); HSRtdxDestroy(hWnd); return E_FAIL; hand-shaking with target status H2TInfoChannel->WriteI4(Start, &status_of_write); }while(status Success); if(status Success) MessageBox(hWnd, "RTDX Channel Write failed!", "RTDX Error", MB_OK); HSRtdxDestroy(hWnd); return E_FAIL;
Figure
Host HS-RTDX Setup
Receiving Data From
reading RDTX data channel, host receives video data that transferred from target. reduce overhead, block transfer used move data from RTDX buffer host data buffer.
Real-Time Digital Video Transfer High-Speed RTDX
SPRA398
HRESULT HSRtdxGetData(HWND hWnd, long* Size) long status; static flag; long errorCounter Size 160*120*2; while(k*4 *Size) status DataChannel->ReadSAI4( switch(status) case Success: errorCounter MessageBox(hWnd, "RTDX Data Channel Zero length message received!", "RTDX Error", MB_OK); ::VariantClear(&sa); return E_FAIL; flag int* serverarray; (void HUGEP FAR*)&serverarray); (signed) data[i+k] serverarray[i]; ::VariantClear(&sa); break; case ENoDataAvailable: //delay while ::VariantClear(&sa); errorCounter Sleep(1); return E_FAIL; break; default: ::VariantClear(&sa); return E_FAIL; while(status Success); return S_OK;
Figure
Receiving Video Data
Real-Time Digital Video Transfer High-Speed RTDX
SPRA398
Video Post-Processing Display
enlarge image, each pixel duplicated four times when copying back buffer, resulting 320x240 display window. back buffer non-visible video display buffer. order display image, bit-block transfer performed transfer video data from back buffer front buffer, which primary visible surface.
void DisplayFrame() HRESULT DDSURFACEDESC2 ddsd; ddsd.dwSize sizeof( ddsd short* temp (short *)(ddsd.lpSurface); short* temp2 (short *)data; lock non-visible surface(back buffer)*/ m_pddsBackBuffer->Lock(NULL, &ddsd, pixel duplicate make 320x240 picture*/ copy video data non-visible surface for(i i<120; i++) for(j j<160; j++) temp[i*2*320+j*2] temp2[i*160+j]; temp[i*2*320+(j*2+1)] temp2[i*160+j]; temp[(i*2+1)*320+j*2] temp2[i*160+j]; temp[(i*2+1)*320+(j*2+1)] temp2[i*160+j]; release back buffer back m_pddsBackBuffer->Unlock(NULL); perform block transfer from black buffer front buffer m_pddsFrontBuffer->Blt( &m_rcWindow, m_pddsBackBuffer, NULL, DDBLT_WAIT, NULL
Figure
Pixel Duplicating Display
ensure display rate fps, Windowsmultimedia timer used generate Windows message every corresponding message handler then calls HSRtdxGetData() DisplayFrame() receive display video data.
Summary
simple application, noncompressed video data transferred displayed, using scaling reduce bandwidth requirement. other hand, video data first compressed using algorithms such MPEG H.263, much higher resolution video stream transferred through HS-RTDX link, which bandwidth Mbytes second. advantages using RTDX that does take other system resources such PCI. Also, HS-RTDX provides two-way communication link between target host. first time, provides developers with means real-time near real-time) testing imaging/video algorithms without requiring extra hardware.
Real-Time Digital Video Transfer High-Speed RTDX
IMPORTANT NOTICE Texas Instruments Incorporated subsidiaries (TI) reserve right make corrections, modifications, enhancements, improvements, other changes products services time discontinue product service without notice. Customers should obtain latest relevant information before placing orders should verify that such information current complete. products sold subject TI's terms conditions sale supplied time order acknowledgment. warrants performance hardware products specifications applicable time sale accordance with TI's standard warranty. Testing other quality control techniques used extent deems necessary support this warranty. Except where mandated government requirements, testing parameters each product necessarily performed. assumes liability applications assistance customer product design. Customers responsible their products applications using components. minimize risks associated with customer products applications, customers should provide adequate design operating safeguards. does warrant represent that license, either express implied, granted under patent right, copyright, mask work right, other intellectual property right relating combination, machine, process which products services used. Information published regarding third-party products services does constitute license from such products services warranty endorsement thereof. such information require license from third party under patents other intellectual property third party, license from under patents other intellectual property Reproduction information data books data sheets permissible only reproduction without alteration accompanied associated warranties, conditions, limitations, notices. Reproduction this information with alteration unfair deceptive business practice. responsible liable such altered documentation. Resale products services with statements different from beyond parameters stated that product service voids express implied warranties associated product service unfair deceptive business practice. responsible liable such statements.
Mailing Address: Texas Instruments Post Office 655303 Dallas, Texas 75265
Copyright 2002, Texas Instruments Incorporated

Other recent searches


SN761664 - SN761664   SN761664 Datasheet
SB-00-017 - SB-00-017   SB-00-017 Datasheet
MG325E01R300-001 - MG325E01R300-001   MG325E01R300-001 Datasheet
MC1322x - MC1322x   MC1322x Datasheet
MC1322xRM - MC1322xRM   MC1322xRM Datasheet
CH370 - CH370   CH370 Datasheet
LTM4605 - LTM4605   LTM4605 Datasheet
ILD250 - ILD250   ILD250 Datasheet
FYL-5463NUYC1C - FYL-5463NUYC1C   FYL-5463NUYC1C Datasheet
APS05ES - APS05ES   APS05ES Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive