GithubHelp home page GithubHelp logo

actfw-core's People

Contributors

amutake avatar bonotake avatar cutsea110 avatar eguchi1904 avatar ishiy1993 avatar keens avatar kenoss avatar laysakura avatar notogawa avatar riku179 avatar umadein avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

actfw-core's Issues

Test captureing

We need more tests for quick and stable improvement.
We can make a virtual video device with some tools like akvcam

usege of `v4lconvert_try_format` is wrong

def try_convert(self, conf, expected_width, expected_height, expected_format):
fmt = format()
fmt.type = V4L2_BUF_TYPE.VIDEO_CAPTURE
fmt.fmt.pix.width = conf.width
fmt.fmt.pix.height = conf.height
fmt.fmt.pix.pixelformat = conf.pixel_format
fmt.fmt.pix.field = V4L2_FIELD.INTERLACED
expected_fmt = format()
expected_fmt.type = V4L2_BUF_TYPE.VIDEO_CAPTURE
expected_fmt.fmt.pix.width = expected_width
expected_fmt.fmt.pix.height = expected_height
expected_fmt.fmt.pix.pixelformat = expected_format
expected_fmt.fmt.pix.field = V4L2_FIELD.INTERLACED
result = _v4lconvert.try_format(self.converter, byref(expected_fmt), byref(fmt))
if -1 == result:
raise RuntimeError("incompatible format")
before = (expected_width, expected_height, expected_format)
after = (expected_fmt.fmt.pix.width, expected_fmt.fmt.pix.height, expected_fmt.fmt.pix.pixelformat)
if before == after:
return (fmt, expected_fmt)
else:
return None

The header file says:

https://github.com/philips/libv4l/blob/master/include/libv4lconvert.h#L63-L75

The function v4lconvert_try_format is not for check whether we can convert pictures from src_fmt to dest_fmt:
The function is to get src_fmt which we finally get dest_fmt.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.