This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <ap_int.h> | |
#define HORIZONTAL_PIXEL_WIDTH 800 | |
#define VERTICAL_PIXEL_WIDTH 600 | |
#define ALL_PIXEL_VALUE (HORIZONTAL_PIXEL_WIDTH*VERTICAL_PIXEL_WIDTH) | |
int laplacian_fil(int x0y0, int x1y0, int x2y0, int x0y1, int x1y1, int x2y1, int x0y2, int x1y2, int x2y2); | |
int conv_rgb2y(int rgb); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module DctQuant where | |
import Prelude hiding (mapM_, read) | |
import Data.Vector.Mutable | |
import Data.Vector | |
import Control.Monad.ST | |
import Control.Monad.Primitive (PrimMonad, PrimState) | |
fdct :: PrimMonad m => Vector Float -> m (MVector (PrimState m) Float) | |
fdct vi = do |