Project

General

Profile

Actions

Support Request #12226

closed

ADTF 2 dat file compression

Added by hidden over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Customer:
VW
Department:
CARMEQ
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
Solved Issue
Product Issue Numbers:
Affected Products:
Platform:
Ubuntu 18.04 64bit, Windows 10 64bit
Topic:
ADTF::FilterSDK
FAQ Links:

Description

Supportanfrage

Quick question:
For our own filter we want to write compressed files (using zip or gzip). The HD-Recorder can compress its dat-files.
So, are there any public functions within the ADTF2-SDK or any available libraries in the ADTF2 installation we might use?

Lösung

cFileCompression is the only functionality available.
The Recorder compresses DAT Files after they have been closed.
As the DAT Format requires random write access to the file, a streaming based compression is not an option.

Actions #1

Updated by hidden over 3 years ago

Oh, I just found cFileCompression.

In fact, I has hoping for a stream compression, which compresses "along the way" of writing the file.
Is it wise to compress a file at cFilter::Stop() or cFilter::Shutdown()? This might slow down the shutdown process heavily? Which strategy is used by the HD-Recorder?

Actions #2

Updated by hidden over 3 years ago

  • Status changed from New to In Progress
  • Topic set to ADTF::FilterSDK
Actions #3

Updated by hidden over 3 years ago

Hi Marc,

yep, unfortunately cFileCompression is the only functionality available. The Recorder compresses DAT Files after they have been closed. As the DAT Format requires random write access to the file, a streaming based compression is not an option.

Maybe using something like https://bitbucket.org/wbenny/ziplib/wiki/Home is an option for you.

Regards,

Martin

Actions #4

Updated by hidden over 3 years ago

  • Status changed from In Progress to Customer Feedback Required
Actions #5

Updated by hidden over 3 years ago

Unfortunately the ziplib is C++11, since we need a solution for ADTF2 we cannot use this.
We are now using cFileCompression (after closing the original stream). I seems to work fast enough.

Thanks. Ticket can be closed.

Actions #6

Updated by hidden over 3 years ago

  • Project changed from 4 to Public Support
  • Subject changed from ADTF2 File compression to ADTF 2 dat file compression
  • Description updated (diff)
  • Status changed from Customer Feedback Required to To Be Closed
  • Private changed from Yes to No
  • Resolution set to Solved Issue
Actions #7

Updated by hidden over 2 years ago

  • Status changed from To Be Closed to Closed
Actions

Also available in: Atom PDF