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

OpenCV-free BGRA capture using Epiphan DVI2PCIe Duo #46

Open
dzhoshkun opened this issue Oct 30, 2018 · 7 comments
Open

OpenCV-free BGRA capture using Epiphan DVI2PCIe Duo #46

dzhoshkun opened this issue Oct 30, 2018 · 7 comments

Comments

@dzhoshkun
Copy link
Contributor

This is part of #9 But opening a new issue to be able to handle this sub-task separately, as #9 involves other similar-scale tasks as well. Will pick the development from the current #9 branch.

dzhoshkun added a commit that referenced this issue Oct 30, 2018
dzhoshkun added a commit that referenced this issue Oct 30, 2018
dzhoshkun added a commit that referenced this issue Oct 30, 2018
dzhoshkun added a commit that referenced this issue Oct 31, 2018
dzhoshkun added a commit that referenced this issue Oct 31, 2018
dzhoshkun added a commit that referenced this issue Oct 31, 2018
@dzhoshkun
Copy link
Contributor Author

Line 68 of epiphan/samples/v2u_lib/src/v2u_bmp.c shows the Epiphan ARGB32 format to be packed.

@dzhoshkun
Copy link
Contributor Author

dzhoshkun commented Nov 1, 2018

  • epiphan/samples/v2u_lib/src/v2u_bmp.c lists (see the "flip" bit!):
      /* format */                /* opt */ /* fourcc */  /* flip */
...
    { V2U_GRABFRAME_FORMAT_ARGB32 ,"argb32" ,NULL        ,V2U_TRUE  },

@dzhoshkun
Copy link
Contributor Author

The frames are scrambled even at C++ level. Confirmed with:

#include "videosourcefactory.h"
#include "videotargetfactory.h"
#include <thread>
#include <chrono>

int main()
{
    IVideoSource *src = gg::VideoSourceFactory::get_instance().get_device(gg::Device::DVI2PCIeDuo_SDI, gg::ColourSpace::BGRA);
    gg::IVideoTarget *tgt = gg::VideoTargetFactory::get_instance().create_file_writer(gg::Codec::HEVC, "bgra.mp4", src->get_frame_rate());
    src->attach(*tgt);
    std::this_thread::sleep_for(std::chrono::duration<double, std::milli>(10000));
    src->detach(*tgt);
    gg::VideoSourceFactory::get_instance().free_device(gg::Device::DVI2PCIeDuo_SDI);
    delete tgt;
    return 0;
}

dzhoshkun added a commit that referenced this issue Apr 16, 2019
dzhoshkun added a commit that referenced this issue Apr 16, 2019
dzhoshkun added a commit that referenced this issue Apr 16, 2019
dzhoshkun added a commit that referenced this issue Apr 16, 2019
dzhoshkun added a commit that referenced this issue Apr 16, 2019
dzhoshkun added a commit that referenced this issue Apr 30, 2019
Revert "Issue #46: using buttom-up flag with for ARGB captures"

This reverts commit a0f3f53.
@dzhoshkun dzhoshkun removed their assignment Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants