Thanks Jochen for your reply. I also found that Windows Supports both formats YUY2 or NV12. But, I am struggling why it is randomly showing either format which proves that there are some setting that needs to be set As I did not get any theory/description on getting random format from these two formats. Thanks Again for your Reply.
002comp
Posts
-
IDirect3DSurface9 Problem after Windows 10 Update Creator -
IDirect3DSurface9 Problem after Windows 10 Update CreatorHello Is that possible that I get different Format from particular one machine and unchanged hardware? As after Windows 10 Update, sometimes I am getting NV12 surface format and sometimes YUY2. Thank you.
-
IDirect3DSurface9 Problem after Windows 10 Update CreatorThanks Jochen for your Reply. It makes a sense that As I read on many formuns that latest windows10 update had problem with Graphic drivers beacause it is not behaving correctly with the updates so some of them choose to roll back. Again Thanks a Lot.
-
IDirect3DSurface9 Problem after Windows 10 Update CreatorHello Guys I am creating a direct3D surface for further creation of OffScreenplainSurface for video sample. And This Code was working fine before Windows10 Update. After Update, I found that IDirect3DSurface not returning the right D3DSURFACE_DESC.format which I am using to createOffScreenPlainSurface. Here is the Code
CComPtr sampleSurface;
MFGetService(mediaBuffer, MR_BUFFER_SERVICE, __uuidof(IDirect3DSurface9), (void**)&sampleSurface);D3DSURFACE_DESC surfaceDesc;
sampleSurface->GetDesc(&surfaceDesc);CComPtr sharedSampleSurface;
HANDLE shareHandleSurface = 0;
device3D->CreateOffscreenPlainSurface(
surfaceDesc.Width,
surfaceDesc.Height,
surfaceDesc.Format,
D3DPOOL_DEFAULT,
&sharedSampleSurface,
&shareHandleSurface
);Now, after windows10 Update surfaceDesc.format = 842094158 not the D3DFMT_YUY2 And I realized that sometimes after restart of Machine, it returns D3DFMT_YUY2 which looks like some services in windows10 update obstructing MFGetService. I found one service sppsvc which automatic delayed start and Trigger start but I am not able to get much of it. Any Help will be Appreciated. Thank You.
-
Convert string name to Control ID NameSo many buttons are requirement of Application. Actually, I tried with Macro. But ,again I need to use Variable value to identify 100 buttons tht macro doesn't consider variable. I used like #define CONCAT(ID,NUMBER) ID##NUMBER And IN Code for(int num =0; num < 100; num++) CONCAT(m_Button,num) So, this one fails.
-
Convert string name to Control ID NameHello Friends I am creating 100s of buttons in Window application.I used naming like IDB_BUTTON1, IDB_BUTTON2..... IDB_BUTTON100.And assign variable m_button1. Now, I want to convert string (m_button+ ID) to m_button1 of CButton type. Regards
-
Error : Application was unable o start correctly(0xc000007b).no, there is no manifest resource.
-
Error : Application was unable o start correctly(0xc000007b).I am running debug build on development machine only.Still no Luck.
-
Error : Application was unable o start correctly(0xc000007b).Hello Friends I converted MFC application to 64 bit using VS 2013. My exe is working in Release build.But As I run in Debug Build,it pops up with Window error saying "The Application was unable to start correctly(0x0c000007b).Click OK to close the application." After Google, I tried different methods As suggested [Copied mfc100.dll,mfc00u.dll,msvcp100.dll,msvcr100.dll,msvcr100_clr0400.dll] to System32 folder. I installed vs2010,vs2013 redistributable package too bt no Luck. Any Ideas? Thanks & Regards Yogesh Sikri
-
Can we Update Animation in .X File using DirectX3DHello Friends I am new to Direct3D. I am implementing an application in which one of module I am loading .x File with Animation. But that animation can't be static and can't be load everytime as .x Format. Animation will keep on changing and m having its Vertex data for every new animation. So, I want to know that Can we Change or Update a single animation with my own vertex data using Direct3D ? Any Help will be Appreciated. Thanks & Regards YOS
-
Missing DirectShow BaseClasses in Windows8.1 sdk KitHello Friends I was using DirectshowBaseclasses samples from Windows7.1 sdk with VS2010. But After upsating on Windows8.1 with Vs2013, I am not able to find samples in Windows8.1 sdk to use directshow base classes. Basically, I am looking for CBaseVideoRenderer. If these classes are changes to some other location, please let me know if anybody using it. Any Help will be Appreciated. Thanks & Regards Yogesh Sikri
-
How to keep Size of Application Constant [Dialog Based]Hello Friends I created a Dialog based application in MFC Inherited from CFormView. I created this application on resolution 1024 X 768. But when I am opening the same application on another system with Higer Resolution then window is opening of full size in window with Extra Blank space in application other than Controls. Can we make application size Constant or make maximize button disable so tht on Higher resolution Desktop,it will not open up with blank space ? Or Can we resize controls according to resolution ? Thanks & Regards Yogesh Sikri
-
Convert Raster image to vector geometryThanks Joe for your Reply. But, I want to know that Will this Library works well on Pictures taken from Camera. As I am not working with Images created in Computer. Let me know. Regards Yogesh Sikri
-
Convert Raster image to vector geometryHello Friends I am looking for Graphics Library which helps me in Converting a Raster Image to vector Geometry. I tried OpenCV but Results are not that Good as I expected. I used FindContours Algo,canny,Sobel using openCV libraries but the Vector Info that I get is not satisfied. So, I am looking for an another Graphics Library which can help me out in Finding Vector of a raster image. Thanks In Advance. Regards Yogesh Sikri
-
Can we Directly write a Class Object with vectors as member into FILE ?Ok, But Boost::Serialization seems to me a heavy library. It wud be better to have one own and fun to learn a new framework. Anyway, thanks Buddy For all your replies. Regards Y
-
Can we Directly write a Class Object with vectors as member into FILE ?Thanks Dear In case of using AutoSerial, Do I need to include only AutoSerial.h ? or Something else I need to do. I didn't get from this Docs. Thanks Once Again. Regards Y
-
Can we Directly write a Class Object with vectors as member into FILE ?ok, I understand. But this library is very old and not compiling,one of header file is missing. Do we have any other Library for serialization Except Boost ? Thanks For your Reply. Regards Y
-
Can we Directly write a Class Object with vectors as member into FILE ?Hello Friends I am writing to File using FILE object Pointer using fread and fwrite functions. this is my class:
class Test
{
public:
int a;
int b;
std::vector c;
};If I don't use vector then it is writing fine and reading too. But after using vector,its not reading properly if use fread(&obj,sizeof(Test),1,file); Do I need to Write separately vectors using std::ostream_iterator and using copy method of STL? Or is there any way If I Can Write Directly class object in single shot bcoz my class is having too many vectors as member variables. Regards Y
-
How can I Get Value of SPDRP_LEGACYBUSTYPE ?Thanks A Lot jochen I followed your post and get succeed in getting Bus Relation value[Device Id] which gives me Printer name. Thank you Very Much Again. Regards Y
-
How can I Get Value of SPDRP_LEGACYBUSTYPE ?Thanks jochen for your Reply. I tried ur way but it is not the value that I was looking For. May be you can give more Ideas. here is what I want. When I right Click on USB Device from Device manager,it open up properties Dialog where we can select property and its value. Here, I found one property "bus relation" Bus relation value is showing like this : USBPRINT\CANONIP4200\6&19ACF&0&USB001 This is the device Instance Id. But when I tried to get same using SetDiGetDeviceInstanceId,it gives me like USB\VID_04A9&PID_10A2\C34BBD How can I get USBPRINT\CANONIP4200\6&19ACF&0&USB001 ? Regards Y