Assign the A,Y,U & V values stored in a DXVAHD_COLOR_YCbCrA structure into a structure of type "DXVA2_AYUVSample16"
===

I have a structure variable of type "DXVAHD_COLOR_YCbCrA"::

    typedef struct _DXVAHD_COLOR_YCbCrA {
      FLOAT Y;
      FLOAT Cb;
      FLOAT Cr;
      FLOAT A;
    } DXVAHD_COLOR_YCbCrA;

DXVAHD_COLOR_YCbCrA source;

And the destination structure is:

    typedef struct _DXVA2_AYUVSample16 {
      USHORT Cr;
      USHORT Cb;
      USHORT Y;
      USHORT Alpha;
    } DXVA2_AYUVSample16;

DXVA2_AYUVSample16 dest;

I can do an assignment like this ::

    dest.Alpha = source.A; 

**But, float is getting assigned to an USHORT. 
Color values are stored in "DXVAHD_COLOR_YCbCrA" as FLOAT (0 - 1). BUT, "How are the color values stored in DXVA2_AYUVSample. If I multiply the float color value by 255, still its not working.** 

