S
salsipius
Can someone please help me clarify the below code. I think the shifting
has to do with converting datatypes and/or loss of data but am not
really clear on the details, could you help shed some light please?
// Allocate array
for( i = 0; i < Length; i++ )
{
//pArray_00 is a BYTE Array [2408*2048] -- Here a cast is used because
the WORD variable is comming from a VB INT(2 Bytes) but the pArray_00
is an array of type BTYE(1 byte)
pArray_00[ i ] = ( BYTE )( pWord_00[ i ] >> 4 );
}
has to do with converting datatypes and/or loss of data but am not
really clear on the details, could you help shed some light please?
// Allocate array
for( i = 0; i < Length; i++ )
{
//pArray_00 is a BYTE Array [2408*2048] -- Here a cast is used because
the WORD variable is comming from a VB INT(2 Bytes) but the pArray_00
is an array of type BTYE(1 byte)
pArray_00[ i ] = ( BYTE )( pWord_00[ i ] >> 4 );
}