Hi everyone,
I'm working on DM3730 to display videos frames but I have some trouble on it.
I have found and written some code on system.
Display_Handle hDisplayx = NULL;
Display_Attrs dAttrsx = Display_Attrs_O3530_VID_DEFAULT;
Buffer_Handle dBufx;
Dmai_init();
/* Create the video display */
dAttrsx.videoStd = VideoStd_VGA ;
dAttrsx.videoOutput = args->videoOutput; //"dvi" format
if((hDisplayx = Display_create(NULL , &dAttrsx)) == NULL ){
ret = Dmai_EFAIL;
fprintf(stderr,"Failed to open display device\n");
cleanup();
return ret;
}
for(int p = 0 ; p < 2000; p++) {
if(Display_get(hDisplayx, &dBufx)<0)
printf("Display_get can't work\n");
if(Display_put(hDisplayx, dBufx)<0)
printf("Display_put can't work");
}
Display_delete(hDisplayx);
return -1;
I have written a code that seeming up there. When I run my code , it always show me a green screen. it has 640x480. it has no error it s working but I can't see any cameras frames. only green screen.
Has any idea about it.
I researched lots of documentation to display in dm3730. I actually try it but no true response to me.
Regards.