src/gpujpeg_marker.h
static const char*
gpujpeg_marker_name(enum gpujpeg_marker_code code)
{
    switch (code) {
        case GPUJPEG_MARKER_SOF0: return "SOF0";
        case GPUJPEG_MARKER_SOF1: return "SOF1";
        case GPUJPEG_MARKER_SOF2: return "SOF2";
        case GPUJPEG_MARKER_SOF3: return "SOF3";
        case GPUJPEG_MARKER_SOF5: return "SOF5";
        case GPUJPEG_MARKER_SOF6: return "SOF6";
        case GPUJPEG_MARKER_SOF7: return "SOF7";
        case GPUJPEG_MARKER_JPG: return "JPG";
        case GPUJPEG_MARKER_SOF9: return "SOF9";
        case GPUJPEG_MARKER_SOF10: return "SOF10";
        case GPUJPEG_MARKER_SOF11: return "SOF11";
        case GPUJPEG_MARKER_SOF13: return "SOF13";
        case GPUJPEG_MARKER_SOF14: return "SOF14";
        case GPUJPEG_MARKER_SOF15: return "SOF15";
        case GPUJPEG_MARKER_DHT: return "DHT";
        case GPUJPEG_MARKER_DAC: return "DAC";
        case GPUJPEG_MARKER_RST0: return "RST0";
        case GPUJPEG_MARKER_RST1: return "RST1";
        case GPUJPEG_MARKER_RST2: return "RST2";
        case GPUJPEG_MARKER_RST3: return "RST3";
        case GPUJPEG_MARKER_RST4: return "RST4";
        case GPUJPEG_MARKER_RST5: return "RST5";
        case GPUJPEG_MARKER_RST6: return "RST6";
        case GPUJPEG_MARKER_RST7: return "RST7";
        case GPUJPEG_MARKER_SOI: return "SOI";
        case GPUJPEG_MARKER_EOI: return "EOI";
        case GPUJPEG_MARKER_SOS: return "SOS";
        case GPUJPEG_MARKER_DQT: return "DQT";
        case GPUJPEG_MARKER_DNL: return "DNL";
        case GPUJPEG_MARKER_DRI: return "DRI";
        case GPUJPEG_MARKER_DHP: return "DHP";
        case GPUJPEG_MARKER_EXP: return "EXP";
        case GPUJPEG_MARKER_APP0: return "APP0";
        case GPUJPEG_MARKER_APP1: return "APP1";
        case GPUJPEG_MARKER_APP2: return "APP2";
        case GPUJPEG_MARKER_APP3: return "APP3";
        case GPUJPEG_MARKER_APP4: return "APP4";
        case GPUJPEG_MARKER_APP5: return "APP5";
        case GPUJPEG_MARKER_APP6: return "APP6";
        case GPUJPEG_MARKER_APP7: return "APP7";
        case GPUJPEG_MARKER_APP8: return "APP8";
        case GPUJPEG_MARKER_APP9: return "APP9";
        case GPUJPEG_MARKER_APP10: return "APP10";
        case GPUJPEG_MARKER_APP11: return "APP11";
        case GPUJPEG_MARKER_APP12: return "APP12";
        case GPUJPEG_MARKER_APP13: return "APP13";
        case GPUJPEG_MARKER_APP14: return "APP14";
        case GPUJPEG_MARKER_APP15: return "APP15";
        case GPUJPEG_MARKER_JPG0: return "JPG0";
        case GPUJPEG_MARKER_JPG13: return "JPG13";
        case GPUJPEG_MARKER_COM: return "COM";
        case GPUJPEG_MARKER_TEM: return "TEM";
        case GPUJPEG_MARKER_ERROR: return "ERROR";
        default:
        {
            static char buffer[255];
            sprintf(buffer, "Unknown (0x%X)", code);
            return buffer;
        }
    }
}
/**
 * Get marker name from code
 *
 * @param code
 * @return marker name
 */
Get marker name from code
@param code
@return marker name
Get marker name from code @param code @return marker name
static const char*
gpujpeg_marker_name(enum gpujpeg_marker_code code)
{
    switch (code) {
        case GPUJPEG_MARKER_SOF0: return "SOF0";
        case GPUJPEG_MARKER_SOF1: return "SOF1";
        case GPUJPEG_MARKER_SOF2: return "SOF2";
        case GPUJPEG_MARKER_SOF3: return "SOF3";
        case GPUJPEG_MARKER_SOF5: return "SOF5";
        case GPUJPEG_MARKER_SOF6: return "SOF6";
        case GPUJPEG_MARKER_SOF7: return "SOF7";
        case GPUJPEG_MARKER_JPG: return "JPG";
        case GPUJPEG_MARKER_SOF9: return "SOF9";
        case GPUJPEG_MARKER_SOF10: return "SOF10";
        case GPUJPEG_MARKER_SOF11: return "SOF11";
        case GPUJPEG_MARKER_SOF13: return "SOF13";
        case GPUJPEG_MARKER_SOF14: return "SOF14";
        case GPUJPEG_MARKER_SOF15: return "SOF15";
        case GPUJPEG_MARKER_DHT: return "DHT";
        case GPUJPEG_MARKER_DAC: return "DAC";
        case GPUJPEG_MARKER_RST0: return "RST0";
        case GPUJPEG_MARKER_RST1: return "RST1";
        case GPUJPEG_MARKER_RST2: return "RST2";
        case GPUJPEG_MARKER_RST3: return "RST3";
        case GPUJPEG_MARKER_RST4: return "RST4";
        case GPUJPEG_MARKER_RST5: return "RST5";
        case GPUJPEG_MARKER_RST6: return "RST6";
        case GPUJPEG_MARKER_RST7: return "RST7";
        case GPUJPEG_MARKER_SOI: return "SOI";
        case GPUJPEG_MARKER_EOI: return "EOI";
        case GPUJPEG_MARKER_SOS: return "SOS";
        case GPUJPEG_MARKER_DQT: return "DQT";
        case GPUJPEG_MARKER_DNL: return "DNL";
        case GPUJPEG_MARKER_DRI: return "DRI";
        case GPUJPEG_MARKER_DHP: return "DHP";
        case GPUJPEG_MARKER_EXP: return "EXP";
        case GPUJPEG_MARKER_APP0: return "APP0";
        case GPUJPEG_MARKER_APP1: return "APP1";
        case GPUJPEG_MARKER_APP2: return "APP2";
        case GPUJPEG_MARKER_APP3: return "APP3";
        case GPUJPEG_MARKER_APP4: return "APP4";
        case GPUJPEG_MARKER_APP5: return "APP5";
        case GPUJPEG_MARKER_APP6: return "APP6";
        case GPUJPEG_MARKER_APP7: return "APP7";
        case GPUJPEG_MARKER_APP8: return "APP8";
        case GPUJPEG_MARKER_APP9: return "APP9";
        case GPUJPEG_MARKER_APP10: return "APP10";
        case GPUJPEG_MARKER_APP11: return "APP11";
        case GPUJPEG_MARKER_APP12: return "APP12";
        case GPUJPEG_MARKER_APP13: return "APP13";
        case GPUJPEG_MARKER_APP14: return "APP14";
        case GPUJPEG_MARKER_APP15: return "APP15";
        case GPUJPEG_MARKER_JPG0: return "JPG0";
        case GPUJPEG_MARKER_JPG13: return "JPG13";
        case GPUJPEG_MARKER_COM: return "COM";
        case GPUJPEG_MARKER_TEM: return "TEM";
        case GPUJPEG_MARKER_ERROR: return "ERROR";
        default:
        {
            static char buffer[255];
            sprintf(buffer, "Unknown (0x%X)", code);
            return buffer;
        }
    }
}
static const char * gpujpeg_marker_name ( enum gpujpeg_marker_code code ) { switch ( code ) { case GPUJPEG_MARKER_SOF0 : return " " ; case GPUJPEG_MARKER_SOF1 : return " " ; case GPUJPEG_MARKER_SOF2 : return " " ; case GPUJPEG_MARKER_SOF3 : return " " ; case GPUJPEG_MARKER_SOF5 : return " " ; case GPUJPEG_MARKER_SOF6 : return " " ; case GPUJPEG_MARKER_SOF7 : return " " ; case GPUJPEG_MARKER_JPG : return " " ; case GPUJPEG_MARKER_SOF9 : return " " ; case GPUJPEG_MARKER_SOF10 : return " " ; case GPUJPEG_MARKER_SOF11 : return " " ; case GPUJPEG_MARKER_SOF13 : return " " ; case GPUJPEG_MARKER_SOF14 : return " " ; case GPUJPEG_MARKER_SOF15 : return " " ; case GPUJPEG_MARKER_DHT : return " " ; case GPUJPEG_MARKER_DAC : return " " ; case GPUJPEG_MARKER_RST0 : return " " ; case GPUJPEG_MARKER_RST1 : return " " ; case GPUJPEG_MARKER_RST2 : return " " ; case GPUJPEG_MARKER_RST3 : return " " ; case GPUJPEG_MARKER_RST4 : return " " ; case GPUJPEG_MARKER_RST5 : return " " ; case GPUJPEG_MARKER_RST6 : return " " ; case GPUJPEG_MARKER_RST7 : return " " ; case GPUJPEG_MARKER_SOI : return " " ; case GPUJPEG_MARKER_EOI : return " " ; case GPUJPEG_MARKER_SOS : return " " ; case GPUJPEG_MARKER_DQT : return " " ; case GPUJPEG_MARKER_DNL : return " " ; case GPUJPEG_MARKER_DRI : return " " ; case GPUJPEG_MARKER_DHP : return " " ; case GPUJPEG_MARKER_EXP : return " " ; case GPUJPEG_MARKER_APP0 : return " " ; case GPUJPEG_MARKER_APP1 : return " " ; case GPUJPEG_MARKER_APP2 : return " " ; case GPUJPEG_MARKER_APP3 : return " " ; case GPUJPEG_MARKER_APP4 : return " " ; case GPUJPEG_MARKER_APP5 : return " " ; case GPUJPEG_MARKER_APP6 : return " " ; case GPUJPEG_MARKER_APP7 : return " " ; case GPUJPEG_MARKER_APP8 : return " " ; case GPUJPEG_MARKER_APP9 : return " " ; case GPUJPEG_MARKER_APP10 : return " " ; case GPUJPEG_MARKER_APP11 : return " " ; case GPUJPEG_MARKER_APP12 : return " " ; case GPUJPEG_MARKER_APP13 : return " " ; case GPUJPEG_MARKER_APP14 : return " " ; case GPUJPEG_MARKER_APP15 : return " " ; case GPUJPEG_MARKER_JPG0 : return " " ; case GPUJPEG_MARKER_JPG13 : return " " ; case GPUJPEG_MARKER_COM : return " " ; case GPUJPEG_MARKER_TEM : return " " ; case GPUJPEG_MARKER_ERROR : return " " ; default : { static char buffer [ 255 ] ; sprintf ( buffer , " " , code ) ; return buffer ; } } }
Get marker name from code
 @param code
 @return marker name
Get marker name from code @param code @return marker name