Move rescaler methods out of io.c.

(cherry picked from commit b5e9db1824f6efbe0bfb87e94b8d6e88a7973ef7)
This commit is contained in:
Urvang Joshi
2012-03-20 10:59:22 +00:00
committed by James Zern
parent 6f7bf645b4
commit 3eacee8158
3 changed files with 202 additions and 188 deletions

View File

@ -159,6 +159,25 @@ void WebPCopyDecBuffer(const WebPDecBuffer* const src,
// Copy and transfer ownership from src to dst (beware of parameter order!)
void WebPGrabDecBuffer(WebPDecBuffer* const src, WebPDecBuffer* const dst);
//------------------------------------------------------------------------------
// Cropping and rescaling.
// Setup crop_xxx fields, mb_w and mb_h
int WebPIoInitFromOptions(const WebPDecoderOptions* const options,
VP8Io* const io);
// Initialize a rescaler given scratch area 'work' and dimensions of src & dst.
void WebPRescalerInit(WebPRescaler* const wrk, int src_width, int src_height,
uint8_t* dst, int dst_width, int dst_height,
int dst_stride, int x_add, int x_sub, int y_add,
int y_sub, int32_t* work);
// Import a row of data and save its contribution in the rescaler.
void WebPRescalerImportRow(const uint8_t* const src, WebPRescaler* const wrk);
// Export a row from rescaler.
void WebPRescalerExportRow(WebPRescaler* const wrk);
//------------------------------------------------------------------------------
#if defined(__cplusplus) || defined(c_plusplus)