/sec-omc-coder

Tool decode/encode OMC files for Samsung

Primary LanguageC

SeC-OMC-Coder

Build-macOS-latest Actions Status Build-Ubuntu-latest Actions Status

Rozhuk Ivan rozhuk.im@gmail.com 2021-2024

Decode / Encode Samsung CSC files.
Based on: https://github.com/fei-ke/OmcTextDecoder

Licence

BSD licence.

Donate

Support the author

  • GitHub Sponsors: "GitHub Sponsors"
  • Buy Me A Coffee: "Buy Me A Coffee"
  • PayPal: PayPal
  • Bitcoin (BTC): 1AxYyMWek5vhoWWRTWKQpWUqKxyfLarCuz

Compilation

Linux

sudo apt-get install build-essential git fakeroot
git clone https://github.com/rozhuk-im/sec-omc-coder.git
cd sec-omc-coder/src
cc sec-omc-coder.c -O2 -lm -o sec-omc-coder

FreeBSD/DragonFlyBSD

sudo pkg install git
git clone https://github.com/rozhuk-im/sec-omc-coder.git
cd sec-omc-coder/src
cc sec-omc-coder.c -O2 -lm -o sec-omc-coder

Usage

Decode

cat cscfeature.xml | sec-omc-coder -d | gzip --decompress

or

sec-omc-coder -d cscfeature.xml | gzip --decompress

Encode

cat cscfeature.xml | gzip --best | sec-omc-coder -e