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.

V4L2 output display

Other Parts Discussed in Thread: TVP5158

Hi

I have created, such as attachment handling code.
There is a problem.
1. Even field of image capture will be black.
Afterimage will remain.
2. When you print an image on an NTSC monitor, you draw a rectangle flickers.

Please tell me what's wrong.

7652.THY120817_buffer.pdf

Regards

hideki

  • Hi,

    RGB conversion cant be done on interlaced image. This is because CSC cant propagate FID to the upstream module. YUV to RGB is supported only for progressive modes and not for interlaced modes.

    Regards,

    Hardik Shah

  • Hi,

    Thats why if you try to run saLoopBackFbdev in interlaced input, it wil throw error saying YUV to RGB conversion is not supported for interlaced capture.

  • Hi Hardik Shah,

    Thank you for your reply.

    1.I have used in the Non-Interleaved Mode the TVP5158 video-decorder.
       Am I correct in this case, I have been thinking format is going to be Progressive?

    2.I think the setting is successful, the following V4L2_FIELD_NONE TVP5158 output format if the Progressive, it will be interlaced and lead the set value. Why?

    /* Set format according to mode detected */
    capt.fmt.fmt.pix.width = VIDEO_IMAGE_WIDTH;
    capt.fmt.fmt.pix.height = VIDEO_IMAGE_HEIGHT;
    capt.fmt.fmt.pix.field = V4L2_FIELD_NONE;                                                 Have been set to V4L2_FIELD_INTERLACED
    capt.fmt.fmt.pix.bytesperline = capt.fmt.fmt.pix.width * 3;
    capt.fmt.fmt.pix.sizeimage = capt.fmt.fmt.pix.bytesperline * capt.fmt.fmt.pix.height;
    capt.fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB24;
    ret = ioctl(capt.fd, VIDIOC_S_FMT, &capt.fmt);
    if (ret < 0) {
         qDebug("Set Format failed\n");
         return (-2);
    }

    Regards,

    Hideki

  • Hi,

    TVP5158 can give you NTSC and PAL output only, which is interlaced, and with interlaced inputs scaling and color conversion is not possible.

  • Hi Hardik,

    Thank you for your reply

    tvp5158 - bt.656 (interlace) ---> vp0 poatA --- yuv >> rgb ---> v4l2 ---> RGB map
    I think it is the path that says for example.
    Can you get the RGB input from tvp5158 What can I do? What are my options?

    Regard,

    Hideki

  • Hi,

    Unfortunately its not possible to get RGB out and YUV in for interlaced inputs. But why you need RGB, any specific reason.

  • Hi,

    I want to image processing.

    RGB-> ImageProcessing -> R'G'B ' 

    I have entered into the DSP via the FPGA tvp5158.
    Do you think there is a need to convert interlace-> progressive in FPGA?
    Without using the RGB, Will you be able to capture if YUV?

    Regards,

    hideki