Coder Social home page Coder Social logo

Comments (4)

jerpelea avatar jerpelea commented on August 29, 2024

I am looking into it ASAP

from nuttx.

patacongo avatar patacongo commented on August 29, 2024

A related issus the the use, or rather the lacke of the use of the video driver initialization function: video_initialize().

That function should be called from the board bringup() functions but it is not. In fact, it is not called from anywhere in the OS. Searching a little, we find that it is insanely called from the Sony SDK applications directly. That is very bad design: Calling directly into the OS from application bypassing the portable, POSIX interface is strictly forbidden. From the INVIOLABLES.txt:

Strict POSIX compliance
-----------------------

  o Strict conformance to the portable standard OS interface as defined at
    OpenGroup.org.
  o The portable interface must never be compromised only for the sake of
    expediency.
  o Expediency or even improved performance are not justifications for
    violation of the strict POSIX interface.

My recommendation is:

  1. Remove the direct call to video_initialize() from the SDK application. It is not needed.
  2. Add the call to video_initialize() to the spresense bringup() logic.
  3. Remove the (now extern'ed) global variable g_video_devops from include/nuttx/video/video.h and mark the g_video_devops global variable in drivers/video/video.c as static
  4. Add a : FAR const struct video_devops_s *devops argument to video_initialize()
  5. Provide the video_devops_s instance to the driver with video_initialize() in the spresense bringup() function.

The current situation is intolerable and must be corrected!

from nuttx.

jerpelea avatar jerpelea commented on August 29, 2024

I am sorry for the long response time and thanks for the suggestion.
I will implement and test the suggestion.

from nuttx.

jerpelea avatar jerpelea commented on August 29, 2024

@patacongo can we close the issue?

from nuttx.

Related Issues (20)

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.