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

  • Home
  • SEARCH
  • 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 858065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:29:37+00:00 2026-05-15T08:29:37+00:00

I am targeting windows machines. I need to get access to the pointer to

  • 0

I am targeting windows machines. I need to get access to the pointer to the byte array describing the individual streaming frames from an attached usb webcam. I saw the playcap directshow sample from the windows sdk, but I dont see how to get to raw data, frankly, I don’t understand how the video actually gets to the window. Since I don’t really need anything other than the video capture I would prefer not to use opencv.

Visual Studio 2008 c++

  • 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-05-15T08:29:37+00:00Added an answer on May 15, 2026 at 8:29 am

    Insert the sample grabber filter. Connect the camera source to the sample grabber and then to the null renderer. The sample grabber is a transform, so you need to feed the output somewhere, but if you don’t need to render it, the null renderer is a good choice.

    You can configure the sample grabber using ISampleGrabber. You can arrange a callback to your app for each frame, giving you either a pointer to the bits themselves, or a pointer to the IMediaSample object which will also give you the metadata.

    You need to implement ISampleGrabberCB on your object, and then you need something like this (pseudo code)

    IFilterInfoPtr      m_pFilterInfo;
    ISampleGrabberPtr   m_pGrabber;
    
    m_pGrabber = pFilter;
    
    m_pGrabber->SetBufferSamples(false);
    m_pGrabber->SetOneShot(false);
    
    // force to 24-bit mode
    AM_MEDIA_TYPE mt;
    ZeroMemory(&mt, sizeof(mt));
    mt.majortype = MEDIATYPE_Video;
    mt.subtype = MEDIASUBTYPE_RGB24;
    m_pGrabber->SetMediaType(&mt);
    
    m_pGrabber->SetCallback(this, 0);
    // SetCallback increments a refcount on ourselves,
    // but we own the grabber so this is recursive
    /// -- must addref before SetCallback(NULL)
    Release();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a C# (targeting full framework 4) windows app. I need that
I'm building an application that is targeting Windows, Mac and Linux soon. I was
I'm building a compiler/assembler/linker in Java for the x86-32 (IA32) processor targeting Windows. High-level
I have an existing codebase targeting a Windows environment and with an eye to
By requirement, I'm targeting old legacy Windows systems (9x branch) where getaddrinfo() and freeaddrinfo()
I'm targeting .NET 3.5, but cannot get System.Data to come up in Intellisense. What
I'm developing an application targeting .NET Framework 2.0 using C# for which I need
I have single-thread windows form application written with VB.NET and targeting Framework 1.1 .
I'm doing some embedded DOS development with OpenWatcom (great Windows-hosted compiler for targeting 16-bit
We are developing Stand alone application in .net compact framework 2.0 targeting windows ce

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.