Remove special functions from JPEG compressor
We can do what we want with the standard methods.
This commit is contained in:
committed by
Lauri Kasanen
parent
57a3c3bba8
commit
281d65292a
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user