44 const uint8_t *buf = avpkt->
data;
51 const uint8_t *cur = buf;
52 const uint32_t *
palette = (
const uint32_t *)(cur + 88);
60 mipmap_count =
AV_RL8 (cur+85);
64 if (version < 8 || version > 9) {
73 }
else if (depth == 16 || depth == 32)
98 pal = (uint32_t *) p->
data[1];
99 for (y=0; y<256; y++) {
101 pal[y] = (v>>8) + (v<<24);
103 for (y=0; y<h; y++) {
108 }
else if (depth == 16) {
109 switch (d3d_format) {
122 }
else if (depth == 32) {
123 switch (d3d_format) {
126 for (y=0; y<h; y++) {
127 memcpy(ptr, cur, w*4);
137 for (; mipmap_count > 1; mipmap_count--)