diff options
author | Andriy Chepurnyy <x0155536@ti.com> | 2012-10-29 10:43:50 +0200 |
---|---|---|
committer | Daniel Levin <dendy@ti.com> | 2012-11-26 20:17:15 +0200 |
commit | e54099214a3a1c340f4785c9e4d46265cecbfb49 (patch) | |
tree | 61382b7684bdfc464bbe20a30d0a2fa0d88fb5bf | |
parent | d4cf3e4e28b189825fafdd062168b8f26dd2eea0 (diff) | |
download | hardware_ti_omap4-e54099214a3a1c340f4785c9e4d46265cecbfb49.zip hardware_ti_omap4-e54099214a3a1c340f4785c9e4d46265cecbfb49.tar.gz hardware_ti_omap4-e54099214a3a1c340f4785c9e4d46265cecbfb49.tar.bz2 |
CameraHal: Prevent sw decoder buffer reallocation.
- This patch fix continuous buffer reallocation bug
in Decoder_libjpeg in case of resolution changes on
more greater that was on startup.
Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
Change-Id: If62359af9ceca87800f8b819b4da0aa1b40b58b1
-rwxr-xr-x | camera/Decoder_libjpeg.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camera/Decoder_libjpeg.cpp b/camera/Decoder_libjpeg.cpp index e1f2c7c..5cdaa11 100755 --- a/camera/Decoder_libjpeg.cpp +++ b/camera/Decoder_libjpeg.cpp @@ -218,6 +218,8 @@ bool Decoder_libjpeg::decode(unsigned char *jpeg_src, int filled_len, unsigned c CAMHAL_LOGEA(" Free the existing buffers so that they are reallocated for new w x h. Old WxH = %dx%d. New WxH = %dx%d", mWidth, mHeight, cinfo.output_width, cinfo.output_height); release(); + mWidth = cinfo.output_width; + mHeight = cinfo.output_height; } unsigned int decoded_uv_buffer_size = cinfo.output_width * cinfo.output_height / 2; |