Browse Source

simple_idct: change 10-bit add/put stride from pixels to bytes

This matches other dsputil functions and simplifies calls.

Signed-off-by: Mans Rullgard <mans@mansr.com>
tags/n0.9
Mans Rullgard 14 years ago
parent
commit
e7bcc5baf7
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavcodec/simple_idct_template.c

+ 6
- 0
libavcodec/simple_idct_template.c View File

@@ -372,6 +372,9 @@ void FUNC(ff_simple_idct_put)(uint8_t *dest_, int line_size, DCTELEM *block)
{ {
pixel *dest = (pixel *)dest_; pixel *dest = (pixel *)dest_;
int i; int i;

line_size /= sizeof(pixel);

for(i=0; i<8; i++) for(i=0; i<8; i++)
FUNC(idctRowCondDC)(block + i*8); FUNC(idctRowCondDC)(block + i*8);


@@ -383,6 +386,9 @@ void FUNC(ff_simple_idct_add)(uint8_t *dest_, int line_size, DCTELEM *block)
{ {
pixel *dest = (pixel *)dest_; pixel *dest = (pixel *)dest_;
int i; int i;

line_size /= sizeof(pixel);

for(i=0; i<8; i++) for(i=0; i<8; i++)
FUNC(idctRowCondDC)(block + i*8); FUNC(idctRowCondDC)(block + i*8);




Loading…
Cancel
Save