This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

processing a pixel in dm6437..

hi,

am doin my work on object tracking.. i need to process the pixel values for this.. i ve taken video_preview as my base.. the problem is am unable to process the pixel.. whatever i try to do, nothin is working out..

then i tried with the xample present in http://wiki.davincidsp.com/index.php?title=Accessing_pixels_in_a_frame_on_DM643x.. this program doesn't getting executed.. it is showing jus the first screen of my input video.. it keeps showing the same screen.. i ve read all the forums related to this and am still unable to get it..

pls help me out.. i ve written the C code for my work and i am simply unable to implement in the board.. :(

  • i am giving the input through s-video and getting the output thru s-video out.. the video_preview example which comes with the software s working but not the one which is given in the site wiki..

      while ( status == 0 ) {


          /* grab a fresh video input frame */
        FVID_exchange(hGioVpfeCcdc, &frameBuffPtr);

    /* i ve written my code here and the frame is not at all gettin processed as expected.. */

        FVID_exchange(hGioVpbeVid0, &frameBuffPtr);

      }

    and i also need to initialise an array of length a[720][480].. how ll i allot memory for the same..

    someone pls help me as i hav to embed my code in 2 days and its my deadline..

     

  • keerthi said:
    i am giving the input through s-video and getting the output thru s-video out..

    Have you tried using composite input and composite output? I have never tried the s-video interfaces.

    keerthi said:
    and i also need to initialise an array of length a[720][480].. how ll i allot memory for the same..

    If you were to define the array globally it would already exist when you load your program, as to allocating it at run time you could do this with a call to malloc(), just be sure you have enough heap space to handle that size of allocation.

  • thanks bernie..

    sorry i am giving the input through composite input and output thru svideo.. wil it make a difference of using composite output and s-video..?? am able to see the output as wat ever i give as input..

    i ve allotted some heap.. it s havin an option to give a name.. if i giv a name, should i use it somewhere else to use tht memory or i can leave it without giving a name..