| 776 | } |
| 777 | |
| 778 | void FileOp::sequenceGetColor(int index, int* r, int* g, int* b) const |
| 779 | { |
| 780 | uint32_t c; |
| 781 | |
| 782 | ASSERT(index >= 0); |
| 783 | if (index >= 0 && index < m_seq.palette->size()) |
| 784 | c = m_seq.palette->getEntry(index); |
| 785 | else |
| 786 | c = rgba(0, 0, 0, 255); // Black color |
| 787 | |
| 788 | *r = rgba_getr(c); |
| 789 | *g = rgba_getg(c); |
| 790 | *b = rgba_getb(c); |
| 791 | } |
| 792 | |
| 793 | void FileOp::sequenceSetAlpha(int index, int a) |
| 794 | { |