Changeset 347
- Timestamp:
- 02/22/07 02:23:48 (2 years ago)
- Files:
-
- trunk/ColorConversions.c (modified) (3 diffs)
- trunk/CommonUtils.c (modified) (1 diff)
- trunk/FFusionCodec.c (modified) (5 diffs)
- trunk/MatroskaImportPrivate.cpp (modified) (1 diff)
- trunk/SSADocument.m (modified) (5 diffs)
- trunk/SubImport.mm (modified) (2 diffs)
- trunk/bitstream_info.c (modified) (1 diff)
- trunk/createStaticLibs.sh (modified) (4 diffs)
- trunk/ff_MovieImport.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ColorConversions.c
r344 r347 288 288 void RGB32toRGB32(UInt8 *baseAddr, unsigned rowBytes, unsigned width, unsigned height, AVFrame *picture) 289 289 { 290 unsigned x,y;290 unsigned y; 291 291 UInt8 *srcPtr = picture->data[0]; 292 292 … … 295 295 memcpy(baseAddr, srcPtr, width * 4); 296 296 #else 297 unsigned x; 297 298 UInt32 *oRow = (UInt32 *)baseAddr, *iRow = (UInt32 *)srcPtr; 298 299 for (x = 0; x < width; x++) {oRow[x] = EndianU32_BtoN(iRow[x]);} … … 307 308 { 308 309 UInt8 *yc = picture->data[0], *u = picture->data[1], *v = picture->data[2]; 309 unsigned rY = picture->linesize[0], rU = picture->linesize[1], rV = picture->linesize[2], y, x, x2,halfwidth = width / 2;310 unsigned rY = picture->linesize[0], rU = picture->linesize[1], rV = picture->linesize[2], y, x, halfwidth = width / 2; 310 311 311 312 for (y = 0; y < height; y++) { trunk/CommonUtils.c
r331 r347 230 230 static int readDescr(UInt8 **buffer, int *tag) 231 231 { 232 int len;233 232 *tag = *(*buffer)++; 234 233 return readDescrLen(buffer); trunk/FFusionCodec.c
r318 r347 236 236 pascal ComponentResult FFusionCodecClose(FFusionGlobals glob, ComponentInstance self) 237 237 { 238 // Make sure to close the base component and dealocate our storage 239 int i; 238 // Make sure to close the base component and deallocate our storage 240 239 241 240 if (glob) … … 390 389 { 391 390 OSType *pos; 392 int index , i;391 int index; 393 392 CodecCapabilities *capabilities = p->capabilities; 394 long bitfield;395 char altivec = 0;396 393 Byte* myptr; 397 394 long count = 0; … … 715 712 716 713 ////// 717 IBNibRef nibRef;714 /* IBNibRef nibRef; 718 715 WindowRef window; 719 716 OSStatus err; … … 724 721 ControlRef theControl; 725 722 KeyMap currentKeyMap; 726 int userPreference; 723 int userPreference; */ 727 724 /////// 728 725 … … 1231 1228 static void FFusionReleaseBuffer(AVCodecContext *s, AVFrame *pic) 1232 1229 { 1233 FFusionGlobals glob = s->opaque;1230 // FFusionGlobals glob = s->opaque; 1234 1231 FFusionBuffer *buf = pic->opaque; 1235 1232 trunk/MatroskaImportPrivate.cpp
r340 r347 889 889 void MatroskaTrack::FinishTrack(bool addSamples) 890 890 { 891 OSStatus err = noErr;892 891 893 892 if (type == track_subtitle && !is_vobsub) trunk/SSADocument.m
r343 r347 117 117 118 118 ATSUAttributeValuePtr vals[] = {&font, &matrix, &opt, &size, &tracking, &s->bold, &s->italic, &s->underline, &s->strikeout}; 119 char fname[256] = {0};120 ByteCount fl = 256;119 // char fname[256] = {0}; 120 // ByteCount fl = 256; 121 121 122 122 font = FMGetFontFromATSFontRef(ATSFontFindFromName((CFStringRef)s->font,kATSOptionFlagsDefault)); … … 311 311 NSArray *lines = [ssa componentsSeparatedByString:@"\n"]; 312 312 NSEnumerator *lenum = [lines objectEnumerator]; 313 NSString *nextLine, * styleType, *ns;313 NSString *nextLine, *ns; 314 314 NSArray *format; 315 315 NSMutableDictionary *headers, *styleDict; … … 378 378 -(void) loadHeader:(NSString*)ssa width:(float)width height:(float)height 379 379 { 380 NSError *err;381 NSStringEncoding se = NSUTF8StringEncoding;382 380 if (!ssa) return; 383 381 NSArray *lines = [[ssa stringByStandardizingNewlines] componentsSeparatedByString:@"\n"]; … … 390 388 unichar cai; 391 389 int formatc; 392 int readorder = 0;393 390 394 391 headers = [[NSMutableDictionary alloc] init]; … … 491 488 SSADocument *ssa = [[SSADocument alloc] init]; 492 489 Handle sampleHndl = NULL, headerHndl=NULL, drefHndl; 493 Ptr initData = NewPtr(0);494 490 const char *header; 495 491 int i, packetCount, sampleLen; trunk/SubImport.mm
r343 r347 118 118 UInt8 *path = (UInt8*)malloc(PATH_MAX); 119 119 NSString *srtfile; 120 NSError *nserr = nil; 121 Handle sampleHndl = NULL; 120 Handle sampleHndl; 122 121 123 122 FSRefMakePath(theDirectory, path, PATH_MAX); … … 409 408 unsigned times[num*2], last_last_end = 0; 410 409 SubLine *slines[num], *last=nil; 411 bool last_has_invalid_end = false , all_overlap = true;410 bool last_has_invalid_end = false; 412 411 413 412 [lines sortUsingFunction:cmp_line context:nil]; trunk/bitstream_info.c
r263 r347 95 95 96 96 /* This is a valid frame!!! */ 97 uint8_t bitrate = ac3_bitratetab[frmsizecod >> 1];97 // uint8_t bitrate = ac3_bitratetab[frmsizecod >> 1]; 98 98 int sample_rate = ac3_freqs[fscod]; 99 99 trunk/createStaticLibs.sh
r292 r347 34 34 mkdir "$BUILDDIR" 35 35 36 export optCFlags="-mtune=nocona "36 export optCFlags="-mtune=nocona -fstrict-aliasing" 37 37 38 38 cd "$BUILDDIR" … … 42 42 "$SRCROOT/ffmpeg/configure" $extraConfigureOptions $generalConfigureOptions --cpu=pentium-m --extra-cflags='-gdwarf-2 $optCFlags' 43 43 fi 44 44 45 make -C libavutil depend 45 46 make -C libavcodec depend … … 62 63 mkdir "$BUILDDIR" 63 64 64 export optCFlags="-mcpu=G3 -mtune=G5 -mmultiple "65 export optCFlags="-mcpu=G3 -mtune=G5 -mmultiple -fstrict-aliasing" 65 66 66 67 cd "$BUILDDIR" … … 70 71 "$SRCROOT/ffmpeg/configure" --cross-compile --arch=ppc --extra-ldflags='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --extra-cflags='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -gdwarf-2 $optCFlags' $extraConfigureOptions $generalConfigureOptions 71 72 fi 73 72 74 make -C libavutil depend 73 75 make -C libavcodec depend trunk/ff_MovieImport.c
r331 r347 295 295 AVProbeData *pd = (AVProbeData *)malloc(sizeof(AVProbeData)); 296 296 ByteIOContext byteContext; 297 AVFormatParameters params;298 int success, i;299 297 300 298 /* default */ … … 380 378 AVFormatContext *ic = NULL; 381 379 AVFormatParameters params; 382 AVPacket pkt;383 380 OSType mediaType; 384 381 Media media; 385 int count, hadIndex, i,j;382 int count, hadIndex, j; 386 383 387 384 /* make sure that in case of error, the flag movieImportResultComplete is not set */ … … 482 479 } else if(inFlags & movieImportWithIdle) { 483 480 if(addedDuration && ic->duration > 0) { 484 TimeValue sampleTime;485 481 TimeScale movieTimeScale = GetMovieTimeScale(theMovie); 486 482 *addedDuration = movieTimeScale * ic->duration / AV_TIME_BASE;
