Skip to content

improve jpeg size estimate #26

@jepler

Description

@jepler

The jpeg size estimate in capture_buffer_size is causing folks trouble:

        if self.colorspace == OV5640_COLOR_JPEG:
            return self.width * self.height // self.quality

replace it with a better heuristic after gathering information.

note to users affected by this: Instead of using capture_buffer_size in jpeg mode, manually determine the size for your quality & resolution settings. When this value is too small, the capture routine returns None in jpeg mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestDigitalOcean's HacktoberfestbugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions