A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
i am able to communicate TW9990 via I2C , Now i am facing issue to convert data YCbCr to ARGB8888. I am using CubeMX for code generation of DCMI. configuration is below in snap
I got a reference code from examples what it seems it tacking data in RGB656
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
i am able to communicate TW9990 via I2C , Now i am facing issue to convert data YCbCr to ARGB8888. I am using CubeMX for code generation of DCMI. configuration is below in snap
I got a reference code from examples what it seems it tacking data in RGB656
as JPEG Decoder example(stm32h743), it decode the jpeg buffer into YCbCr buffer and DMA2D_copy_Buffer () function convert YCbCr in to RGB.
in my project i tried start DMA of DCMI to get ycbcr output and pass the address of YCbCr buffer address to DMA2D_copy_Buffer () but i am not getting RGB output
if(HAL_DCMI_Start_DMA(&hdcmi, DCMI_MODE_CONTINUOUS,JPEG_OUTPUT_DATA_BUFFER, 0x0f00000)!=HAL_OK)
{
Error_Handler();
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void HAL_DCMI_LineEventCallback(DCMI_HandleTypeDef *hdcmi)
{
/* Prevent unused argument(s) compilation warning */
UNUSED(hdcmi);
/* NOTE : This function Should not be modified, when the callback is needed,
the HAL_DCMI_LineEventCallback could be implemented in the user file
*/
DMA2D_CopyBuffer((uint32_t *)JPEG_OUTPUT_DATA_BUFFER, (uint32_t *)LCD_FRAME_BUFFER, 0 , 0, 648, 488 ,JPEG_422_SUBSAMPLING);
xa=0;
}
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
as JPEG Decoder example(stm32h743), it decode the jpeg buffer into YCbCr buffer and DMA2D_copy_Buffer () function convert YCbCr in to RGB.
in my project i tried start DMA of DCMI to get ycbcr output and pass the address of YCbCr buffer address to DMA2D_copy_Buffer () but i am not getting RGB output
if(HAL_DCMI_Start_DMA(&hdcmi, DCMI_MODE_CONTINUOUS,JPEG_OUTPUT_DATA_BUFFER, 0x0f00000)!=HAL_OK)
{
Error_Handler();
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void HAL_DCMI_LineEventCallback(DCMI_HandleTypeDef *hdcmi)
{
/* Prevent unused argument(s) compilation warning */
UNUSED(hdcmi);
/* NOTE : This function Should not be modified, when the callback is needed,
the HAL_DCMI_LineEventCallback could be implemented in the user file
*/
DMA2D_CopyBuffer((uint32_t *)JPEG_OUTPUT_DATA_BUFFER, (uint32_t *)LCD_FRAME_BUFFER, 0 , 0, 648, 488 ,JPEG_422_SUBSAMPLING);
xa=0;
}