int16 大小端转换:
static inline uint16_t bswap_16(uint16_t x) { return (x >> 8) | (x << 8); }
int32大小端转换:
static inline uint32_t bswap_32(uint32_t x) { x = ((x << 8) &0xFF00FF00) | ((x >> 8) &0x00FF00FF); return (x >> 16) | (x << 16); }
转载
FFMPEG/FFPLAY源 码 剖 析 作者: 杨书良
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/170547.html原文链接:https://javaforall.cn