summaryrefslogtreecommitdiffstats
path: root/libhb/mcdeint.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-09-26 21:00:52 +0000
committerjstebbins <[email protected]>2011-09-26 21:00:52 +0000
commit35207027d8c070fad7b41cb574fc8e000a68f124 (patch)
tree26cabdd2ede9eb033590e29b21a6e4c0eff1f48e /libhb/mcdeint.h
parent93c56509e64cf7ac43036260037966433a65f553 (diff)
Extract common mcdeint code from decomb/deint
Extracts duplicated code from decomb.c and deinterlace.c and puts it in a shared module. Fixes a bug that existed in the decomb version of mcdeint_filter. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4257 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/mcdeint.h')
-rw-r--r--libhb/mcdeint.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/libhb/mcdeint.h b/libhb/mcdeint.h
new file mode 100644
index 000000000..3c2a96200
--- /dev/null
+++ b/libhb/mcdeint.h
@@ -0,0 +1,28 @@
+struct mcdeint_private_s
+{
+ int mcdeint_mode;
+ int mcdeint_qp;
+
+ int mcdeint_outbuf_size;
+ uint8_t * mcdeint_outbuf;
+ AVCodecContext * mcdeint_avctx_enc;
+ AVFrame * mcdeint_frame;
+ AVFrame * mcdeint_frame_dec;
+};
+
+typedef struct mcdeint_private_s mcdeint_private_t;
+
+void mcdeint_init( mcdeint_private_t * pv,
+ int mode,
+ int qp,
+ int width,
+ int height );
+
+void mcdeint_close( mcdeint_private_t * pv );
+
+void mcdeint_filter( uint8_t ** dst,
+ uint8_t ** src,
+ int parity,
+ int * width,
+ int * height,
+ mcdeint_private_t * pv );