[x265] [PATCH] created partition size and function pointer for luma filter

praveen at multicorewareinc.com praveen at multicorewareinc.com
Thu Oct 17 17:25:22 CEST 2013


# HG changeset patch
# User Praveen Tiwari
# Date 1382023511 -19800
# Node ID b5375476fdedcce6e60c71c215ed95c923b9df43
# Parent  dfae391107c3d2823adabe284f1c08278669d8f0
created partition size and function pointer for luma filter

diff -r dfae391107c3 -r b5375476fded source/common/primitives.h
--- a/source/common/primitives.h	Thu Oct 17 16:05:37 2013 +0530
+++ b/source/common/primitives.h	Thu Oct 17 20:55:11 2013 +0530
@@ -148,6 +148,20 @@
     NUM_CHROMA_PARTITIONS
 };
 
+//Each luma size of table will be used to genrate 3 partion sizes, except few exceptions.
+//WxH will be used for WxH, Wx(H + 1) and (W + 1)x(H), like 4x8 will genrate 4x8, 4x9 and 5x9
+//exceptions are 16x64, 48x64, 64x16, 64x48 because they don't have corresponding odd block sizes i.e (W + 1)xH and Wx(H + 1)
+enum LumaPartions
+{
+    LUMA_PARTITION_4x8,        LUMA_PARTITION_4x16 = 3,   LUMA_PARTITION_8x4 = 6,    LUMA_PARTITION_8x8 = 9,
+    LUMA_PARTITION_8x16 = 12,  LUMA_PARTITION_8x32 = 15,  LUMA_PARTITION_12x16 = 18, LUMA_PARTITION_16x4 = 21,
+    LUMA_PARTITION_16x8 = 24,  LUMA_PARTITION_16x12 = 27, LUMA_PARTITION_16x16 = 30, LUMA_PARTITION_16x32 = 33,
+    LUMA_PARTITION_16x64 = 36, LUMA_PARTITION_24x32,      LUMA_PARTITION_32x8 = 40,  LUMA_PARTITION_32x16 = 43,
+    LUMA_PARTITION_32x24 = 46, LUMA_PARTITION_32x32 = 49, LUMA_PARTITION_32x64 = 52, LUMA_PARTITION_48x64 = 55,
+    LUMA_PARTITION_64x16,      LUMA_PARTITION_64x32,      LUMA_PARTITION_64x48 = 60, LUMA_PARTITION_64x64,
+    NUM_LUMA_PARTITIONS = 64
+};
+
 // Returns a Partitions enum for the given size, always expected to return a valid enum
 int PartitionFromSizes(int width, int height);
 
@@ -235,6 +249,7 @@
     ipfilter_s2p_t  ipfilter_s2p;
     extendCURowBorder_t extendRowBorder;
     filter_pp_t     chroma_hpp[NUM_CHROMA_PARTITIONS];
+    filter_pp_t     luma_hpp[NUM_LUMA_PARTITIONS];
 
     intra_dc_t      intra_pred_dc;
     intra_planar_t  intra_pred_planar;


More information about the x265-devel mailing list