Resolved! there is a delay between caling dcmi_start_dma function and data being actually received in dcmi_dr
there is a delay between caling dcmi_start_dma function and data being actually received in dcmi_dr in stm32l4r9discovery the pixel clock is 24 mhz