Skip to content
Snippets Groups Projects
Commit 01e16d5d authored by Petter Reinholdtsen's avatar Petter Reinholdtsen
Browse files

Replaced obsolete uint32 and uint8 with more standard types in example.

Using ogg_uint32_t and uint8_t instead.

Get rid of the following compiler message:

../../examples/tiff2theora.c:283:1: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
  283 | rgb_to_yuv(uint32 *raster,
      | ^~~~~~~~~~
../../examples/tiff2theora.c: In function ‘rgb_to_yuv’:
../../examples/tiff2theora.c:314:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  314 |         uint8 r0 = TIFFGetR(raster[(h-y)*w + x]);
      |         ^~~~~
../../examples/tiff2theora.c:315:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  315 |         uint8 g0 = TIFFGetG(raster[(h-y)*w + x]);
      |         ^~~~~
../../examples/tiff2theora.c:316:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  316 |         uint8 b0 = TIFFGetB(raster[(h-y)*w + x]);
      |         ^~~~~
../../examples/tiff2theora.c:317:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  317 |         uint8 r1 = TIFFGetR(raster[(h-y)*w + x1]);
      |         ^~~~~
../../examples/tiff2theora.c:318:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  318 |         uint8 g1 = TIFFGetG(raster[(h-y)*w + x1]);
      |         ^~~~~
../../examples/tiff2theora.c:319:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  319 |         uint8 b1 = TIFFGetB(raster[(h-y)*w + x1]);
      |         ^~~~~
../../examples/tiff2theora.c:320:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  320 |         uint8 r2 = TIFFGetR(raster[(h-y1)*w + x]);
      |         ^~~~~
../../examples/tiff2theora.c:321:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  321 |         uint8 g2 = TIFFGetG(raster[(h-y1)*w + x]);
      |         ^~~~~
../../examples/tiff2theora.c:322:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  322 |         uint8 b2 = TIFFGetB(raster[(h-y1)*w + x]);
      |         ^~~~~
../../examples/tiff2theora.c:323:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  323 |         uint8 r3 = TIFFGetR(raster[(h-y1)*w + x1]);
      |         ^~~~~
../../examples/tiff2theora.c:324:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  324 |         uint8 g3 = TIFFGetG(raster[(h-y1)*w + x1]);
      |         ^~~~~
../../examples/tiff2theora.c:325:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  325 |         uint8 b3 = TIFFGetB(raster[(h-y1)*w + x1]);
      |         ^~~~~
../../examples/tiff2theora.c:347:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  347 |         uint8 r = TIFFGetR(raster[(h-y)*w + x]);
      |         ^~~~~
../../examples/tiff2theora.c:348:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  348 |         uint8 g = TIFFGetG(raster[(h-y)*w + x]);
      |         ^~~~~
../../examples/tiff2theora.c:349:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  349 |         uint8 b = TIFFGetB(raster[(h-y)*w + x]);
      |         ^~~~~
../../examples/tiff2theora.c:360:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  360 |         uint8 r0 = TIFFGetR(raster[(h-y)*w + x]);
      |         ^~~~~
../../examples/tiff2theora.c:361:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  361 |         uint8 g0 = TIFFGetG(raster[(h-y)*w + x]);
      |         ^~~~~
../../examples/tiff2theora.c:362:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  362 |         uint8 b0 = TIFFGetB(raster[(h-y)*w + x]);
      |         ^~~~~
../../examples/tiff2theora.c:363:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  363 |         uint8 r1 = TIFFGetR(raster[(h-y)*w + x1]);
      |         ^~~~~
../../examples/tiff2theora.c:364:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  364 |         uint8 g1 = TIFFGetG(raster[(h-y)*w + x1]);
      |         ^~~~~
../../examples/tiff2theora.c:365:9: warning: ‘uint8’ is deprecated [-Wdeprecated-declarations]
  365 |         uint8 b1 = TIFFGetB(raster[(h-y)*w + x1]);
      |         ^~~~~
../../examples/tiff2theora.c: In function ‘tiff_read’:
../../examples/tiff2theora.c:387:3: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
  387 |   uint32 width;
      |   ^~~~~~
../../examples/tiff2theora.c:388:3: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
  388 |   uint32 height;
      |   ^~~~~~
../../examples/tiff2theora.c:390:3: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
  390 |   uint32 *raster;
      |   ^~~~~~
../../examples/tiff2theora.c:404:3: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
  404 |   raster = malloc(pixels*sizeof(uint32));
      |   ^~~~~~
parent 794bf8c6
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment