diff options
author | jstebbins <[email protected]> | 2012-03-27 20:11:26 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-03-27 20:11:26 +0000 |
commit | 45b8f81a2e184e2b7deaf47afc49483766191a27 (patch) | |
tree | 30ed0892995cb4ad3255909f69269c453000800a /libhb/decdca.c | |
parent | 7eb7737023be00fa0dc9be75a4984b80c0e5ce57 (diff) |
Rework filter pipeline
This patch enhances the filter objects. The 2 key improvements are:
1. A filter can change the image dimensions as frames pass through it.
2. A filter can output more than one frame.
In addition, I have:
Moved cropping & scalling into a filter object
Added 90 degree rotation to the rotate filter
Moved subtitle burn-in rendering to a filter object.
Moved VFR/CFR handling into a framerate shaping filter object.
Removed render.c since all it's responsibilities got moved to filters.
Improves VOBSUB and SSA subtitle handling. Allows subtitle animations.
SSA karaoke support.
My apologies in advance if anything breaks ;)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4546 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decdca.c')
-rw-r--r-- | libhb/decdca.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libhb/decdca.c b/libhb/decdca.c index 4f5ee3929..1e6e4192c 100644 --- a/libhb/decdca.c +++ b/libhb/decdca.c @@ -125,7 +125,7 @@ static int decdcaWork( hb_work_object_t * w, hb_buffer_t ** buf_in, return HB_WORK_DONE; } - if ( (*buf_in)->start < -1 && pv->next_pts == 0 ) + if ( (*buf_in)->s.start < -1 && pv->next_pts == 0 ) { // discard buffers that start before video time 0 *buf_out = NULL; @@ -235,9 +235,9 @@ static hb_buffer_t * Decode( hb_work_object_t * w ) { buf = hb_buffer_init( pv->size ); memcpy( buf->data, pv->frame, pv->size ); - buf->start = pts; + buf->s.start = pts; pv->next_pts = pts + frame_dur; - buf->stop = pv->next_pts; + buf->s.stop = pv->next_pts; pv->sync = 0; return buf; } @@ -252,9 +252,9 @@ static hb_buffer_t * Decode( hb_work_object_t * w ) int nsamp = num_blocks * 256; buf = hb_buffer_init( nsamp * pv->out_discrete_channels * sizeof( float ) ); - buf->start = pts; + buf->s.start = pts; pv->next_pts = pts + (double)nsamp / (double)pv->rate * 90000.; - buf->stop = pv->next_pts; + buf->s.stop = pv->next_pts; for( i = 0; i < num_blocks; i++ ) { |