clzhan / mp4v2

Automatically exported from code.google.com/p/mp4v2
Other
0 stars 1 forks source link

[patch] add a simple cache to GetSampleCttsIndex() #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
My application was spending 70% of it's time reading offsets in this function, 
this patch add a way to cache it similar to the one in GetSampleTimes().

Original issue reported on code.google.com by damiog on 24 Nov 2010 at 8:32

Attachments:

GoogleCodeExporter commented 8 years ago
Looks nice, I'll see if I can get this in this week--do you have a piece of 
code I can use to test this change?

Thanks.

Original comment by kid...@gmail.com on 26 Nov 2010 at 5:35

GoogleCodeExporter commented 8 years ago
No, but I guess a simple app that just reads a video track (h.264 with 
b-frames) using MP4ReadSample() would show the difference.

Original comment by damiog on 26 Nov 2010 at 6:50

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Sorry for the delay, been really busy.  Patch is in r440.

I saw in subler there was some patch for utf16 support in chapter titles?  If 
you can get me a patch, I can look into getting that into the library.  
Otherwise, no worries.

Original comment by kid...@gmail.com on 29 Jan 2011 at 2:14

GoogleCodeExporter commented 8 years ago
Those patches are more like ugly hacks. Better if you don't see them. :)

Original comment by damiog on 29 Jan 2011 at 7:17