Ignore:
Timestamp:
Jul 14, 2011 6:34:29 AM (10 years ago)
Author:
bennylp
Message:

More re #1325 (pjmedia signature): invented pjmedia PJMEDIA_FOURCC macro, and change signature and pjmedia_format_id to use this object. Added pjmedia_fourcc_name( ) too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/signatures.h

    r3640 r3641  
    105105 * @return              The string. 
    106106 */ 
    107 PJ_INLINE(const char*) pjmedia_sig_to_str(pjmedia_obj_sig sig, char buf[]) 
     107PJ_INLINE(const char*) pjmedia_sig_name(pjmedia_obj_sig sig, char buf[]) 
    108108{ 
    109     buf[0] = (char)((sig >> 24) & 0xFF); 
    110     buf[1] = (char)((sig >> 16) & 0xFF); 
    111     buf[2] = (char)((sig >>  8) & 0xFF); 
    112     buf[3] = (char)((sig >>  0) & 0xFF); 
    113     buf[4] = '\0'; 
    114     return buf; 
     109    return pjmedia_fourcc_name(sig, buf); 
    115110} 
    116111 
     
    118113 * Macro to generate signature from four ASCII letters. 
    119114 */ 
    120 #define PJMEDIA_SIGNATURE(a,b,c,d)      (a<<24 | b<<16 | c<<8 | d) 
     115#define PJMEDIA_SIGNATURE(a,b,c,d)      PJMEDIA_FOURCC(a,b,c,d) 
    121116 
    122117/************************************************************************* 
Note: See TracChangeset for help on using the changeset viewer.