Mercurial > libavutil.hg
comparison intreadwrite.h @ 993:f8db9a2bae05 libavutil
Add av_ prefix to bswap macros
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:12:30 +0000 |
parents | ac42d0f16eae |
children | 3ed4c58e9a0e |
comparison
equal
deleted
inserted
replaced
992:a13125b5be3a | 993:f8db9a2bae05 |
---|---|
337 #endif | 337 #endif |
338 | 338 |
339 #if HAVE_BIGENDIAN | 339 #if HAVE_BIGENDIAN |
340 # define AV_RB(s, p) AV_RN##s(p) | 340 # define AV_RB(s, p) AV_RN##s(p) |
341 # define AV_WB(s, p, v) AV_WN##s(p, v) | 341 # define AV_WB(s, p, v) AV_WN##s(p, v) |
342 # define AV_RL(s, p) bswap_##s(AV_RN##s(p)) | 342 # define AV_RL(s, p) av_bswap##s(AV_RN##s(p)) |
343 # define AV_WL(s, p, v) AV_WN##s(p, bswap_##s(v)) | 343 # define AV_WL(s, p, v) AV_WN##s(p, av_bswap##s(v)) |
344 #else | 344 #else |
345 # define AV_RB(s, p) bswap_##s(AV_RN##s(p)) | 345 # define AV_RB(s, p) av_bswap##s(AV_RN##s(p)) |
346 # define AV_WB(s, p, v) AV_WN##s(p, bswap_##s(v)) | 346 # define AV_WB(s, p, v) AV_WN##s(p, av_bswap##s(v)) |
347 # define AV_RL(s, p) AV_RN##s(p) | 347 # define AV_RL(s, p) AV_RN##s(p) |
348 # define AV_WL(s, p, v) AV_WN##s(p, v) | 348 # define AV_WL(s, p, v) AV_WN##s(p, v) |
349 #endif | 349 #endif |
350 | 350 |
351 #define AV_RB8(x) (((const uint8_t*)(x))[0]) | 351 #define AV_RB8(x) (((const uint8_t*)(x))[0]) |