[x265] [PATCH] primitives.h, chroma partition size and function pointers

praveen at multicorewareinc.com praveen at multicorewareinc.com
Wed Oct 16 16:54:00 CEST 2013


# HG changeset patch
# User Praveen Tiwari
# Date 1381935227 -19800
# Node ID a9b9cdf89eec614043b849068aabdf92b56fd777
# Parent  09c0e0209d84313a49a15ac3806f03223a1546de
primitives.h, chroma partition size and function pointers

diff -r 09c0e0209d84 -r a9b9cdf89eec source/common/primitives.h
--- a/source/common/primitives.h	Wed Oct 16 10:11:23 2013 +0530
+++ b/source/common/primitives.h	Wed Oct 16 20:23:47 2013 +0530
@@ -6,6 +6,7 @@
  *          Deepthi Devaki Akkoorath <deepthidevaki at multicorewareinc.com>
  *          Mahesh Pittala <mahesh at multicorewareinc.com>
  *          Rajesh Paulraj <rajesh at multicorewareinc.com>
+ *          Praveen Kumar Tiwari <praveen at multicorewareinc.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -137,17 +138,15 @@
     NUM_IPFILTER_S_S
 };
 
-enum ChromaPartitionWidths
-{
-    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_PARTITION_WIDTHS
+enum ChromaPartions
+{
+    CHROMA_PARTITION_2x4, CHROMA_PARTITION_2x8, CHROMA_PARTITION_4x2, CHROMA_PARTITION_4x4,
+    CHROMA_PARTITION_4x8, CHROMA_PARTITION_4x16, CHROMA_PARTITION_6x8, CHROMA_PARTITION_8x2,
+    CHROMA_PARTITION_8x4, CHROMA_PARTITION_8x6, CHROMA_PARTITION_8x8, CHROMA_PARTITION_8x16,
+    CHROMA_PARTITION_8x32, CHROMA_PARTITION_12x16, CHROMA_PARTITION_16x4, CHROMA_PARTITION_16x8,
+    CHROMA_PARTITION_16x12, CHROMA_PARTITION_16x16, CHROMA_PARTITION_16x32, CHROMA_PARTITION_24x32,
+    CHROMA_PARTITION_32x8, CHROMA_PARTITION_32x16, CHROMA_PARTITION_32x24, CHROMA_PARTITION_32x32,
+    NUM_CHROMA_PARTITIONS
 };
 
 // Returns a Partitions enum for the given size, always expected to return a valid enum
@@ -203,7 +202,7 @@
 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); 
+typedef void (*filter_pp_t) (pixel *src, intptr_t srcStride, pixel *dst, intptr_t dstStride, int coeffIdx);
 
 /* Define a structure containing function pointers to optimized encoder
  * primitives.  Each pointer can reference either an assembly routine,
@@ -236,7 +235,7 @@
     ipfilter_p2s_t  ipfilter_p2s;
     ipfilter_s2p_t  ipfilter_s2p;
     extendCURowBorder_t extendRowBorder;
-    filter_pp_t     chroma_hpp[NUM_CHROMA_PARTITION_WIDTHS];
+    filter_pp_t     chroma_hpp[NUM_CHROMA_PARTITIONS];
 
     intra_dc_t      intra_pred_dc;
     intra_planar_t  intra_pred_planar;


More information about the x265-devel mailing list