Browse Source

Remove special functions from JPEG compressor

We can do what we want with the standard methods.
tags/v1.11.90
Pierre Ossman 4 years ago
parent
commit
0cd533cf7f
2 changed files with 1 additions and 7 deletions
  1. 1
    1
      common/rfb/JpegCompressor.cxx
  2. 0
    6
      common/rfb/JpegCompressor.h

+ 1
- 1
common/rfb/JpegCompressor.cxx View File

@@ -95,7 +95,7 @@ JpegEmptyOutputBuffer(j_compress_ptr cinfo)
JpegCompressor *jc = dest->instance;

jc->setptr(jc->getend());
jc->overrun(jc->getend() - jc->getstart());
jc->check(jc->length());
dest->pub.next_output_byte = jc->getptr();
dest->pub.free_in_buffer = jc->avail();


+ 0
- 6
common/rfb/JpegCompressor.h View File

@@ -47,12 +47,6 @@ namespace rfb {

void writeBytes(const void*, int);

inline rdr::U8* getstart() { return start; }

inline virtual void overrun(int needed) {
return MemOutStream::overrun(needed);
}

private:

struct jpeg_compress_struct *cinfo;

Loading…
Cancel
Save