Go to the documentation of this file.
74 int buf_size = avpkt->
size;
78 const uint8_t *bytestream = buf;
97 for (i = 0; i < 16; i++) {
98 a->
delta[i] = *bytestream++;
102 for (y = 0; y < avctx->
height; y++) {
110 for (i = 0; i < 4; i++)
111 a->
offset[i] = *bytestream++;
113 offset = a->
offset[0] - a->
delta[bytestream[2] & 0xF];
114 for (x = 0; x < avctx->
width; x += 4) {
115 luma[0] = offset += a->
delta[bytestream[2] & 0xF];
116 luma[1] = offset += a->
delta[bytestream[2] >> 4];
117 luma[2] = offset += a->
delta[bytestream[0] & 0xF];
118 luma[3] = offset += a->
delta[bytestream[0] >> 4];
121 *cb++ = bytestream[3];
122 *
cr++ = bytestream[1];
127 offset = a->
offset[y & 3] - a->
delta[bytestream[2] & 0xF];
129 for (x = 0; x < avctx->
width; x += 8) {
130 luma[0] = offset += a->
delta[bytestream[2] & 0xF];
131 luma[1] = offset += a->
delta[bytestream[2] >> 4];
132 luma[2] = offset += a->
delta[bytestream[3] & 0xF];
133 luma[3] = offset += a->
delta[bytestream[3] >> 4];
134 luma[4] = offset += a->
delta[bytestream[0] & 0xF];
135 luma[5] = offset += a->
delta[bytestream[0] >> 4];
136 luma[6] = offset += a->
delta[bytestream[1] & 0xF];
137 luma[7] = offset += a->
delta[bytestream[1] >> 4];