Commit f32b8130 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Fix opacity and increase colour dynamics of initial vmd palette.

parent 4a4c93cb
......@@ -408,7 +408,8 @@ static av_cold int vmdvideo_decode_init(AVCodecContext *avctx)
r = raw_palette[palette_index++] * 4;
g = raw_palette[palette_index++] * 4;
b = raw_palette[palette_index++] * 4;
palette32[i] = (r << 16) | (g << 8) | (b);
palette32[i] = 0xFFU << 24 | (r << 16) | (g << 8) | (b);
palette32[i] |= palette32[i] >> 6 & 0x30303;
}
avcodec_get_frame_defaults(&s->prev_frame);
......
#tb 0: 1/10
0, 0, 0, 1, 76800, 0xc87b6728
0, 1, 1, 1, 76800, 0xb0b24bc8
0, 2, 2, 1, 76800, 0x45a22d68
0, 3, 3, 1, 76800, 0x1821013b
0, 4, 4, 1, 76800, 0xfb17dc4f
0, 5, 5, 1, 76800, 0x07714cf0
0, 6, 6, 1, 76800, 0x7a5f14df
0, 7, 7, 1, 76800, 0x421fe837
0, 8, 8, 1, 76800, 0x39b9af40
0, 9, 9, 1, 76800, 0x42b47d6b
0, 10, 10, 1, 76800, 0xb1084cc8
0, 11, 11, 1, 76800, 0x0772794c
0, 12, 12, 1, 76800, 0x99544be0
0, 13, 13, 1, 76800, 0x5f1a16c1
0, 14, 14, 1, 76800, 0x90bfe8ac
0, 15, 15, 1, 76800, 0xbd9bb834
0, 16, 16, 1, 76800, 0x658d8053
0, 17, 17, 1, 76800, 0x21cc5656
0, 18, 18, 1, 76800, 0x6d39208b
0, 19, 19, 1, 76800, 0x17b0f8cb
0, 0, 0, 1, 76800, 0x8228830e
0, 1, 1, 1, 76800, 0x1c196731
0, 2, 2, 1, 76800, 0xf7924863
0, 3, 3, 1, 76800, 0x66e41b5e
0, 4, 4, 1, 76800, 0x79ccf593
0, 5, 5, 1, 76800, 0xd35b667c
0, 6, 6, 1, 76800, 0xd70b2d3a
0, 7, 7, 1, 76800, 0x122fffcd
0, 8, 8, 1, 76800, 0x1989c5b8
0, 9, 9, 1, 76800, 0x94de92e9
0, 10, 10, 1, 76800, 0x5f946148
0, 11, 11, 1, 76800, 0x3b448caa
0, 12, 12, 1, 76800, 0xbbab5e46
0, 13, 13, 1, 76800, 0x8977280a
0, 14, 14, 1, 76800, 0x1ad8f8f4
0, 15, 15, 1, 76800, 0x719dc79c
0, 16, 16, 1, 76800, 0xf3598e9a
0, 17, 17, 1, 76800, 0xe7b86365
0, 18, 18, 1, 76800, 0x4e492c41
0, 19, 19, 1, 76800, 0x922e036a
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment