Changeset 9970930dbc8ce19f3bbea188481868ee61744b9b

Show
Ignore:
Timestamp:
26/05/08 20:56:55 (6 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1211828215 +0300
git-parent:

[562773d60e1775780f5fb301670b8d515f0612d3]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1211826595 +0300
Message:

Revert "Move VLC_FOURCC to vlc_es.h"

This reverts commit 62b9f5b0251b41dbcb2a38902e03fc70cf3677ab.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_common.h

    r62b9f5b r9970930  
    8989 */ 
    9090typedef uint32_t vlc_fourcc_t; 
     91 
     92#ifdef WORDS_BIGENDIAN 
     93#   define VLC_FOURCC( a, b, c, d ) \ 
     94        ( ((uint32_t)d) | ( ((uint32_t)c) << 8 ) \ 
     95           | ( ((uint32_t)b) << 16 ) | ( ((uint32_t)a) << 24 ) ) 
     96#   define VLC_TWOCC( a, b ) \ 
     97        ( (uint16_t)(b) | ( (uint16_t)(a) << 8 ) ) 
     98 
     99#else 
     100#   define VLC_FOURCC( a, b, c, d ) \ 
     101        ( ((uint32_t)a) | ( ((uint32_t)b) << 8 ) \ 
     102           | ( ((uint32_t)c) << 16 ) | ( ((uint32_t)d) << 24 ) ) 
     103#   define VLC_TWOCC( a, b ) \ 
     104        ( (uint16_t)(a) | ( (uint16_t)(b) << 8 ) ) 
     105 
     106#endif 
    91107 
    92108static inline void __vlc_fourcc_to_char( vlc_fourcc_t fcc, char *psz_fourcc ) 
  • include/vlc_es.h

    r62b9f5b r9970930  
    2929#define _VLC_ES_H 1 
    3030 
    31 #ifdef WORDS_BIGENDIAN 
    32 #   define VLC_FOURCC( a, b, c, d ) \ 
    33         ( ((uint32_t)d) | ( ((uint32_t)c) << 8 ) \ 
    34            | ( ((uint32_t)b) << 16 ) | ( ((uint32_t)a) << 24 ) ) 
    35 #   define VLC_TWOCC( a, b ) \ 
    36         ( (uint16_t)(b) | ( (uint16_t)(a) << 8 ) ) 
    37  
    38 #else 
    39 #   define VLC_FOURCC( a, b, c, d ) \ 
    40         ( ((uint32_t)a) | ( ((uint32_t)b) << 8 ) \ 
    41            | ( ((uint32_t)c) << 16 ) | ( ((uint32_t)d) << 24 ) ) 
    42 #   define VLC_TWOCC( a, b ) \ 
    43         ( (uint16_t)(a) | ( (uint16_t)(b) << 8 ) ) 
    44  
    45 #endif 
    46  
    4731/** 
    4832 * \file