Project Name: JPEGImageEdgeDetection_BF561.dpj Project Type: ADSP-BF533 [ ] ADSP-BF537 [ ] ADSP-BF561 [X] Hardware/Tools Used:(Please refer release notes for information on supported hardware/tool versions) ************************************** ************************************** *** PLEASE READ THE RELEASE NOTE *** *** FOR SPECIFIC HARDWARE AND *** *** SOFTWARE CONFIGURATIONS *** *** SUPPORTED BY THIS APPLICATION *** ************************************** ************************************** ADSP-BF561 EZ-Kit Lite Blackfin USB-LAN EZ-Extender PC with Analog Devices VisualDSP++ VisualDSP++ Emulator TV with NTSC/PAL AV input System Services Components Used: DMA Manager [X] Deferred Callback Manager [X] Interrupt Manager [X] Timer Module [X] Power Management Module [X] Flag Module [X] External Bus Interface Unit Module [X] Port Module [X] OVERVIEW ======== This application can - Decode JPEG file(s) from PC - Perform edge detection on decoded JPEG image - Render Decoded JPEG image or its Edge Detected output to a video monitor. The application supports decoding JPEG files of YUV420 format, converts it to ITU656 NTSC/PAL interlaced video frame, perform (SOBEL) Edge detection on the decoded image and renders to video monitor (Television) through ADV7171 video encoder. Ez-Kit Pushbutton "SW6" can be used to switch display between Original and Edge Detected image. Video Modes: ------------ The application can decode JPEG files of YUV 420 format, build ITU656 NTSC or PAL interlaced video frame and render it to a video monitor (Television). Output video mode can be selected via JPEG Image Edge Detection configuration mode from 'pc2bf.exe' (Host Interface). JPEG Files: ----------- Option 1: Prompt for JPEG file name. --------- With this option selected, the Host interface will prompt for directory path where the JPEG files reside and JPEG file name(s) to decode. Option2: Read JPEG file name from '.txt' file. -------- In this mode, the application will look for JPEG files kept in "Media\JPEG\" The text file 'jpeg_list.txt' in "Multimedia\JPEGImageEdgeDetection\" directory contains the list the JPEG files to be used by this application. 'create_jpeg_list.bat' can be used to create or update the list of jpeg files in 'jpeg_list.txt'. Above options can be seleted via JPEG Image Edge Detection configuration mode from 'pc2bf.exe' (Host interface). Hardware Support: ----------------- This application can only interface with onboard video encoder in ADSP-BF561 EZ-Kit Lite. Conditional compilation Macros: ------------------------------- To enable any of the following modes/functions, the corresponding macros should be defined in preprocessor definitions section under 'JPEGImageEdgeDetection_BF561.dpj' project options. (Project -> Project Options - Project - Compile - Preprocessor - Preprocessor definitions) ADI_MMSK_EXTRA_INFO - Displays additional debug information Pc to Blackfin Communication: ----------------------------- Communication between Blackfin and PC is established via USB, using Blackfin USB-LAN EZ-Extender. The windows driver for Blackfin USB-LAN Extender card is located in "BlackfinSDK\Tools\Windows Drivers\USB-LAN EZ-EXTENDER BULK USB" directory. RUNNING THE APPLICATION ======================= 1. Hardware Settings -------------------- Video interface with ADSP-BF561 EZ-KIT Lite codecs --------------------------------------------------- Connect Blackfin USB-LAN EZ-Extender on top of ADSP-BF561 EZ-KIT Lite -- BF561 Ez Kit -- SW2: 1-OFF 2-OFF 3-OFF 4-OFF 5-OFF 6-ON SW3: 1-OFF 2-ON 3-ON 4-OFF SW4: 1-ON 2-ON 3-ON 4-ON 5-ON 6-ON SW5: 1-OFF 2-ON 3-ON 4-ON SW10: 1-OFF 2-OFF 3-OFF 4-OFF 5-OFF 6-OFF SW11: 1-OFF 2-OFF 3-OFF 4-OFF SW12: 1-ON 2-ON 3-ON 4-ON SW13: 1-ON 2-ON -- Blackfin USB-LAN EZ-Extender -- SW1: 1-ON 2-ON 3-ON 4-OFF SW2: 1-OFF 2-OFF 3-OFF 4-OFF 2. ADSP-BF561 EZ-KIT Lite - Push Button functions ------------------------------------------------- Push Button 1 (SW6): Switches display between Original and Edge Detected image Push Button 2 (SW7): Not used Push Button 3 (SW8): Not used Push Button 4 (SW9): Not used 3. External Connections ----------------------- Connect a monitor to the EZ-Kit video-out connector and a video source to the EZ-Kit video-in. The video connectors are the bank of 6 RCA-style jacks Video interface with onboard video codecs in ADSP-BF561 EZ-Kit Lite --------------------------------------------------------------------- RCA-style jacks labeled J6 +---------------------------------------------------+ | O O < Video Out O | (White) | O O O | (Red) +---------------------------------------------------+ J6 4. PC Host application: pc2bf.exe ---------------------------------- The host application (pc2bf.exe) that runs on a PC is used for streaming data to and from the EZKit. This application supports following options 1 - Decode JPEG file and render to monitor (YUV) L - to change video output and JPEG file settings Q - Quit the PC Host Application Option 1: Decodes JPEG file selected by the user during run-time (or) Cycles through all the JPEG images listed in Multimedia\JPEGImageEdgeDetection\jpeg_list.txt. Converts the decoded JPEG file to ITU656 NTSC/PAL video frame and renders it to a video monitor (Television). Option 5: Enters JPEG Image Edge Detection configuration mode. Option Q: Quits PC Host application 5. Operational Description --------------------------- - Open the "JPEGImageEdgeDetection_BF561.dpj" project in the VisualDSP Integrated Development Environment (IDDE). - Build the project by selecting "rebuild all" from the project menu. The project gets automatically loaded in to DSP - Connect USB port from PC to the USB port of the Blackfin USB-LAN Ez-Extender with the given USB cable - Connect a video display monitor (Television) to the video output jack (white coloured RCA-style jack) - Run the executables by pressing "multiprocessor run" (CTRL-F5) on the toolbar. If this is the first time the program is run, Windows will claim to have detected new hardware, and prompt for a driver. The driver is located in "BlackfinSDK\Tools\Windows Drivers\USB-LAN EZ-EXTENDER BULK USB" directory. Once installed, Windows will not ask for the driver again the next time the application is run. - Once the program starts running, the user should give the EZ-Kit and the PC a few seconds to initialize and install the USB driver, before using the host application (Bin\pc2bf.exe) REFERENCES ========== ADV7179 Video Encoder Reference Manual ADSP-BF561 Hardware Reference Manual ADSP-BF561 EZ-Kit Lite Evaluation system manual Blackfin USB-LAN EZ-Extender schematic David J.Katz, Rick Gentile, "Embedded Media Processing", 2d ed. New York:Elsevier Inc., 2006, ISBN:0750679123