Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8314597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:52:32+00:00 2026-06-08T20:52:32+00:00

I am currently developing a Metro Style App which uses an MFT (Media Foundation

  • 0

I am currently developing a Metro Style App which uses an MFT (Media Foundation Transform) to filter the webcam’s video stream into grayscale, as demonstrated in this sample.

However, now I want to apply other types of filters, such as exposure, hue, luminance, texture, vignette, etc. This answer says I am supposed to modify the TransformChroma method in order to achieve this. Unfortunately, I can’t figure out how to get the Y value, I can only get the U and V. How do I get the Y value in the formats NV12, YUY2, and UYVY?

All help is greatly appreciated and I always accept an answer!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T20:52:34+00:00Added an answer on June 8, 2026 at 8:52 pm

    You would need to change the signature of the method (an poto take another parameter and modify the TransformImage_UYVY, TransformImage_YUY2 and TransformImage_NV12 methods to pass that parameter into the updated method. You would need to figure out how to extract that value for yourself though though. For example looking at this piece of code below you can see how the U and V values are extracted and that the Y value is split in two bytes – you would need to do some bit logic to join these. You can find descriptions of these formats online, e.g. here.

    // Byte order is U0 Y0 V0 Y1
    // Each WORD is a byte pair (U/V, Y)
    // Windows is little-endian so the order appears reversed.
    BYTE u = pSrc_Pixel[x] & 0x00FF;
    BYTE v = pSrc_Pixel[x+1] & 0x00FF;
    
    TransformChroma(mat, &u, &v);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Am currently developing an iPad app which uses a UIScrollView. The UIScrollView is populated
I'm developing metro-style app for Windows 8. Currently I use buttons with arrows for
im currently developing an app which plays the steam audio using MediaPlayer class. And
I am currently developing a mobile app which need the current position of the
I am currently developing a software which uses irrlicht library. I want to use
Im currently developing an In-House Enterprise application. I will publish the app using Apple
I'm currently developing a facebook app that needs access to a users photos. It
Im currently developing a program that uses a scrollable/zoomable image as the main user
I'm currently developing an application which needs a lot of system and process information,
Hi I'm currently developing an app that requires a very large download (100-200MB) on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.