Re: extract multiple ranges from a list

2008-03-08 Thread pi . arctan
On 8 Mar, 17:32, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > One of my many project involves working with YUV-files, where I need > > to reduce > > the vertical resolution with a factor of two, i.e. remove every other > > scan line. > > Today I'm using two for-loops in the

Re: extract multiple ranges from a list

2008-03-08 Thread Peter Otten
[EMAIL PROTECTED] wrote: > One of my many project involves working with YUV-files, where I need > to reduce > the vertical resolution with a factor of two, i.e. remove every other > scan line. > Today I'm using two for-loops in the fashion shown below > > y = [] > for i in range(0, width*height,

Re: extract multiple ranges from a list

2008-03-08 Thread Paul Hankin
On Mar 8, 3:28 pm, [EMAIL PROTECTED] wrote: > Hi guys, > > One of my many project involves working with YUV-files, where I need > to reduce > the vertical resolution with a factor of two, i.e. remove every other > scan line. > Today I'm using two for-loops in the fashion shown below > > y = [] > fo

extract multiple ranges from a list

2008-03-08 Thread pi . arctan
Hi guys, One of my many project involves working with YUV-files, where I need to reduce the vertical resolution with a factor of two, i.e. remove every other scan line. Today I'm using two for-loops in the fashion shown below y = [] for i in range(0, width*height, width*2): for j in range(0,w