Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. User defined codec function

User defined codec function

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 506 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MR.Smith
    wrote on 14 Mar 2017, 07:10 last edited by MR.Smith
    #1

    Hello!

    In my application I need to decode byte stream (from some external hardware). Initially in application decoding algorithm is not defined.
    What the best way for define decoding algorithm in application?

    Typical algorithm (but not always) - data manipulation for extract from QByteArray data and pack it into bool, int and float data types. No crypto & etc.

    I already tested QScript. My result is 250 kbit/s maximum data stream processing for one core of Intel Core i5 (for not complicated algorithm). I need more performance.

    Now I would like to try define algorithm in DLL and use QLibrary for dynamicly load decoding function. I think this method would be more faster.

    May be in Qt exist any special feature for resolving this problem?

    J 1 Reply Last reply 14 Mar 2017, 07:23
    0
    • M MR.Smith
      14 Mar 2017, 07:10

      Hello!

      In my application I need to decode byte stream (from some external hardware). Initially in application decoding algorithm is not defined.
      What the best way for define decoding algorithm in application?

      Typical algorithm (but not always) - data manipulation for extract from QByteArray data and pack it into bool, int and float data types. No crypto & etc.

      I already tested QScript. My result is 250 kbit/s maximum data stream processing for one core of Intel Core i5 (for not complicated algorithm). I need more performance.

      Now I would like to try define algorithm in DLL and use QLibrary for dynamicly load decoding function. I think this method would be more faster.

      May be in Qt exist any special feature for resolving this problem?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 14 Mar 2017, 07:23 last edited by
      #2

      @MR.Smith Instead of using QLibrary you could use plug-ins: http://doc.qt.io/qt-5/plugins-howto.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      1/2

      14 Mar 2017, 07:10

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved