[x265] [PATCH] primitives.h, added partion size, function def and function pointer created for chroma filter

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Oct 15 17:28:24 CEST 2013


# HG changeset patch
# User Praveen Tiwari
# Date 1381850874 -19800
# Node ID 1087f1f3bf5ab0a87023975458d0273be6908a98
# Parent  1a85d8814346efdb984ea9eae24d1b06b973e9a8
primitives.h, added partion size, function def and function pointer created for chroma filter

diff -r 1a85d8814346 -r 1087f1f3bf5a source/common/primitives.h
--- a/source/common/primitives.h	Tue Oct 15 12:45:58 2013 +0530
+++ b/source/common/primitives.h	Tue Oct 15 20:57:54 2013 +0530
@@ -137,6 +137,19 @@
     NUM_IPFILTER_S_S
 };
 
+enum ChromaPartions             // width based partion table for chroma filter
+{
+    CHROMA_PARTITION_W2,
+    CHROMA_PARTITION_W4,
+    CHROMA_PARTITION_W6,
+    CHROMA_PARTITION_W8,
+    CHROMA_PARTITION_W12,
+    CHROMA_PARTITION_W16,
+    CHROMA_PARTITION_W24,
+    CHROMA_PARTITION_W32,
+    NUM_CHROMA_PARTITIONS
+};
+
 // Returns a Partitions enum for the given size, always expected to return a valid enum
 int PartitionFromSizes(int width, int height);
 
@@ -190,6 +203,8 @@
 typedef uint64_t (*var_t)(pixel *pix, intptr_t stride);
 typedef void (*plane_copy_deinterleave_t)(pixel *dstu, intptr_t dstuStride, pixel *dstv, intptr_t dstvStride, pixel *src,  intptr_t srcStride, int w, int h);
 
+typedef void (*filter_pp_t) (pixel *src, intptr_t srcStride, pixel *dst, intptr_t dstStride, int height, int coeffIdx); 
+
 /* Define a structure containing function pointers to optimized encoder
  * primitives.  Each pointer can reference either an assembly routine,
  * a vectorized primitive, or a C function. */
@@ -250,6 +265,8 @@
     ssim_end4_t       ssim_end_4;
     var_t             var[NUM_PARTITIONS];
     plane_copy_deinterleave_t plane_copy_deinterleave_c;
+
+    filter_pp_t   chroma_hpp[NUM_CHROMA_PARTITIONS];
 };
 
 /* This copy of the table is what gets used by the encoder.


More information about the x265-devel mailing list