55 const uint8_t *bytestream_end = bytestream + avpkt->
size;
68 for (i = 0; i < 16; i++) {
69 a->
delta[i] = *bytestream++;
73 for (y = 0; y < avctx->
height; y++) {
83 for (i = 0; i < 4; i++)
84 a->
offset[i] = *bytestream++;
86 offset = a->
offset[0] - a->
delta[bytestream[2] & 0xF];
87 for (x = 0; x < avctx->
width; x += 4) {
88 luma[0] = offset += a->
delta[bytestream[2] & 0xF];
89 luma[1] = offset += a->
delta[bytestream[2] >> 4];
90 luma[2] = offset += a->
delta[bytestream[0] & 0xF];
91 luma[3] = offset += a->
delta[bytestream[0] >> 4];
94 *cb++ = bytestream[3];
95 *
cr++ = bytestream[1];
102 offset = a->
offset[y & 3] - a->
delta[bytestream[2] & 0xF];
104 for (x = 0; x < avctx->
width; x += 8) {
105 luma[0] = offset += a->
delta[bytestream[2] & 0xF];
106 luma[1] = offset += a->
delta[bytestream[2] >> 4];
107 luma[2] = offset += a->
delta[bytestream[3] & 0xF];
108 luma[3] = offset += a->
delta[bytestream[3] >> 4];
109 luma[4] = offset += a->
delta[bytestream[0] & 0xF];
110 luma[5] = offset += a->
delta[bytestream[0] >> 4];
111 luma[6] = offset += a->
delta[bytestream[1] & 0xF];
112 luma[7] = offset += a->
delta[bytestream[1] >> 4];
121 return bytestream - avpkt->
data;