75
77
ncolors = bytestream2_get_be32u(&gb);
76
78
bytestream2_skipu(&gb, header_size - (XWD_HEADER_SIZE - 20));
78
av_log(avctx, AV_LOG_DEBUG, "pixformat %d, pixdepth %d, bunit %d, bitorder %d, bpad %d\n",
80
av_log(avctx, AV_LOG_DEBUG,
81
"pixformat %"PRIu32", pixdepth %"PRIu32", bunit %"PRIu32", bitorder %"PRIu32", bpad %"PRIu32"\n",
79
82
pixformat, pixdepth, bunit, bitorder, bpad);
80
av_log(avctx, AV_LOG_DEBUG, "vclass %d, ncolors %d, bpp %d, be %d, lsize %d, xoffset %d\n",
83
av_log(avctx, AV_LOG_DEBUG,
84
"vclass %"PRIu32", ncolors %"PRIu32", bpp %"PRIu32", be %"PRIu32", lsize %"PRIu32", xoffset %"PRIu32"\n",
81
85
vclass, ncolors, bpp, be, lsize, xoffset);
82
av_log(avctx, AV_LOG_DEBUG, "red %0x, green %0x, blue %0x\n", rgb[0], rgb[1], rgb[2]);
86
av_log(avctx, AV_LOG_DEBUG,
87
"red %0"PRIx32", green %0"PRIx32", blue %0"PRIx32"\n",
88
rgb[0], rgb[1], rgb[2]);
84
90
if (pixformat > XWD_Z_PIXMAP) {
85
91
av_log(avctx, AV_LOG_ERROR, "invalid pixmap format\n");
95
avpriv_request_sample(avctx, "xoffset %d", xoffset);
101
avpriv_request_sample(avctx, "xoffset %"PRIu32"", xoffset);
96
102
return AVERROR_PATCHWELCOME;
143
149
if (pixformat != XWD_Z_PIXMAP) {
144
av_log(avctx, AV_LOG_ERROR, "pixmap format %d unsupported\n", pixformat);
150
av_log(avctx, AV_LOG_ERROR, "pixmap format %"PRIu32" unsupported\n", pixformat);
145
151
return AVERROR_PATCHWELCOME;
194
200
if (avctx->pix_fmt == AV_PIX_FMT_NONE) {
195
201
avpriv_request_sample(avctx,
196
"Unknown file: bpp %d, pixdepth %d, vclass %d",
202
"Unknown file: bpp %"PRIu32", pixdepth %"PRIu32", vclass %"PRIu32"",
197
203
bpp, pixdepth, vclass);
198
204
return AVERROR_PATCHWELCOME;