r9739 - trunk/libavcodec/alac.c
Author: vitor Date: Wed Jul 18 16:45:01 2007 New Revision: 9739 Log: Make more deinterlace_16 receive an array as a parameter and not two separated vars Modified: trunk/libavcodec/alac.c Modified: trunk/libavcodec/alac.c ============================================================================== --- trunk/libavcodec/alac.c (original) +++ trunk/libavcodec/alac.c Wed Jul 18 16:45:01 2007 @@ -399,7 +399,7 @@ static void predictor_decompress_fir_ada } } -static void deinterlace_16(int32_t *buffer_a, int32_t *buffer_b, +static void deinterlace_16(int32_t *buffer[MAX_CHANNELS], int16_t *buffer_out, int numchannels, int numsamples, uint8_t interlacing_shift, @@ -416,8 +416,8 @@ static void deinterlace_16(int32_t *buff int16_t left; int16_t right; - midright = buffer_a[i]; - difference = buffer_b[i]; + midright = buffer[0][i]; + difference = buffer[1][i]; right = midright - ((difference * interlacing_leftweight) >> interlacing_shift); @@ -434,8 +434,8 @@ static void deinterlace_16(int32_t *buff for (i = 0; i < numsamples; i++) { int16_t left, right; - left = buffer_a[i]; - right = buffer_b[i]; + left = buffer[0][i]; + right = buffer[1][i]; buffer_out[i*numchannels] = left; buffer_out[i*numchannels + 1] = right; @@ -602,8 +602,7 @@ static int alac_decode_frame(AVCodecCont switch(alac->setinfo_sample_size) { case 16: { if (channels == 2) { - deinterlace_16(alac->outputsamples_buffer[0], - alac->outputsamples_buffer[1], + deinterlace_16(alac->outputsamples_buffer, (int16_t*)outbuffer, alac->numchannels, outputsamples,
vitor skrev:
Author: vitor Date: Wed Jul 18 16:45:01 2007 New Revision: 9739
Log: Make more deinterlace_16 receive an array as a parameter and not two separated vars
Maybe rename deinterlace to deinterleave ? Deinterlace just reminds me of video. MvH Benjamin Larsson
Hi Benjamin Larsson wrote:
vitor skrev:
Author: vitor Date: Wed Jul 18 16:45:01 2007 New Revision: 9739
Log: Make more deinterlace_16 receive an array as a parameter and not two separated vars
Maybe rename deinterlace to deinterleave ? Deinterlace just reminds me of video.
MvH Benjamin Larsson
Since I'm more or less of a newbie in multimedia coding, it don't ring me any bells (but I'm ok with it). I'm sending a patch with the rename for review... -Vitor
Hi On Wed, Jul 18, 2007 at 04:48:03PM +0200, Benjamin Larsson wrote:
vitor skrev:
Author: vitor Date: Wed Jul 18 16:45:01 2007 New Revision: 9739
Log: Make more deinterlace_16 receive an array as a parameter and not two separated vars
Maybe rename deinterlace to deinterleave ? Deinterlace just reminds me of video.
true, but it doesnt deinterleave anything, its rather inverse decorrelate->interleave channels -> convert to 16bit [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws. -- Plato
Hi Michael Niedermayer wrote:
New Revision: 9739
Log: Make more deinterlace_16 receive an array as a parameter and not two separated vars
Maybe rename deinterlace to deinterleave ? Deinterlace just reminds me of video.
true, but it doesnt deinterleave anything, its rather inverse decorrelate->interleave channels -> convert to 16bit
Sorry about the delay, just came back from vacations. Would reconstruct_stereo_16 be a better name? -Vitor
Hi On Tue, Aug 07, 2007 at 07:23:48AM +0200, Vitor Sessak wrote:
Hi
Michael Niedermayer wrote:
New Revision: 9739
Log: Make more deinterlace_16 receive an array as a parameter and not two separated vars
Maybe rename deinterlace to deinterleave ? Deinterlace just reminds me of video.
true, but it doesnt deinterleave anything, its rather inverse decorrelate->interleave channels -> convert to 16bit
Sorry about the delay, just came back from vacations. Would reconstruct_stereo_16 be a better name?
yes [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I know you won't believe me, but the highest form of Human Excellence is to question oneself and others. -- Socrates
Hi Michael Niedermayer wrote:
Hi
On Tue, Aug 07, 2007 at 07:23:48AM +0200, Vitor Sessak wrote:
Hi
Michael Niedermayer wrote:
New Revision: 9739
Log: Make more deinterlace_16 receive an array as a parameter and not two separated vars
Maybe rename deinterlace to deinterleave ? Deinterlace just reminds me of video. true, but it doesnt deinterleave anything, its rather inverse decorrelate->interleave channels -> convert to 16bit
Sorry about the delay, just came back from vacations. Would reconstruct_stereo_16 be a better name?
yes
Changed. -Vitor
participants (4)
-
banan@ludd.ltu.se -
michaelni@gmx.at -
subversion@mplayerhq.hu -
vitor1001@gmail.com