+ case AV_PIX_FMT_GBRPF32:
+ if (avctx->width * avctx->height * 12 > s->bytestream_end - s->bytestream)
+ return AVERROR_INVALIDDATA;
+ scale = 1.f / s->scale;
+ if (s->endian) {
+ float *r, *g, *b;
+
+ r = (float *)p->data[2];
+ g = (float *)p->data[0];
+ b = (float *)p->data[1];
+ for (int i = 0; i < avctx->height; i++) {
+ for (int j = 0; j < avctx->width; j++) {
+ r[j] = av_int2float(AV_RL32(s->bytestream+0)) * scale;
+ g[j] = av_int2float(AV_RL32(s->bytestream+4)) * scale;
+ b[j] = av_int2float(AV_RL32(s->bytestream+8)) * scale;
+ s->bytestream += 12;
+ }
+
+ r += p->linesize[2] / 4;
+ g += p->linesize[0] / 4;
+ b += p->linesize[1] / 4;
+ }
+ } else {
+ float *r, *g, *b;
+
+ r = (float *)p->data[2];
+ g = (float *)p->data[0];
+ b = (float *)p->data[1];
+ for (int i = 0; i < avctx->height; i++) {
+ for (int j = 0; j < avctx->width; j++) {
+ r[j] = av_int2float(AV_RB32(s->bytestream+0)) * scale;
+ g[j] = av_int2float(AV_RB32(s->bytestream+4)) * scale;
+ b[j] = av_int2float(AV_RB32(s->bytestream+8)) * scale;
+ s->bytestream += 12;
+ }
+
+ r += p->linesize[2] / 4;
+ g += p->linesize[0] / 4;
+ b += p->linesize[1] / 4;
+ }
+ }
+ break;