| 620 | } |
| 621 | |
| 622 | CMP_ERROR CMP_API CMP_CompressBlock(void** block_encoder, void* SourceTexture, unsigned int sourceStride, void* DestTexture, unsigned int DestStride) |
| 623 | { |
| 624 | CMP_Encoder* encoder = (CMP_Encoder*)*block_encoder; |
| 625 | encoder->m_srcStride = sourceStride; |
| 626 | encoder->m_dstStride = DestStride; |
| 627 | CMP_ERROR res = (CMP_ERROR)encoder->CompressBlock(0, 0, SourceTexture, DestTexture); |
| 628 | return (res); |
| 629 | } |
| 630 | |
| 631 | CMP_ERROR CMP_API |
| 632 | CMP_CompressBlockXY(void** block_encoder, unsigned int x, unsigned int y, void* in, unsigned int sourceStride, void* out, unsigned int DestStride) |