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.

Resizer problem.

Hi,

I am using DM6437, I want to resize the image frame grabbed in the video_preview example in the SDK from 480x720 to 240x360. I tried the psp bios resizer, when building the example provided with the SDK it runs fine. However when I tried to add the resizer code into the video_preview example, then resizer does not work.

 

When I step to the GIO_Create function, resizer GIO_Handle, rszfd, returned is NULL. So the resize won't work.

 

rszfd = GIO_create("/resizer", IOM_INOUT, NULL, (void *)&memSegId, &gioAttrs);

 

 

I would like to ask if I were to add the psp bios resizer into the video preview example, is there any I have to add or modify in the video preview example to make it work?

  • Hi Oon,

    Let me clarify one thing here. Video_preview is your application(Not the example code provided by the BIOS PSP) wherein you are trying to resize the image frame from 480x720 to 240x360. So, referring to the example provided by the BIOS PSP, you added the resizer code into the video_preview example.

    Cheah Hun Oon said:

    rszfd = GIO_create("/resizer", IOM_INOUT, NULL, (void *)&memSegId, &gioAttrs);

    Here "GIO_create" creates a GIO_Obj object and opens a communication channel. This function initializes the I/O channel and opens the lower-level device driver channel. "/resizer" is the name specified for the device when it was created in the configuration or at runtime. So, before opening a communication channel the device "/resizer" needs to be created. And this is done during the configuration(.tci file) 

    For Ex:

    /*
     * ======== resizer0 Configuration ========
     */
    bios.UDEV.create("resizer");
    bios.UDEV.instance("resizer").fxnTable = prog.extern("RSZMD_FXNS");
    bios.UDEV.instance("resizer").fxnTableType = "IOM_Fxns";

     

    Make sure this is included in your application project - video_preview example(in the .tci file). For further details, you can also refer to PSP_User_Guide - section 1.3.4(Placed in: pspdrivers_1_10_03\docs\dm6437).

    Thanks & regards,

    Raghavendra