[x265] [PATCH] analysis: allocate and initialize interData ref index
gopu at multicorewareinc.com
gopu at multicorewareinc.com
Thu Jan 22 05:57:45 CET 2015
# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1421839207 -19800
# Wed Jan 21 16:50:07 2015 +0530
# Node ID 206224ae0d8cbb0c2cad33e56a66708633c0da65
# Parent 1544454744626ba4ccdd4c2e1e2450a9ac350941
analysis: allocate and initialize interData ref index
diff -r 154445474462 -r 206224ae0d8c source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp Tue Jan 20 16:36:58 2015 -0600
+++ b/source/encoder/encoder.cpp Wed Jan 21 16:50:07 2015 +0530
@@ -1582,7 +1582,7 @@
{
analysis_inter_data *interData = (analysis_inter_data*)analysis->interData;
CHECKED_MALLOC_ZERO(interData, analysis_inter_data, 1);
- CHECKED_MALLOC(interData->ref, int32_t, analysis->numCUsInFrame * X265_MAX_PRED_MODE_PER_CTU * 2);
+ CHECKED_MALLOC_ZERO(interData->ref, int32_t, analysis->numCUsInFrame * X265_MAX_PRED_MODE_PER_CTU * 2);
CHECKED_MALLOC(interData->depth, uint8_t, analysis->numPartitions * analysis->numCUsInFrame);
CHECKED_MALLOC(interData->modes, uint8_t, analysis->numPartitions * analysis->numCUsInFrame);
analysis->interData = interData;
diff -r 154445474462 -r 206224ae0d8c source/encoder/search.cpp
--- a/source/encoder/search.cpp Tue Jan 20 16:36:58 2015 -0600
+++ b/source/encoder/search.cpp Wed Jan 21 16:50:07 2015 +0530
@@ -1975,7 +1975,7 @@
getBlkBits((PartSize)cu.m_partSize[0], slice->isInterP(), puIdx, lastMode, m_listSelBits);
/* Uni-directional prediction */
- if (m_param->analysisMode == X265_ANALYSIS_LOAD && bestME[0].ref >= 0)
+ if (m_param->analysisMode == X265_ANALYSIS_LOAD)
{
for (int l = 0; l < numPredDir; l++)
{
diff -r 154445474462 -r 206224ae0d8c source/encoder/search.h
--- a/source/encoder/search.h Tue Jan 20 16:36:58 2015 -0600
+++ b/source/encoder/search.h Wed Jan 21 16:50:07 2015 +0530
@@ -73,7 +73,6 @@
int ref;
uint32_t cost;
int bits;
- bool costZero;
};
struct Mode
More information about the x265-devel
mailing list