diff options
author | jstebbins <[email protected]> | 2013-10-14 16:08:19 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2013-10-14 16:08:19 +0000 |
commit | 186685f0ab2f2db4e37d50e8291ef8997153d831 (patch) | |
tree | c422b3d72f8eecabc39f1fe2579a0d909f8f00c1 /libhb/vadxva2.c | |
parent | 603adfcb52ac7a2520c5d3f4830a801829671c13 (diff) |
libhb: remove dead code
The unused portions of the opencl scaling code were not removed before commit
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5837 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/vadxva2.c')
-rw-r--r-- | libhb/vadxva2.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libhb/vadxva2.c b/libhb/vadxva2.c index 4137b63c6..be82f8372 100644 --- a/libhb/vadxva2.c +++ b/libhb/vadxva2.c @@ -20,7 +20,6 @@ #endif #include "oclnv12toyuv.h" -#include "scale.h" #endif #ifdef USE_HWD @@ -577,34 +576,6 @@ static void hb_copy_from_nv12( uint8_t *dst, uint8_t *src[2], size_t src_pitch[2 } } -#ifdef USE_OPENCL -void hb_init_filter( cl_mem src, int srcwidth, int srcheight, uint8_t* dst, int dstwidth, int dstheight, int *crop ) -{ - T_FilterLink fl = {0}; - int STEP = srcwidth * srcheight * 3 / 2; - int OUTSTEP = dstwidth * dstheight * 3 / 2; - int HEIGHT = srcheight; - int LINESIZEY = srcwidth; - int LINESIZEUV = srcwidth / 2; - - cl_mem cl_outbuf; - - if( !hb_create_buffer( &(cl_outbuf), CL_MEM_WRITE_ONLY, OUTSTEP ) ) - { - hb_log("av_create_buffer cl_outbuf Error"); - return; - } - - fl.cl_outbuf = cl_outbuf; - - scale_run( src, fl.cl_outbuf, LINESIZEY, LINESIZEUV, HEIGHT ); - - hb_read_opencl_buffer( fl.cl_outbuf, dst, OUTSTEP ); - CL_FREE( cl_outbuf ); - - return; -} -#endif /** * lock frame data form surface. * nv12 to yuv with opencl and with C reference |