Skip to content

Commit

Permalink
Actualización nuevos métodos de ocultamiento de errores
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Arredondo authored and Christopher Arredondo committed Oct 11, 2016
1 parent 935f7e5 commit 8e3a566
Show file tree
Hide file tree
Showing 2,123 changed files with 2,264 additions and 150,909 deletions.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/rrss/*
/files/*
/images/*
7 changes: 7 additions & 0 deletions arguments.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define FILE_MIX "file-mixer"
#define JPG_COMPRESSOR "jpg-compressor"
#define TIBS_COMPRESSOR "tibs-compressor"
#define AHCR_COMPRESSOR "ahcr-compressor"

#define PACKETIZER_METHOD "-packetizer-method"
#define NORMAL_PACKETIZER "normal-packetizer"
Expand All @@ -29,6 +30,12 @@
#define AVERAGE_PIXEL_RBD "rebuilder-average-pixel"
#define AVERAGE_OPT_RBD "rebuilder-average-opt"
#define AVERAGE_RAMANBABU2001 "rebuilder-ramanbabu2001"
#define AVERAGE_CDD "rebuilder-cdd"
#define AVERAGE_BILI "rebuilder-bili"
#define AVERAGE_BILIPONDE "rebuilder-biliponde"
#define AVERAGE_BILIPONDE2 "rebuilder-msr"
#define AVERAGE_TVBLOCK "rebuilder-tvblock"
#define AVERAGE_BIC "rebuilder-bic"

#define METRIC "-metric"
#define METRIC_PSNR "metric-psnr"
Binary file modified class/.DS_Store
Binary file not shown.
91 changes: 91 additions & 0 deletions class/DataAhcrStream.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/**
@file DataTibsStream.h
@class DataTibsStream
@brief Clase que representa un Stream de Información JPG
@author Christopher Arredondo Flores
@date 28/9/2014
**/
#ifndef CLASS_DATAAHCRSTREAM
#define CLASS_DATAAHCRSTREAM

#include <iostream>
#include "DataType.h"

using namespace std;

class DataAhcrStream: public DataType{

vector<double> element; //!<@brief Elemento que Compone al Byte
vector<int> positions;

public:

DataAhcrStream(vector<double> nElement, vector<int> nPositions){
/**
* @brief Constructor de la Clase DataBlock
* @param nBlock Píxeles que contiene un DataBlock
* @param w Ancho del Bloque
* @param h Alto del Bloque
* @param nAmount Cantidad de Canales que tendrá el bloque
*
*/
element = nElement;
positions = nPositions;
this->setValid(true);
}


DataAhcrStream(){
/**
* @brief Constructor de la Clase DataBlock
*/
this->setValid(false);
}

~DataAhcrStream(){
}

double getSize(){
/*
* @brief Método que devuelve el tamaño del Elemento
* @return result
*/
double size = element.size();
return size;
}

int* getContent(){
/**
* @brief Función que devuelve en un arreglo de enteros todo el contenido de DataBlock
* return array
*/
int* array = (int*)malloc(sizeof(int));
if(this->isValid()){
array[0]=0;
}
else{
array[0]=1;
}
return array;
}

void* getExtras(){
/**
* @brief Método que Obtiene el Dato del Byte
*/
return (void*)&element;
}

vector<double> getBlock(){
return element;
}

vector<int> getPositions(){
return positions;
}


};

#endif
2 changes: 1 addition & 1 deletion class/DataBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class DataBlock: public DataType{
* return local_max
*/
int local_max = 0;
for (int i = 0; i < (width*height); ++i)
for (int i = 0; i < (width*height); i+=1)
{
local_max = local_max + block[i].getIntensity();
}
Expand Down
Binary file modified class/ForwardProcessing/.DS_Store
Binary file not shown.
Loading

0 comments on commit 8e3a566

Please sign in to comment.