• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » DaVinci™ Video Processors » DM814x and AM387x Processors Forum » Problem with OMX Scalar component
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

Forums

Problem with OMX Scalar component

This question is answered
Sivaramkrishna Neeruganti
Posted by Sivaramkrishna Neeruganti
on Mar 27 2012 06:41 AM
Intellectual870 points

Hi ,

I am working on DM8148 EVM ,i am using EZSDK 5.03 .I am trying to develop an OMX application for displaying video simultaneously on HDMI and LCD displays .

I am considering OMX Capture-Encode demo for doing this .

I have connected the OMX components in this way

VFCC->DEI->port0->VFDC->HDMI

               DEI->port1->Scalar->VFDC->LCD

                                                  ->VENC->H264 encoded file .

I have written an OMX application (Capture_Display_HDMI_LCD) which connects the above components .when i run this application the Scalar component is not going into IDLE state .

Below is the OMX application log

./capture_display_hdmi_lcd_a8host_debug.xv5T  -o sample.h264
-m 1080p -f 30 -b 1000000 -d 0 -n 1000
output file: sample.h264
bit_rate: 1000000
frame_rate: 30
num_frames: 1000
mode: 1080p
display_id: 0
 Capture-Encode example
===============================
 OMX_Init completed
 UIAClient is ready to send a UIA configuration command
UIAClient received UIA_CONFIGURE_ACK
UIAClient is done sending requests
UIAClient is ready to send a UIA configuration command
UIAClient received UIA_CONFIGURE_ACK
UIAClient is done sending requests
 openeing file
 capture compoenent is created
 control TVP compoenent is created
Buffer Size computed: 3110400
set input port params (width = 1920, height = 1080) applying skip mask
enable capture output port
got eventEnable/Disable Event
 dei compoenent is created
set input port params (width = 1920, height = 1080)
set output port params (width = 1920, height = 1080)set output port params (width = 1920, height = 1080)set number of channe
got eventEnable/Disable Event
enable dei output port 0
got eventEnable/Disable Event
enable dei output port 1
got eventEnable/Disable Event
 scalar compoenent is created
set input port params (width = 1920, height = 1080)
set output port params (width = 800, height = 480)
set output port params (width = 1920, height = 1080)
set number of channels
set input resolution
set output resolution
enable scalar input port
got eventEnable/Disable Event
enable scalar output port 1
got eventEnable/Disable Event
enable scalar output port 2
got eventEnable/Disable Event
 encoder compoenent is created
found handle 0x135f20 for component OMX.TI.VPSSM3.VFDC
 got display handle
found handle 0x139a28 for component OMX.TI.VPSSM3.CTRL.DC
found handle 0x13d2b0 for component OMX.TI.VPSSM3.VFDC
 got display handle
found handle 0x140db8 for component OMX.TI.VPSSM3.CTRL.DC
Buffer Size computed: 4147200
set input port params (width = 1920, height = 1080)setting input and output memory type to defaultBuffer Size computed: 17280
set input port params (width = 1920, height = 1080)setting input and output memory type to defaultenable input port
got eventEnable/Disable Event
enable input port for LCD VFDC
got eventEnable/Disable Event
 connect call for capture-Dei
  connect call for dei-scalar
  connect call for dei-display
  connect call for scalar-LCD VFDC comp
 connect call for scalar-encode component
got eventState changed to: OMX_StateIdle
 Capture outport buffers allocated
 got eventState changed to: OMX_StateIdle
 Capture is in IDLE state
 Dei input port use buffer done
  DEI outport buffers allocated
 got eventState changed to: OMX_StateIdle
 DEI is in IDLE state
 Scalar input port use buffer done
  scalar outport buffers allocated

Here are my questions .

1. Can the Scalar component  have two output ports?

2. Does the Scalar component take only YUV420SP video data format as an input ?

3. how should i connect the VENC component to the output port of Scalar ,if it does the chroma conversion from YUV420SP to YUV422I ?As the VENC Component expects YUV420SP video data format at its input port .

4. Why the Scalar component in the above use case is not going into IDLE state?

Can anyone help me out to get a better understanding of Scalar component .any help is appreciated .

Thanks,

N Sivaramkrishna .



Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Bernard Vachon
    Posted by Bernard Vachon
    on Apr 05 2012 10:45 AM
    Verified Answer
    Verified by Sivaramkrishna Neeruganti
    Intellectual425 points

    Neeruganti,

    1. I don't know this for a fact, but I don't think that you can get two outputs from one input on the scaler. I think input 0 goes with output 0, input 1 with output 1, etc. If you enabled input 0, but output 0 and 1, that may explain why you don't get to the idle state.

    2. I have been able to feed both YUV420SP and YCbCr input on the scalar with the 8148. With the 8168, the scaler does not transition to idle when I specify a YCbCr as an input format. It only seems to work with YUV420SP.

    3. I don't think connecting the VENC to the same Scalar output as the VFDC will work. If the scaler can output YUV420SP (which I have not tested) you could probably connect two inputs of the scaler (port 0 and port 1) to Dei port 1 (you can do this by doing OMX_UseBuffer with the same buffers for both scaler input an dpassing the  Dei port1 output buffer to both scaler inputs). You could configure channel 0 of the scaler to the VFDC and channel 1 to the VENC. This assumes you can set output 1 of the scaler to be YUV420SP.

    4. See #1.

    Bernard

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use