Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bitwise and, or, xor with doubles. Pin
TheGreatAndPowerfulOz20-Feb-08 14:09
TheGreatAndPowerfulOz20-Feb-08 14:09 
GeneralRe: Bitwise and, or, xor with doubles. Pin
TheGreatAndPowerfulOz20-Feb-08 14:08
TheGreatAndPowerfulOz20-Feb-08 14:08 
GeneralRe: Bitwise and, or, xor with doubles. Pin
PIEBALDconsult20-Feb-08 14:58
mvePIEBALDconsult20-Feb-08 14:58 
GeneralRe: Bitwise and, or, xor with doubles. Pin
PhilDanger20-Feb-08 14:12
PhilDanger20-Feb-08 14:12 
GeneralRe: Bitwise and, or, xor with doubles. Pin
Christian Graus20-Feb-08 20:10
protectorChristian Graus20-Feb-08 20:10 
GeneralRe: Bitwise and, or, xor with doubles. Pin
Insincere Dave20-Feb-08 14:07
Insincere Dave20-Feb-08 14:07 
GeneralRe: Bitwise and, or, xor with doubles. Pin
Luc Pattyn20-Feb-08 15:59
sitebuilderLuc Pattyn20-Feb-08 15:59 
GeneralHelp with DirectShow.Net Pin
etherny20-Feb-08 12:36
etherny20-Feb-08 12:36 
i'm using this library : http://www.codeproject.com/KB/directx/directshownet.aspx[^]

and i have a problem to use ISampleGrabber with a AVI file reader (IBasicVideo2).

See my code :

<br />
Type comType = null;<br />
                object comObj = null;<br />
<br />
                comType = Type.GetTypeFromCLSID(Clsid.SampleGrabber);<br />
                if (comType == null)<br />
                    throw new NotImplementedException(@"DirectShow SampleGrabber not installed/registered!");<br />
                comObj = Activator.CreateInstance(comType);<br />
<br />
                sb = (ISampleGrabber)comObj;<br />
                <br />
                baseGrabFlt = (IBaseFilter)sb;<br />
<br />
<br />
                AMMediaType media;<br />
                media = new AMMediaType();<br />
                media.majorType = MediaType.Video;<br />
                media.subType = MediaSubType.RGB24;<br />
                media.formatType = FormatType.VideoInfo;<br />
                hr = sb.SetMediaType(media);<br />
                if (hr < 0)<br />
                    Marshal.ThrowExceptionForHR(hr);<br />
                //DsUtils.FreeAMMediaType(media);<br />
<br />
                hr = graphBuilder.AddFilter(baseGrabFlt, "Ds.NET Video Capture Device");<br />
                if (hr < 0)<br />
                    Marshal.ThrowExceptionForHR(hr);<br />
<br />
<br />
/* Problem here */<br />
                /*media = new AMMediaType();<br />
                hr = sb.GetConnectedMediaType(media);<br />
                if (hr < 0)<br />
                    Marshal.ThrowExceptionForHR(hr);*/<br />
                <br />
                <br />
                Marshal.FreeCoTaskMem(media.formatPtr); media.formatPtr = IntPtr.Zero;<br />
                media = null;<br />
<br />
                //sb.SetBufferSamples(false);<br />
                sb.SetOneShot(false);<br />
                //sb.SetCallback(null, 0);<br />
<br />
                sb.SetCallback(this, 1);<br />


The callback is never call.

Someone can help me ?
GeneralRe: Help with DirectShow.Net Pin
Christian Graus20-Feb-08 13:17
protectorChristian Graus20-Feb-08 13:17 
GeneralI need help with errors. Pin
Alex50120-Feb-08 9:48
Alex50120-Feb-08 9:48 
GeneralRe: I need help with errors. Pin
DaveyM6920-Feb-08 9:55
professionalDaveyM6920-Feb-08 9:55 
GeneralRe: I need help with errors. Pin
Skippums20-Feb-08 11:16
Skippums20-Feb-08 11:16 
GeneralRe: I need help with errors. Pin
Christian Graus20-Feb-08 11:39
protectorChristian Graus20-Feb-08 11:39 
GeneralSerializing IEnumerable&lt;int&gt; interface Pin
Skippums20-Feb-08 9:11
Skippums20-Feb-08 9:11 
GeneralRe: Serializing IEnumerable&lt;int&gt; interface Pin
TheGreatAndPowerfulOz20-Feb-08 13:24
TheGreatAndPowerfulOz20-Feb-08 13:24 
GeneralRe: Serializing IEnumerable&lt;int&gt; interface Pin
Skippums21-Feb-08 6:04
Skippums21-Feb-08 6:04 
GeneralRe: Serializing IEnumerable&lt;int&gt; interface Pin
TheGreatAndPowerfulOz21-Feb-08 6:35
TheGreatAndPowerfulOz21-Feb-08 6:35 
Generalinsert text at particular column and row in listview Pin
Xmen Real 20-Feb-08 7:43
professional Xmen Real 20-Feb-08 7:43 
GeneralRe: insert text at particular column and row in listview Pin
DaveyM6920-Feb-08 9:03
professionalDaveyM6920-Feb-08 9:03 
GeneralRe: insert text at particular column and row in listview [modified] Pin
Xmen Real 20-Feb-08 13:38
professional Xmen Real 20-Feb-08 13:38 
GeneralDisplaying context sensitive help AND scrolling the help file to a topic Pin
kozu20-Feb-08 7:37
kozu20-Feb-08 7:37 
Generalget controls inside a form in a Multi form application Pin
Kariem Soudy20-Feb-08 6:45
Kariem Soudy20-Feb-08 6:45 
GeneralRe: get controls inside a form in a Multi form application Pin
DaveyM6920-Feb-08 7:21
professionalDaveyM6920-Feb-08 7:21 
GeneralRe: get controls inside a form in a Multi form application Pin
darkelv20-Feb-08 14:44
darkelv20-Feb-08 14:44 
GeneralRe: get controls inside a form in a Multi form application Pin
Kariem Soudy9-Mar-08 3:23
Kariem Soudy9-Mar-08 3:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.