Code Monkey home page Code Monkey logo

apt-encoder's Issues

Minute Markers?

Great Program, but where are the Minute-Markers? When I decode the processed image, the telemetry is clearly visible but the black and white stripes on the right side of the image are missing! There is only a black and a white bar continuosly.

0 byte output

the output file gives 0 bytes when encoded
using: "apt-encode ~/img.pgm > encode.raw"

Command Line Error (Linux)

Hi! I'm having an error when I try to feed my images in to the program...

Here's the commands I used

convert testcard.png -flatten -resize 909x511 testcard.pgm

convert testcard.png -flatten -resize 909x511 testcard2.pgm

./apt-encode testcard.pgm testcard2.pgm > encode.raw

And here's the error I get:

apt-encode: apt-encode.cpp:79: void Image::load(): Assertion `buf[1] == '2'' failed.                                                                                                                               
Aborted

Assertion failed

I was just trying to build it but it just doesn't work. It just says Assertion failed: buf[0] == 'P', file apt-encode.cpp, line 78 and if I delete that line, another error just pops up. I even tried installing another c++ compiler and it still doesn't work. I don't have make installed though.

Build Process Help!

Could you run me through how I am supposed to "make" the software?

I cant figure out how to build on Windows but I tried running "make" on my raspberry pi 4 and I got this output:

g++`` -Wall -Wextra -Werror -pedantic -std=c++17 -Os -flto -s -o apt-encode apt-en code.cpp

apt-encode.cpp: In constructor ‘Image::Image(const char*)’: apt-encode.cpp:72:13: error: format ‘%lu’ expects argument of type ‘long unsigne d int*’, but argument 3 has type ‘size_t*’ {aka ‘unsigned int*’} [-Werror=format =] fscanf(f, "%lu %lu %lu", &width, &m_height, &maxValue); ^~~~~~~~~~~~~ ~~~~~~
apt-encode.cpp:72:13: error: format ‘%lu’ expects argument of type ‘long unsigne d int*’, but argument 4 has type ‘size_t*’ {aka ‘unsigned int*’} [-Werror=format =] apt-encode.cpp:72:13: error: format ‘%lu’ expects argument of type ‘long unsigne d int*’, but argument 5 has type ‘size_t*’ {aka ‘unsigned int*’} [-Werror=format =] cc1plus: all warnings being treated as errors make: *** [Makefile:5: apt-encode] Error 1

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.