Re: ISampleGrabber



On Mon, 23 Oct 2006 00:45:56 +1000, Robert Kirk wrote:


Graph is: VCap camera => SamplGrabber => Video Renderer.
I setup the address to my callback function in SamplGrabber filter..
But when it runs I see blank black image (the zero content of the Sample
buffer).
Check my code, please, fellas:

Firstly, make sure you are actually getting inserted correctly - check the
graph in GraphEdit.

Are you sure the callback is being called?

Secondly, I'm not sure how you are determining that the buffer is full of
nothing. Have you code that checks or are you trying to blit it somewhere.

Iain

--
Iain Downs (DirectShow MVP)
Commercial Software Therapist
www.idcl.co.uk
.



Relevant Pages

  • gz compression rates with custom buffer callback
    ... what I want to do is a classic output-buffer callback function that gzencodethe buffer. ... There's a native function for that, I know, but I want a little more: compression stats. ... The flag is set, so I can now send the HTTP header to tell the browser we're gonna send some encoded stuff, and then actually encode it. ...
    (comp.lang.php)
  • Re: callback function immediatly called with an empty buffer
    ... > I try to record a wavefile with wavein API. ... > Waveinprepareheader and waveinAddbuffer work fine, with a waveheader ... > buffer large to hold a few seconds audio. ... > Strangely, just after waveinstart, the callback function is executed, ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: sending HTTP requests... newbie (continued)
    ... places, find the missing .dll files, rediscovering that a lot of file are missing from the different versions of the download libraries, ... constant and the pointer to your callback function. ... typedef struct CurlBuffer ... CurlBuffer buffer; ...
    (comp.programming)
  • IOCTL_DISK_READ
    ... LPBYTE lpOutBuf; ... DeviceIoControl returns true and GetLastError returns 0. ... because my callback function is never called. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Checking link targets are NULL-terminated
    ... Here Just zero the very last byte in the buffer. ... is as space allocated at inode. ... The ext2 will cache this case and write the symlink directly ...
    (Linux-Kernel)

Loading