summaryrefslogtreecommitdiffstats
path: root/libhb/hb.h
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-03-23 19:53:39 +0000
committerjbrjake <[email protected]>2008-03-23 19:53:39 +0000
commit605848589fbd7397b20aa295277727450d4f364d (patch)
treee7f01fab10b996cfc22c0ae7661a973bf68c03ba /libhb/hb.h
parent64e8482abad07e7d000c7397755d67767c7ea34d (diff)
= Adds an hb_detect_comb() function that indicates whether or not a frame shows interlacing artifacts.
- Utilitizes that function in scan.c to analyze the preview frames - Sets a new title->detected_interlacing variable to true if half or more previews show combing, and warns the user in the log. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1359 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.h')
-rw-r--r--libhb/hb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/hb.h b/libhb/hb.h
index 7454b634b..6dfbf7be8 100644
--- a/libhb/hb.h
+++ b/libhb/hb.h
@@ -76,6 +76,11 @@ void hb_scan( hb_handle_t *, const char * path,
Returns the list of valid titles detected by the latest scan. */
hb_list_t * hb_get_titles( hb_handle_t * );
+/* hb_detect_comb()
+ Analyze a frame for interlacing artifacts, returns true if they're found.
+ Taken from Thomas Oestreich's 32detect filter in the Transcode project. */
+int hb_detect_comb( hb_buffer_t * buf, int width, int height, int color_equal, int color_diff, int threshold );
+
void hb_get_preview( hb_handle_t *, hb_title_t *, int,
uint8_t * );
void hb_set_size( hb_job_t *, int ratio, int pixels );