summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-12-23 00:02:17 +0000
committerjstebbins <[email protected]>2009-12-23 00:02:17 +0000
commit84683fb1af90f1b5887b0149fa7962b26f8ce87f (patch)
tree0a6f3d1d66d61bbe8f389b2892c0f8095e560ecc /libhb/common.h
parent2252eabba54132b98b11c86f3457b2a9e307d645 (diff)
add point-to-point encoding
allows frame and pts based start points. end points were already previously supported. New job variables pts_to_start and frame_to_start specify the start point. There can be a period during the encode where it has to search for the start point. During this period, libhb sets a new state HB_STATE_SEARCHING and sets progress and eta till start point found. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3039 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 57447b09a..ec45250da 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -260,7 +260,10 @@ struct hb_job_s
hb_subtitle_config_t select_subtitle_config;
int angle; // dvd angle to encode
- int frame_to_stop; // declare eof when we hit this frame
+ int frame_to_start; // declare eof when we hit this frame
+ int64_t pts_to_start; // drop frames until we pass this pts
+ // in the time-linearized input stream
+ int frame_to_stop; // declare eof when we hit this frame
int64_t pts_to_stop; // declare eof when we pass this pts in
// the time-linearized input stream
int start_at_preview; // if non-zero, encoding will start
@@ -566,6 +569,7 @@ struct hb_state_s
#define HB_STATE_PAUSED 16
#define HB_STATE_WORKDONE 32
#define HB_STATE_MUXING 64
+#define HB_STATE_SEARCHING 128
int state;
union