Changeset 1246

Show
Ignore:
Timestamp:
01/09/10 17:56:39 (2 months ago)
Author:
astrange
Message:

Reformat FIXME/TODO comments to show up in Xcode browser menu.

Closes #451.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CPFPerianPrefPaneController.m

    r1147 r1246  
    852852        NSString *status = [notification object]; 
    853853         
    854         //FIXME localize these 
     854        //FIXME: localize these 
    855855        if ([status isEqualToString:@"Starting"]) { 
    856856                [textField_updateStatus setStringValue:@"Checking..."]; 
  • trunk/ColorConversions.c

    r1069 r1246  
    4040 
    4141//Handles the last row for Y420 videos with an odd number of luma rows 
    42 //FIXME odd number of luma columns is not handled and they will be lost 
     42//FIXME: odd number of luma columns is not handled and they will be lost 
    4343static void Y420toY422_lastrow(UInt8 *o, UInt8 *yc, UInt8 *uc, UInt8 *vc, unsigned halfWidth) 
    4444{ 
     
    514514                        return k16BE555PixelFormat; 
    515515                case PIX_FMT_BGR24: 
    516                         return k24RGBPixelFormat; //XXX try k24BGRPixelFormat 
     516                        return k24RGBPixelFormat; //FIXME: try k24BGRPixelFormat 
    517517                case PIX_FMT_RGB24: 
    518518                        return k24RGBPixelFormat; 
    519                 case PIX_FMT_RGB32: // XXX not a specific pixel format, need LE & BE like 16-bit 
     519                case PIX_FMT_RGB32: // FIXME: not a specific pixel format, need LE & BE like 16-bit 
    520520                        return k32ARGBPixelFormat; 
    521521                case PIX_FMT_YUV410P: 
  • trunk/FFissionCodec/FFissionDecoder.cpp

    r1236 r1246  
    6868//CA tends to not set the magic cookie immediately, but we need it to open most codecs 
    6969//so check this to not open the codec until it's possible 
    70 //FIXME or we could just open the codec and ignore errors? 
    7170static bool CodecRequiresExtradata(OSType formatID) 
    7271{ 
  • trunk/FFusionCodec.c

    r1244 r1246  
    618618                 
    619619                // official Apple/QT/ISO/etc fourccs are likely to have PTS vs DTS defined 
    620                 // FIXME what this actually checks is whether the file has a 'ctts' atom, can we do that directly? 
     620                // FIXME: what this actually checks is whether the file has a 'ctts' atom, can we do that directly? 
    621621                if(componentType == kMPEG4VisualCodecType || componentType == kH264CodecType || 
    622622                   componentType == kMPEG1VisualCodecType || componentType == kMPEG2VisualCodecType) 
  • trunk/MatroskaCodecIDs.cpp

    r1162 r1246  
    504504         
    505505        // vosLen > 2 means SBR; some of those must be rewritten to avoid QT bugs(?) 
    506         // FIXME remove when QT works with them 
     506        // FIXME: remove when QT works with them 
    507507        if (audio && (!vosBuf || vosLen > 2)) { 
    508508                RecreateAACVOS(tr_entry, aacBuf, &vosLen); 
  • trunk/MatroskaImportPrivate.cpp

    r1243 r1246  
    373373        // ensure that at least one track of each media type is enabled, if none were originally 
    374374        // this picks the first track, which may not be the best, but the situation is quite rare anyway 
    375         // FIXME properly choose tracks based on forced/default/language flags, and consider turning auto-alternates back on 
     375        // FIXME: properly choose tracks based on forced/default/language flags, and consider turning auto-alternates back on 
    376376        if (!videoEnabled && firstVideoTrack) 
    377377                SetTrackEnabled(firstVideoTrack, 1); 
     
    547547                asbd.mFramesPerPacket = 1152; 
    548548         
    549         // FIXME mChannelLayoutTag == 0 is valid 
     549        // FIXME: mChannelLayoutTag == 0 is valid 
    550550        // but we don't use channel position lists (yet) so it's safe for now 
    551551        if (acl.mChannelLayoutTag == 0) acl = GetDefaultChannelLayout(&asbd); 
     
    634634        } else if ((*imgDesc)->cType == kSubFormatUTF8 || (*imgDesc)->cType == kSubFormatSSA || (*imgDesc)->cType == kSubFormatASS) { 
    635635                if ((*imgDesc)->cType == kSubFormatASS) (*imgDesc)->cType = kSubFormatSSA; // no real reason to treat them differently 
    636                 UInt32 emptyDataRefExtension[2]; // XXX the various uses of this bit of code should be unified 
     636                UInt32 emptyDataRefExtension[2]; // FIXME: the various uses of this bit of code should be unified 
    637637                mkvTrack.subDataRefHandler = NewHandleClear(sizeof(Handle) + 1); 
    638638                emptyDataRefExtension[0] = EndianU32_NtoB(sizeof(UInt32)*2); 
  • trunk/Subtitles/SubATSUIRenderer.m

    r1208 r1246  
    263263} 
    264264 
    265 // XXX: Assumes ATSUFontID = ATSFontRef. This is true. 
     265// Assumes ATSUFontID = ATSFontRef. This is true. 
    266266static ATSUFontID GetFontIDForSSAName(NSString *name) 
    267267{        
     
    355355         
    356356        if (!s->platformSizeScale) s->platformSizeScale = GetWinFontSizeScale(fontRef); 
    357         size = FloatToFixed(s->size * s->platformSizeScale * screenScaleY); //FIXME several other values also change relative to PlayRes but aren't handled 
     357        size = FloatToFixed(s->size * s->platformSizeScale * screenScaleY); //FIXME: several other values also change relative to PlayRes but aren't handled 
    358358         
    359359        ATSUCreateStyle(&style); 
     
    440440        switch (tag) { 
    441441                case tag_b: 
    442                         bv(); // XXX font weight variations 
     442                        bv(); // FIXME: font weight variations 
    443443                        SetATSUStyleFlag(spanEx->style, kATSUQDBoldfaceTag, bval != 0); 
    444444                        break;  
     
    555555                case tag_be: 
    556556                        bv(); 
    557                         if (!isFirstSpan) div->render_complexity |= renderMultipleParts; // XXX blur edges 
     557                        if (!isFirstSpan) div->render_complexity |= renderMultipleParts; //FIXME: blur edges 
    558558                        spanEx->blurEdges = bval; 
    559559                        break; 
     
    565565#pragma mark Rendering Helper Functions 
    566566 
    567 // XXX see comment for GetTypographicRectangleForLayout 
     567// see comment for GetTypographicRectangleForLayout 
    568568static ATSUTextMeasurement GetLineHeight(ATSUTextLayout layout, UniCharArrayOffset lpos, Boolean includeDescent) 
    569569{ 
     
    584584} 
    585585 
    586 // XXX some broken fonts have very wrong typographic values set, and so this occasionally gives nonsense 
     586// some broken fonts have very wrong typographic values set, and so this occasionally gives nonsense 
    587587// it should be checked against the real pixel box (see #if 0 below), but for correct fonts it looks much better 
    588588static void GetTypographicRectangleForLayout(ATSUTextLayout layout, UniCharArrayOffset *breaks, ItemCount breakCount, Fixed extraHeight, Fixed *lX, Fixed *lY, Fixed *height, Fixed *width) 
     
    955955        //ATS bug(?) with some fonts: 
    956956        //drawing \n draws some random other character, so skip them 
    957         //XXX maybe don't store newlines in div->text at all 
     957        //FIXME: maybe don't store newlines in div->text at all 
    958958        if ([div->text characterAtIndex:thisBreak+lineLen-1] == '\n') { 
    959959                lineLen--; 
     
    10011001                         
    10021002                        //linear search for the next span to draw 
    1003                         //XXX not at all sure how this works or if it's correct 
     1003                        //FIXME: make sure this never skips any spans 
    10041004                        for (j = 0; j < nspans; j++) { 
    10051005                                SubRenderSpan *span = [div->spans objectAtIndex:j]; 
     
    13701370// Windows and OS X use different TrueType fields to measure text. 
    13711371// Some Windows fonts have one field set incorrectly(?), so we have to compensate. 
    1372 // XXX This function doesn't read from the right fonts; if we're using italic variant, it should get the ATSFontRef for that 
    1373 // XXX^2 This should be cached 
     1372// FIXME: This function doesn't read from the right fonts; if we're using italic variant, it should get the ATSFontRef for that 
     1373// This should be cached 
    13741374static float GetWinFontSizeScale(ATSFontRef font) 
    13751375{ 
  • trunk/Subtitles/SubRenderer.h

    r1038 r1246  
    3737#endif 
    3838 
    39 // XXX these should be 'id' instead of 'void*' but it makes it easier to use ATSUStyle 
     39// these should be 'id' instead of 'void*' but it makes it easier to use ATSUStyle 
    4040@interface SubRenderer : NSObject 
    4141-(void)completedHeaderParsing:(SubContext*)sc; 
  • trunk/TextSubCodec.c

    r1202 r1246  
    222222     
    223223    // we want ARGB because Quartz can use it easily 
    224     // Todo: add other possible pixel formats Quartz can handle 
    225224    *formats++  = k32RGBAPixelFormat; 
    226225        *formats++      = k32ARGBPixelFormat; 
  • trunk/bitstream_info.c

    r1245 r1246  
    10301030                //QT is bad at high profile 
    10311031                //and x264 B-pyramid (sps.vui.num_reorder_frames > 1) 
    1032                 //FIXME x264 will generate pyramid differently soon (core 78+), and that might work better 
    10331032                if(h264parser->profile_idc < 100 && h264parser->num_reorder_frames < 2 &&  
    10341033                   !CFPreferencesGetAppBooleanValue(CFSTR("DecodeAllProfiles"), PERIAN_PREF_DOMAIN, NULL)) 
  • trunk/codecList.m4

    r1226 r1246  
    88Codec(kXVIDCodecInfoResID, CODEC_ID_MPEG4, "Xvid", "Decompresses video stored in Xvid format.", 'XVID', 'xvid', 'XviD', 'XVIX', 'BLZ0') 
    99Codec(kMPEG4CodecInfoResID, CODEC_ID_MPEG4, "MPEG-4", "Decompresses video stored in MPEG-4 format.", 'RMP4', 'SEDG', 'WV1F', 'FMP4', 'SMP4') 
    10 ResourceOnly(<!// XXX: can we do this without claiming Apple's manufacturer (and thus unregistering their decoder)?!>) 
     10ResourceOnly(<!// FIXME: can we do this without claiming Apple's manufacturer (and thus unregistering their decoder)?!>) 
    1111ResourceOnly(<!#define kCodecManufacturer 'appl'!>) 
    1212ResourceOnly(<!#define kCodecVersion kFFusionCodecVersion + 0x10!>) 
  • trunk/ff_private.c

    r1242 r1246  
    126126        av_reduce(&base->num, &base->den, base->num, base->den, INT_MAX); 
    127127         
    128         if (base->num == 1) return; // XXX is this good enough? 
     128        if (base->num == 1) return; // FIXME: is this good enough? 
    129129         
    130130        double fTimebase = av_q2d(*base), nearest_ntsc = floor(fTimebase * 1001. + .5) / 1001.; 
     
    188188         
    189189        // 12 is invalid in mov 
    190         // XXX it might be better to set this based entirely on pix_fmt 
     190        // FIXME: it might be better to set this based entirely on pix_fmt 
    191191        if ((*imgHdl)->depth == 12 || (*imgHdl)->depth == 0) (*imgHdl)->depth = codec->pix_fmt == PIX_FMT_YUVA420P ? 32 : 24; 
    192192         
     
    228228         
    229229        /* Ask the AudioToolbox about vbr of the codec */ 
    230         // FIXME this sets vbr even if it was encoded in CBR mode 
     230        // FIXME: this sets vbr even if it was encoded in CBR mode 
    231231        // which means our mBytesPerPacket is wrong for CBR mp3 (does not really matter) 
    232232        ioSize = sizeof(UInt32); 
     
    281281                asbd.mFramesPerPacket = 1; 
    282282        else if (asbd.mBytesPerPacket) { 
    283                 /* FIXME. in the MSADPCM codec, we get a wrong mFramesPerPacket entry because 
     283                /* FIXME: in the MSADPCM codec, we get a wrong mFramesPerPacket entry because 
    284284                 * of the difference in the sample_rate and the time_base denumerator. So we 
    285285                 * recalculate here the mFramesPerPacket entry */ 
     
    619619 
    620620// Create the 'nclc' atom for video tracks. Guessed entirely from image size following ffdshow. 
    621 // FIXME read H.264 VUI/MPEG2 etc and especially read chroma positioning information. 
     621// FIXME: read H.264 VUI/MPEG2 etc and especially read chroma positioning information. 
    622622// this needs the parsers working 
    623623// References: http://developer.apple.com/quicktime/icefloe/dispatch019.html 
     
    690690                        track = NewMovieTrack(theMovie, width, height, kNoVolume); 
    691691 
    692             // XXX Support for 'old' NUV files, that didn't put the codec_tag in the file.  
     692            // Support for 'old' NUV files, that didn't put the codec_tag in the file.  
    693693            if( st->codec->codec_id == CODEC_ID_NUV && st->codec->codec_tag == 0 ) { 
    694694                st->codec->codec_tag = MKTAG( 'N', 'U', 'V', '1' );