Manual tweak multimedia/olive
[dports.git] / multimedia / jmref / files / patch-lencod_inc_defines.h
1 --- lencod/inc/defines.h.orig   2020-09-29 10:32:12 UTC
2 +++ lencod/inc/defines.h
3 @@ -77,7 +77,7 @@
4  
5  
6  //AVC Profile IDC definitions
7 -enum {
8 +extern enum {
9    NO_PROFILE     =  0,       //!< disable profile checking for experimental coding (enables FRExt, but disables MV)
10    FREXT_CAVLC444 = 44,       //!< YUV 4:4:4/14 "CAVLC 4:4:4"
11    BASELINE       = 66,       //!< YUV 4:2:0/8  "Baseline"
12 @@ -164,7 +164,7 @@ enum {
13  
14  
15  //  Available MB modes
16 -enum {
17 +extern enum {
18    PSKIP        =  0,
19    BSKIP_DIRECT =  0,
20    P16x16       =  1,
21 @@ -188,13 +188,13 @@ enum {
22  #define NO_INTRA_PMODE  9
23  
24  // Direct Mode types
25 -enum {
26 +extern enum {
27    DIR_TEMPORAL = 0, //!< Temporal Direct Mode
28    DIR_SPATIAL  = 1 //!< Spatial Direct Mode
29  } DirectModes;
30  
31  // CAVLC block types
32 -enum {
33 +extern enum {
34    LUMA              =  0,
35    LUMA_INTRA16x16DC =  1,
36    LUMA_INTRA16x16AC =  2,
37 @@ -207,7 +207,7 @@ enum {
38  } CAVLCBlockTypes;
39  
40  // CABAC block types
41 -enum {
42 +extern enum {
43    LUMA_16DC     =   0,
44    LUMA_16AC     =   1,
45    LUMA_8x8      =   2,
46 @@ -233,7 +233,7 @@ enum {
47  } CABACBlockTypes;
48  
49  // Color components
50 -enum {
51 +typedef enum {
52    Y_COMP = 0,    // Y Component
53    U_COMP = 1,    // U Component
54    V_COMP = 2,    // V Component
55 @@ -241,8 +241,9 @@ enum {
56    G_COMP = 4,    // G Component
57    B_COMP = 5,    // B Component
58    T_COMP = 6
59 -} ColorComponent;
60 +} ColorComponent_t;
61  
62 +extern ColorComponent_t ColorComponent;
63  
64  #define LEVEL_NUM         6
65  #define TOTRUN_NUM       15
66 @@ -255,7 +256,7 @@ enum {
67  #define SHIFT_QP        12
68  
69  // 4x4 intra prediction modes 
70 -enum {
71 +extern enum {
72    VERT_PRED            = 0,
73    HOR_PRED             = 1,
74    DC_PRED              = 2,
75 @@ -268,7 +269,7 @@ enum {
76  } I4x4PredModes;
77  
78  // 16x16 intra prediction modes
79 -enum {
80 +extern enum {
81    VERT_PRED_16   = 0,
82    HOR_PRED_16    = 1,
83    DC_PRED_16     = 2,
84 @@ -276,7 +277,7 @@ enum {
85  } I16x16PredModes;
86  
87  // 8x8 chroma intra prediction modes
88 -enum {
89 +extern enum {
90    DC_PRED_8     =  0,
91    HOR_PRED_8    =  1,
92    VERT_PRED_8   =  2,
93 @@ -291,7 +292,7 @@ enum {
94  };
95  
96  // MV Prediction types
97 -enum {
98 +extern enum {
99    MVPRED_MEDIAN   = 0,
100    MVPRED_L        = 1,
101    MVPRED_U        = 2,
102 @@ -341,14 +342,14 @@ enum {
103  #define NUM_ONE_CTX    5
104  #define NUM_ABS_CTX    5
105  
106 -enum // JLT : on-the-fly levels/modes
107 +extern enum // JLT : on-the-fly levels/modes
108  {
109    OTF_L0 = 0, // Disable, interpolate & store all positions
110    OTF_L1 = 1, // Store full pel & interpolated 1/2 pel positions; 1/4 pel positions interpolate on-the-fly
111    OTF_L2 = 2  // Store only full pell positions; 1/2 & 1/4 pel positions interpolate on-the-fly  
112  } OTFMode;
113  
114 -enum
115 +extern enum
116  {
117    OTF_ME = 0,
118    OTF_MC = 1