summaryrefslogtreecommitdiffstats
path: root/python_modules
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-06-24 12:13:03 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-07-22 16:53:56 +0200
commit1d808d31f42925ff3dcbc3504bc2c9c49ebd2ef7 (patch)
tree089741e7f27380851414f8040b6521e2efa97ee1 /python_modules
parent22743bee9f8041dd0003ae25c530df268d57abd6 (diff)
downloadspice-1d808d31f42925ff3dcbc3504bc2c9c49ebd2ef7.tar.gz
spice-1d808d31f42925ff3dcbc3504bc2c9c49ebd2ef7.tar.xz
spice-1d808d31f42925ff3dcbc3504bc2c9c49ebd2ef7.zip
mjpeg_encoder: rework output buffer allocation
When encoding a frame, red_worker passes an allocated buffer to libjpeg where it should encode the frame. When it fails, a new bigger buffer is allocated and the encoding is restarted from scratch. However, it's possible to use libjpeg to realloc this buffer if it gets too small during the encoding process. Make use of this feature, especially since it will make it easier to encore one line at a time instead of a full frame in subsequent commits.
Diffstat (limited to 'python_modules')
0 files changed, 0 insertions, 0 deletions