• 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 » Embedded Software » Linux » Linux forum » v3dfx with multiple channels not working
Share
Linux
  • Forum
Options
  • Subscribe via RSS
Resources
  • Keystone II MCSDK (A15 Linux) Download
  • Forums

    v3dfx with multiple channels not working

    This question is answered
    Steve Boone
    Posted by Steve Boone
    on Nov 24 2011 07:50 AM
    Intellectual660 points

    I have an application that is trying to display 1 to 4 channels of NTSC (720x480 YUV) video using the v3dfx component. It works well for a single channel. However, when I attempt to display 2, 3 or 4 channels, I do not see any video. All I see is yellow and the performance is poor.

    I've attached a file that shows the code that I am using to display 2 channels.

    7103.v3dfx_example.txt 

    I could really use some TI help on the one. I have been trying to get this working for several weeks now with little success.

    Steve

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • MaheshM
      Posted by MaheshM
      on Dec 08 2011 01:18 AM
      Verified Answer
      Verified by Steve Boone
      Prodigy270 points

      Hi Steve,

      I do not see any issue with the code that you've shared. I can only suspect the frame read from sata. As you might  have seen, our demo itself is for multiple channels (up to 16), which works fine.

      Will it be possible for you to share the complete code?

      Regards,

      Mahesh.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Steve Boone
      Posted by Steve Boone
      on Dec 08 2011 07:23 AM
      Intellectual660 points

      Hi Mahesh,

      The demo is a good starting point but IMO it does not really represent a typical real world use case because all the frames of video are loaded into memory prior to calling any of the v3dfx functions.

      I have been able to get things working by making changes to the v3dfx code itself. I've attached our version of v3dfx for your information.

      8321.v3dfx.cpp.txt

      Basically, we made three changes.

      1. We added code to v3dfx_delete that closes the bccat driver.

      2. We no longer call the InitView function in v3dfx_create.

      3. A macro, DISPLAY_GL_ERROR, was added to check for GL errors (we noticed several).

      We also built the v3dfx code into a library. I think it would be a good idea if TI did this as well.

      Thanks, Steve 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Prabindh Sundareson
      Posted by Prabindh Sundareson
      on Mar 01 2012 01:38 AM
      Verified Answer
      Verified by Steve Boone
      Expert4455 points

      Hello Steve, based on your feedback, we have created/ refactored the code-base into a more modular fashion.

      - A framework independent reusable C++ class

      - A set of Qt framework wrapper classes - that provide QGLWidget, and QGraphicsScene functionalities separately

      - A suite of test applications - both standalone, and Qt based - including a complete Ultrasound Image viewer that shows < 8% CPU loading

      Complete source code, and documentation is available at,

      https://github.com/prabindh/v3dfx-base

       


       

      Note: Post the output of below Script, while posting queries related to SGX drivers:

      https://gforge.ti.com/gf/download/docmanfileversion/203/3715/gfx_check.sh

      Also read the below page,

      http://processors.wiki.ti.com/index.php/SGXDbg

      For User Interface queries, submit below details for faster response,

      https://gforge.ti.com/gf/download/docmanfileversion/220/3798/UI_graphics_reqs_sheet_v1.xls

       

      qt SGX v3dfx
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Steve Boone
      Posted by Steve Boone
      on Mar 09 2012 08:44 AM
      Intellectual660 points

      Hi Prabindh,

      Thanks. I will check this out.

      I have some more feedback for you based on our requirements and requests from our customers.

      1. It would be helpful if v3dfx could support different resolutions/formats for each video channel.

      2. A per-channel region of interest feature would be nice.  I envision that the user would specify a region of interest (x,y,wd,ht) for a specific channel and the v3dfx code would scale only this region. This could be used to implement zooming.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Steve Boone
      Posted by Steve Boone
      on Apr 13 2012 17:15 PM
      Intellectual660 points

      Hi Pradindh,

      Do you know if the original v3dfx provided with the 4.05.00.01 Graphics SDK will work if the HDMI display is not 1080P (calling v3dfx_create with dwidth=1280 and dheight=1024)?

      For example, I changed the HDMI resolution to output 1280x1024 using the sysfs interface and the frame buffer using the fbdev driver software interface. The Qt graphics look fine but the video that I am displaying using v3dfx is scrambled.

      I am loading pvrsrvkm, omaplb and bufferclass_ti at boot time prior to making the above changes (using a C++ program). Maybe these need to be unloaded an reloaded when the resolution is changed?

      I can only get decent video when the HDMI resolution is 1080p.

      Any ideas?

      Thx, Steve

      v3dfx
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Prabindh Sundareson
      Posted by Prabindh Sundareson
      on Apr 13 2012 20:59 PM
      Expert4455 points

      Yes.

      >> Maybe these need to be unloaded an reloaded when the resolution is changed?

       


       

      Note: Post the output of below Script, while posting queries related to SGX drivers:

      https://gforge.ti.com/gf/download/docmanfileversion/203/3715/gfx_check.sh

      Also read the below page,

      http://processors.wiki.ti.com/index.php/SGXDbg

      For User Interface queries, submit below details for faster response,

      https://gforge.ti.com/gf/download/docmanfileversion/220/3798/UI_graphics_reqs_sheet_v1.xls

       

      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