Commit f2f3bace authored by Alberto Gonzalez's avatar Alberto Gonzalez

Commit 3 concept fork

```------------------------------------------------------
- Función que completa número threads y número padre en vector.
```

------------------------------------------------------
parent a6dc44a0
This diff is collapsed.
......@@ -228,6 +228,22 @@ public:
};
#endif
struct vectorModeCostStruct {
int mode;
double cost;
int threadNumber;
int posPadre;
};
//ALBERTO CONCEPT FORK
const int VECTOR_SIZE = 341; // TREE NODES
const int VECTOR_BYTES = VECTOR_SIZE * sizeof(vectorModeCostStruct); // VECTOR SIZE
const int LEVEL0 = 1;
const int LEVEL1 = 4;
const int LEVEL2 = 16;
const int LEVEL3 = 64;
const int LEVEL4 = 256;
const int levelValues [5] = {LEVEL0,LEVEL1,LEVEL2,LEVEL3,LEVEL4};
//END ALBERTO CONCEPT FORK
class EncCu
: DecCu
{
......@@ -236,6 +252,7 @@ private:
static int iter;
static int seconds;
//END ALBERTO
bool m_bestModeUpdated;
struct CtxPair
{
......@@ -306,6 +323,15 @@ public:
/// copy parameters from encoder class
void init ( EncLib* pcEncLib, const SPS& sps );
//ALBERTO CONCEPT FORK
void createAndInitSemaphore();
void initStructVector();
void updateFatherAndThreadNumbers(int LevelLowIndex, int LevelUpIndex, int posPadreActual, int i);
//END ALBERTO CONCEPT FORK
void setDecCuReshaperInEncCU(EncReshape* pcReshape, ChromaFormat chromaFormatIdc)
{
initDecCuReshaper((Reshape*) pcReshape, chromaFormatIdc);
......@@ -317,7 +343,7 @@ public:
void destroy ();
//ALBERT CONCEPT FORK
//ALBERTO CONCEPT FORK
void compressCtuForks(CodingStructure &cs, const UnitArea &area, const unsigned ctuRsAddr, const EnumArray<int, ChannelType> &prevQP, const EnumArray<int, ChannelType> &currQP);
//END ALBERTO CONCEPT FORK
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment