/* * SubRenderer.h * Created by Alexander Strange on 7/28/07. * * This file is part of Perian. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #import @class SubStyle, SubContext, SubRenderDiv, SubRenderSpan; typedef enum { tag_b=0, tag_i, tag_u, tag_s, tag_bord, tag_shad, tag_be, tag_fn, tag_fs, tag_fscx, tag_fscy, tag_fsp, tag_frx, tag_fry, tag_frz, tag_1c, tag_2c, tag_3c, tag_4c, tag_alpha, tag_1a, tag_2a, tag_3a, tag_4a, tag_r, tag_p } SSATagType; #ifndef __OBJC_GC__ #ifndef __strong #define __strong #endif #endif // XXX these should be 'id' instead of 'void*' but it makes it easier to use ATSUStyle @interface SubRenderer : NSObject -(void)completedHeaderParsing:(SubContext*)sc; -(void*)completedStyleParsing:(SubStyle*)s; -(void)releaseStyleExtra:(void*)ex; -(void*)spanExtraFromRenderDiv:(SubRenderDiv*)div; -(void*)cloneSpanExtra:(SubRenderSpan*)span; -(void)releaseSpanExtra:(void*)ex; -(void)spanChangedTag:(SSATagType)tag span:(SubRenderSpan*)span div:(SubRenderDiv*)div param:(void*)p; -(float)aspectRatio; -(NSString*)describeSpanEx:(void*)ex; @end