]> granicus.if.org Git - libjpeg-turbo/commitdiff
Remove unused code (the destination manager is not used during YUV encoding, there...
authorDRC <dcommander@users.sourceforge.net>
Fri, 28 Feb 2014 05:27:55 +0000 (05:27 +0000)
committerDRC <dcommander@users.sourceforge.net>
Fri, 28 Feb 2014 05:27:55 +0000 (05:27 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.2.x@1129 632fc199-4ca6-4c93-a231-07263d6284db

turbojpeg.c

index 50fb1e3537eaafb6219ea6ce7f7705142c60bca5..6a987f7c72ef297409b6530d74b5fe6f726b103d 100644 (file)
@@ -535,7 +535,6 @@ DLLEXPORT int DLLCALL tjEncodeYUV2(tjhandle handle, unsigned char *srcBuf,
        else if(flags&TJFLAG_FORCESSE2) putenv("JSIMD_FORCESSE2=1");
 
        yuvsize=tjBufSizeYUV(width, height, subsamp);
-       jpeg_mem_dest_tj(cinfo, &dstBuf, &yuvsize, 0);
        if(setCompDefaults(cinfo, pixelFormat, subsamp, -1, flags)==-1) return -1;
 
        /* Execute only the parts of jpeg_start_compress() that we need.  If we
@@ -545,12 +544,9 @@ DLLEXPORT int DLLCALL tjEncodeYUV2(tjhandle handle, unsigned char *srcBuf,
        if(cinfo->global_state!=CSTATE_START)
                _throw("tjEncodeYUV3(): libjpeg API is in the wrong state");
        (*cinfo->err->reset_error_mgr)((j_common_ptr)cinfo);
-       (*cinfo->dest->init_destination)(cinfo);
        jinit_c_master_control(cinfo, FALSE);
        jinit_color_converter(cinfo);
        jinit_downsampler(cinfo);
-       jinit_c_prep_controller(cinfo, FALSE);
-       (*cinfo->mem->realize_virt_arrays)((j_common_ptr)cinfo);
 
        pw=PAD(width, cinfo->max_h_samp_factor);
        ph=PAD(height, cinfo->max_v_samp_factor);