Coder Social home page Coder Social logo

Comments (2)

MikhailAMD avatar MikhailAMD commented on June 12, 2024

Hi,
AMF does not provide a replacement for DX9, DX11 or OpenCL device handling. For the proper adapter enumeration and device creation application is encouraged to use these APIs. There is a sample VCEEncoderD3D that shows how to do it. Check DeviceDX9.h/cpp, DeviceDX11.h/cpp and DeviceOpenCL.h/cpp. I don't think you need OpenGL.
Once you have a DX device you can initialize AMF and check capabilities. I think the VCE AMF plug-in is already doing so. In any case, CapabilityManager sample will help.
If the app intends to use OpenCL and choose to create own OCL device and context it is important to pass the correct DX9 or/and DX11 devices created earlier for interop between APIs to work. AMF encoder works only via DX9 or via DX11. DeviceOpenCL.cpp has the code. Though, you can rely on AMF to do OpenCL initialization and then get OpenCL device and context and query additional properties if needed.
AMFComputeFactory provides OpenCL device enumeration and creation but not connected to any DX. It is used primary for AMD True Audio Next SDK.

from amf.

Xaymar avatar Xaymar commented on June 12, 2024

Alright thank you. I will take a look at the VCEEncoderD3D example and see what I can do myself.

from amf.

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.