• 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 » DM64x DaVinci Video Processor Forum » DM6437 Previewer YUV422 Conversion Issue
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

DM6437 Previewer YUV422 Conversion Issue

DM6437 Previewer YUV422 Conversion Issue

This question is not answered
Franck
Posted by Franck
on Jan 04 2012 09:06 AM
Intellectual685 points

Hello,

I am using the DM6437 Previewer module to convert on the fly a RAW image to YUV422. The input RAW image from the video port is 8-bits wide (PCR.width = 8 bits). I tried using the parameters provided with the PSP Previewer sample application, which look like this for the major ones:

  PrevParams->features = (PSP_PREVIEWER_CFA);
  PrevParams->sizeParam.pixelSize = PSP_PREVIEWER_INWIDTH_8BIT;
  PrevParams->rgbBlendingParam.blending[0][0] = 0x1A1;
  PrevParams->rgbBlendingParam.blending[0][1] = 0xF8A;
  PrevParams->rgbBlendingParam.blending[0][2] = 0xFD5;
  PrevParams->rgbBlendingParam.blending[1][0] = 0xFA1;
  PrevParams->rgbBlendingParam.blending[1][1] = 0x1C4;
  PrevParams->rgbBlendingParam.blending[1][2] = 0xF9B;
  PrevParams->rgbBlendingParam.blending[2][0] = 0xFBD;
  PrevParams->rgbBlendingParam.blending[2][1] = 0xFB1;
  PrevParams->rgbBlendingParam.blending[2][2] = 0x192;
  PrevParams->rgbBlendingParam.offset[0]      = 0;
  PrevParams->rgbBlendingParam.offset[1]      = 0;
  PrevParams->rgbBlendingParam.offset[2]      = 0;
  PrevParams->rgb2ycbcrParam.coeff[0][0] = 0x04C;
  PrevParams->rgb2ycbcrParam.coeff[0][1] = 0x096;
  PrevParams->rgb2ycbcrParam.coeff[0][2] = 0x01D;
  PrevParams->rgb2ycbcrParam.coeff[1][0] = 0x3D4;
  PrevParams->rgb2ycbcrParam.coeff[1][1] = 0x3AC;
  PrevParams->rgb2ycbcrParam.coeff[1][2] = 0x082;
  PrevParams->rgb2ycbcrParam.coeff[2][0] = 0x082;
  PrevParams->rgb2ycbcrParam.coeff[2][1] = 0x395;
  PrevParams->rgb2ycbcrParam.coeff[2][2] = 0x3EB;
  PrevParams->rgb2ycbcrParam.coeff[0][0] = 0x100;
  PrevParams->rgb2ycbcrParam.coeff[0][1] = 0x00;
  PrevParams->rgb2ycbcrParam.coeff[0][2] = 0x0;
  PrevParams->rgb2ycbcrParam.yOffset     = 0;
  PrevParams->rgb2ycbcrParam.cbOffset    = 0;
  PrevParams->rgb2ycbcrParam.crOffset    = 0;
  PrevParams->contrast   = 0x10;
  PrevParams->brightness = 0x20;

When using these params, I get an output image that is correct, but the Y component tops at around 159 instead of 255 even with a saturated input image (all pixels at 255). If I remove the brightness offset (PrevParams->brightness = 0), the Y component tops at 127.

Here are some observations:

- I could validate that the video port actually sends saturated 255 RGB values since I am also using the H3A module connected on the video port which shows that pixels are at 255.

- I tried to configure the Previewer with very basic parameters that would just copy a single pixel intensity in Y:
  1- CFA disabled which causes missing RGB components to take the same value as the known component
  2- Identity RGB blending matrix to remove any gain on RGB components
  3- RGB to YCbCr matrix filled with zeros except for the rgb2ycbcrParam.coeff[0][0] which gives a gain of 1 (0x100).
  Even with all these params that should only copy a single pixel intensity in Y, there is a /2 factor in the output (max Y is 127).

Accordingly to the VPFE user guide, I can't explain where this /2 division appears. Would anybody have a clue for helping me identifying the source of this problem?

Regards,

Franck

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • ellen wang
    Posted by ellen wang
    on Mar 16 2012 01:43 AM
    Intellectual630 points

    You don't have the ccdc exchange problem when using the preview on the fly problem ?

    Could you help me check the program I use?

    Or you have the solution for it ?

    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