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.

DM365 resize problem

I am using the dvsdk_2_10_01_18 with DM365 resize test. But when excute error occured(See source and output) .

What is the problem?

#source

 Int main(Int argc, Char *argv[])
{
 BufferGfx_Attrs gfxAttrs = BufferGfx_Attrs_DEFAULT;
 Resize_Attrs rszAttrs = Resize_Attrs_DEFAULT;
 Buffer_Handle hInBuf, hOutBuf;
 Resize_Handle hResize;
  Int32 bufSize;
 ColorSpace_Type IncolorSpace = ColorSpace_YUV420PSEMI
 ColorSpace_Type OutcolorSpace = ColorSpace_YUV420PSEMI

 CERuntime_init(); 

 Dmai_init();

 Dmai_setLogLevel(Dmai_LogLevel_All);  

 //in buffer
 gfxAttrs.dim.x = 0;
 gfxAttrs.dim.y = 0;
 gfxAttrs.dim.width = 640;
 gfxAttrs.dim.height = 352;
  gfxAttrs.dim.lineLength = ((Int32)((BufferGfx_calcLineLength(gfxAttrs.dim.width, IncolorSpace)+31)/32))*32;

    if (IncolorSpace ==  ColorSpace_YUV420PSEMI)
     bufSize = gfxAttrs.dim.lineLength * gfxAttrs.dim.height * 3 / 2;
    else
        bufSize = gfxAttrs.dim.lineLength * gfxAttrs.dim.height * 2;
   
 gfxAttrs.colorSpace = IncolorSpace;
 hInBuf = Buffer_create(bufSize, BufferGfx_getBufferAttrs(&gfxAttrs));
  

 //out buffer
 gfxAttrs.dim.x = 0;
 gfxAttrs.dim.y = 0; 
 gfxAttrs.dim.width = 1280;
 gfxAttrs.dim.height = 720;
  gfxAttrs.dim.lineLength = ((Int32)((BufferGfx_calcLineLength(gfxAttrs.dim.width, OutcolorSpace)+31)/32))*32;
 
    if (OutcolorSpace ==  ColorSpace_YUV420PSEMI)
     bufSize = gfxAttrs.dim.lineLength * gfxAttrs.dim.height * 3 / 2;
    else
        bufSize = gfxAttrs.dim.lineLength * gfxAttrs.dim.height * 2;

 gfxAttrs.colorSpace = OutcolorSpace;
 hOutBuf = Buffer_create(bufSize, BufferGfx_getBufferAttrs(&gfxAttrs));

 hResize = Resize_create(&rszAttrs);
 if (hResize==NULL)
 {
  printf("Resize_create failed\n");
  return -1;
 }
 if (Resize_config(hResize, hInBuf, hOutBuf)!=Dmai_EOK)
 {
  printf("Resize_config failed\n");
  return -1;
 }

 // Fill hInBuf with video data
 if (Resize_execute(hResize, hInBuf, hOutBuf)!=Dmai_EOK)
 {
  printf("Resize_execute failed\n");
  return -1;
 }
 
 Resize_delete(hResize);
 
 Buffer_delete(hInBuf);
 Buffer_delete(hOutBuf);

}

 

#output

[ipipe_set_resize_config()] oper_mode = 1
@0x000aa35f:[T:0davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:1:0:176
x40020af0] ti.sd[ipipe_set_resize_config()] oper_mode = 1
o.dmai - [Dmai] davinci_resizer davinci_resizer.2: rsz_validate_out_pix_formatspix format not supported, 9
Log level set todavinci_resizer davinci_resizer.2: set resizer config failed
 2.
@0x000aaac1:[T:0x40020af0] ti.sdo.dmai - [Buffer] Alloc Buffer of size 1382400 at 0x403ca000 (0x871d6000 phys)
@0x000aacf8:[T:0x40020af0] ti.sdo.dmai - [Buffer] Alloc Buffer of size 1382400 at 0x40544000 (0x8705c000 phys)
@0x000aaf07:[T:0x40020af0] ti.sdo.dmai - [Buffer] Alloc Buffer of size 1382400 at 0x406be000 (0x86ee2000 phys)
@0x000b2db6:[T:0x40020af0] ti.sdo.dmai - [Resize] Error in setting default configuration for single shot mode 2nd
Resize_config failed