Пример #1
0
 bool ExpandColorMap(int num_colors, VP8LTransform transform)
 {
     int final_num_colors = 1 << (8 >> transform.bits_);
     uint[] new_color_map = new uint[final_num_colors];
     new_color_map[0] = transform.data_[0];
     for (int i = 1; i < num_colors; ++i)
         new_color_map[i] = MMX.PAddB (transform.data_[i], new_color_map[i-1]);
     transform.data_ = new_color_map;
     return true;
 }
Пример #2
0
        public LosslessDecoder()
        {
            status_ = VP8StatusCode.Ok;
            state_  = VP8DecodeState.ReadDim;

            for (int i = 0; i < transforms_.Length; ++i)
                transforms_[i] = new VP8LTransform();
        }