shithub: openh264

Download patch

ref: 82b70b34fe3ca03af1e7f79aa92d85e6917454d1
parent: 3a73179cab23db7207489095f86c8d79b06c8c2e
parent: 80ce939d7ac8729c78ac0a4fd9227da28355c434
author: HaiboZhu <[email protected]>
date: Thu Nov 27 09:22:06 EST 2014

Merge pull request #1561 from ruil2/cleanup

remove some macro definitions in header files

--- a/codec/api/svc/codec_def.h
+++ b/codec/api/svc/codec_def.h
@@ -156,17 +156,6 @@
   uiContainingFinalNal;              ///< whether final NAL is involved in buffer of coded slices, flag used in Pause feature in T27
 } SliceInfo, *PSliceInfo;
 
-
-
-#define CIF_WIDTH		352
-#define CIF_HEIGHT		288
-#define QVGA_WIDTH		320
-#define QVGA_HEIGHT		240
-#define QCIF_WIDTH		176
-#define QCIF_HEIGHT		144
-#define SQCIF_WIDTH		128
-#define SQCIF_HEIGHT	96
-
 /**
 * @brief thresholds of the initial, maximal and minimal rate
 */
@@ -202,17 +191,6 @@
     SSysMEMBuffer sSystemBuffer; ///<  memory info for one picture
   } UsrData;                     ///<  output buffer info
 } SBufferInfo;
-
-/**
-* @brief Constants related to transmission rate at various resolutions
-*/
-static const SRateThresholds ksRateThrMap[4] = {
-  // initial-maximal-minimal
-  {CIF_WIDTH, CIF_HEIGHT, 225000, 384000, 96000, 3, 1, 1},		// CIF
-  {QVGA_WIDTH, QVGA_HEIGHT, 192000, 320000, 80000, -1, -1, -1},	// QVGA
-  {QCIF_WIDTH, QCIF_HEIGHT, 150000, 256000, 64000, 8, 4, 2},	// QCIF
-  {SQCIF_WIDTH, SQCIF_HEIGHT, 120000, 192000, 48000, 5, 3, 1}	// SQCIF
-};
 
 
 /**