Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeated frames #2

Open
milosladni opened this issue Oct 21, 2016 · 0 comments
Open

Repeated frames #2

milosladni opened this issue Oct 21, 2016 · 0 comments

Comments

@milosladni
Copy link

milosladni commented Oct 21, 2016

When you use read buffers direct for display preview there is not problem because there are not time delay but when you would like to do something else for example compress frame to jpeg you will have some time delay if you do not do it speed enough and then you will miss out some frames.
In that case driver will stuck. If you allocate for example 10 buffers first 9 buffers will has picture from fist filing up and there stuck. Only last buffer will keep going to fill up with correct frame value.
There is patch which should resolve this issue.

@sunxi-tvin/sun7i_tvd-linux-3.4-working/drv_tvd.c

/* Nobody is waiting on this buffer*/
if  (!waitqueue_active(&buf->vb.done))  {
    __dbg(" Nobody is waiting on this buffer,buf = 0x%p\n",buf);
  • goto unlock;
    
    }

Best regards,
Milos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant