NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

Latency Measurement on Capture Encode Decode Display Demo

From Texas Instruments Wiki
Jump to: navigation, search

Latency Measurement for Capture Encode/Decode Display application[edit]

This is the latency measurements performed on the sample Capture encode/decode display demo delivered along with the EZSDK 5.x for DM816x and DM814x devices from TI. The demo is created with the chain VFCC->DEI->VENC->VDEC->VFPC-SC->VFDC . This demo is validated on EZSDK 5.03.01.15 and OMX components 5.02.00.30.

The latency numbers are measured for the following resolutions:

  • 1080p60 (Capture, Encode, Decode and Display @ 1080p60)
  • 1080p30 (Capture, Encode, Decode and Display @ 1080p30)
  • 1080p60-30 ( Capture Display @ 1080p60. Encode Decoder @ 1080p30)
  • 720p60 (Capture, Encode, Decode and Display @ 720p60)

Usecase Description[edit]

The video data is captured by VFCC component from a HD camera source via HDMI . The captured data is fed to DEI.The DEI output is then encoded by VENC and decoded by VDEC component. The decoded frame is passed to Scalar component ( VFPC Sc) , which does chroma conversion from YUV 420 to YUV 422 format. The scalar ouput is passed to VFDC and the output is displayed on the TV via via on-chip HDMI interface. The IL Client source code is available here Media:capture_encode_decode_display.tar.gz


Capture encode decode display block.png

Setup Details[edit]

DM816x Base EVM DM816x Rev-C with DDR3 attached with a Video Conferencing Expansion IO (EIO) Card interface. A video source (Tandberg 1080p60 Camera / Sony PS3) is connected to the daughter card via a HDMI interface. The on-chip HDMI out from the DM816x Base EVM is connected to a TV.


OMX Components Details[edit]

Following are the list of OMX components used in the usecase:

  • VFCC (Video Frame Capture Component)
  • VFPC-DEI (Video Frame Processing Component - Deinterlacer)
  • VENC (Video Encode Component)
  • VDEC (Video Decode Component)
  • VFPC-SC (Video Frame Processing Component - Scalar)
  • VFDC (Video Frame Display Component)

Measurement Procedure[edit]

  1. The IL-client is executed on ARM side and the corresponding firmware binaries are loaded on the Video and VPSS media controller cores.
  2. The HD camera is focused on a running stop watch video. Glass-to-Glass latency is measured by measuring the time difference between the source time stamp and the time stamp displayed on the TV display.
  3. Timestamps corresponding to various OMX component events for consecutive frames are logged for latency measurements
  4. T0 - Start of capture. (start time for encode path)
  5. T1 - Timestamp when capture of frame is complete
  6. T2 - Timestamp when DEI processing is done
  7. T3 - Timestamp when VENC finish encoding the frame
  8. T4 - Timestamp when VDEC starts decoding the frame
  9. T5 - Timestamp when VDEC finish decoding the frame .
  10. T6 - Timestamp when VFPC scaling is done
  11. T7 - Timestamp when VFDC send the frame to HDMI output for display
  12. T8 - Timestamp when the frame is displayed on TV
  13. From the above timestamps, Running average of various latency values are measured
  • Running average: Series of averages is calculated for a fixed window period (8 Frames) of different subsets of the full data set and final average is calculated from the average series

Results[edit]


Summary[edit]

Metrics

  1. Glass to Glass Latency T8–T0 - Total delay observed in the system including TV delay
  2. Capture-Encode Latency = Capture-Encode Path delay + Buffers in Capture Driver
  3. Decode-Display Latency = Decode delay + Scalar delay + Display delay

Breakup

  1. Buffers in Capture Driver - Delay due to buffers held in capure driver. Range is from 0.5 to 1 frame
  2. Capture-Encode Path delay- T3–T1
  3. Buffer Hand Off to Decoder - Delay due to buffers held between VENC and VDEC components. Range is from 1 to 1.5 frames
  4. Decode Delay T5–T4
  5. Scalar Delay T6–T5
  6. Scale/Chroma Con. Display Delay T7–T5 - Cummulative delay for scaling, chroma conversion and display
  7. TV/Monitor Delay - Delay due to the internal processing in the TV/monitor (8ms delay is observed in Samsung LCD TV)



Capture encode decode display latency summary.png


Download the Latest EZSDK[edit]

The latest EZSDK is available for download from http://software-dl.ti.com/dsps/dsps_public_sw/ezsdk/latest/index_FDS.html.

The current version is 5.05.02.00. The supported platforms are DM816x and DM814x.

EZSDK Support
E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Latency Measurement on Capture Encode Decode Display Demo here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Latency Measurement on Capture Encode Decode Display Demo here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Latency Measurement on Capture Encode Decode Display Demo here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Latency Measurement on Capture Encode Decode Display Demo here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Latency Measurement on Capture Encode Decode Display Demo here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Latency Measurement on Capture Encode Decode Display Demo here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Latency Measurement on Capture Encode Decode Display Demo here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Latency Measurement on Capture Encode Decode Display Demo here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Latency Measurement on Capture Encode Decode Display Demo here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity