History

Merge "Using stride (# of elements) instead of pitch (bytes) in fdct8x8."

Dmitry Kovalev committed 13 years ago

Commit a767d102 parents 0c10a94 e5fa44c5 files · +7 −9Browse files

Unified · Split

5 files
  1. test/fdct8x8_test.cc +2 −2
  2. vp9/common/vp9_rtcd_defs.sh +1 −1
  3. vp9/encoder/vp9_dct.c +1 −2
  4. vp9/encoder/vp9_encodemb.c +2 −2
  5. vp9/encoder/x86/vp9_dct_sse2.c +1 −2
test/fdct8x8_test.cc+2−2
@@ -223,7 +223,7 @@ class FwdTrans8x8DCT : public FwdTrans8x8TestBase, · 222 unmodified lines
223 fwd_txfm_ = GET_PARAM(0);223 fwd_txfm_ = GET_PARAM(0);
224 inv_txfm_ = GET_PARAM(1);224 inv_txfm_ = GET_PARAM(1);
225 tx_type_ = GET_PARAM(2);225 tx_type_ = GET_PARAM(2);
226 pitch_ = 16;226 pitch_ = 8;
227 fwd_txfm_ref = fdct8x8_ref;227 fwd_txfm_ref = fdct8x8_ref;
228 }228 }
229 229
@@ -234,7 +234,7 @@ class FwdTrans8x8DCT : public FwdTrans8x8TestBase, · 4 unmodified lines
234 fwd_txfm_(in, out, stride);234 fwd_txfm_(in, out, stride);
235 }235 }
236 void RunInvTxfm(int16_t *out, uint8_t *dst, int stride) {236 void RunInvTxfm(int16_t *out, uint8_t *dst, int stride) {
237 inv_txfm_(out, dst, stride >> 1);237 inv_txfm_(out, dst, stride);
238 }238 }
239 239
240 fdct_t fwd_txfm_;240 fdct_t fwd_txfm_;
vp9/common/vp9_rtcd_defs.sh+1−1
@@ -695,7 +695,7 @@ specialize vp9_short_fht8x8 sse2 · 694 unmodified lines
695prototype void vp9_short_fht16x16 "int16_t *InputData, int16_t *OutputData, int pitch, int tx_type"695prototype void vp9_short_fht16x16 "int16_t *InputData, int16_t *OutputData, int pitch, int tx_type"
696specialize vp9_short_fht16x16 sse2696specialize vp9_short_fht16x16 sse2
697 697
698prototype void vp9_short_fdct8x8 "int16_t *InputData, int16_t *OutputData, int pitch"698prototype void vp9_short_fdct8x8 "int16_t *InputData, int16_t *OutputData, int stride"
699specialize vp9_short_fdct8x8 sse2699specialize vp9_short_fdct8x8 sse2
700 700
701prototype void vp9_short_fdct4x4 "int16_t *InputData, int16_t *OutputData, int pitch"701prototype void vp9_short_fdct4x4 "int16_t *InputData, int16_t *OutputData, int pitch"
vp9/encoder/vp9_dct.c+1−2
@@ -230,8 +230,7 @@ static void fdct8(const int16_t *input, int16_t *output) { · 229 unmodified lines
230 output[7] = dct_const_round_shift(t3);230 output[7] = dct_const_round_shift(t3);
231}231}
232 232
233void vp9_short_fdct8x8_c(int16_t *input, int16_t *final_output, int pitch) {233void vp9_short_fdct8x8_c(int16_t *input, int16_t *final_output, int stride) {
234 const int stride = pitch >> 1;
235 int i, j;234 int i, j;
236 int16_t intermediate[64];235 int16_t intermediate[64];
237 236
vp9/encoder/vp9_encodemb.c+2−2
@@ -391,7 +391,7 @@ void vp9_xform_quant(int plane, int block, BLOCK_SIZE plane_bsize, · 390 unmodified lines
391 xoff = 8 * (block & twmask);391 xoff = 8 * (block & twmask);
392 yoff = 8 * (block >> twl);392 yoff = 8 * (block >> twl);
393 src_diff = p->src_diff + 4 * bw * yoff + xoff;393 src_diff = p->src_diff + 4 * bw * yoff + xoff;
394 vp9_short_fdct8x8(src_diff, coeff, bw * 8);394 vp9_short_fdct8x8(src_diff, coeff, bw * 4);
395 vp9_quantize_b(coeff, 64, x->skip_block, p->zbin, p->round,395 vp9_quantize_b(coeff, 64, x->skip_block, p->zbin, p->round,
396 p->quant, p->quant_shift, qcoeff, dqcoeff,396 p->quant, p->quant_shift, qcoeff, dqcoeff,
397 pd->dequant, p->zbin_extra, eob, scan, iscan);397 pd->dequant, p->zbin_extra, eob, scan, iscan);
@@ -584,7 +584,7 @@ void vp9_encode_block_intra(int plane, int block, BLOCK_SIZE plane_bsize, · 186 unmodified lines
584 if (tx_type != DCT_DCT)584 if (tx_type != DCT_DCT)
585 vp9_short_fht8x8(src_diff, coeff, bw * 4, tx_type);585 vp9_short_fht8x8(src_diff, coeff, bw * 4, tx_type);
586 else586 else
587 vp9_short_fdct8x8(src_diff, coeff, bw * 8);587 vp9_short_fdct8x8(src_diff, coeff, bw * 4);
588 vp9_quantize_b(coeff, 64, x->skip_block, p->zbin, p->round, p->quant,588 vp9_quantize_b(coeff, 64, x->skip_block, p->zbin, p->round, p->quant,
589 p->quant_shift, qcoeff, dqcoeff,589 p->quant_shift, qcoeff, dqcoeff,
590 pd->dequant, p->zbin_extra, eob, scan, iscan);590 pd->dequant, p->zbin_extra, eob, scan, iscan);
vp9/encoder/x86/vp9_dct_sse2.c+1−2
@@ -271,8 +271,7 @@ void vp9_short_fht4x4_sse2(int16_t *input, int16_t *output, · 270 unmodified lines
271 write_buffer_4x4(output, in);271 write_buffer_4x4(output, in);
272}272}
273 273
274void vp9_short_fdct8x8_sse2(int16_t *input, int16_t *output, int pitch) {274void vp9_short_fdct8x8_sse2(int16_t *input, int16_t *output, int stride) {
275 const int stride = pitch >> 1;
276 int pass;275 int pass;
277 // Constants276 // Constants
278 // When we use them, in one case, they are all the same. In all others277 // When we use them, in one case, they are all the same. In all others

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t