Changeset 673

Show
Ignore:
Timestamp:
08/15/07 02:08:42 (1 year ago)
Author:
astrange
Message:

SubATSUIRenderer.m: Set render complexity correctly for \1c and \1a. Parse 'blur edges', but don't do anything with it yet.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Subtitles/SubATSUIRenderer.m

    r672 r673  
    2424        CGColorRef primaryColor, outlineColor, shadowColor; 
    2525        Float32 outlineRadius, shadowDist, scaleX, scaleY, primaryAlpha, outlineAlpha, angle; 
     26        BOOL blurEdges; 
    2627} 
    2728-(SubATSUISpanEx*)initWithStyle:(ATSUStyle)style_ subStyle:(SubStyle*)sstyle colorSpace:(CGColorSpaceRef)cs; 
     
    359360                case tag_1c: 
    360361                        CGColorRelease(spanEx->primaryColor); 
     362                        if (!isFirstSpan) div->render_complexity |= renderMultipleParts; 
    361363                        colorv(); 
    362364                        spanEx->primaryColor = color; 
     
    402404                case tag_1a: 
    403405                        iv(); 
     406                        if (!isFirstSpan) div->render_complexity |= renderMultipleParts; 
    404407                        spanEx->primaryAlpha = 1.-(ival/255.); 
    405408                        break; 
     
    424427                                span->ex = [[SubATSUISpanEx alloc] initWithStyle:(ATSUStyle)style->ex subStyle:style colorSpace:srgbCSpace]; 
    425428                        } 
     429                        break; 
     430                case tag_be: 
     431                        bv(); 
     432                        if (!isFirstSpan) div->render_complexity |= renderMultipleParts; 
     433                        spanEx->blurEdges = bval; 
    426434                        break; 
    427435                default: