Changeset 201
- Timestamp:
- 12/08/06 19:57:55 (2 years ago)
- Files:
-
- trunk/FFusionCodec.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/FFusionCodec.c
r200 r201 36 36 #include "avcodec.h" 37 37 #include "postprocess.h" 38 39 //mru, in rev 7238, moved this into internal.h I don't think this was a good idea and including internal.h is a worse idea.40 #define always_inline __attribute__((always_inline)) inline41 42 #include "bswap.h"43 38 #include "Codecprintf.h" 44 45 #ifdef __BIG_ENDIAN__46 #define make_big_32(x) (x)47 #else48 #ifdef __LITTLE_ENDIAN__49 #define make_big_32(x) bswap_32(x)50 #else51 #error Endian is unknown52 #endif //Little53 #endif //Big54 39 55 40 void inline swapFrame(AVFrame * *a, AVFrame * *b) … … 1309 1294 1310 1295 // if ya can't set da poiners, set da offsets 1311 planar->componentInfoY.offset = make_big_32(picture->data[0] - baseAddr);1312 planar->componentInfoCb.offset = make_big_32(picture->data[1] - baseAddr);1313 planar->componentInfoCr.offset = make_big_32(picture->data[2] - baseAddr);1296 planar->componentInfoY.offset = EndianU32_NtoB(picture->data[0] - baseAddr); 1297 planar->componentInfoCb.offset = EndianU32_NtoB(picture->data[1] - baseAddr); 1298 planar->componentInfoCr.offset = EndianU32_NtoB(picture->data[2] - baseAddr); 1314 1299 1315 1300 // for the 16/32 add look at EDGE in mpegvideo.c 1316 planar->componentInfoY.rowBytes = make_big_32(picture->linesize[0]);1317 planar->componentInfoCb.rowBytes = make_big_32(picture->linesize[1]);1318 planar->componentInfoCr.rowBytes = make_big_32(picture->linesize[2]);1301 planar->componentInfoY.rowBytes = EndianU32_NtoB(picture->linesize[0]); 1302 planar->componentInfoCb.rowBytes = EndianU32_NtoB(picture->linesize[1]); 1303 planar->componentInfoCr.rowBytes = EndianU32_NtoB(picture->linesize[2]); 1319 1304 } 1320 1305
