• 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 » DM816x, C6A816x and AM389x Processors Forum » YUV420 to RGB conversion for VFPC
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

YUV420 to RGB conversion for VFPC

YUV420 to RGB conversion for VFPC

This question is answered
sweta bhatt
Posted by sweta bhatt
on Aug 08 2012 09:48 AM
Expert2205 points

Hi all,

I wanted to check whether Openmax components for VFPC support YUV420 to RGB conversion or not ?

I want to divert the o/p of decoder (YUV420) to frame buffer window, which expects the data to be in RGB format only.


Thanks in advance,
Sweta

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • HardikShah
    Posted by HardikShah
    on Aug 08 2012 22:31 PM
    Mastermind20155 points

    Hi,

    This is possible in hardware but we dont have driver for that as of now. So OMX also doesnt support that. Any reason for using gprx as display and not video pipelines.

    Regards,

    Hardik Shah

    Regards,

    Hardik Shah




    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • sweta bhatt
    Posted by sweta bhatt
    on Aug 09 2012 00:55 AM
    Expert2205 points

    Hi Hardik,

    Thanks for the confirmation. I want to display 3 windows on a single device as PIP (Picture in Picture). But Netra supports only two video windows.

    So for two or more than two window overlay use cases, I wanted to convert YUV to RGB so that I can have total five windows (two video and three graphics) for my use case.

    Btw, is there any plan to develop these drivers ? Is there any neon routine for this conversion ?

    Regards,
    Sweta

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • HardikShah
    Posted by HardikShah
    on Aug 09 2012 02:56 AM
    Verified Answer
    Verified by sweta bhatt
    Mastermind20155 points

    Hi,

    This can be done using simple scalar driver where you take three channels and scale it to how you wanted. Or else you can try doing with EDMA where you copy first big picture one and than copy 2 smaller pictures.

    Regards,

    Hardik Shah




    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Brijesh Jadav
    Posted by Brijesh Jadav
    on Aug 11 2012 13:44 PM
    Genius10645 points

    Hi,

     

    Another way to do this is to connect video to compositor and remove unwanted area by alpha blending..

     

    Thx,

    Brijesh

    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • sweta bhatt
    Posted by sweta bhatt
    on Aug 13 2012 09:26 AM
    Expert2205 points

    Hi Brijesh,

    Thanks for this solution. I am not much aware of compositor. From where can I get mode details on this ? Is this a s/w module ? Is it based on OMX or V4L2 ?

    Let me give you my use case detail. I want to create a simple application to achieve following.


    Do you think I can achieve this by blending or transparency keying or any other method ?

    Regards,
    Sweta

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • sweta bhatt
    Posted by sweta bhatt
    on Aug 13 2012 09:31 AM
    Expert2205 points
    usecase.png

    Sorry, somehow, image didn't get inserted.

    Please see it attached.


    Regards,
    Sweta

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Brijesh Jadav
    Posted by Brijesh Jadav
    on Aug 14 2012 00:47 AM
    Genius10645 points

    Hi Sweta,

     

    I now can understand what you are trying to do. There is no way to have 3 video pipeline connected to compositor, we could have at max 2 video and 3 grpx.

    I think what Hardik suggested would be a better option, you could use any Mem2Mem driver to composite 3 videos and create one frame, which you could display using video display path.

     

    Thanks,

    Brijesh Jadav

    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • sweta bhatt
    Posted by sweta bhatt
    on Aug 14 2012 01:25 AM
    Expert2205 points

    Hi Brijesh,

    Thanks for clarification. I have one more question to find out whether two video windows can accommodate my use case or not.

    If I use alpha blending, is it possible that I make middle part of video window transparent to show the background video window ?

    eg. I will have my first video window in back ground and front video window will contain 3 logical portions (left part, transparent part and right part)

    Thanks,
    Sweta

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Brijesh Jadav
    Posted by Brijesh Jadav
    on Aug 15 2012 05:34 AM
    Genius10645 points

    Hi Sweta,

     

    It can be done if your front video contains fixed color in the middle part, then you could use color keying to make that path of the video transparent. Otherwise it is not possible to give different alpha value for each pixel for video window.

     

    Thx,

    Brijesh

    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • sweta bhatt
    Posted by sweta bhatt
    on Aug 18 2012 02:09 AM
    Expert2205 points

    Hi Brijesh,

    Thanks for the solution. I understand that transperant color keying can serve the purpose.

    In addition, one thing I wanted to confirm is that, two video windows can be overlaid on each other (without color keying or any other operation), showing the content of both the video windows as shown below.

    While I tried this, I can see only one video window which has higher priority. Is it a limitation ?

    Regards,
    Sweta

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Brijesh Jadav
    Posted by Brijesh Jadav
    on Aug 18 2012 05:48 AM
    Genius10645 points

    Hi Sweta,

     

    We dont suppor small video window over big video window, even compositor requires all input windows to be of same size.

     

    Thx,

    Brijesh

    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • sweta bhatt
    Posted by sweta bhatt
    on Aug 18 2012 05:57 AM
    Expert2205 points

    Hi Brijesh,

    Thanks again. Let me double check my understanding and expectation from overlay.

    If I want to perform color keying, I need to have both video windows of same size (eg. 1920x1080).

    Then, on the front window, I will apply color keying and I should be able see the back window. Correct ?

    Can I please have the sample application for Color keying between two video windows ?
    I modified PSP examples taking reference of VPSS driver userguide but I am not able to achieve the functionality of seeing both video windows.

    Regards,
    Sweta

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Brijesh Jadav
    Posted by Brijesh Jadav
    on Aug 19 2012 00:47 AM
    Genius10645 points

    Hi Sweta,

     

    We dont have sample application demonstrating this feature, please follow the user guide.

     

    Thx,

    Brijesh

    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • HiteshPatel
    Posted by HiteshPatel
    on Aug 20 2012 00:10 AM
    Intellectual315 points
    files.zip

    Hi Brijesh,


    I have written simple application to implement above use case(Color keying between two video window "/dev/video1" and "/dev/video2").
    Please find application as attachment video1.c which will display video on /dev/video1 and video2.c which will display video on /dev/video2 with color keying configuration.

    Problem:

    Using above application I tried to implement color keying for video window. But It is not working. Would you please verify this applications and tell me what is missing? Is there any special sequence for color keying?

    Execution Steps:
    #echo 0 > /sys/devices/platform/vpss/graphics0/enabled
    #echo 0 > /sys/devices/platform/vpss/graphics1/enabled
    #echo 0 > /sys/devices/platform/vpss/graphics2/enabled
    #echo hdcompmux:hdmi > /sys/devices/platform/vpss/video1/nodes
    #./video2 &
    #./video1 &

    Observation:
        It display the video on TV  of video2 application  but it is not able to display the output of vidoe1 on TV. But when I kill the video application then board will show video1 output on TV. It seems that my both video are displaying on TV but because of improper setting of color keying it is not showing the both video on TV same time.

    Thanks & Regards,
    Hitesh Patel

    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