diff options
author | jstebbins <[email protected]> | 2012-08-27 18:05:13 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-08-27 18:05:13 +0000 |
commit | 0fa931ae3ea9d197fb305b0f49fae4a9b36c0c70 (patch) | |
tree | 1c9bd8c0f5c541fc41181453da06814a90f4ede8 /libhb/vfr.c | |
parent | 80987fa9a86baaddf5627bc4138070fb39b162ac (diff) |
libhb: decomb and deinterlace improvements
Use hb_buffer_t for reference buffers.
This is what eliminates extra buffer copies.
Simplified a lot of the code.
This resulted in some minor speed improvements and easier to read code.
Allow mcdeint+bob. Previously these could not be used together.
Thread the erode-dilate-erode-check steps in decomb3. More speed improvement.
Speed of default decomb went from 62fps to 76fps.
Speed of fast decomb went from 90fps to 95fps.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4919 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/vfr.c')
-rw-r--r-- | libhb/vfr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/vfr.c b/libhb/vfr.c index cbe74bfb6..8bd731b74 100644 --- a/libhb/vfr.c +++ b/libhb/vfr.c @@ -287,7 +287,7 @@ static void adjust_frame_rate( hb_filter_private_t *pv, hb_buffer_t **buf_out ) for ( ; excess_dur >= pv->frame_rate; excess_dur -= pv->frame_rate ) { /* next frame too far ahead - dup current frame */ - hb_buffer_t *dup = hb_buffer_copy( out ); + hb_buffer_t *dup = hb_buffer_dup( out ); dup->s.new_chap = 0; dup->s.start = cfr_stop; cfr_stop += pv->frame_rate; |