copy red of RGB data into luminance texture

Hi,
is there a way to copy only the red component from an RGB data into a luminance texture (using glTexSubImage)?

Thanks
Kit

Any ideas? Is there a way setting a ‘stride’ value before copying the data?

Thanks
Kit