summaryrefslogtreecommitdiffstats
path: root/encoder/ime.h
diff options
context:
space:
mode:
authorHarinarayanan K K <harinarayanan.kk@ittiam.com>2015-06-18 16:03:38 +0530
committerMarco Nelissen <marcone@google.com>2015-06-25 08:25:43 -0700
commit3749f6f435e79624f72841e866245d84195551cd (patch)
tree02569a7442cbbdf650fdde01f3e72741b4b094bb /encoder/ime.h
parentc080d5799655658eb847b0583f58e5aff3a5cbaa (diff)
downloadandroid_external_libavc-3749f6f435e79624f72841e866245d84195551cd.tar.gz
android_external_libavc-3749f6f435e79624f72841e866245d84195551cd.tar.bz2
android_external_libavc-3749f6f435e79624f72841e866245d84195551cd.zip
Added support for Main Profile toolsets in encoder.
Added support for CABAC entropy coding. Added support for B slices. Fixed an issue in rate control constant QP mode. Change-Id: Ib759d35e8e943f941aa9b8bbff0362d92c619994
Diffstat (limited to 'encoder/ime.h')
-rw-r--r--encoder/ime.h51
1 files changed, 30 insertions, 21 deletions
diff --git a/encoder/ime.h b/encoder/ime.h
index 5c039e8..17912d4 100644
--- a/encoder/ime.h
+++ b/encoder/ime.h
@@ -47,6 +47,19 @@
*/
#define NUM_LAYERS 16
+/**
+******************************************************************************
+ * @brief Skip Bias value for P slice
+******************************************************************************
+ */
+#define SKIP_BIAS_P 2
+
+/**
+******************************************************************************
+ * @brief Skip Bias value for B slice
+******************************************************************************
+ */
+#define SKIP_BIAS_B 16
/*****************************************************************************/
/* Extern Function Declarations */
@@ -84,8 +97,8 @@
* computational feasibility. This is only for quality eval purposes.
*
*******************************************************************************
-*/
-extern void ime_diamond_search_16x16(me_ctxt_t *ps_me_ctxt);
+ */
+extern void ime_diamond_search_16x16(me_ctxt_t *ps_me_ctxt, WORD32 i4_reflist);
/**
@@ -113,10 +126,8 @@ extern void ime_diamond_search_16x16(me_ctxt_t *ps_me_ctxt);
*
*******************************************************************************
*/
-extern void ime_evaluate_init_srchposn_16x16
- (
- me_ctxt_t *ps_me_ctxt
- );
+extern void ime_evaluate_init_srchposn_16x16(me_ctxt_t *ps_me_ctxt,
+ WORD32 i4_reflist);
/**
*******************************************************************************
@@ -142,10 +153,8 @@ extern void ime_evaluate_init_srchposn_16x16
*
*******************************************************************************
*/
-extern void ime_full_pel_motion_estimation_16x16
- (
- me_ctxt_t *ps_me_ctxt
- );
+extern void ime_full_pel_motion_estimation_16x16(me_ctxt_t *ps_me_ctxt,
+ WORD32 i4_ref_list);
/**
*******************************************************************************
@@ -171,10 +180,8 @@ extern void ime_full_pel_motion_estimation_16x16
*
*******************************************************************************
*/
-extern void ime_sub_pel_motion_estimation_16x16
- (
- me_ctxt_t *ps_me_ctxt
- );
+extern void ime_sub_pel_motion_estimation_16x16(me_ctxt_t *ps_me_ctxt,
+ WORD32 i4_reflist);
/**
*******************************************************************************
@@ -189,6 +196,9 @@ extern void ime_sub_pel_motion_estimation_16x16
* @param[in] ps_skip_mv
* pointer to skip mv
*
+ @param[in] is_slice_type_b
+* Whether slice type is BSLICE or not
+
* @returns none
*
* @remarks
@@ -197,13 +207,12 @@ extern void ime_sub_pel_motion_estimation_16x16
*
*******************************************************************************
*/
-extern void ime_compute_skip_cost
- (
- me_ctxt_t *ps_me_ctxt,
- void *pv_skip_mv,
- mb_part_ctxt *ps_smb_part_info,
- UWORD32 u4_use_stat_sad
- );
+extern void ime_compute_skip_cost(me_ctxt_t *ps_me_ctxt,
+ ime_mv_t *ps_skip_mv,
+ mb_part_ctxt *ps_smb_part_info,
+ UWORD32 u4_use_stat_sad,
+ WORD32 i4_reflist,
+ WORD32 is_slice_type_b);
#endif /* IME_H_ */