Blend de-interlace support imx8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Blend de-interlace support imx8

858 Views
arunkumar_rajag
Contributor III

Hi,

For one of the project we wanted to support blend de-interlace to capture camera content and do scaling and color conversion.

Platform details - Linux 4.14.98-2.3.2 running on imx8qx

Is blend deinterlace supported as part of 4.14.98-2.3.2?

 As part of the function mxc_isi_channel_set_deinterlace, we could see the blend de-interlace method is marked as TODO.

/* de-interlacing method
* Weaving-------------Yes
* Line Doubling-------No
* Blending -----------TODO*/

Can we get few details on configuring blend de-interlace mode?

 

Based on linux reference implementation we are doing it on M4. As per the Application processor reference manual (IMX8DQXPRM_Rev_D.pdf), we tried configuring the ISI channels, but we could not succeed. Looks like 'source from memory' for ISI0 is not functional

Here are the steps we followed

  1. Configured ISI4 for capture and weaving mode, an intermediate buffer configured as output for this channel
  2. Configuration for ISI0
    1. de-interlace disabled - 0x00
    2. input buffer pointed to intermediate buffer (output of ISI4)
    3. CTRL[SRC_TYPE] configured to 1 (image input src memory)
    4. Selected the CTRL[SRC] field – 0x5 (input port 5) -  here are few clarifications

IS 0x5 the right value to be configured as SRC for ISI0? Do we need to do any specific configuration for input port 5?

In order to check for ISI0 configurations, ISI0 SRC field changed to 0x04, we could see the data present on input port 4, is this confirms the ISI0 configuration is correct?

As per this looks to be source from memory for ISI0 is not functional, any specific configurations needed other than input/output BUF configurations?

Do we need to do any trigger in case of blend de-interlace configuration? We have also tried software controlled memory read by configuring ISI4 for capture and weaving.

@danwei 

Thanks

Arun

 

0 Kudos
3 Replies

844 Views
igorpadykov
NXP Employee
NXP Employee

Hi Arunkumar

 

patch was sent you via mail.

 

Best regards
igor

0 Kudos

467 Views
ToarteFretter
Senior Contributor I

Hi @igorpadykov,

Could you confirm that de-interlacing using blending is supported on the i.MX8QM too, when capturing interlaced signals from the MIPI-CSI? It’s because we got everything working so far (for PAL and NTSC), but it seems that the odd/even field indication is lost between the MIPI and ISI, or at least it looks like that. Basically, in 50% of the cases when a video signals is hooked up, it is getting properly de-interlaced, in the other cases the odd and even lines are swapped and things look ugly. It’s also unclear to us how the odd/even field indication gets transferred over the internal pixel link from the MIPI-CSI towards the ISI?

For your information, the odd/even lines getting swapped is already visible in the intermediate YUYV buffers generate by ISI channel 1, which then enters ISI channel 0 to get blended and CSC’ed.

Thanks in advance!

Regards.

0 Kudos

832 Views
arunkumar_rajag
Contributor III

Thanks a lot, we will check this and come back.

Tags (1)
0 Kudos