From 4eb5df28d1196ab76e23af03e65914efa45be88e Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Mon, 10 Oct 2016 18:08:47 +0200 Subject: [PATCH] remove unused stride fields from VP8Iterator Change-Id: I242aaa746dc53c456eb8f1a71a5a2378f26fa843 --- src/enc/iterator.c | 2 -- src/enc/vp8enci.h | 1 - 2 files changed, 3 deletions(-) diff --git a/src/enc/iterator.c b/src/enc/iterator.c index 199ac1c0..8a851972 100644 --- a/src/enc/iterator.c +++ b/src/enc/iterator.c @@ -67,8 +67,6 @@ int VP8IteratorIsDone(const VP8EncIterator* const it) { void VP8IteratorInit(VP8Encoder* const enc, VP8EncIterator* const it) { it->enc_ = enc; - it->y_stride_ = enc->pic_->y_stride; - it->uv_stride_ = enc->pic_->uv_stride; it->yuv_in_ = (uint8_t*)WEBP_ALIGN(it->yuv_mem_); it->yuv_out_ = it->yuv_in_ + YUV_SIZE_ENC; it->yuv_out2_ = it->yuv_out_ + YUV_SIZE_ENC; diff --git a/src/enc/vp8enci.h b/src/enc/vp8enci.h index ed83bd6d..00c9d0c0 100644 --- a/src/enc/vp8enci.h +++ b/src/enc/vp8enci.h @@ -219,7 +219,6 @@ typedef struct { // right neighbouring data (samples, predictions, contexts, ...) typedef struct { int x_, y_; // current macroblock - int y_stride_, uv_stride_; // respective strides uint8_t* yuv_in_; // input samples uint8_t* yuv_out_; // output samples uint8_t* yuv_out2_; // secondary buffer swapped with yuv_out_.