Remove special functions from JPEG compressor

We can do what we want with the standard methods.
This commit is contained in:
Pierre Ossman
2020-05-19 21:24:58 +02:00
committed by Lauri Kasanen
parent 57a3c3bba8
commit 281d65292a
2 changed files with 1 additions and 7 deletions

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();

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;