Giter Club home page Giter Club logo

hwvideodec_nvidia's Introduction

dependencies

  • google glog 0.5.0
  • CUDA11.1
  • FFmpeg 4.3.1
  • Nvidia driver >= 456.71

使用说明

  • videoDec *videodec = new videoDec(GpuID, videoFileName, video_interval);
  • void *bgraPtr = videodec->getFrameAddr(); // 类内对原始图片进行了内存分配,getFrameAddr 可以获取内存地址,返回地址为显存和内存 UMA 地址,图片类型为 BGRA package 图片,与 opencv 内存分布一致
  • void *inTensor = videodec->outTensorMalloc(dstWidth, dstHeight, channel, MaxBatchsize); //分配进入 tensorrt 网络内存空间,也可以采用 cudaMalloc 自行分配管理,类型为 NCHW float
  • RoiRects Rois; 定义 bgra->dnn input 的转换关系,最大支持 32 个 Roi ,处理方式为由 roi->resize->dnn input ,支持 通道归一化和 normal 归一化
  • getSrcFrame 更新最近帧数据

hwvideodec_nvidia's People

Stargazers

 avatar  avatar

Watchers

 avatar

hwvideodec_nvidia's Issues

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.