Francesco Romani wrote:

video data is stored contiguosly, 8 bits for sample. No special meaning
for any bit in a given sample. It would be nice to have pixel buffers
page-aligned (speed reasons), but this requisite isn't strictly enforced
yet.


So, let us say I have a Y value of 213 (in decimal). If I want to put that value into the vframe_list structure's video_buf_Y member array, can I just say:
ptr->video_buf_Y[0][pixel arithmetic] = 213; //?

Or, would I have to do a conversion, for example,
int Y = 213 - 128;
ptr->video_buf_Y[0][pixel] = Y;

or
int Y = 213;
ptr->video_buf_Y[0][pixel] = (char)Y;

or something like that?

--

James G. Flewelling,
Registered Linux User #327359
Linux From Scratch User #15607

Reply via email to