[x265] [PATCH 1 of 3] Moving macro to header

shazeb at multicorewareinc.com shazeb at multicorewareinc.com
Mon Dec 30 13:25:50 CET 2013


# HG changeset patch
# User Shazeb Nawaz Khan <shazeb at multicorewareinc.com>
# Date 1388406084 -19800
#      Mon Dec 30 17:51:24 2013 +0530
# Node ID 3cc30f74ce04aed7af82ea4ba6e17856160974f5
# Parent  c561cd778ef5002f4d83d8db0b2c918abe90bd09
Moving macro to header

diff -r c561cd778ef5 -r 3cc30f74ce04 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Mon Dec 30 16:06:13 2013 +0530
+++ b/source/encoder/slicetype.cpp	Mon Dec 30 17:51:24 2013 +0530
@@ -46,14 +46,6 @@
 
 using namespace x265;
 
-#define SET_WEIGHT(w, b, s, d, o) \
-    { \
-        (w).inputWeight = (s); \
-        (w).log2WeightDenom = (d); \
-        (w).inputOffset = (o); \
-        (w).bPresentFlag = b; \
-    }
-
 static inline int16_t median(int16_t a, int16_t b, int16_t c)
 {
     int16_t t = (a - b) & ((a - b) >> 31);
diff -r c561cd778ef5 -r 3cc30f74ce04 source/encoder/slicetype.h
--- a/source/encoder/slicetype.h	Mon Dec 30 16:06:13 2013 +0530
+++ b/source/encoder/slicetype.h	Mon Dec 30 17:51:24 2013 +0530
@@ -35,6 +35,14 @@
 class TComPic;
 class TEncCfg;
 
+#define SET_WEIGHT(w, b, s, d, o) \
+    { \
+        (w).inputWeight = (s); \
+        (w).log2WeightDenom = (d); \
+        (w).inputOffset = (o); \
+        (w).bPresentFlag = b; \
+    }
+
 struct LookaheadRow
 {
     Lock                lock;


More information about the x265-devel mailing list