Click here to Skip to main content
15,927,055 members
Home / Discussions / Graphics
   

Graphics

 
QuestionRe: How To use DirectX 9.0 for displaying video from devices and capturing frames Pin
Mark Salsbery27-Aug-08 6:24
Mark Salsbery27-Aug-08 6:24 
AnswerRe: How To use DirectX 9.0 for displaying video from devices and capturing frames Pin
LoneInvader200727-Aug-08 19:53
LoneInvader200727-Aug-08 19:53 
AnswerRe: How To use DirectX 9.0 for displaying video from devices and capturing frames Pin
Mark Salsbery26-Aug-08 6:17
Mark Salsbery26-Aug-08 6:17 
QuestionNoobie Direct3D Help Pin
Paul Zaczkowski25-Aug-08 6:07
Paul Zaczkowski25-Aug-08 6:07 
Questionhow to draw line dynamically using OpenGL Pin
King Tran25-Aug-08 4:11
King Tran25-Aug-08 4:11 
AnswerRe: how to draw line dynamically using OpenGL Pin
Cedric Moonen26-Aug-08 2:09
Cedric Moonen26-Aug-08 2:09 
QuestionVirtual camera control/DLL Pin
tjschilling22-Aug-08 5:43
tjschilling22-Aug-08 5:43 
QuestionVideo Standard Changing in Crossbar device [modified] Pin
bhanu_850922-Aug-08 3:40
bhanu_850922-Aug-08 3:40 
Dear All,

I have already have some problem with Crossbar device and got some clues from this message board (my previous post) and finally fixes it.

Now I have another issue, when I want to change the standard of the video in the Crossbar device I cannot change it. I tried with some codes given in MSDN but when I use it my program gets hanged. Please help me. My code snippet is given below :

AM_MEDIA_TYPE *pmt = NULL;
	IAMStreamConfig *pConfig = NULL;
		hr = pBuilder->FindInterface(&PIN_CATEGORY_CAPTURE, &MEDIATYPE_Video, VideoSourceFilter, IID_IAMStreamConfig,  (void**)&pConfig);

	int iCount, iSize;
	BYTE *pSCC = NULL;
	hr = pConfig->GetNumberOfCapabilities(&iCount, &iSize);
	pSCC = new BYTE[iSize];
	if (pSCC == NULL)
	{
		// TODO: Out of memory error.
	}
	hr = pConfig->GetStreamCaps(typ, &pmt, pSCC);//typ is the variable to hold the index of the Video Standards
	if (hr == S_OK)
	{
		hr = pConfig->SetFormat(pmt);
		
		if (FAILED(hr))
		{
			// TODO: Error handling.
		}
		DeleteMediaType(pmt);
	}
	delete [] pSCC;

Also, I study something about AnalogVideoStandard Enumeration in MSDN http://msdn.microsoft.com/en-us/library/ms779296(VS.85).aspx[^], but I dont get any clues on how to implement according to my program.

modified on Friday, August 22, 2008 9:55 AM

QuestionOpenGL orbit camera problems Pin
cmos20-Aug-08 6:43
cmos20-Aug-08 6:43 
QuestionHow to measure high refresh rates? Pin
higil19-Aug-08 20:10
higil19-Aug-08 20:10 
QuestionFastest way to capture screen? Pin
Daniel Jansson19-Aug-08 8:11
Daniel Jansson19-Aug-08 8:11 
AnswerRe: Fastest way to capture screen? Pin
Mark Salsbery19-Aug-08 9:05
Mark Salsbery19-Aug-08 9:05 
GeneralRe: Fastest way to capture screen? Pin
Daniel Jansson20-Aug-08 3:48
Daniel Jansson20-Aug-08 3:48 
GeneralRe: Fastest way to capture screen? Pin
Mark Salsbery20-Aug-08 5:05
Mark Salsbery20-Aug-08 5:05 
Questionneed suggestion Pin
ulucky19-Aug-08 2:11
ulucky19-Aug-08 2:11 
Questionerror code: S1001 for directx sdk June 2008 Pin
JoshTheMan18-Aug-08 20:22
JoshTheMan18-Aug-08 20:22 
AnswerRe: error code: S1001 for directx sdk June 2008 Pin
Tim Craig19-Aug-08 17:58
Tim Craig19-Aug-08 17:58 
QuestionRe: error code: S1001 for directx sdk June 2008 Pin
Jack_Voltaire10-Sep-08 1:07
Jack_Voltaire10-Sep-08 1:07 
QuestionSetPixel() too slow? Pin
Naturality18-Aug-08 10:49
Naturality18-Aug-08 10:49 
AnswerRe: SetPixel() too slow? Pin
Matthew Butler18-Aug-08 12:35
Matthew Butler18-Aug-08 12:35 
GeneralRe: SetPixel() too slow? Pin
Naturality18-Aug-08 13:01
Naturality18-Aug-08 13:01 
GeneralRe: SetPixel() too slow? Pin
Mark Salsbery18-Aug-08 14:38
Mark Salsbery18-Aug-08 14:38 
GeneralRe: SetPixel() too slow? Pin
Naturality19-Aug-08 11:28
Naturality19-Aug-08 11:28 
Questioncan rotation be performed using translation itself? Pin
ashishsagarwal18-Aug-08 6:22
ashishsagarwal18-Aug-08 6:22 
QuestionXNA 3d model formats Pin
MikeMarq17-Aug-08 6:12
MikeMarq17-Aug-08 6:12 

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.