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.

I am develop the

Other Parts Discussed in Thread: DM3725

Hi,

I am develop the video play function on DM3725 chip, the sequence is as following:

 Init():

                Open Device (“/dev/video2”)

                Query Capability

                Rotate

                Set Pixel Format

                Set Color Key

                Enable Alpha Blending

                Request Buffer

                Query Buffer

                Memory Map

                Queue Buffer

                Set Crop Size

                Set Display Size

                Stream On

 

Play():   loop

                {

                                Dequeue Buffer

                                Fill Data

                                Queue Buffer

                }

 

Exit():

                Stream Off

                Memory Unmap

                Close Device

 

It works well.

But I have a question: when I want to scale the video during playing, I need change the “crop size” and/or “display size” (red steps), which steps above should I do?

Now my solution is run exit() and then init() again, it works but not good, the performance is bad and apparent screen blink is observable, so I want to know which steps could be skipped.

 

Thank you very much.

  • Gang Wu,

    Have you found success with this? If so, please post your method.

    If not, my recommendation is

    1. Cleanly exit the loop
    2. Stream Off
    3. Set Crop Size
    4. Set Display Size
    5. Stream On
    6. Re-enter the loop

    Please let me know if this helps. I have not tested it and I am not an expert on this, but it has been a while since your post and I wanted to at least offer a suggestion.

    Regards,
    RandyP

     

    If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.