hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
588 values
lang
stringclasses
305 values
max_stars_repo_path
stringlengths
3
363
max_stars_repo_name
stringlengths
5
118
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringdate
2015-01-01 00:00:35
2022-03-31 23:43:49
max_stars_repo_stars_event_max_datetime
stringdate
2015-01-01 12:37:38
2022-03-31 23:59:52
max_issues_repo_path
stringlengths
3
363
max_issues_repo_name
stringlengths
5
118
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
float64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
363
max_forks_repo_name
stringlengths
5
135
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringdate
2015-01-01 00:01:02
2022-03-31 23:27:27
max_forks_repo_forks_event_max_datetime
stringdate
2015-01-03 08:55:07
2022-03-31 23:59:24
content
stringlengths
5
1.05M
avg_line_length
float64
1.13
1.04M
max_line_length
int64
1
1.05M
alphanum_fraction
float64
0
1
848fd7e72a6e04c99b1b8ace332cb2e4c79297f6
385
h
C
ios/chrome/app/application_mode.h
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
ios/chrome/app/application_mode.h
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
ios/chrome/app/application_mode.h
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_APP_APPLICATION_MODE_H_ #define IOS_CHROME_APP_APPLICATION_MODE_H_ // Global mode of the application. enum class ApplicationMode { NORMAL, INCOGNITO }; #endif // IOS_CHROME_APP_APPLICATION_MODE_H_
32.083333
73
0.802597
c537f1566bcb344fe88e56b309bacd93eb6de32e
12,829
c
C
src/codegen/lib/UpdateThetaBetaAprx_LargeData/sqrtm.c
Emory-CBIS/HINT
b3e5113671aa447ec60e102229480db2e9ec5cf2
[ "MIT" ]
5
2019-11-20T13:31:26.000Z
2021-05-17T20:00:50.000Z
src/codegen/lib/UpdateThetaBetaAprx_LargeData/sqrtm.c
Emory-CBIS/HINT
b3e5113671aa447ec60e102229480db2e9ec5cf2
[ "MIT" ]
17
2018-11-15T20:34:20.000Z
2022-03-25T16:29:38.000Z
src/codegen/lib/UpdateThetaBetaAprx_LargeData/sqrtm.c
Emory-CBIS/HINT
b3e5113671aa447ec60e102229480db2e9ec5cf2
[ "MIT" ]
2
2018-11-15T20:45:15.000Z
2020-01-03T03:24:33.000Z
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * sqrtm.c * * Code generation for function 'sqrtm' * */ /* Include files */ #include "rt_nonfinite.h" #include "UpdateThetaBetaAprx_LargeData.h" #include "sqrtm.h" #include "sqrt.h" #include "UpdateThetaBetaAprx_LargeData_emxutil.h" #include "norm.h" #include "schur.h" #include "UpdateThetaBetaAprx_LargeData_rtwutil.h" /* Function Declarations */ static boolean_T isUTmatD(const emxArray_creal_T *T); /* Function Definitions */ static boolean_T isUTmatD(const emxArray_creal_T *T) { boolean_T p; int j; int exitg2; int i; int exitg1; boolean_T b_T; j = 0; do { exitg2 = 0; if (j + 1 <= T->size[1]) { i = 1; do { exitg1 = 0; if (i <= j) { b_T = ((T->data[(i + T->size[0] * j) - 1].re != 0.0) || (T->data[(i + T->size[0] * j) - 1].im != 0.0)); if (b_T) { p = false; exitg1 = 1; } else { i++; } } else { j++; exitg1 = 2; } } while (exitg1 == 0); if (exitg1 == 1) { exitg2 = 1; } } else { p = true; exitg2 = 1; } } while (exitg2 == 0); return p; } void sqrtm(const emxArray_real_T *A, emxArray_creal_T *X) { emxArray_creal_T *Q; emxArray_creal_T *T; int n; int i14; emxArray_creal_T *R; unsigned int uv0[2]; int br; int j; emxArray_creal_T *y; int i; int k; double s_re; double s_im; double T_re; double R_re; int m; int ar; double R_im; int i15; emxArray_creal_T *b; double bim; int ic; int ib; boolean_T b_R; int ia; emxArray_real_T *b_X; boolean_T exitg1; emxInit_creal_T(&Q, 2); emxInit_creal_T(&T, 2); schur(A, Q, T); n = A->size[0]; for (i14 = 0; i14 < 2; i14++) { uv0[i14] = (unsigned int)T->size[i14]; } emxInit_creal_T(&R, 2); i14 = R->size[0] * R->size[1]; R->size[0] = (int)uv0[0]; R->size[1] = (int)uv0[1]; emxEnsureCapacity((emxArray__common *)R, i14, sizeof(creal_T)); br = (int)uv0[0] * (int)uv0[1]; for (i14 = 0; i14 < br; i14++) { R->data[i14].re = 0.0; R->data[i14].im = 0.0; } if (isUTmatD(T)) { for (j = 0; j + 1 <= n; j++) { R->data[j + R->size[0] * j] = T->data[j + T->size[0] * j]; c_sqrt(&R->data[j + R->size[0] * j]); } } else { for (j = 0; j + 1 <= n; j++) { R->data[j + R->size[0] * j] = T->data[j + T->size[0] * j]; c_sqrt(&R->data[j + R->size[0] * j]); for (i = j - 1; i + 1 > 0; i--) { s_re = 0.0; s_im = 0.0; for (k = i + 1; k + 1 <= j; k++) { R_re = R->data[i + R->size[0] * k].re * R->data[k + R->size[0] * j].re - R->data[i + R->size[0] * k].im * R->data[k + R->size[0] * j].im; R_im = R->data[i + R->size[0] * k].re * R->data[k + R->size[0] * j].im + R->data[i + R->size[0] * k].im * R->data[k + R->size[0] * j].re; s_re += R_re; s_im += R_im; } T_re = T->data[i + T->size[0] * j].re - s_re; s_im = T->data[i + T->size[0] * j].im - s_im; R_re = R->data[i + R->size[0] * i].re + R->data[j + R->size[0] * j].re; R_im = R->data[i + R->size[0] * i].im + R->data[j + R->size[0] * j].im; if (R_im == 0.0) { if (s_im == 0.0) { R->data[i + R->size[0] * j].re = T_re / R_re; R->data[i + R->size[0] * j].im = 0.0; } else if (T_re == 0.0) { R->data[i + R->size[0] * j].re = 0.0; R->data[i + R->size[0] * j].im = s_im / R_re; } else { R->data[i + R->size[0] * j].re = T_re / R_re; R->data[i + R->size[0] * j].im = s_im / R_re; } } else if (R_re == 0.0) { if (T_re == 0.0) { R->data[i + R->size[0] * j].re = s_im / R_im; R->data[i + R->size[0] * j].im = 0.0; } else if (s_im == 0.0) { R->data[i + R->size[0] * j].re = 0.0; R->data[i + R->size[0] * j].im = -(T_re / R_im); } else { R->data[i + R->size[0] * j].re = s_im / R_im; R->data[i + R->size[0] * j].im = -(T_re / R_im); } } else { s_re = fabs(R_re); bim = fabs(R_im); if (s_re > bim) { s_re = R_im / R_re; bim = R_re + s_re * R_im; R->data[i + R->size[0] * j].re = (T_re + s_re * s_im) / bim; R->data[i + R->size[0] * j].im = (s_im - s_re * T_re) / bim; } else if (bim == s_re) { if (R_re > 0.0) { R_re = 0.5; } else { R_re = -0.5; } if (R_im > 0.0) { bim = 0.5; } else { bim = -0.5; } R->data[i + R->size[0] * j].re = (T_re * R_re + s_im * bim) / s_re; R->data[i + R->size[0] * j].im = (s_im * R_re - T_re * bim) / s_re; } else { s_re = R_re / R_im; bim = R_im + s_re * R_re; R->data[i + R->size[0] * j].re = (s_re * T_re + s_im) / bim; R->data[i + R->size[0] * j].im = (s_re * s_im - T_re) / bim; } } } } } emxFree_creal_T(&T); emxInit_creal_T(&y, 2); if ((Q->size[1] == 1) || (R->size[0] == 1)) { i14 = y->size[0] * y->size[1]; y->size[0] = Q->size[0]; y->size[1] = R->size[1]; emxEnsureCapacity((emxArray__common *)y, i14, sizeof(creal_T)); br = Q->size[0]; for (i14 = 0; i14 < br; i14++) { ar = R->size[1]; for (i15 = 0; i15 < ar; i15++) { y->data[i14 + y->size[0] * i15].re = 0.0; y->data[i14 + y->size[0] * i15].im = 0.0; j = Q->size[1]; for (i = 0; i < j; i++) { bim = Q->data[i14 + Q->size[0] * i].re * R->data[i + R->size[0] * i15] .re - Q->data[i14 + Q->size[0] * i].im * R->data[i + R->size[0] * i15].im; R_re = Q->data[i14 + Q->size[0] * i].re * R->data[i + R->size[0] * i15] .im + Q->data[i14 + Q->size[0] * i].im * R->data[i + R->size[0] * i15].re; y->data[i14 + y->size[0] * i15].re += bim; y->data[i14 + y->size[0] * i15].im += R_re; } } } } else { k = Q->size[1]; uv0[0] = (unsigned int)Q->size[0]; uv0[1] = (unsigned int)R->size[1]; i14 = y->size[0] * y->size[1]; y->size[0] = (int)uv0[0]; y->size[1] = (int)uv0[1]; emxEnsureCapacity((emxArray__common *)y, i14, sizeof(creal_T)); m = Q->size[0]; i14 = y->size[0] * y->size[1]; emxEnsureCapacity((emxArray__common *)y, i14, sizeof(creal_T)); br = y->size[1]; for (i14 = 0; i14 < br; i14++) { ar = y->size[0]; for (i15 = 0; i15 < ar; i15++) { y->data[i15 + y->size[0] * i14].re = 0.0; y->data[i15 + y->size[0] * i14].im = 0.0; } } if ((Q->size[0] == 0) || (R->size[1] == 0)) { } else { j = Q->size[0] * (R->size[1] - 1); i = 0; while ((m > 0) && (i <= j)) { i14 = i + m; for (ic = i; ic + 1 <= i14; ic++) { y->data[ic].re = 0.0; y->data[ic].im = 0.0; } i += m; } br = 0; i = 0; while ((m > 0) && (i <= j)) { ar = -1; i14 = br + k; for (ib = br; ib + 1 <= i14; ib++) { b_R = ((R->data[ib].re != 0.0) || (R->data[ib].im != 0.0)); if (b_R) { s_re = R->data[ib].re - 0.0 * R->data[ib].im; s_im = R->data[ib].im + 0.0 * R->data[ib].re; ia = ar; i15 = i + m; for (ic = i; ic + 1 <= i15; ic++) { ia++; R_re = s_re * Q->data[ia].re - s_im * Q->data[ia].im; bim = s_re * Q->data[ia].im + s_im * Q->data[ia].re; y->data[ic].re += R_re; y->data[ic].im += bim; } } ar += m; } br += k; i += m; } } } emxFree_creal_T(&R); emxInit_creal_T(&b, 2); i14 = b->size[0] * b->size[1]; b->size[0] = Q->size[1]; b->size[1] = Q->size[0]; emxEnsureCapacity((emxArray__common *)b, i14, sizeof(creal_T)); br = Q->size[0]; for (i14 = 0; i14 < br; i14++) { ar = Q->size[1]; for (i15 = 0; i15 < ar; i15++) { b->data[i15 + b->size[0] * i14].re = Q->data[i14 + Q->size[0] * i15].re; b->data[i15 + b->size[0] * i14].im = -Q->data[i14 + Q->size[0] * i15].im; } } emxFree_creal_T(&Q); if ((y->size[1] == 1) || (b->size[0] == 1)) { i14 = X->size[0] * X->size[1]; X->size[0] = y->size[0]; X->size[1] = b->size[1]; emxEnsureCapacity((emxArray__common *)X, i14, sizeof(creal_T)); br = y->size[0]; for (i14 = 0; i14 < br; i14++) { ar = b->size[1]; for (i15 = 0; i15 < ar; i15++) { X->data[i14 + X->size[0] * i15].re = 0.0; X->data[i14 + X->size[0] * i15].im = 0.0; j = y->size[1]; for (i = 0; i < j; i++) { bim = y->data[i14 + y->size[0] * i].re * b->data[i + b->size[0] * i15] .re - y->data[i14 + y->size[0] * i].im * b->data[i + b->size[0] * i15].im; R_re = y->data[i14 + y->size[0] * i].re * b->data[i + b->size[0] * i15] .im + y->data[i14 + y->size[0] * i].im * b->data[i + b->size[0] * i15].re; X->data[i14 + X->size[0] * i15].re += bim; X->data[i14 + X->size[0] * i15].im += R_re; } } } } else { k = y->size[1]; uv0[0] = (unsigned int)y->size[0]; uv0[1] = (unsigned int)b->size[1]; i14 = X->size[0] * X->size[1]; X->size[0] = (int)uv0[0]; X->size[1] = (int)uv0[1]; emxEnsureCapacity((emxArray__common *)X, i14, sizeof(creal_T)); m = y->size[0]; i14 = X->size[0] * X->size[1]; emxEnsureCapacity((emxArray__common *)X, i14, sizeof(creal_T)); br = X->size[1]; for (i14 = 0; i14 < br; i14++) { ar = X->size[0]; for (i15 = 0; i15 < ar; i15++) { X->data[i15 + X->size[0] * i14].re = 0.0; X->data[i15 + X->size[0] * i14].im = 0.0; } } if ((y->size[0] == 0) || (b->size[1] == 0)) { } else { j = y->size[0] * (b->size[1] - 1); i = 0; while ((m > 0) && (i <= j)) { i14 = i + m; for (ic = i; ic + 1 <= i14; ic++) { X->data[ic].re = 0.0; X->data[ic].im = 0.0; } i += m; } br = 0; i = 0; while ((m > 0) && (i <= j)) { ar = -1; i14 = br + k; for (ib = br; ib + 1 <= i14; ib++) { b_R = ((b->data[ib].re != 0.0) || (b->data[ib].im != 0.0)); if (b_R) { s_re = b->data[ib].re - 0.0 * b->data[ib].im; s_im = b->data[ib].im + 0.0 * b->data[ib].re; ia = ar; i15 = i + m; for (ic = i; ic + 1 <= i15; ic++) { ia++; R_re = s_re * y->data[ia].re - s_im * y->data[ia].im; bim = s_re * y->data[ia].im + s_im * y->data[ia].re; X->data[ic].re += R_re; X->data[ic].im += bim; } } ar += m; } br += k; i += m; } } } emxFree_creal_T(&b); emxFree_creal_T(&y); if ((X->size[0] == 0) || (X->size[1] == 0)) { bim = 0.0; } else if ((X->size[0] == 1) || (X->size[1] == 1)) { bim = 0.0; i14 = X->size[0] * X->size[1]; for (k = 0; k < i14; k++) { bim += rt_hypotd_snf(X->data[k].re, X->data[k].im); } } else { bim = 0.0; j = 0; exitg1 = false; while ((!exitg1) && (j <= X->size[1] - 1)) { s_re = 0.0; for (i = 0; i < X->size[0]; i++) { s_re += rt_hypotd_snf(X->data[i + X->size[0] * j].re, X->data[i + X->size[0] * j].im); } if (rtIsNaN(s_re)) { bim = rtNaN; exitg1 = true; } else { if (s_re > bim) { bim = s_re; } j++; } } } emxInit_real_T1(&b_X, 2); i14 = b_X->size[0] * b_X->size[1]; b_X->size[0] = X->size[0]; b_X->size[1] = X->size[1]; emxEnsureCapacity((emxArray__common *)b_X, i14, sizeof(double)); br = X->size[0] * X->size[1]; for (i14 = 0; i14 < br; i14++) { b_X->data[i14] = X->data[i14].im; } if (norm(b_X) <= 10.0 * (double)A->size[0] * 2.2204460492503131E-16 * bim) { for (j = 0; j + 1 <= n; j++) { for (i = 0; i + 1 <= n; i++) { bim = X->data[i + X->size[0] * j].re; X->data[i + X->size[0] * j].re = bim; X->data[i + X->size[0] * j].im = 0.0; } } } emxFree_real_T(&b_X); } /* End of code generation (sqrtm.c) */
28.572383
81
0.416244
ec04b267f27d496dd05e4e9d1f3e32e84d25fde7
3,386
h
C
Modules/Reporte/QtRptProject/CommonFiles/Barcode.h
bertilxi/Pegaso
41ddde19f203424d68e8ede3e47450bb22bee0f6
[ "MIT" ]
null
null
null
Modules/Reporte/QtRptProject/CommonFiles/Barcode.h
bertilxi/Pegaso
41ddde19f203424d68e8ede3e47450bb22bee0f6
[ "MIT" ]
null
null
null
Modules/Reporte/QtRptProject/CommonFiles/Barcode.h
bertilxi/Pegaso
41ddde19f203424d68e8ede3e47450bb22bee0f6
[ "MIT" ]
3
2019-12-23T12:51:20.000Z
2022-03-17T03:36:53.000Z
#ifndef BARCODE_H #define BARCODE_H #include <QWidget> #include <QMetaEnum> #ifndef NO_BARCODE #include <qzint.h> #endif #include <QPainter> class BarCode : public QWidget { Q_OBJECT Q_ENUMS(BarcodeTypes) Q_ENUMS(FrameTypes) Q_PROPERTY(QString value READ getValue WRITE setValue) public: enum BarcodeTypes { CODE11 =1, C25MATRIX =2, C25INTER =3, C25IATA =4, C25LOGIC =6, C25IND =7, CODE39 =8, EXCODE39 =9, EANX =13, EAN128 =16, CODABAR =18, CODE128 =20, DPLEIT =21, DPIDENT =22, CODE16K =23, CODE93 =25, FLAT =28, RSS14 =29, RSS_LTD =30, RSS_EXP =31, TELEPEN =32, UPCA =34, UPCE =37, POSTNET =40, MSI_PLESSEY =47, FIM =49, LOGMARS =50, PHARMA =51, PZN =52, PHARMA_TWO =53, PDF417 =55, PDF417TRUNC =56, MAXICODE =57, QRCODE =58, CODE128B =60, AUSPOST =63, AUSREPLY =66, AUSROUTE =67, AUSREDIRECT =68, ISBNX =69, RM4SCC =70, DATAMATRIX =71, ITF14 =72, CODABLOCKF =74, NVE18 =75, KOREAPOST =77, RSS14STACK =79, RSS14STACK_OMNI =80, RSS_EXPSTACK =81, PLANET =82, MICROPDF417 =84, ONECODE =85, PLESSEY =86, /* TBarcodeItem 8 codes */ KIX =90, AZTEC =92, DAFT =93, ITALYPOST =94, DPD =96, MICROQR =97, /* Zint specific */ TELEPEN_NUM =128, CODE32 =129, EANX_CC =130, EAN128_CC =131, RSS14_CC =132, RSS_LTD_CC =133, RSS_EXP_CC =134, UPCA_CC =135, UPCE_CC =136, RSS14STACK_CC =137, RSS14_OMNI_CC =138, RSS_EXPSTACK_CC =139 }; enum FrameTypes { NO_BORDER=0, BIND=2, BOX=4 }; public: explicit BarCode(QWidget *parent = 0); ~BarCode(); void drawBarcode(QPainter *painter, qreal x, qreal y, qreal width, qreal height); QString getValue(); void setBarcodeType(BarcodeTypes value); BarcodeTypes getBarcodeType() {return m_BarcodeType;} void setFrameType(FrameTypes value); FrameTypes getFrameType() {return m_FrameType;} void setHeight(int value); int getHeight() {return m_height;} typedef QList<QPair<BarcodeTypes, QString> > BarcodeTypePairList; typedef QList<QPair<FrameTypes, QString> > FrameTypePairList; static BarcodeTypePairList getTypeList(); static QString getTypeName(BarcodeTypes type); static FrameTypePairList getFrameTypeList(); static QString getFrameTypeName(FrameTypes type); void setProperties(); friend QDataStream &operator<<(QDataStream &stream, const BarCode &obj); friend QDataStream &operator>>(QDataStream &stream, BarCode &obj); protected: void paintEvent(QPaintEvent * event); void setParamFromProperties(); private: #ifndef NO_BARCODE Zint::QZint *bc; #endif QString m_value; BarcodeTypes m_BarcodeType; FrameTypes m_FrameType; int m_height; const static QStringList getTypeNameList(); signals: public slots: void setValue(QString value); }; #endif // BARCODE_H
23.513889
85
0.579445
b9bdbd187913005962a906546bd9a391b45b91ab
923
h
C
src/Generic/sentences/StatSentBreakerTrainer.h
BBN-E/serif
1e2662d82fb1c377ec3c79355a5a9b0644606cb4
[ "Apache-2.0" ]
1
2022-03-24T19:57:00.000Z
2022-03-24T19:57:00.000Z
src/Generic/sentences/StatSentBreakerTrainer.h
BBN-E/serif
1e2662d82fb1c377ec3c79355a5a9b0644606cb4
[ "Apache-2.0" ]
null
null
null
src/Generic/sentences/StatSentBreakerTrainer.h
BBN-E/serif
1e2662d82fb1c377ec3c79355a5a9b0644606cb4
[ "Apache-2.0" ]
null
null
null
// Copyright 2008 by BBN Technologies Corp. // All Rights Reserved. #ifndef STAT_SENT_BREAKER_TRAINER_H #define STAT_SENT_BREAKER_TRAINER_H #include "Generic/common/Symbol.h" #include "Generic/names/IdFWordFeatures.h" #include "Generic/sentences/StatSentBreakerFVecModel.h" class NameClassTags; class StatSentBreakerTrainer { public: StatSentBreakerTrainer(int mode); void train(); void devtest(); enum { TRAIN, DEVTEST }; private: void learnInstance(Symbol tag, Symbol word, Symbol word1, Symbol word2, int tok_index); double getSTScore(Symbol word, Symbol word1, Symbol word2); const static Symbol START_SENTENCE; const static Symbol CONT_SENTENCE; std::string _training_file; std::string _model_file; std::string _devtest_file; StatSentBreakerFVecModel *_model; NameClassTags *_nameClassTags; int _pruning_threshold; int _mode; }; #endif
20.511111
73
0.742145
7ed7bcda1ae4b73a1b51419c22c540f8c3deed18
771
h
C
apphandler.h
Nick24117/phosphor-host-ipmid
1e12112baf56f9a8ec6dbf7fb409c84f35fff1e8
[ "Apache-2.0" ]
null
null
null
apphandler.h
Nick24117/phosphor-host-ipmid
1e12112baf56f9a8ec6dbf7fb409c84f35fff1e8
[ "Apache-2.0" ]
null
null
null
apphandler.h
Nick24117/phosphor-host-ipmid
1e12112baf56f9a8ec6dbf7fb409c84f35fff1e8
[ "Apache-2.0" ]
2
2018-08-27T03:12:45.000Z
2018-09-27T08:29:11.000Z
#ifndef __HOST_IPMI_APP_HANDLER_H__ #define __HOST_IPMI_APP_HANDLER_H__ #include <stdint.h> // IPMI commands for App net functions. enum ipmi_netfn_app_cmds { // Get capability bits IPMI_CMD_GET_DEVICE_ID = 0x01, IPMI_CMD_GET_SELF_TEST_RESULTS = 0x04, IPMI_CMD_SET_ACPI = 0x06, IPMI_CMD_GET_DEVICE_GUID = 0x08, IPMI_CMD_RESET_WD = 0x22, IPMI_CMD_SET_WD = 0x24, IPMI_CMD_GET_WD = 0x25, IPMI_CMD_GET_CAP_BIT = 0x36, IPMI_CMD_GET_SYS_GUID = 0x37, IPMI_CMD_SET_CHAN_ACCESS = 0x40, IPMI_CMD_GET_CHANNEL_ACCESS = 0x41, IPMI_CMD_GET_CHAN_INFO = 0x42, IPMI_CMD_GET_CHAN_CIPHER_SUITES = 0x54, }; #endif
29.653846
43
0.638132
f2271456f05200ca25a224d4f76169c69c1b7401
773
h
C
Third/LearnFMDB/ZXGUseage.h
onzxgway/ZXGKit
5e7dba8e70c55a63901475eda5c1433fa980cb5b
[ "MIT" ]
null
null
null
Third/LearnFMDB/ZXGUseage.h
onzxgway/ZXGKit
5e7dba8e70c55a63901475eda5c1433fa980cb5b
[ "MIT" ]
null
null
null
Third/LearnFMDB/ZXGUseage.h
onzxgway/ZXGKit
5e7dba8e70c55a63901475eda5c1433fa980cb5b
[ "MIT" ]
null
null
null
// // ZXGUseage.h // LearnFMDB // // Created by 朱献国 on 2018/4/8. // Copyright © 2018年 feizhu. All rights reserved. // #import <Foundation/Foundation.h> @class ZXGPerson; @interface ZXGUseage : NSObject //创建数据库 + (void)createDataBaseTable; //查询数据库数据 + (void)queryDataBaseTableWithAccountParams:(NSDictionary *)paramsDic withSuccessBlock:(void(^)(NSArray *dataArray))successBlock withFaileBlock:(void(^)(NSString *errorStr))failureBlock; //存储数据 + (void)insertinto:(ZXGPerson *)loginModel; //更新数据 + (void)updateDataBaseTableWithAccountData:(ZXGPerson *)loginModel; //删除数据 + (void)deleteDataBaseTableWithLoginModel:(ZXGPerson *)loginModel withSuccessBlock:(void(^)(NSString *successStr))successBlock withFailureBlock:(void(^)(NSString *errorStr))failureBlock; @end
25.766667
186
0.764554
cc11d8c4eb728a22f74028ecac4a590e9a21ff63
2,762
c
C
examples/c_polyagamma.c
zoj613/polyagamma
75dda57ce88753209ea74f5d85b8eaea01dbb923
[ "BSD-3-Clause" ]
15
2021-02-08T10:55:26.000Z
2022-02-25T00:32:50.000Z
examples/c_polyagamma.c
zoj613/polyagamma
75dda57ce88753209ea74f5d85b8eaea01dbb923
[ "BSD-3-Clause" ]
43
2021-02-06T10:58:10.000Z
2022-01-02T03:53:08.000Z
examples/c_polyagamma.c
zoj613/polyagamma
75dda57ce88753209ea74f5d85b8eaea01dbb923
[ "BSD-3-Clause" ]
1
2021-02-01T16:18:13.000Z
2021-02-01T16:18:13.000Z
/* * Copyright (c) 2020-2021, Zolisa Bleki * * SPDX-License-Identifier: BSD-3-Clause * * This module shows an examples of how to use polyagamma in a C program. * Here we use a custom bitgenerator called Xoroshiro128plus. Numpy's * bitgenerator struct requires defining function pointers for generating * integers and standard uniform numbers. We define these functions alongside the * bitgenerator. * * The Xoroshiro128p code is derived from the bitgenerator author's original * code found at: https://xorshift.di.unimi.it/xoroshiro128plus.c * * This example can be compiled with: * * gcc examples/c_polyagamma.c src/*.c -I./include -I$(python -c "import numpy; print(numpy.get_include())") \ * -I/usr/include/python3.9 -L$(python -c "import numpy; print(numpy.get_include())")/../../random/lib \ * -lm -lnpyrandom -O2 -march=native -std=c99 */ #include "../include/pgm_random.h" #include <stdlib.h> #include <stdio.h> typedef struct {uint64_t s[2]; uint32_t s2[4];} xrs128p_random_t; static inline uint64_t rotl(const uint64_t x, int k) { return (x << k) | (x >> (64 - k)); } static inline uint32_t rotl32(const uint32_t x, int k) { return (x << k) | (x >> (32 - k)); } static inline uint64_t xrs128p_next64(void* rng) { xrs128p_random_t* xrs = rng; const uint64_t s0 = xrs->s[0]; uint64_t s1 = xrs->s[1]; const uint64_t result = s0 + s1; s1 ^= s0; xrs->s[0] = rotl(s0, 24) ^ s1 ^ (s1 << 16); // a, b xrs->s[1] = rotl(s1, 37); // c return result; } static inline uint32_t xrs128p_next32(void* rng) { xrs128p_random_t* xrs = rng; const uint32_t result = xrs->s2[0] + xrs->s2[3]; const uint32_t t = xrs->s2[1] << 9; xrs->s2[2] ^= xrs->s2[0]; xrs->s2[3] ^= xrs->s2[1]; xrs->s2[1] ^= xrs->s2[2]; xrs->s2[0] ^= xrs->s2[3]; xrs->s2[2] ^= t; xrs->s2[3] = rotl32(xrs->s2[3], 11); return result; } static inline double xrs128p_next_double(void* rng) { xrs128p_random_t* xrs = rng; return (xrs128p_next64(xrs) >> 11) * (1.0 / 9007199254740992.0); } /* * Generate 100 samples from a PG(10.5, 1.5) distribution using the alternate * method. */ int main(void) { size_t n = 100; double* out = malloc(n * sizeof(*out)); // setup the bitgen with a specified seed xrs128p_random_t xrs = { .s = {12132233, 1959324}, .s2 = {25343, 98549, 78230, 91821} }; bitgen_t bitgen = { .state = &xrs, .next_double = xrs128p_next_double, .next_uint64 = xrs128p_next64, .next_uint32 = xrs128p_next32 }; pgm_random_polyagamma_fill(&bitgen, 10.5, 1.5, ALTERNATE, n, out); puts("Samples: [ "); for (size_t i = 0; i < n; i++) printf("%lf ", out[i]); puts("]"); free(out); }
24.660714
110
0.624909
4a77276136847a70a6f2177998681ba6a2307b0b
329
h
C
ECAPI/TestCaseWithAuthentication.h
PearsonEducation/mobile2-ios-api
e2bcc3c72a76ee3ff146e39d61aaffb2a594b0fd
[ "Apache-2.0" ]
null
null
null
ECAPI/TestCaseWithAuthentication.h
PearsonEducation/mobile2-ios-api
e2bcc3c72a76ee3ff146e39d61aaffb2a594b0fd
[ "Apache-2.0" ]
null
null
null
ECAPI/TestCaseWithAuthentication.h
PearsonEducation/mobile2-ios-api
e2bcc3c72a76ee3ff146e39d61aaffb2a594b0fd
[ "Apache-2.0" ]
null
null
null
// // TestCaseWithAuthentication.h // ECAPI // // Created by Tony Hillerson on 2/2/11. // Copyright 2011 EffectiveUI. All rights reserved. // #import "ECSession.h" // Extend this test case if you want an ECSession that is authenticated before running tests @interface TestCaseWithAuthentication : GHAsyncTestCase { } @end
21.933333
92
0.744681
626b45a723925c550fadb3768ac623941398b086
1,695
c
C
0x00-ls/getargs.c
gogomillan/holbertonschool-system_linux
13c5bff024fd84c37e256977b106216a27d8cde1
[ "MIT" ]
null
null
null
0x00-ls/getargs.c
gogomillan/holbertonschool-system_linux
13c5bff024fd84c37e256977b106216a27d8cde1
[ "MIT" ]
null
null
null
0x00-ls/getargs.c
gogomillan/holbertonschool-system_linux
13c5bff024fd84c37e256977b106216a27d8cde1
[ "MIT" ]
2
2021-01-12T01:57:44.000Z
2021-03-24T18:24:56.000Z
#include "hls.h" /** * getargs - get the arguments / options from argv * * @argv: The list of arguments / options * @fils: List of files to list * @dirs: List of directories to list * @opts: List of option * * Return: EXIT_SUCCESS when successfuly, EXIT_FAILURE other cases */ int getargs(char **argv, char ***fils, char ***dirs, char ***opts) { int dir_qty = 0, opt_qty = 0, f_type; /* Number of dirs /files & options */ char *arg, **dir, **opt, **fil, **tdir, **tmp; /* For each argument */ if (countagrs(++argv, &dir_qty, &opt_qty) != EXIT_SUCCESS) /* Counting args */ return (EXIT_FAILURE); if (setmemdir(dir_qty, fils, dirs, &tdir) != EXIT_SUCCESS) /* Mem for dir */ return (EXIT_FAILURE); if (setmemopt(opt_qty, opts) != EXIT_SUCCESS) /* Getting mem for options */ { releasemem(fils, dirs, opts); return (EXIT_FAILURE); } dir = *dirs, opt = *opts, fil = *fils, tmp = tdir; /* Reviewing args */ while (*argv != NULL) { arg = *argv++; if (*arg != '-') /* If the arg is a file / dir */ { f_type = _isdir(NULL, arg); if (f_type == S_IFDIR) /* Is a dir */ *dir = arg, dir++, *dir = NULL; else if (f_type == S_IFREG) /* Is a reg file */ *tmp = arg, tmp++, *tmp = NULL; else /* Is other case */ *fil = arg, fil++, *fil = NULL; } else /* Else if it is an option or set of options */ while (*arg != '\0') { arg++; if (*arg != '\0') { *opt = malloc(2 * sizeof(char)); if (*opt == NULL) return (EXIT_FAILURE); **opt = *arg, *(*opt + 1) = '\0', opt++, *opt = NULL; } } } bsort(*dirs, NOCASE), bsort(*fils, NOCASE), bsort(tdir, NOCASE); _arraycat(*fils, tdir), free(tdir); return (EXIT_SUCCESS); }
31.981132
79
0.581121
2f8e8c419c8ebb208fedce167655d46ec10d2446
1,961
h
C
chrome/browser/extensions/bookmark_app_navigation_throttle.h
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
chrome/browser/extensions/bookmark_app_navigation_throttle.h
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
chrome/browser/extensions/bookmark_app_navigation_throttle.h
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_BOOKMARK_APP_NAVIGATION_THROTTLE_H_ #define CHROME_BROWSER_EXTENSIONS_BOOKMARK_APP_NAVIGATION_THROTTLE_H_ #include <memory> #include "content/public/browser/navigation_throttle.h" namespace content { class NavigationHandle; } // namespace content namespace extensions { // This class creates navigation throttles that bounce off navigations that // are out-of-scope of the current PWA window into a new foreground tab. // // BookmarkAppExperimentalNavigationThrottle is a superset of this throttle; // besides handling out-of-scope navigations in PWA windows, the experimental // throttle also handles in-scope navigations in non PWA contexts i.e. // implements link capturing. // TODO(crbug.com/819475): Consolidate overlapping behavior in a base class. class BookmarkAppNavigationThrottle : public content::NavigationThrottle { public: static std::unique_ptr<content::NavigationThrottle> MaybeCreateThrottleFor( content::NavigationHandle* navigation_handle); explicit BookmarkAppNavigationThrottle( content::NavigationHandle* navigation_handle); ~BookmarkAppNavigationThrottle() override; // content::NavigationThrottle: const char* GetNameForLogging() override; content::NavigationThrottle::ThrottleCheckResult WillStartRequest() override; content::NavigationThrottle::ThrottleCheckResult WillRedirectRequest() override; private: // Opens a new foreground tab with the target URL if the navigation is out of // scope of the current PWA window. content::NavigationThrottle::ThrottleCheckResult OpenForegroundTabIfOutOfScope(bool is_redirect); DISALLOW_COPY_AND_ASSIGN(BookmarkAppNavigationThrottle); }; } // namespace extensions #endif // CHROME_BROWSER_EXTENSIONS_BOOKMARK_APP_NAVIGATION_THROTTLE_H_
37
79
0.807751
284e1550402071101376bdf15c3f04084cd931ed
1,843
h
C
lib/asn1c/nr_rrc/IAB-IP-AddressConfigurationList-r16.h
gmg2719/free5GRAN
5ded60f3c5b85b507f96bdbf092886901d588dd1
[ "Apache-2.0" ]
null
null
null
lib/asn1c/nr_rrc/IAB-IP-AddressConfigurationList-r16.h
gmg2719/free5GRAN
5ded60f3c5b85b507f96bdbf092886901d588dd1
[ "Apache-2.0" ]
null
null
null
lib/asn1c/nr_rrc/IAB-IP-AddressConfigurationList-r16.h
gmg2719/free5GRAN
5ded60f3c5b85b507f96bdbf092886901d588dd1
[ "Apache-2.0" ]
1
2021-02-20T10:27:52.000Z
2021-02-20T10:27:52.000Z
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NR-RRC-Definitions" * found in "NR-RRC-Definitions.asn" * `asn1c -fcompound-names -no-gen-example -pdu=all` */ #ifndef _IAB_IP_AddressConfigurationList_r16_H_ #define _IAB_IP_AddressConfigurationList_r16_H_ #include "asn_application.h" /* Including external dependencies */ #include "asn_SEQUENCE_OF.h" #include "constr_SEQUENCE_OF.h" #include "IAB-IP-AddressIndex-r16.h" #include "constr_SEQUENCE.h" #ifdef __cplusplus extern "C" { #endif /* Forward declarations */ struct IAB_IP_AddressConfiguration_r16; /* IAB-IP-AddressConfigurationList-r16 */ typedef struct IAB_IP_AddressConfigurationList_r16 { struct IAB_IP_AddressConfigurationList_r16__iab_IP_AddressToAddModList_r16 { A_SEQUENCE_OF(struct IAB_IP_AddressConfiguration_r16) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *iab_IP_AddressToAddModList_r16; struct IAB_IP_AddressConfigurationList_r16__iab_IP_AddressToReleaseList_r16 { A_SEQUENCE_OF(IAB_IP_AddressIndex_r16_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *iab_IP_AddressToReleaseList_r16; /* * This type is extensible, * possible extensions are below. */ /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } IAB_IP_AddressConfigurationList_r16_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_IAB_IP_AddressConfigurationList_r16; extern asn_SEQUENCE_specifics_t asn_SPC_IAB_IP_AddressConfigurationList_r16_specs_1; extern asn_TYPE_member_t asn_MBR_IAB_IP_AddressConfigurationList_r16_1[2]; #ifdef __cplusplus } #endif /* Referred external types */ #include "IAB-IP-AddressConfiguration-r16.h" #endif /* _IAB_IP_AddressConfigurationList_r16_H_ */ #include "asn_internal.h"
28.796875
84
0.808464
d899f36dc064f1601f46a7fe1d1812a21c27be5e
510,592
c
C
experiments/ALPBench/MPG/mpeg2enc.goto.c
anvayg/duet
b7cadaf486dc81a911189f582a53d4eee8ef69b9
[ "MIT" ]
1
2021-12-14T06:46:12.000Z
2021-12-14T06:46:12.000Z
experiments/ALPBench/MPG/mpeg2enc.goto.c
happypig95/duet
fe630be73ba7f55e8d1973f3c364aa37da159607
[ "MIT" ]
null
null
null
experiments/ALPBench/MPG/mpeg2enc.goto.c
happypig95/duet
fe630be73ba7f55e8d1973f3c364aa37da159607
[ "MIT" ]
null
null
null
// c::__signbitl::1::tag-#anon0 // union anon$2; // c::__signbitl::1::tag-#anon0$link63 // union anon$2$link63; // c::__signbitl::1::tag-#anon0$link66 // union anon$2$link66; // c::__signbitl::1::tag-#anon0$link70 // union anon$2$link70; // c::__signbitl::1::tag-#anon0$link79 // union anon$2$link79; // c::tag-#anon#ST[U16'code'||S8'len'||U8'$pad0'|] // struct anon$1; // c::tag-#anon#ST[U8'code'||S8'len'|] // struct anon$0; // c::tag-DTE_Args // file src/mpeg2enc.h line 220 struct DTE_Args; // c::tag-Data_Args // file src/mpeg2enc.h line 202 struct Data_Args; // c::tag-IQunt_Args // file src/mpeg2enc.h line 222 struct IQunt_Args; // c::tag-ME_Args // file src/mpeg2enc.h line 218 struct ME_Args; // c::tag-PPict_Args // file src/mpeg2enc.h line 224 struct PPict_Args; // c::tag-Pred_Args // file src/mpeg2enc.h line 219 struct Pred_Args; // c::tag-Trfm_Args // file src/mpeg2enc.h line 221 struct Trfm_Args; // c::tag-_IO_FILE // file /usr/include/libio.h line 246 struct _IO_FILE; // c::tag-_IO_FILE$link0 // file /usr/include/libio.h line 246 struct _IO_FILE$link0; // c::tag-_IO_FILE$link1 // file /usr/include/libio.h line 246 struct _IO_FILE$link1; // c::tag-_IO_FILE$link10 // file /usr/include/libio.h line 246 struct _IO_FILE$link10; // c::tag-_IO_FILE$link11 // file /usr/include/libio.h line 246 struct _IO_FILE$link11; // c::tag-_IO_FILE$link12 // file /usr/include/libio.h line 246 struct _IO_FILE$link12; // c::tag-_IO_FILE$link13 // file /usr/include/libio.h line 246 struct _IO_FILE$link13; // c::tag-_IO_FILE$link14 // file /usr/include/libio.h line 246 struct _IO_FILE$link14; // c::tag-_IO_FILE$link15 // file /usr/include/libio.h line 246 struct _IO_FILE$link15; // c::tag-_IO_FILE$link16 // file /usr/include/libio.h line 246 struct _IO_FILE$link16; // c::tag-_IO_FILE$link2 // file /usr/include/libio.h line 246 struct _IO_FILE$link2; // c::tag-_IO_FILE$link3 // file /usr/include/libio.h line 246 struct _IO_FILE$link3; // c::tag-_IO_FILE$link4 // file /usr/include/libio.h line 246 struct _IO_FILE$link4; // c::tag-_IO_FILE$link5 // file /usr/include/libio.h line 246 struct _IO_FILE$link5; // c::tag-_IO_FILE$link6 // file /usr/include/libio.h line 246 struct _IO_FILE$link6; // c::tag-_IO_FILE$link7 // file /usr/include/libio.h line 246 struct _IO_FILE$link7; // c::tag-_IO_FILE$link8 // file /usr/include/libio.h line 246 struct _IO_FILE$link8; // c::tag-_IO_FILE$link9 // file /usr/include/libio.h line 246 struct _IO_FILE$link9; // c::tag-_IO_marker // file /usr/include/libio.h line 161 struct _IO_marker; // c::tag-_IO_marker$link1 // file /usr/include/libio.h line 161 struct _IO_marker$link1; // c::tag-_IO_marker$link10 // file /usr/include/libio.h line 161 struct _IO_marker$link10; // c::tag-_IO_marker$link11 // file /usr/include/libio.h line 161 struct _IO_marker$link11; // c::tag-_IO_marker$link12 // file /usr/include/libio.h line 161 struct _IO_marker$link12; // c::tag-_IO_marker$link13 // file /usr/include/libio.h line 161 struct _IO_marker$link13; // c::tag-_IO_marker$link14 // file /usr/include/libio.h line 161 struct _IO_marker$link14; // c::tag-_IO_marker$link15 // file /usr/include/libio.h line 161 struct _IO_marker$link15; // c::tag-_IO_marker$link16 // file /usr/include/libio.h line 161 struct _IO_marker$link16; // c::tag-_IO_marker$link17 // file /usr/include/libio.h line 161 struct _IO_marker$link17; // c::tag-_IO_marker$link2 // file /usr/include/libio.h line 161 struct _IO_marker$link2; // c::tag-_IO_marker$link3 // file /usr/include/libio.h line 161 struct _IO_marker$link3; // c::tag-_IO_marker$link4 // file /usr/include/libio.h line 161 struct _IO_marker$link4; // c::tag-_IO_marker$link5 // file /usr/include/libio.h line 161 struct _IO_marker$link5; // c::tag-_IO_marker$link6 // file /usr/include/libio.h line 161 struct _IO_marker$link6; // c::tag-_IO_marker$link7 // file /usr/include/libio.h line 161 struct _IO_marker$link7; // c::tag-_IO_marker$link8 // file /usr/include/libio.h line 161 struct _IO_marker$link8; // c::tag-_IO_marker$link9 // file /usr/include/libio.h line 161 struct _IO_marker$link9; // c::tag-level_limits // file src/conform.c line 212 struct level_limits; // c::tag-mbinfo // file src/mpeg2enc.h line 143 struct mbinfo; // c::tag-motion_data // file src/mpeg2enc.h line 158 struct motion_data; // c::tag-pthread_attr_t // file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 63 union pthread_attr_t; // c::tag-thread_data // file src/mpeg2enc.h line 217 struct thread_data; #ifndef TRUE #define TRUE (_Bool)1 #endif #ifndef FALSE #define FALSE (_Bool)0 #endif #ifndef NULL #define NULL ((void*)0) #endif #ifndef FENCE #define FENCE(x) ((void)0) #endif #ifndef IEEE_FLOAT_EQUAL #define IEEE_FLOAT_EQUAL(x,y) (x==y) #endif #ifndef IEEE_FLOAT_NOTEQUAL #define IEEE_FLOAT_NOTEQUAL(x,y) (x!=y) #endif // c::_IO_getc // file /usr/include/libio.h line 435 signed int _IO_getc(struct _IO_FILE *); // c::_IO_putc // file /usr/include/libio.h line 436 signed int _IO_putc(signed int, struct _IO_FILE *); // c::__builtin___memcpy_chk // file gcc_builtin_headers_generic.h line 16 void * __builtin___memcpy_chk(void *, const void *, unsigned int, unsigned long int); // c::__builtin___memmove_chk // file gcc_builtin_headers_generic.h line 17 char * __builtin___memmove_chk(void *, const void *, unsigned int, unsigned long int); // c::__builtin___memset_chk // file gcc_builtin_headers_generic.h line 35 void * __builtin___memset_chk(void *, signed int, unsigned int, unsigned long int); // c::__builtin___snprintf_chk // file gcc_builtin_headers_generic.h line 50 signed int __builtin___snprintf_chk(char *, unsigned long int, signed int, unsigned long int, const char *, ...); // c::__builtin___sprintf_chk // file gcc_builtin_headers_generic.h line 49 signed int __builtin___sprintf_chk(char *, signed int, unsigned long int, const char *, ...); // c::__builtin___strcat_chk // file gcc_builtin_headers_generic.h line 41 char * __builtin___strcat_chk(char *, const char *, unsigned long int); // c::__builtin___strcpy_chk // file gcc_builtin_headers_generic.h line 43 char * __builtin___strcpy_chk(char *, const char *, unsigned long int); // c::__builtin___strncat_chk // file gcc_builtin_headers_generic.h line 61 char * __builtin___strncat_chk(char *, const char *, unsigned int, unsigned long int); // c::__builtin___strncpy_chk // file gcc_builtin_headers_generic.h line 45 char * __builtin___strncpy_chk(char *, const char *, unsigned int, unsigned long int); // c::__builtin___vsnprintf_chk // file gcc_builtin_headers_generic.h line 52 signed int __builtin___vsnprintf_chk(char *, unsigned long int, signed int, unsigned long int, const char *, void **); // c::__builtin___vsprintf_chk // file gcc_builtin_headers_generic.h line 51 signed int __builtin___vsprintf_chk(char *, signed int, unsigned long int, const char *, void **); // c::__builtin_strchr // file gcc_builtin_headers_generic.h line 54 char * __builtin_strchr(const char *, signed int); // c::__builtin_va_arg_pack // file gcc_builtin_headers_generic.h line 5 void * __builtin_va_arg_pack(); // c::__dprintf_chk // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 131 signed int __dprintf_chk(signed int, signed int, const char *, ...); // c::__fgets_alias // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 243 char * __fgets_alias(char *, signed int, struct _IO_FILE *); // c::__fgets_chk // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 241 char * __fgets_chk(char *, unsigned long int, signed int, struct _IO_FILE *); // c::__fgets_chk_warn // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 246 char * __fgets_chk_warn(char *, unsigned long int, signed int, struct _IO_FILE *); // c::__fprintf_chk // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 85 signed int __fprintf_chk(struct _IO_FILE *, signed int, const char *, ...); // c::__fread_alias // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 269 unsigned long int __fread_alias(void *, unsigned long int, unsigned long int, struct _IO_FILE *); // c::__fread_chk // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 266 unsigned long int __fread_chk(void *, unsigned long int, unsigned long int, unsigned long int, struct _IO_FILE *); // c::__fread_chk_warn // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 273 unsigned long int __fread_chk_warn(void *, unsigned long int, unsigned long int, unsigned long int, struct _IO_FILE *); // c::__fread_unlocked_alias // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 330 unsigned long int __fread_unlocked_alias(void *, unsigned long int, unsigned long int, struct _IO_FILE *); // c::__fread_unlocked_chk // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 327 unsigned long int __fread_unlocked_chk(void *, unsigned long int, unsigned long int, unsigned long int, struct _IO_FILE *); // c::__fread_unlocked_chk_warn // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 334 unsigned long int __fread_unlocked_chk_warn(void *, unsigned long int, unsigned long int, unsigned long int, struct _IO_FILE *); // c::__gets_chk // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 227 char * __gets_chk(char *, unsigned long int); // c::__gets_warn // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 228 char * __gets_warn(char *); // c::__mbstowcs_alias // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 101 unsigned long int __mbstowcs_alias(signed int *, const char *, unsigned long int); // c::__mbstowcs_chk // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 98 unsigned long int __mbstowcs_chk(signed int *, const char *, unsigned long int, unsigned long int); // c::__mbstowcs_chk_warn // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 105 unsigned long int __mbstowcs_chk_warn(signed int *, const char *, unsigned long int, unsigned long int); // c::__overflow // file /usr/include/libio.h line 393 signed int __overflow(struct _IO_FILE *, signed int); // c::__printf_chk // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 87 signed int __printf_chk(signed int, const char *, ...); // c::__ptsname_r_alias // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 54 signed int __ptsname_r_alias(signed int, char *, unsigned long int); // c::__ptsname_r_chk // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 52 signed int __ptsname_r_chk(signed int, char *, unsigned long int, unsigned long int); // c::__ptsname_r_chk_warn // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 57 signed int __ptsname_r_chk_warn(signed int, char *, unsigned long int, unsigned long int); // c::__rawmemchr // file /usr/include/x86_64-linux-gnu/bits/string2.h line 393 void * __rawmemchr(const void *, signed int); // c::__realpath_alias // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 26 char * __realpath_alias(const char *, char *); // c::__realpath_chk // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 23 char * __realpath_chk(const char *, char *, unsigned long int); // c::__signbit // file /usr/include/x86_64-linux-gnu/bits/mathinline.h line 139 signed int __signbit(double __x); // c::__signbitf // file /usr/include/x86_64-linux-gnu/bits/mathinline.h line 127 signed int __signbitf(float __x); // c::__signbitl // file /usr/include/x86_64-linux-gnu/bits/mathinline.h line 151 signed int __signbitl(long double __x); // c::__stpncpy_alias // file /usr/include/x86_64-linux-gnu/bits/string3.h line 126 char * __stpncpy_alias(char *, const char *, unsigned long int); // c::__stpncpy_chk // file /usr/include/x86_64-linux-gnu/bits/string3.h line 124 char * __stpncpy_chk(char *, const char *, unsigned long int, unsigned long int); // c::__strcspn_c1 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 970 unsigned long int __strcspn_c1(const char *__s, signed int __reject); // c::__strcspn_c2 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 981 unsigned long int __strcspn_c2(const char *__s, signed int __reject1, signed int __reject2); // c::__strcspn_c3 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 993 unsigned long int __strcspn_c3(const char *__s, signed int __reject1, signed int __reject2, signed int __reject3); // c::__strpbrk_c2 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1123 char * __strpbrk_c2(const char *__s, signed int __accept1, signed int __accept2); // c::__strpbrk_c3 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1134 char * __strpbrk_c3(const char *__s, signed int __accept1, signed int __accept2, signed int __accept3); // c::__strsep_1c // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1222 char * __strsep_1c(char **__s, char __reject); // c::__strsep_2c // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1232 char * __strsep_2c(char **__s, char __reject1, char __reject2); // c::__strsep_3c // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1260 char * __strsep_3c(char **__s, char __reject1, char __reject2, char __reject3); // c::__strspn_c1 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1046 unsigned long int __strspn_c1(const char *__s, signed int __accept); // c::__strspn_c2 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1058 unsigned long int __strspn_c2(const char *__s, signed int __accept1, signed int __accept2); // c::__strspn_c3 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1070 unsigned long int __strspn_c3(const char *__s, signed int __accept1, signed int __accept2, signed int __accept3); // c::__strtok_r_1c // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1172 char * __strtok_r_1c(char *__s, char __sep, char **__nextp); // c::__uflow // file /usr/include/libio.h line 392 signed int __uflow(struct _IO_FILE *); // c::__vdprintf_chk // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 133 signed int __vdprintf_chk(signed int, signed int, const char *, void **); // c::__vfprintf_chk // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 88 signed int __vfprintf_chk(struct _IO_FILE *, signed int, const char *, void **); // c::__warn_memset_zero_len // file /usr/include/x86_64-linux-gnu/bits/string3.h line 22 void __warn_memset_zero_len(void); // c::__wcstombs_alias // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 133 unsigned long int __wcstombs_alias(char *, const signed int *, unsigned long int); // c::__wcstombs_chk // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 130 unsigned long int __wcstombs_chk(char *, const signed int *, unsigned long int, unsigned long int); // c::__wcstombs_chk_warn // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 137 unsigned long int __wcstombs_chk_warn(char *, const signed int *, unsigned long int, unsigned long int); // c::__wctomb_alias // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 79 signed int __wctomb_alias(char *, signed int); // c::__wctomb_chk // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 77 signed int __wctomb_chk(char *, signed int, unsigned long int); // c::add_pred // file src/transfrm.c line 384 static void add_pred(unsigned char *pred, unsigned char *cur, signed int lx, signed short int *blk); // c::align_bits // file src/global.h line 140 void align_bits(signed int id); // c::alignbits // file src/global.h line 135 void alignbits(); // c::atof // file /usr/include/x86_64-linux-gnu/bits/stdlib-float.h line 26 double atof(const char *__nptr); // c::atoi // file /usr/include/stdlib.h line 278 signed int atoi(const char *__nptr); // c::atol // file /usr/include/stdlib.h line 283 signed long int atol(const char *__nptr); // c::atoll // file /usr/include/stdlib.h line 292 signed long long int atoll(const char *__nptr); // c::bcopy // file /usr/include/x86_64-linux-gnu/bits/string3.h line 89 void bcopy(const void *__src, void *__dest, unsigned long int __len); // c::bdist1 // file src/motion.c line 2237 static signed int bdist1(unsigned char *pf, unsigned char *pb, unsigned char *p2, signed int lx, signed int hxf, signed int hyf, signed int hxb, signed int hyb, signed int h); // c::bdist2 // file src/motion.c line 2358 static signed int bdist2(unsigned char *pf, unsigned char *pb, unsigned char *p2, signed int lx, signed int hxf, signed int hyf, signed int hxb, signed int hyb, signed int h); // c::bitcount // file src/putbits.c line 233 signed int bitcount(); // c::border_extend // file src/readpic.c line 308 static void border_extend(unsigned char *frame, signed int w1, signed int h1, signed int w2, signed int h2); // c::bzero // file /usr/include/x86_64-linux-gnu/bits/string3.h line 95 void bzero(void *__dest, unsigned long int __len); // c::calcSNR // file src/stats.c line 91 void calcSNR(unsigned char **org, unsigned char **rec); // c::calcSNR1 // file src/stats.c line 124 static void calcSNR1(unsigned char *org, unsigned char *rec, signed int lx, signed int w, signed int h, double *pv, double *pe); // c::calc_DMV // file src/predict.c line 575 static void calc_DMV(signed int (*DMV)[2l], signed int *dmvector, signed int mvx, signed int mvy); // c::calc_actj // file src/ratectl.c line 192 static void calc_actj(unsigned char *frame); // c::calc_vbv_delay // file src/global.h line 219 void calc_vbv_delay(void); // c::ceil // file /usr/include/x86_64-linux-gnu/bits/mathcalls.h line 179 double ceil(double); // c::clearblock // file src/predict.c line 617 static void clearblock(unsigned char **cur, signed int i0, signed int j0); // c::conv422to420 // file src/readpic.c line 395 static void conv422to420(unsigned char *src, unsigned char *dst); // c::conv444to422 // file src/readpic.c line 335 static void conv444to422(unsigned char *src, unsigned char *dst); // c::dct_type_estimation // file src/transfrm.c line 520 void dct_type_estimation(unsigned char *pred, unsigned char *cur, struct mbinfo *mbi); // c::dist1 // file src/motion.c line 1672 static signed int dist1(unsigned char *blk1, unsigned char *blk2, signed int lx, signed int hx, signed int hy, signed int h, signed int distlim); // c::dist2 // file src/motion.c line 1944 static signed int dist2(unsigned char *blk1, unsigned char *blk2, signed int lx, signed int hx, signed int hy, signed int h); // c::dpfield_estimate // file src/motion.c line 1228 static void dpfield_estimate(unsigned char *topref, unsigned char *botref, unsigned char *mb, signed int i, signed int j, signed int imins, signed int jmins, signed int *imindmvp, signed int *jmindmvp, signed int *dmcp, signed int *vmcp); // c::dpframe_estimate // file src/motion.c line 1067 static void dpframe_estimate(unsigned char *ref, unsigned char *mb, signed int i, signed int j, signed int (*iminf)[2l], signed int (*jminf)[2l], signed int *iminp, signed int *jminp, signed int *imindmvp, signed int *jmindmvp, signed int *dmcp, signed int *vmcp); // c::dprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 139 signed int dprintf(signed int __fd, const char * restrict __fmt, ...); // c::error // file src/global.h line 122 void error(char *text); // c::exit // file /usr/include/stdlib.h line 542 void exit(signed int); // c::fclose // file /usr/include/stdio.h line 237 signed int fclose(struct _IO_FILE$link2 *); // c::fdct // file src/fdctref.c line 706 void fdct(signed short int *block); // c::feof_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 125 signed int feof_unlocked(struct _IO_FILE *__stream); // c::ferror_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 132 signed int ferror_unlocked(struct _IO_FILE *__stream); // c::fflush // file /usr/include/stdio.h line 242 signed int fflush(struct _IO_FILE$link5 *); // c::fgetc // file /usr/include/stdio.h line 531 signed int fgetc(struct _IO_FILE$link2 *); // c::fgetc_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 53 signed int fgetc_unlocked(struct _IO_FILE *__fp); // c::fgets // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 253 char * fgets(char * restrict __s, signed int __n, struct _IO_FILE * restrict __stream); // c::field_ME // file src/motion.c line 575 static void field_ME(unsigned char *oldorg, unsigned char *neworg, unsigned char *oldref, unsigned char *newref, unsigned char *cur, unsigned char *curref, signed int i, signed int j, signed int sxf, signed int syf, signed int sxb, signed int syb, struct mbinfo *mbi, signed int secondfield, signed int ipflag); // c::field_estimate // file src/motion.c line 955 static void field_estimate(unsigned char *toporg, unsigned char *topref, unsigned char *botorg, unsigned char *botref, unsigned char *mb, signed int i, signed int j, signed int sx, signed int sy, signed int ipflag, signed int *iminp, signed int *jminp, signed int *imin8up, signed int *jmin8up, signed int *imin8lp, signed int *jmin8lp, signed int *dfieldp, signed int *d8p, signed int *selp, signed int *sel8up, signed int *sel8lp, signed int *iminsp, signed int *jminsp, signed int *dsp); // c::floor // file /usr/include/x86_64-linux-gnu/bits/mathcalls.h line 185 double floor(double); // c::flushbits // file src/global.h line 137 void flushbits(signed int id); // c::fopen // file /usr/include/stdio.h line 272 struct _IO_FILE$link2 * fopen(const char *, const char *); // c::fprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 95 signed int fprintf(struct _IO_FILE * restrict __stream, const char * restrict __fmt, ...); // c::fputc // file /usr/include/stdio.h line 573 signed int fputc(signed int, struct _IO_FILE$link3 *); // c::fputc_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 88 signed int fputc_unlocked(signed int __c, struct _IO_FILE *__stream); // c::frame_ME // file src/motion.c line 232 static void frame_ME(unsigned char *oldorg, unsigned char *neworg, unsigned char *oldref, unsigned char *newref, unsigned char *cur, signed int i, signed int j, signed int sxf, signed int syf, signed int sxb, signed int syb, struct mbinfo *mbi); // c::frame_estimate // file src/motion.c line 869 static void frame_estimate(unsigned char *org, unsigned char *ref, unsigned char *mb, signed int i, signed int j, signed int sx, signed int sy, signed int *iminp, signed int *jminp, signed int *imintp, signed int *jmintp, signed int *iminbp, signed int *jminbp, signed int *dframep, signed int *dfieldp, signed int *tselp, signed int *bselp, signed int (*imins)[2l], signed int (*jmins)[2l]); // c::frametotc // file src/puthdr.c line 191 static signed int frametotc(signed int frame); // c::fread // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 282 unsigned long int fread(void * restrict __ptr, unsigned long int __size, unsigned long int __n, struct _IO_FILE * restrict __stream); // c::fread_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 343 unsigned long int fread_unlocked(void * restrict __ptr, unsigned long int __size, unsigned long int __n, struct _IO_FILE * restrict __stream); // c::free // file /usr/include/malloc.h line 75 void free(void *); // c::fscanf // file /usr/include/stdio.h line 425 signed int fscanf(struct _IO_FILE$link10 *, const char *, ...); // c::fullsearch // file src/motion.c line 1375 static signed int fullsearch(unsigned char *org, unsigned char *ref, unsigned char *blk, signed int lx, signed int i0, signed int j0, signed int sx, signed int sy, signed int h, signed int xmax, signed int ymax, signed int *iminp, signed int *jminp); // c::fwrite // file /usr/include/stdio.h line 715 unsigned long int fwrite(const void *, unsigned long int, unsigned long int, struct _IO_FILE$link12 *); // c::getc_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 63 signed int getc_unlocked(struct _IO_FILE *__fp); // c::getchar // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 44 signed int getchar(void); // c::getchar_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 70 signed int getchar_unlocked(void); // c::gets // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 233 char * gets(char *__str); // c::gnu_dev_major // file /usr/include/x86_64-linux-gnu/sys/sysmacros.h line 44 unsigned int gnu_dev_major(unsigned long long int __dev); // c::gnu_dev_makedev // file /usr/include/x86_64-linux-gnu/sys/sysmacros.h line 56 unsigned long long int gnu_dev_makedev(unsigned int __major, unsigned int __minor); // c::gnu_dev_minor // file /usr/include/x86_64-linux-gnu/sys/sysmacros.h line 50 unsigned int gnu_dev_minor(unsigned long long int __dev); // c::idct // file src/idct.c line 778 void idct(signed short int *block); // c::idct_M128ASM_scalar // file src/idct.c line 742 static void idct_M128ASM_scalar(signed short int *src); // c::init // file src/mpeg2enc.c line 139 static void init(void); // c::init_fdct // file src/fdctref.c line 106 void init_fdct(void); // c::init_idct // file src/idct.c line 1011 void init_idct(void); // c::initbits // file src/global.h line 133 void initbits(); // c::iquant1_intra // file src/quantize.c line 763 static void iquant1_intra(signed short int *src, signed short int *dst, signed int dc_prec, unsigned char *quant_mat, signed int mquant); // c::iquant1_non_intra // file src/quantize.c line 785 static void iquant1_non_intra(signed short int *src, signed short int *dst, unsigned char *quant_mat, signed int mquant); // c::iquant_intra // file src/global.h line 201 void iquant_intra(signed short int *src, signed short int *dst, signed int dc_prec, unsigned char *quant_mat, signed int mquant); // c::iquant_non_intra // file src/global.h line 203 void iquant_non_intra(signed short int *src, signed short int *dst, unsigned char *quant_mat, signed int mquant); // c::itransform // file src/transfrm.c line 313 void itransform(unsigned char **pred, unsigned char **cur, struct mbinfo *mbi, signed short int (*blocks)[64l]); // c::log10 // file /usr/include/x86_64-linux-gnu/bits/mathcalls.h line 112 double log10(double); // c::malloc // file /usr/include/stdlib.h line 465 void * malloc(unsigned long int); // c::mbstowcs // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 113 unsigned long int mbstowcs(signed int * restrict __dst, const char * restrict __src, unsigned long int __len); // c::memcpy // file /usr/include/x86_64-linux-gnu/bits/string3.h line 48 void * memcpy(void * restrict __dest, const void * restrict __src, unsigned long int __len); // c::memmove // file /usr/include/x86_64-linux-gnu/bits/string3.h line 55 void * memmove(void *__dest, const void *__src, unsigned long int __len); // c::memset // file /usr/include/x86_64-linux-gnu/bits/string3.h line 76 void * memset(void *__dest, signed int __ch, unsigned long int __len); // c::motion_estimation // file src/global.h line 110 void motion_estimation(unsigned char *oldorg, unsigned char *neworg, unsigned char *oldref, unsigned char *newref, unsigned char *cur, unsigned char *curref, signed int sxf, signed int syf, signed int sxb, signed int syb, struct mbinfo *mbi, signed int secondfield, signed int ipflag); // c::pbm_getc // file src/readpic.c line 506 char pbm_getc(struct _IO_FILE$link2 *file); // c::pbm_getint // file src/readpic.c line 525 static signed int pbm_getint(struct _IO_FILE$link2 *file); // c::pred // file src/predict.c line 422 static void pred(unsigned char **src, signed int sfield, unsigned char **dst, signed int dfield, signed int lx, signed int w, signed int h, signed int x, signed int y, signed int dx, signed int dy, signed int addflag); // c::pred_comp // file src/predict.c line 469 static void pred_comp(unsigned char *src, unsigned char *dst, signed int lx, signed int w, signed int h, signed int x, signed int y, signed int dx, signed int dy, signed int addflag); // c::predict // file src/global.h line 125 void predict(unsigned char **reff, unsigned char **refb, unsigned char **cur, signed int secondfield, struct mbinfo *mbi); // c::predict_mb // file src/predict.c line 190 static void predict_mb(unsigned char **oldref, unsigned char **newref, unsigned char **cur, signed int lx, signed int bx, signed int by, signed int pict_type, signed int pict_struct, signed int mb_type, signed int motion_type, signed int secondfield, signed int (*PMV)[2l][2l], signed int (*mv_field_sel)[2l], signed int *dmvector); // c::printf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 102 signed int printf(const char * restrict __fmt, ...); // c::profile_and_level_checks // file src/conform.c line 239 void profile_and_level_checks(void); // c::ptdct_type_estimation // file src/transfrm.c line 582 void ptdct_type_estimation(unsigned char *pred, unsigned char *cur, struct mbinfo *mbi, signed int start_height, signed int end_height); // c::pthread_attr_destroy // file /usr/include/pthread.h line 289 signed int pthread_attr_destroy(union pthread_attr_t *); // c::pthread_attr_init // file /usr/include/pthread.h line 286 signed int pthread_attr_init(union pthread_attr_t *); // c::pthread_attr_setdetachstate // file /usr/include/pthread.h line 298 signed int pthread_attr_setdetachstate(union pthread_attr_t *, signed int); // c::pthread_create // file /usr/include/pthread.h line 232 signed int pthread_create(unsigned long int *, const union pthread_attr_t *, void * (*)(void *), void *); // c::pthread_equal // file /usr/include/pthread.h line 1144 signed int pthread_equal(unsigned long int __thread1, unsigned long int __thread2); // c::pthread_join // file /usr/include/pthread.h line 249 signed int pthread_join(unsigned long int, void **); // c::ptiquant // file src/global.h line 206 void ptiquant(signed int start_k, signed int end_k); // c::ptitransform // file src/transfrm.c line 238 void ptitransform(unsigned char **pred, unsigned char **cur, struct mbinfo *mbi, signed short int (*blocks)[64l], signed int start_height, signed int end_height); // c::ptmotion_estimation // file src/global.h line 115 void ptmotion_estimation(unsigned char *oldorg, unsigned char *neworg, unsigned char *oldref, unsigned char *newref, unsigned char *cur, unsigned char *curref, signed int sxf, signed int syf, signed int sxb, signed int syb, struct mbinfo *mbi, signed int secondfield, signed int ipflag, signed int start_height, signed int end_height); // c::ptpredict // file src/global.h line 128 void ptpredict(unsigned char **reff, unsigned char **refb, unsigned char **cur, signed int secondfield, struct mbinfo *mbi, signed int start_height, signed int end_height); // c::ptputpict // file src/putpic.c line 363 void ptputpict(unsigned char *frame, signed int start_mbh, signed int end_mbh, signed int pmq, signed int id); // c::ptquant // file src/global.h line 207 void ptquant(signed int start_mbh, signed int end_mbh); // c::ptsname_r // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 64 signed int ptsname_r(signed int __fd, char *__buf, unsigned long int __buflen); // c::pttransform // file src/transfrm.c line 166 void pttransform(unsigned char **pred, unsigned char **cur, struct mbinfo *mbi, signed short int (*blocks)[64l], signed int start_height, signed int end_height); // c::putAC // file src/global.h line 178 void putAC(signed int run, signed int signed_level, signed int vlcformat); // c::putACfirst // file src/global.h line 177 void putACfirst(signed int run, signed int val); // c::putDC // file src/putvlc.c line 298 static void putDC(struct anon$1 *tab, signed int val); // c::putDCchrom // file src/global.h line 176 void putDCchrom(signed int val); // c::putDClum // file src/global.h line 175 void putDClum(signed int val); // c::put_AC // file src/global.h line 188 void put_AC(signed int run, signed int signed_level, signed int vlcformat, signed int id); // c::put_ACfirst // file src/global.h line 187 void put_ACfirst(signed int run, signed int val, signed int id); // c::put_DC // file src/putvlc.c line 109 static void put_DC(struct anon$1 *tab, signed int val, signed int id); // c::put_DCchrom // file src/global.h line 186 void put_DCchrom(signed int val, signed int id); // c::put_DClum // file src/global.h line 185 void put_DClum(signed int val, signed int id); // c::put_addrinc // file src/global.h line 189 void put_addrinc(signed int addrinc, signed int id); // c::put_bits // file src/global.h line 139 void put_bits(signed int val, signed int n, signed int id); // c::put_cbp // file src/global.h line 193 void put_cbp(signed int cbp, signed int id); // c::put_dmv // file src/global.h line 192 void put_dmv(signed int dmv, signed int id); // c::put_intrablk // file src/putmpg.c line 229 void put_intrablk(signed short int *blk, signed int cc, signed int id); // c::put_mbtype // file src/global.h line 190 void put_mbtype(signed int pict_type, signed int mb_type, signed int id); // c::put_motioncode // file src/global.h line 191 void put_motioncode(signed int motion_code, signed int id); // c::put_mv // file src/putmpg.c line 195 void put_mv(signed int dmv, signed int f_code, signed int id); // c::put_mvs // file src/putpic.c line 623 static void put_mvs(signed int (*MV)[2l][2l], signed int (*PMV)[2l][2l], signed int (*mv_field_sel)[2l], signed int *dmvector, signed int s, signed int motion_type, signed int hor_f_code, signed int vert_f_code, signed int id); // c::put_nonintrablk // file src/putmpg.c line 267 void put_nonintrablk(signed short int *blk, signed int id); // c::putaddrinc // file src/global.h line 179 void putaddrinc(signed int addrinc); // c::putbits // file src/global.h line 134 void putbits(signed int val, signed int n); // c::putc_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 98 signed int putc_unlocked(signed int __c, struct _IO_FILE *__stream); // c::putcbp // file src/global.h line 183 void putcbp(signed int cbp); // c::putchar // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 79 signed int putchar(signed int __c); // c::putchar_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 105 signed int putchar_unlocked(signed int __c); // c::putdmv // file src/global.h line 182 void putdmv(signed int dmv); // c::putgophdr // file src/puthdr.c line 174 void putgophdr(signed int frame, signed int closed_gop); // c::putintrablk // file src/putmpg.c line 86 void putintrablk(signed short int *blk, signed int cc); // c::putmbtype // file src/global.h line 180 void putmbtype(signed int pict_type, signed int mb_type); // c::putmotioncode // file src/global.h line 181 void putmotioncode(signed int motion_code); // c::putmv // file src/putmpg.c line 159 void putmv(signed int dmv, signed int f_code); // c::putmvs // file src/putpic.c line 705 static void putmvs(signed int (*MV)[2l][2l], signed int (*PMV)[2l][2l], signed int (*mv_field_sel)[2l], signed int *dmvector, signed int s, signed int motion_type, signed int hor_f_code, signed int vert_f_code); // c::putnonintrablk // file src/putmpg.c line 124 void putnonintrablk(signed short int *blk); // c::putpict // file src/putpic.c line 100 void putpict(unsigned char *frame); // c::putpictcodext // file src/puthdr.c line 244 void putpictcodext(void); // c::putpicthdr // file src/puthdr.c line 210 void putpicthdr(void); // c::putseq // file src/putseq.c line 229 void putseq(void); // c::putseqdispext // file src/puthdr.c line 142 void putseqdispext(void); // c::putseqend // file src/puthdr.c line 268 void putseqend(void); // c::putseqext // file src/puthdr.c line 120 void putseqext(void); // c::putseqhdr // file src/puthdr.c line 93 void putseqhdr(void); // c::putuserdata // file src/puthdr.c line 161 void putuserdata(char *userdata); // c::quant_intra // file src/global.h line 197 signed int quant_intra(signed short int *src, signed short int *dst, signed int dc_prec, unsigned char *quant_mat, signed int mquant); // c::quant_non_intra // file src/global.h line 199 signed int quant_non_intra(signed short int *src, signed short int *dst, unsigned char *quant_mat, signed int mquant); // c::range_checks // file src/conform.c line 88 void range_checks(void); // c::rc_calc_mquant // file src/global.h line 217 signed int rc_calc_mquant(signed int j); // c::rc_init_GOP // file src/global.h line 213 void rc_init_GOP(signed int np, signed int nb); // c::rc_init_pict // file src/global.h line 214 void rc_init_pict(unsigned char *frame); // c::rc_init_seq // file src/global.h line 212 void rc_init_seq(void); // c::rc_start_mb // file src/global.h line 216 signed int rc_start_mb(void); // c::rc_update_pict // file src/global.h line 215 void rc_update_pict(void); // c::read_ppm // file src/readpic.c line 203 static void read_ppm(char *fname, unsigned char **frame); // c::read_y_u_v // file src/readpic.c line 116 static void read_y_u_v(char *fname, unsigned char **frame); // c::read_yuv // file src/readpic.c line 164 static void read_yuv(char *fname, unsigned char **frame); // c::readframe // file src/readpic.c line 96 void readframe(char *fname, unsigned char **frame); // c::readparmfile // file src/mpeg2enc.c line 224 static void readparmfile(char *fname); // c::readquantmat // file src/mpeg2enc.c line 565 static void readquantmat(void); // c::realpath // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 37 char * realpath(const char * restrict __name, char * restrict __resolved); // c::snprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 61 signed int snprintf(char * restrict __s, unsigned long int __n, const char * restrict __fmt, ...); // c::sprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 31 signed int sprintf(char * restrict __s, const char * restrict __fmt, ...); // c::sqrt // file /usr/include/x86_64-linux-gnu/bits/mathcalls.h line 157 double sqrt(double); // c::sscanf // file /usr/include/stdio.h line 433 signed int sscanf(const char *, const char *, ...); // c::stats // file src/stats.c line 161 void stats(void); // c::stpncpy // file /usr/include/x86_64-linux-gnu/bits/string3.h line 130 char * stpncpy(char *__dest, const char *__src, unsigned long int __n); // c::strcat // file /usr/include/x86_64-linux-gnu/bits/string3.h line 140 char * strcat(char * restrict __dest, const char * restrict __src); // c::strcpy // file /usr/include/x86_64-linux-gnu/bits/string3.h line 102 char * strcpy(char * restrict __dest, const char * restrict __src); // c::strlen // file /usr/include/string.h line 395 unsigned long int strlen(const char *); // c::strncat // file /usr/include/x86_64-linux-gnu/bits/string3.h line 147 char * strncat(char * restrict __dest, const char * restrict __src, unsigned long int __len); // c::strncpy // file /usr/include/x86_64-linux-gnu/bits/string3.h line 117 char * strncpy(char * restrict __dest, const char * restrict __src, unsigned long int __len); // c::strtod // file /usr/include/stdlib.h line 164 double strtod(const char *, char **); // c::strtol // file /usr/include/stdlib.h line 183 signed long int strtol(const char *, char **, signed int); // c::strtoll // file /usr/include/stdlib.h line 209 signed long long int strtoll(const char *, char **, signed int); // c::sub_pred // file src/transfrm.c line 451 static void sub_pred(unsigned char *pred, unsigned char *cur, signed int lx, signed short int *blk); // c::thread_work // file src/putseq.c line 93 void * thread_work(void *threadargs); // c::thread_work_dist // file src/putseq.c line 131 void thread_work_dist(); // c::transform // file src/transfrm.c line 93 void transform(unsigned char **pred, unsigned char **cur, struct mbinfo *mbi, signed short int (*blocks)[64l]); // c::var_sblk // file src/ratectl.c line 385 static double var_sblk(unsigned char *p, signed int lx); // c::variance // file src/motion.c line 2480 static signed int variance(unsigned char *p, signed int lx); // c::vbv_end_of_picture // file src/global.h line 218 void vbv_end_of_picture(void); // c::vdprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 150 signed int vdprintf(signed int __fd, const char * restrict __fmt, void **__ap); // c::vfprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 124 signed int vfprintf(struct _IO_FILE * restrict __stream, const char * restrict __fmt, void **__ap); // c::vprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 114 signed int vprintf(const char * restrict __fmt, void **__ap); // c::vsnprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 74 signed int vsnprintf(char * restrict __s, unsigned long int __n, const char * restrict __fmt, void **__ap); // c::vsprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 43 signed int vsprintf(char * restrict __s, const char * restrict __fmt, void **__ap); // c::wcstombs // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 144 unsigned long int wcstombs(char * restrict __dst, const signed int * restrict __src, unsigned long int __len); // c::wctomb // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 83 signed int wctomb(char *__s, signed int __wchar); // c::write_buf // file src/putbits.c line 105 void write_buf(unsigned char val, signed int id); // c::writeframe // file src/global.h line 245 void writeframe(char *fname, unsigned char **frame); union anon$2 { // __l long double __l; // __i signed int __i[3l]; }; union anon$2$link63 { // __l long double __l; // __i signed int __i[3l]; }; union anon$2$link66 { // __l long double __l; // __i signed int __i[3l]; }; union anon$2$link70 { // __l long double __l; // __i signed int __i[3l]; }; union anon$2$link79 { // __l long double __l; // __i signed int __i[3l]; }; struct anon$1 { // code unsigned short int code; // len char len; }; struct anon$0 { // code unsigned char code; // len char len; }; struct Data_Args { // oldorg unsigned char *oldorg; // neworg unsigned char *neworg; // oldref unsigned char *oldref; // newref unsigned char *newref; // cur unsigned char *cur; // curref unsigned char *curref; // sxf signed int sxf; // syf signed int syf; // sxb signed int sxb; // syb signed int syb; // mbi struct mbinfo *mbi; // secondfield signed int secondfield; // ipflag signed int ipflag; // reff unsigned char **reff; // refb unsigned char **refb; // pd_cur unsigned char **pd_cur; // pred unsigned char *pred; // dte_cur unsigned char *dte_cur; // trfm_cur unsigned char **trfm_cur; // blocks signed short int **blocks; // prev_mquant signed int prev_mquant; // itrfm_cur unsigned char **itrfm_cur; }; struct _IO_FILE { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker *_markers; // _chain struct _IO_FILE *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link0 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link1 *_markers; // _chain struct _IO_FILE$link0 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link1 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link2 *_markers; // _chain struct _IO_FILE$link1 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link10 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link11 *_markers; // _chain struct _IO_FILE$link10 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link11 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link12 *_markers; // _chain struct _IO_FILE$link11 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link12 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link13 *_markers; // _chain struct _IO_FILE$link12 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link13 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link14 *_markers; // _chain struct _IO_FILE$link13 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link14 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link15 *_markers; // _chain struct _IO_FILE$link14 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link15 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link16 *_markers; // _chain struct _IO_FILE$link15 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link16 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link17 *_markers; // _chain struct _IO_FILE$link16 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link2 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link3 *_markers; // _chain struct _IO_FILE$link2 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link3 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link4 *_markers; // _chain struct _IO_FILE$link3 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link4 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link5 *_markers; // _chain struct _IO_FILE$link4 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link5 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link6 *_markers; // _chain struct _IO_FILE$link5 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link6 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link7 *_markers; // _chain struct _IO_FILE$link6 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link7 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link8 *_markers; // _chain struct _IO_FILE$link7 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link8 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link9 *_markers; // _chain struct _IO_FILE$link8 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_FILE$link9 { // _flags signed int _flags; // _IO_read_ptr char *_IO_read_ptr; // _IO_read_end char *_IO_read_end; // _IO_read_base char *_IO_read_base; // _IO_write_base char *_IO_write_base; // _IO_write_ptr char *_IO_write_ptr; // _IO_write_end char *_IO_write_end; // _IO_buf_base char *_IO_buf_base; // _IO_buf_end char *_IO_buf_end; // _IO_save_base char *_IO_save_base; // _IO_backup_base char *_IO_backup_base; // _IO_save_end char *_IO_save_end; // _markers struct _IO_marker$link10 *_markers; // _chain struct _IO_FILE$link9 *_chain; // _fileno signed int _fileno; // _flags2 signed int _flags2; // _old_offset signed long int _old_offset; // _cur_column unsigned short int _cur_column; // _vtable_offset signed char _vtable_offset; // _shortbuf char _shortbuf[1l]; // _lock void *_lock; // _offset signed long int _offset; // __pad1 void *__pad1; // __pad2 void *__pad2; // __pad3 void *__pad3; // __pad4 void *__pad4; // __pad5 unsigned long int __pad5; // _mode signed int _mode; // _unused2 char _unused2[20l /*[[signed int]]*/]; }; struct _IO_marker { // _next struct _IO_marker *_next; // _sbuf struct _IO_FILE *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link1 { // _next struct _IO_marker$link1 *_next; // _sbuf struct _IO_FILE$link0 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link10 { // _next struct _IO_marker$link10 *_next; // _sbuf struct _IO_FILE$link9 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link11 { // _next struct _IO_marker$link11 *_next; // _sbuf struct _IO_FILE$link10 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link12 { // _next struct _IO_marker$link12 *_next; // _sbuf struct _IO_FILE$link11 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link13 { // _next struct _IO_marker$link13 *_next; // _sbuf struct _IO_FILE$link12 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link14 { // _next struct _IO_marker$link14 *_next; // _sbuf struct _IO_FILE$link13 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link15 { // _next struct _IO_marker$link15 *_next; // _sbuf struct _IO_FILE$link14 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link16 { // _next struct _IO_marker$link16 *_next; // _sbuf struct _IO_FILE$link15 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link17 { // _next struct _IO_marker$link17 *_next; // _sbuf struct _IO_FILE$link16 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link2 { // _next struct _IO_marker$link2 *_next; // _sbuf struct _IO_FILE$link1 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link3 { // _next struct _IO_marker$link3 *_next; // _sbuf struct _IO_FILE$link2 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link4 { // _next struct _IO_marker$link4 *_next; // _sbuf struct _IO_FILE$link3 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link5 { // _next struct _IO_marker$link5 *_next; // _sbuf struct _IO_FILE$link4 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link6 { // _next struct _IO_marker$link6 *_next; // _sbuf struct _IO_FILE$link5 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link7 { // _next struct _IO_marker$link7 *_next; // _sbuf struct _IO_FILE$link6 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link8 { // _next struct _IO_marker$link8 *_next; // _sbuf struct _IO_FILE$link7 *_sbuf; // _pos signed int _pos; }; struct _IO_marker$link9 { // _next struct _IO_marker$link9 *_next; // _sbuf struct _IO_FILE$link8 *_sbuf; // _pos signed int _pos; }; struct level_limits { // hor_f_code signed int hor_f_code; // vert_f_code signed int vert_f_code; // hor_size signed int hor_size; // vert_size signed int vert_size; // sample_rate signed int sample_rate; // bit_rate signed int bit_rate; // vbv_buffer_size signed int vbv_buffer_size; }; struct mbinfo { // mb_type signed int mb_type; // motion_type signed int motion_type; // dct_type signed int dct_type; // mquant signed int mquant; // cbp signed int cbp; // skipped signed int skipped; // MV signed int MV[2l][2l][2l]; // mv_field_sel signed int mv_field_sel[2l][2l]; // dmvector signed int dmvector[2l]; // act double act; // var signed int var; }; struct motion_data { // forw_hor_f_code signed int forw_hor_f_code; // forw_vert_f_code signed int forw_vert_f_code; // sxf signed int sxf; // syf signed int syf; // back_hor_f_code signed int back_hor_f_code; // back_vert_f_code signed int back_vert_f_code; // sxb signed int sxb; // syb signed int syb; }; union pthread_attr_t { // __size char __size[56l]; // __align signed long int __align; }; struct thread_data { // me_ptr struct ME_Args *me_ptr; // pd_ptr struct Pred_Args *pd_ptr; // dte_ptr struct DTE_Args *dte_ptr; // trfm_ptr struct Trfm_Args *trfm_ptr; // iqt_ptr struct IQunt_Args *iqt_ptr; // itrfm_ptr struct Trfm_Args *itrfm_ptr; // pp_ptr struct PPict_Args *pp_ptr; // data_ptr struct Data_Args *data_ptr; // s_height signed int s_height; // e_height signed int e_height; // s_mbh signed int s_mbh; // e_mbh signed int e_mbh; // mode signed int mode; // id signed int id; // pp_smbh signed int pp_smbh; // pp_embh signed int pp_embh; }; // c::DCchromtab // file src/vlc.h line 220 static struct anon$1 DCchromtab[12l]; // c::DCchromtab // file src/vlc.h line 220 static struct anon$1 DCchromtab[12l] = { { .code=(unsigned short int)0, .len=(char)2 }, { .code=(unsigned short int)1, .len=(char)2 }, { .code=(unsigned short int)2, .len=(char)2 }, { .code=(unsigned short int)6, .len=(char)3 }, { .code=(unsigned short int)14, .len=(char)4 }, { .code=(unsigned short int)30, .len=(char)5 }, { .code=(unsigned short int)62, .len=(char)6 }, { .code=(unsigned short int)126, .len=(char)7 }, { .code=(unsigned short int)254, .len=(char)8 }, { .code=(unsigned short int)510, .len=(char)9 }, { .code=(unsigned short int)1022, .len=(char)10 }, { .code=(unsigned short int)1023, .len=(char)10 } }; // c::DClumtab // file src/vlc.h line 208 static struct anon$1 DClumtab[12l]; // c::DClumtab // file src/vlc.h line 208 static struct anon$1 DClumtab[12l] = { { .code=(unsigned short int)4, .len=(char)3 }, { .code=(unsigned short int)0, .len=(char)2 }, { .code=(unsigned short int)1, .len=(char)2 }, { .code=(unsigned short int)5, .len=(char)3 }, { .code=(unsigned short int)6, .len=(char)3 }, { .code=(unsigned short int)14, .len=(char)4 }, { .code=(unsigned short int)30, .len=(char)5 }, { .code=(unsigned short int)62, .len=(char)6 }, { .code=(unsigned short int)126, .len=(char)7 }, { .code=(unsigned short int)254, .len=(char)8 }, { .code=(unsigned short int)510, .len=(char)9 }, { .code=(unsigned short int)511, .len=(char)9 } }; // c::M // file src/global.h line 375 signed int M; // c::N // file src/global.h line 374 signed int N; // c::Nb // file src/ratectl.c line 96 static signed int Nb; // c::Np // file src/ratectl.c line 96 static signed int Np; // c::P // file src/global.h line 376 signed int P; // c::Q // file src/ratectl.c line 96 static signed int Q; // c::QUANT_THRESHOLD // file src/global.h line 439 signed int QUANT_THRESHOLD; // c::R // file src/ratectl.c line 94 static signed int R; // c::RND_INV_CORR // file src/idct.c line 287 const signed short int RND_INV_CORR; // c::RND_INV_CORR // file src/idct.c line 287 const signed short int RND_INV_CORR = (const signed short int)(16 * (4 - 3) - 1); // c::RND_INV_ROW // file src/idct.c line 285 const signed short int RND_INV_ROW; // c::RND_INV_ROW // file src/idct.c line 285 const signed short int RND_INV_ROW = (const signed short int)(1024 * (6 - 4)); // c::S // file src/ratectl.c line 96 static signed int S; // c::T // file src/ratectl.c line 94 static signed int T; // c::_ocos_4_16 // file src/fdctref.c line 163 static const signed short int _ocos_4_16; // c::_ocos_4_16 // file src/fdctref.c line 163 static const signed short int _ocos_4_16 = (const signed short int)23170; // c::_one_corr // file src/fdctref.c line 164 static const signed short int _one_corr; // c::_one_corr // file src/fdctref.c line 164 static const signed short int _one_corr = (const signed short int)1; // c::_tg_1_16 // file src/fdctref.c line 159 static const signed short int _tg_1_16; // c::_tg_1_16 // file src/fdctref.c line 159 static const signed short int _tg_1_16 = (const signed short int)13036; // c::_tg_2_16 // file src/fdctref.c line 160 static const signed short int _tg_2_16; // c::_tg_2_16 // file src/fdctref.c line 160 static const signed short int _tg_2_16 = (const signed short int)27146; // c::_tg_3_16 // file src/fdctref.c line 161 static const signed short int _tg_3_16; // c::_tg_3_16 // file src/fdctref.c line 161 static const signed short int _tg_3_16 = (const signed short int)-21746; // c::actsum // file src/ratectl.c line 95 static double actsum; // c::addrinctab // file src/vlc.h line 105 static struct anon$0 addrinctab[33l]; // c::addrinctab // file src/vlc.h line 105 static struct anon$0 addrinctab[33l] = { { .code=(unsigned char)1, .len=(char)1 }, { .code=(unsigned char)3, .len=(char)3 }, { .code=(unsigned char)2, .len=(char)3 }, { .code=(unsigned char)3, .len=(char)4 }, { .code=(unsigned char)2, .len=(char)4 }, { .code=(unsigned char)3, .len=(char)5 }, { .code=(unsigned char)2, .len=(char)5 }, { .code=(unsigned char)7, .len=(char)7 }, { .code=(unsigned char)6, .len=(char)7 }, { .code=(unsigned char)11, .len=(char)8 }, { .code=(unsigned char)10, .len=(char)8 }, { .code=(unsigned char)9, .len=(char)8 }, { .code=(unsigned char)8, .len=(char)8 }, { .code=(unsigned char)7, .len=(char)8 }, { .code=(unsigned char)6, .len=(char)8 }, { .code=(unsigned char)23, .len=(char)10 }, { .code=(unsigned char)22, .len=(char)10 }, { .code=(unsigned char)21, .len=(char)10 }, { .code=(unsigned char)20, .len=(char)10 }, { .code=(unsigned char)19, .len=(char)10 }, { .code=(unsigned char)18, .len=(char)10 }, { .code=(unsigned char)35, .len=(char)11 }, { .code=(unsigned char)34, .len=(char)11 }, { .code=(unsigned char)33, .len=(char)11 }, { .code=(unsigned char)32, .len=(char)11 }, { .code=(unsigned char)31, .len=(char)11 }, { .code=(unsigned char)30, .len=(char)11 }, { .code=(unsigned char)29, .len=(char)11 }, { .code=(unsigned char)28, .len=(char)11 }, { .code=(unsigned char)27, .len=(char)11 }, { .code=(unsigned char)26, .len=(char)11 }, { .code=(unsigned char)25, .len=(char)11 }, { .code=(unsigned char)24, .len=(char)11 } }; // c::alternate_scan // file src/global.h line 276 unsigned char alternate_scan[64l]; // c::alternate_scan // file src/global.h line 276 unsigned char alternate_scan[64l] = { (unsigned char)0, (unsigned char)8, (unsigned char)16, (unsigned char)24, (unsigned char)1, (unsigned char)9, (unsigned char)2, (unsigned char)10, (unsigned char)17, (unsigned char)25, (unsigned char)32, (unsigned char)40, (unsigned char)48, (unsigned char)56, (unsigned char)57, (unsigned char)49, (unsigned char)41, (unsigned char)33, (unsigned char)26, (unsigned char)18, (unsigned char)3, (unsigned char)11, (unsigned char)4, (unsigned char)12, (unsigned char)19, (unsigned char)27, (unsigned char)34, (unsigned char)42, (unsigned char)50, (unsigned char)58, (unsigned char)35, (unsigned char)43, (unsigned char)51, (unsigned char)59, (unsigned char)20, (unsigned char)28, (unsigned char)5, (unsigned char)13, (unsigned char)6, (unsigned char)14, (unsigned char)21, (unsigned char)29, (unsigned char)36, (unsigned char)44, (unsigned char)52, (unsigned char)60, (unsigned char)37, (unsigned char)45, (unsigned char)53, (unsigned char)61, (unsigned char)22, (unsigned char)30, (unsigned char)7, (unsigned char)15, (unsigned char)23, (unsigned char)31, (unsigned char)38, (unsigned char)46, (unsigned char)54, (unsigned char)62, (unsigned char)39, (unsigned char)47, (unsigned char)55, (unsigned char)63 }; // c::altscan // file src/global.h line 435 signed int altscan; // c::altscan_tab // file src/global.h line 435 signed int altscan_tab[3l]; // c::aspectratio // file src/global.h line 389 signed int aspectratio; // c::author // file src/global.h line 256 char author[41l]; // c::author // file src/global.h line 256 char author[41l] = { 40, 67, 41, 32, 49, 57, 57, 54, 44, 32, 77, 80, 69, 71, 32, 83, 111, 102, 116, 119, 97, 114, 101, 32, 83, 105, 109, 117, 108, 97, 116, 105, 111, 110, 32, 71, 114, 111, 117, 112, 0 }; // c::auxframe // file src/global.h line 339 unsigned char *auxframe[3l]; // c::auxorgframe // file src/global.h line 341 unsigned char *auxorgframe[3l]; // c::back_hor_f_code // file src/global.h line 426 signed int back_hor_f_code; // c::back_vert_f_code // file src/global.h line 426 signed int back_vert_f_code; // c::bit_rate // file src/global.h line 392 double bit_rate; // c::bitcnt_EOP // file src/ratectl.c line 420 static signed int bitcnt_EOP; // c::block_count // file src/global.h line 386 signed int block_count; // c::blocks // file src/global.h line 345 signed short int (*blocks)[64l]; // c::buf_ptr // file src/putbits.c line 97 signed int buf_ptr[2l]; // c::byte_cnt // file src/putbits.c line 103 signed int byte_cnt[2l]; // c::bytecnt // file src/putbits.c line 93 static signed int bytecnt; // c::c // file src/global.h line 449 signed short int c[8l][8l]; // c::cbptable // file src/vlc.h line 161 static struct anon$0 cbptable[64l]; // c::cbptable // file src/vlc.h line 161 static struct anon$0 cbptable[64l] = { { .code=(unsigned char)1, .len=(char)9 }, { .code=(unsigned char)11, .len=(char)5 }, { .code=(unsigned char)9, .len=(char)5 }, { .code=(unsigned char)13, .len=(char)6 }, { .code=(unsigned char)13, .len=(char)4 }, { .code=(unsigned char)23, .len=(char)7 }, { .code=(unsigned char)19, .len=(char)7 }, { .code=(unsigned char)31, .len=(char)8 }, { .code=(unsigned char)12, .len=(char)4 }, { .code=(unsigned char)22, .len=(char)7 }, { .code=(unsigned char)18, .len=(char)7 }, { .code=(unsigned char)30, .len=(char)8 }, { .code=(unsigned char)19, .len=(char)5 }, { .code=(unsigned char)27, .len=(char)8 }, { .code=(unsigned char)23, .len=(char)8 }, { .code=(unsigned char)19, .len=(char)8 }, { .code=(unsigned char)11, .len=(char)4 }, { .code=(unsigned char)21, .len=(char)7 }, { .code=(unsigned char)17, .len=(char)7 }, { .code=(unsigned char)29, .len=(char)8 }, { .code=(unsigned char)17, .len=(char)5 }, { .code=(unsigned char)25, .len=(char)8 }, { .code=(unsigned char)21, .len=(char)8 }, { .code=(unsigned char)17, .len=(char)8 }, { .code=(unsigned char)15, .len=(char)6 }, { .code=(unsigned char)15, .len=(char)8 }, { .code=(unsigned char)13, .len=(char)8 }, { .code=(unsigned char)3, .len=(char)9 }, { .code=(unsigned char)15, .len=(char)5 }, { .code=(unsigned char)11, .len=(char)8 }, { .code=(unsigned char)7, .len=(char)8 }, { .code=(unsigned char)7, .len=(char)9 }, { .code=(unsigned char)10, .len=(char)4 }, { .code=(unsigned char)20, .len=(char)7 }, { .code=(unsigned char)16, .len=(char)7 }, { .code=(unsigned char)28, .len=(char)8 }, { .code=(unsigned char)14, .len=(char)6 }, { .code=(unsigned char)14, .len=(char)8 }, { .code=(unsigned char)12, .len=(char)8 }, { .code=(unsigned char)2, .len=(char)9 }, { .code=(unsigned char)16, .len=(char)5 }, { .code=(unsigned char)24, .len=(char)8 }, { .code=(unsigned char)20, .len=(char)8 }, { .code=(unsigned char)16, .len=(char)8 }, { .code=(unsigned char)14, .len=(char)5 }, { .code=(unsigned char)10, .len=(char)8 }, { .code=(unsigned char)6, .len=(char)8 }, { .code=(unsigned char)6, .len=(char)9 }, { .code=(unsigned char)18, .len=(char)5 }, { .code=(unsigned char)26, .len=(char)8 }, { .code=(unsigned char)22, .len=(char)8 }, { .code=(unsigned char)18, .len=(char)8 }, { .code=(unsigned char)13, .len=(char)5 }, { .code=(unsigned char)9, .len=(char)8 }, { .code=(unsigned char)5, .len=(char)8 }, { .code=(unsigned char)5, .len=(char)9 }, { .code=(unsigned char)12, .len=(char)5 }, { .code=(unsigned char)8, .len=(char)8 }, { .code=(unsigned char)4, .len=(char)8 }, { .code=(unsigned char)4, .len=(char)9 }, { .code=(unsigned char)7, .len=(char)3 }, { .code=(unsigned char)10, .len=(char)5 }, { .code=(unsigned char)8, .len=(char)5 }, { .code=(unsigned char)12, .len=(char)6 } }; // c::chrom_height // file src/global.h line 386 signed int chrom_height; // c::chrom_inter_q // file src/global.h line 348 unsigned char chrom_inter_q[64l]; // c::chrom_intra_q // file src/global.h line 348 unsigned char chrom_intra_q[64l]; // c::chrom_width // file src/global.h line 386 signed int chrom_width; // c::chrom_width2 // file src/global.h line 388 signed int chrom_width2; // c::chroma_format // file src/global.h line 403 signed int chroma_format; // c::clp // file src/global.h line 359 unsigned char *clp; // c::color_primaries // file src/global.h line 410 signed int color_primaries; // c::conceal_tab // file src/global.h line 432 signed int conceal_tab[3l]; // c::constrparms // file src/global.h line 394 signed int constrparms; // c::cur_size // file src/putbits.c line 98 signed int cur_size[2l]; // c::d // file src/ratectl.c line 94 static signed int d; // c::data_args // file src/putseq.c line 129 struct Data_Args data_args; // c::dc_dct_pred // file src/global.h line 350 signed int dc_dct_pred[3l]; // c::dc_prec // file src/global.h line 427 signed int dc_prec; // c::dct_code_tab1 // file src/vlc.h line 235 static struct anon$0 dct_code_tab1[2l][40l]; // c::dct_code_tab1 // file src/vlc.h line 235 static struct anon$0 dct_code_tab1[2l][40l] = { { { .code=(unsigned char)3, .len=(char)2 }, { .code=(unsigned char)4, .len=(char)4 }, { .code=(unsigned char)5, .len=(char)5 }, { .code=(unsigned char)6, .len=(char)7 }, { .code=(unsigned char)38, .len=(char)8 }, { .code=(unsigned char)33, .len=(char)8 }, { .code=(unsigned char)10, .len=(char)10 }, { .code=(unsigned char)29, .len=(char)12 }, { .code=(unsigned char)24, .len=(char)12 }, { .code=(unsigned char)19, .len=(char)12 }, { .code=(unsigned char)16, .len=(char)12 }, { .code=(unsigned char)26, .len=(char)13 }, { .code=(unsigned char)25, .len=(char)13 }, { .code=(unsigned char)24, .len=(char)13 }, { .code=(unsigned char)23, .len=(char)13 }, { .code=(unsigned char)31, .len=(char)14 }, { .code=(unsigned char)30, .len=(char)14 }, { .code=(unsigned char)29, .len=(char)14 }, { .code=(unsigned char)28, .len=(char)14 }, { .code=(unsigned char)27, .len=(char)14 }, { .code=(unsigned char)26, .len=(char)14 }, { .code=(unsigned char)25, .len=(char)14 }, { .code=(unsigned char)24, .len=(char)14 }, { .code=(unsigned char)23, .len=(char)14 }, { .code=(unsigned char)22, .len=(char)14 }, { .code=(unsigned char)21, .len=(char)14 }, { .code=(unsigned char)20, .len=(char)14 }, { .code=(unsigned char)19, .len=(char)14 }, { .code=(unsigned char)18, .len=(char)14 }, { .code=(unsigned char)17, .len=(char)14 }, { .code=(unsigned char)16, .len=(char)14 }, { .code=(unsigned char)24, .len=(char)15 }, { .code=(unsigned char)23, .len=(char)15 }, { .code=(unsigned char)22, .len=(char)15 }, { .code=(unsigned char)21, .len=(char)15 }, { .code=(unsigned char)20, .len=(char)15 }, { .code=(unsigned char)19, .len=(char)15 }, { .code=(unsigned char)18, .len=(char)15 }, { .code=(unsigned char)17, .len=(char)15 }, { .code=(unsigned char)16, .len=(char)15 } }, { { .code=(unsigned char)3, .len=(char)3 }, { .code=(unsigned char)6, .len=(char)6 }, { .code=(unsigned char)37, .len=(char)8 }, { .code=(unsigned char)12, .len=(char)10 }, { .code=(unsigned char)27, .len=(char)12 }, { .code=(unsigned char)22, .len=(char)13 }, { .code=(unsigned char)21, .len=(char)13 }, { .code=(unsigned char)31, .len=(char)15 }, { .code=(unsigned char)30, .len=(char)15 }, { .code=(unsigned char)29, .len=(char)15 }, { .code=(unsigned char)28, .len=(char)15 }, { .code=(unsigned char)27, .len=(char)15 }, { .code=(unsigned char)26, .len=(char)15 }, { .code=(unsigned char)25, .len=(char)15 }, { .code=(unsigned char)19, .len=(char)16 }, { .code=(unsigned char)18, .len=(char)16 }, { .code=(unsigned char)17, .len=(char)16 }, { .code=(unsigned char)16, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } } }; // c::dct_code_tab1a // file src/vlc.h line 309 static struct anon$0 dct_code_tab1a[2l][40l]; // c::dct_code_tab1a // file src/vlc.h line 309 static struct anon$0 dct_code_tab1a[2l][40l] = { { { .code=(unsigned char)2, .len=(char)2 }, { .code=(unsigned char)6, .len=(char)3 }, { .code=(unsigned char)7, .len=(char)4 }, { .code=(unsigned char)28, .len=(char)5 }, { .code=(unsigned char)29, .len=(char)5 }, { .code=(unsigned char)5, .len=(char)6 }, { .code=(unsigned char)4, .len=(char)6 }, { .code=(unsigned char)123, .len=(char)7 }, { .code=(unsigned char)124, .len=(char)7 }, { .code=(unsigned char)35, .len=(char)8 }, { .code=(unsigned char)34, .len=(char)8 }, { .code=(unsigned char)250, .len=(char)8 }, { .code=(unsigned char)251, .len=(char)8 }, { .code=(unsigned char)254, .len=(char)8 }, { .code=(unsigned char)255, .len=(char)8 }, { .code=(unsigned char)31, .len=(char)14 }, { .code=(unsigned char)30, .len=(char)14 }, { .code=(unsigned char)29, .len=(char)14 }, { .code=(unsigned char)28, .len=(char)14 }, { .code=(unsigned char)27, .len=(char)14 }, { .code=(unsigned char)26, .len=(char)14 }, { .code=(unsigned char)25, .len=(char)14 }, { .code=(unsigned char)24, .len=(char)14 }, { .code=(unsigned char)23, .len=(char)14 }, { .code=(unsigned char)22, .len=(char)14 }, { .code=(unsigned char)21, .len=(char)14 }, { .code=(unsigned char)20, .len=(char)14 }, { .code=(unsigned char)19, .len=(char)14 }, { .code=(unsigned char)18, .len=(char)14 }, { .code=(unsigned char)17, .len=(char)14 }, { .code=(unsigned char)16, .len=(char)14 }, { .code=(unsigned char)24, .len=(char)15 }, { .code=(unsigned char)23, .len=(char)15 }, { .code=(unsigned char)22, .len=(char)15 }, { .code=(unsigned char)21, .len=(char)15 }, { .code=(unsigned char)20, .len=(char)15 }, { .code=(unsigned char)19, .len=(char)15 }, { .code=(unsigned char)18, .len=(char)15 }, { .code=(unsigned char)17, .len=(char)15 }, { .code=(unsigned char)16, .len=(char)15 } }, { { .code=(unsigned char)2, .len=(char)3 }, { .code=(unsigned char)6, .len=(char)5 }, { .code=(unsigned char)121, .len=(char)7 }, { .code=(unsigned char)39, .len=(char)8 }, { .code=(unsigned char)32, .len=(char)8 }, { .code=(unsigned char)22, .len=(char)13 }, { .code=(unsigned char)21, .len=(char)13 }, { .code=(unsigned char)31, .len=(char)15 }, { .code=(unsigned char)30, .len=(char)15 }, { .code=(unsigned char)29, .len=(char)15 }, { .code=(unsigned char)28, .len=(char)15 }, { .code=(unsigned char)27, .len=(char)15 }, { .code=(unsigned char)26, .len=(char)15 }, { .code=(unsigned char)25, .len=(char)15 }, { .code=(unsigned char)19, .len=(char)16 }, { .code=(unsigned char)18, .len=(char)16 }, { .code=(unsigned char)17, .len=(char)16 }, { .code=(unsigned char)16, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } } }; // c::dct_code_tab2 // file src/vlc.h line 265 static struct anon$0 dct_code_tab2[30l][5l]; // c::dct_code_tab2 // file src/vlc.h line 265 static struct anon$0 dct_code_tab2[30l][5l] = { { { .code=(unsigned char)5, .len=(char)4 }, { .code=(unsigned char)4, .len=(char)7 }, { .code=(unsigned char)11, .len=(char)10 }, { .code=(unsigned char)20, .len=(char)12 }, { .code=(unsigned char)20, .len=(char)13 } }, { { .code=(unsigned char)7, .len=(char)5 }, { .code=(unsigned char)36, .len=(char)8 }, { .code=(unsigned char)28, .len=(char)12 }, { .code=(unsigned char)19, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)6, .len=(char)5 }, { .code=(unsigned char)15, .len=(char)10 }, { .code=(unsigned char)18, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)7, .len=(char)6 }, { .code=(unsigned char)9, .len=(char)10 }, { .code=(unsigned char)18, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)5, .len=(char)6 }, { .code=(unsigned char)30, .len=(char)12 }, { .code=(unsigned char)20, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)4, .len=(char)6 }, { .code=(unsigned char)21, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)7, .len=(char)7 }, { .code=(unsigned char)17, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)5, .len=(char)7 }, { .code=(unsigned char)17, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)39, .len=(char)8 }, { .code=(unsigned char)16, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)35, .len=(char)8 }, { .code=(unsigned char)26, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)34, .len=(char)8 }, { .code=(unsigned char)25, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)32, .len=(char)8 }, { .code=(unsigned char)24, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)14, .len=(char)10 }, { .code=(unsigned char)23, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)13, .len=(char)10 }, { .code=(unsigned char)22, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)8, .len=(char)10 }, { .code=(unsigned char)21, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)31, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)26, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)25, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)23, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)22, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)31, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)30, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)29, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)28, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)27, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)31, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)30, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)29, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)28, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)27, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } } }; // c::dct_code_tab2a // file src/vlc.h line 339 static struct anon$0 dct_code_tab2a[30l][5l]; // c::dct_code_tab2a // file src/vlc.h line 339 static struct anon$0 dct_code_tab2a[30l][5l] = { { { .code=(unsigned char)5, .len=(char)5 }, { .code=(unsigned char)7, .len=(char)7 }, { .code=(unsigned char)252, .len=(char)8 }, { .code=(unsigned char)12, .len=(char)10 }, { .code=(unsigned char)20, .len=(char)13 } }, { { .code=(unsigned char)7, .len=(char)5 }, { .code=(unsigned char)38, .len=(char)8 }, { .code=(unsigned char)28, .len=(char)12 }, { .code=(unsigned char)19, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)6, .len=(char)6 }, { .code=(unsigned char)253, .len=(char)8 }, { .code=(unsigned char)18, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)7, .len=(char)6 }, { .code=(unsigned char)4, .len=(char)9 }, { .code=(unsigned char)18, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)6, .len=(char)7 }, { .code=(unsigned char)30, .len=(char)12 }, { .code=(unsigned char)20, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)4, .len=(char)7 }, { .code=(unsigned char)21, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)5, .len=(char)7 }, { .code=(unsigned char)17, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)120, .len=(char)7 }, { .code=(unsigned char)17, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)122, .len=(char)7 }, { .code=(unsigned char)16, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)33, .len=(char)8 }, { .code=(unsigned char)26, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)37, .len=(char)8 }, { .code=(unsigned char)25, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)36, .len=(char)8 }, { .code=(unsigned char)24, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)5, .len=(char)9 }, { .code=(unsigned char)23, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)7, .len=(char)9 }, { .code=(unsigned char)22, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)13, .len=(char)10 }, { .code=(unsigned char)21, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)31, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)26, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)25, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)23, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)22, .len=(char)12 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)31, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)30, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)29, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)28, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)27, .len=(char)13 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)31, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)30, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)29, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)28, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)27, .len=(char)16 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } } }; // c::default_intra_quantizer_matrix // file src/global.h line 289 unsigned char default_intra_quantizer_matrix[64l]; // c::default_intra_quantizer_matrix // file src/global.h line 289 unsigned char default_intra_quantizer_matrix[64l] = { (unsigned char)8, (unsigned char)16, (unsigned char)19, (unsigned char)22, (unsigned char)26, (unsigned char)27, (unsigned char)29, (unsigned char)34, (unsigned char)16, (unsigned char)16, (unsigned char)22, (unsigned char)24, (unsigned char)27, (unsigned char)29, (unsigned char)34, (unsigned char)37, (unsigned char)19, (unsigned char)22, (unsigned char)26, (unsigned char)27, (unsigned char)29, (unsigned char)34, (unsigned char)34, (unsigned char)38, (unsigned char)22, (unsigned char)22, (unsigned char)26, (unsigned char)27, (unsigned char)29, (unsigned char)34, (unsigned char)37, (unsigned char)40, (unsigned char)22, (unsigned char)26, (unsigned char)27, (unsigned char)29, (unsigned char)32, (unsigned char)35, (unsigned char)40, (unsigned char)48, (unsigned char)26, (unsigned char)27, (unsigned char)29, (unsigned char)32, (unsigned char)35, (unsigned char)40, (unsigned char)48, (unsigned char)58, (unsigned char)26, (unsigned char)27, (unsigned char)29, (unsigned char)34, (unsigned char)38, (unsigned char)46, (unsigned char)56, (unsigned char)69, (unsigned char)27, (unsigned char)29, (unsigned char)35, (unsigned char)38, (unsigned char)46, (unsigned char)56, (unsigned char)69, (unsigned char)83 }; // c::display_horizontal_size // file src/global.h line 413 signed int display_horizontal_size; // c::display_vertical_size // file src/global.h line 413 signed int display_vertical_size; // c::errortext // file src/global.h line 365 char errortext[256l]; // c::fieldpic // file src/global.h line 380 signed int fieldpic; // c::forw_hor_f_code // file src/global.h line 425 signed int forw_hor_f_code; // c::forw_vert_f_code // file src/global.h line 425 signed int forw_vert_f_code; // c::frame0 // file src/global.h line 378 signed int frame0; // c::frame_pred_dct // file src/global.h line 431 signed int frame_pred_dct; // c::frame_pred_dct_tab // file src/global.h line 431 signed int frame_pred_dct_tab[3l]; // c::frame_rate // file src/global.h line 391 double frame_rate; // c::frame_rate_code // file src/global.h line 390 signed int frame_rate_code; // c::height // file src/global.h line 385 signed int height; // c::height2 // file src/global.h line 388 signed int height2; // c::horizontal_size // file src/global.h line 384 signed int horizontal_size; // c::ic // file src/global.h line 450 signed short int ic[8l][8l]; // c::id_string // file src/global.h line 362 char id_string[256l]; // c::inputtype // file src/global.h line 368 signed int inputtype; // c::inter_q // file src/global.h line 347 unsigned char inter_q[64l]; // c::intra_q // file src/global.h line 347 unsigned char intra_q[64l]; // c::intravlc // file src/global.h line 434 signed int intravlc; // c::intravlc_tab // file src/global.h line 434 signed int intravlc_tab[3l]; // c::iqname // file src/global.h line 363 char iqname[256l]; // c::level // file src/global.h line 401 signed int level; // c::load_ciquant // file src/global.h line 396 signed int load_ciquant; // c::load_cniquant // file src/global.h line 396 signed int load_cniquant; // c::load_iquant // file src/global.h line 395 signed int load_iquant; // c::load_niquant // file src/global.h line 395 signed int load_niquant; // c::low_delay // file src/global.h line 404 signed int low_delay; // c::map_non_linear_mquant // file src/global.h line 323 unsigned char map_non_linear_mquant[113l]; // c::map_non_linear_mquant // file src/global.h line 323 unsigned char map_non_linear_mquant[113l] = { (unsigned char)0, (unsigned char)1, (unsigned char)2, (unsigned char)3, (unsigned char)4, (unsigned char)5, (unsigned char)6, (unsigned char)7, (unsigned char)8, (unsigned char)8, (unsigned char)9, (unsigned char)9, (unsigned char)10, (unsigned char)10, (unsigned char)11, (unsigned char)11, (unsigned char)12, (unsigned char)12, (unsigned char)13, (unsigned char)13, (unsigned char)14, (unsigned char)14, (unsigned char)15, (unsigned char)15, (unsigned char)16, (unsigned char)16, (unsigned char)16, (unsigned char)17, (unsigned char)17, (unsigned char)17, (unsigned char)18, (unsigned char)18, (unsigned char)18, (unsigned char)18, (unsigned char)19, (unsigned char)19, (unsigned char)19, (unsigned char)19, (unsigned char)20, (unsigned char)20, (unsigned char)20, (unsigned char)20, (unsigned char)21, (unsigned char)21, (unsigned char)21, (unsigned char)21, (unsigned char)22, (unsigned char)22, (unsigned char)22, (unsigned char)22, (unsigned char)23, (unsigned char)23, (unsigned char)23, (unsigned char)23, (unsigned char)24, (unsigned char)24, (unsigned char)24, (unsigned char)24, (unsigned char)24, (unsigned char)24, (unsigned char)24, (unsigned char)25, (unsigned char)25, (unsigned char)25, (unsigned char)25, (unsigned char)25, (unsigned char)25, (unsigned char)25, (unsigned char)26, (unsigned char)26, (unsigned char)26, (unsigned char)26, (unsigned char)26, (unsigned char)26, (unsigned char)26, (unsigned char)26, (unsigned char)27, (unsigned char)27, (unsigned char)27, (unsigned char)27, (unsigned char)27, (unsigned char)27, (unsigned char)27, (unsigned char)27, (unsigned char)28, (unsigned char)28, (unsigned char)28, (unsigned char)28, (unsigned char)28, (unsigned char)28, (unsigned char)28, (unsigned char)29, (unsigned char)29, (unsigned char)29, (unsigned char)29, (unsigned char)29, (unsigned char)29, (unsigned char)29, (unsigned char)29, (unsigned char)29, (unsigned char)29, (unsigned char)30, (unsigned char)30, (unsigned char)30, (unsigned char)30, (unsigned char)30, (unsigned char)30, (unsigned char)30, (unsigned char)31, (unsigned char)31, (unsigned char)31, (unsigned char)31, (unsigned char)31 }; // c::matrix_coefficients // file src/global.h line 412 signed int matrix_coefficients; // c::maxval_tab // file src/conform.c line 220 static struct level_limits maxval_tab[4l]; // c::maxval_tab // file src/conform.c line 220 static struct level_limits maxval_tab[4l] = { { .hor_f_code=9, .vert_f_code=5, .hor_size=1920, .vert_size=1152, .sample_rate=62668800, .bit_rate=80, .vbv_buffer_size=597 }, { .hor_f_code=9, .vert_f_code=5, .hor_size=1440, .vert_size=1152, .sample_rate=47001600, .bit_rate=60, .vbv_buffer_size=448 }, { .hor_f_code=8, .vert_f_code=5, .hor_size=1920, .vert_size=1152, .sample_rate=620000000, .bit_rate=15, .vbv_buffer_size=112 }, { .hor_f_code=7, .vert_f_code=4, .hor_size=352, .vert_size=288, .sample_rate=3041280, .bit_rate=4, .vbv_buffer_size=29 } }; // c::mb_height // file src/global.h line 387 signed int mb_height; // c::mb_height2 // file src/global.h line 388 signed int mb_height2; // c::mb_width // file src/global.h line 387 signed int mb_width; // c::mbinfo // file src/global.h line 355 struct mbinfo *mbinfo; // c::mbtypetab // file src/vlc.h line 124 static struct anon$0 mbtypetab[3l][32l]; // c::mbtypetab // file src/vlc.h line 124 static struct anon$0 mbtypetab[3l][32l] = { { { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)1, .len=(char)1 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)1, .len=(char)2 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)3, .len=(char)5 }, { .code=(unsigned char)1, .len=(char)2 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)1, .len=(char)3 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)1, .len=(char)1 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)1, .len=(char)6 }, { .code=(unsigned char)1, .len=(char)5 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)2, .len=(char)5 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 } }, { { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)3, .len=(char)5 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)2, .len=(char)3 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)3, .len=(char)3 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)2, .len=(char)4 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)3, .len=(char)4 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)2, .len=(char)2 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)3, .len=(char)2 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)1, .len=(char)6 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)2, .len=(char)6 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)3, .len=(char)6 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)0, .len=(char)0 }, { .code=(unsigned char)2, .len=(char)5 }, { .code=(unsigned char)0, .len=(char)0 } } }; // c::motion_data // file src/global.h line 357 struct motion_data *motion_data; // c::motionvectab // file src/vlc.h line 188 static struct anon$0 motionvectab[17l]; // c::motionvectab // file src/vlc.h line 188 static struct anon$0 motionvectab[17l] = { { .code=(unsigned char)1, .len=(char)1 }, { .code=(unsigned char)1, .len=(char)2 }, { .code=(unsigned char)1, .len=(char)3 }, { .code=(unsigned char)1, .len=(char)4 }, { .code=(unsigned char)3, .len=(char)6 }, { .code=(unsigned char)5, .len=(char)7 }, { .code=(unsigned char)4, .len=(char)7 }, { .code=(unsigned char)3, .len=(char)7 }, { .code=(unsigned char)11, .len=(char)9 }, { .code=(unsigned char)10, .len=(char)9 }, { .code=(unsigned char)9, .len=(char)9 }, { .code=(unsigned char)17, .len=(char)10 }, { .code=(unsigned char)16, .len=(char)10 }, { .code=(unsigned char)15, .len=(char)10 }, { .code=(unsigned char)14, .len=(char)10 }, { .code=(unsigned char)13, .len=(char)10 }, { .code=(unsigned char)12, .len=(char)10 } }; // c::mpeg1 // file src/global.h line 379 signed int mpeg1; // c::neworgframe // file src/global.h line 341 unsigned char *neworgframe[3l]; // c::newrefframe // file src/global.h line 339 unsigned char *newrefframe[3l]; // c::nframes // file src/global.h line 377 signed int nframes; // c::niqname // file src/global.h line 363 char niqname[256l]; // c::non_linear_mquant_table // file src/global.h line 306 unsigned char non_linear_mquant_table[32l]; // c::non_linear_mquant_table // file src/global.h line 306 unsigned char non_linear_mquant_table[32l] = { (unsigned char)0, (unsigned char)1, (unsigned char)2, (unsigned char)3, (unsigned char)4, (unsigned char)5, (unsigned char)6, (unsigned char)7, (unsigned char)8, (unsigned char)10, (unsigned char)12, (unsigned char)14, (unsigned char)16, (unsigned char)18, (unsigned char)20, (unsigned char)22, (unsigned char)24, (unsigned char)28, (unsigned char)32, (unsigned char)36, (unsigned char)40, (unsigned char)44, (unsigned char)48, (unsigned char)52, (unsigned char)56, (unsigned char)64, (unsigned char)72, (unsigned char)80, (unsigned char)88, (unsigned char)96, (unsigned char)104, (unsigned char)112 }; // c::oldorgframe // file src/global.h line 341 unsigned char *oldorgframe[3l]; // c::oldrefframe // file src/global.h line 339 unsigned char *oldrefframe[3l]; // c::out_bfr // file src/putbits.c line 101 static unsigned char out_bfr[2l]; // c::out_cnt // file src/putbits.c line 102 static signed int out_cnt[2l]; // c::outbfr // file src/putbits.c line 91 static unsigned char outbfr; // c::outcnt // file src/putbits.c line 92 static signed int outcnt; // c::outfile // file src/global.h line 367 struct _IO_FILE$link10 *outfile; // c::outfrmbuf // file src/putbits.c line 99 unsigned char *outfrmbuf[2l]; // c::pict_struct // file src/global.h line 428 signed int pict_struct; // c::pict_type // file src/global.h line 419 signed int pict_type; // c::predframe // file src/global.h line 343 unsigned char *predframe[3l]; // c::prev_mquant // file src/ratectl.c line 97 static signed int prev_mquant; // c::profile // file src/global.h line 401 signed int profile; // c::profile_level_defined // file src/conform.c line 202 static char profile_level_defined[5l][4l]; // c::profile_level_defined // file src/conform.c line 202 static char profile_level_defined[5l][4l] = { { (char)1, (char)1, (char)1, (char)0 }, { (char)0, (char)1, (char)0, (char)0 }, { (char)0, (char)0, (char)1, (char)1 }, { (char)1, (char)1, (char)1, (char)1 }, { (char)0, (char)0, (char)1, (char)0 } }; // c::prog_frame // file src/global.h line 437 signed int prog_frame; // c::prog_seq // file src/global.h line 402 signed int prog_seq; // c::pt_dc_dct_pred // file src/global.h line 352 signed int pt_dc_dct_pred[2l][3l]; // c::q_scale_type // file src/global.h line 433 signed int q_scale_type; // c::qscale_tab // file src/global.h line 433 signed int qscale_tab[3l]; // c::quiet // file src/global.h line 370 signed int quiet; // c::repeatfirst // file src/global.h line 436 signed int repeatfirst; // c::statfile // file src/global.h line 367 struct _IO_FILE$link3 *statfile; // c::statname // file src/global.h line 364 char statname[256l]; // c::stderr // file /usr/include/stdio.h line 170 struct _IO_FILE *stderr; // c::stdin // file /usr/include/stdio.h line 168 struct _IO_FILE *stdin; // c::stdout // file /usr/include/stdio.h line 169 struct _IO_FILE *stdout; // c::tab_frw_01234567 // file src/fdctref.c line 167 static signed short int tab_frw_01234567[256l]; // c::tab_frw_01234567 // file src/fdctref.c line 167 static signed short int tab_frw_01234567[256l] = { (signed short int)16384, (signed short int)16384, (signed short int)21407, (signed short int)-8867, (signed short int)16384, (signed short int)-16384, (signed short int)8867, (signed short int)21407, (signed short int)16384, (signed short int)16384, (signed short int)8867, (signed short int)-21407, (signed short int)-16384, (signed short int)16384, (signed short int)-21407, (signed short int)-8867, (signed short int)22725, (signed short int)12873, (signed short int)19266, (signed short int)-22725, (signed short int)12873, (signed short int)4520, (signed short int)4520, (signed short int)19266, (signed short int)19266, (signed short int)4520, (signed short int)-4520, (signed short int)-12873, (signed short int)-22725, (signed short int)19266, (signed short int)-12873, (signed short int)-22725, (signed short int)22725, (signed short int)22725, (signed short int)29692, (signed short int)-12299, (signed short int)22725, (signed short int)-22725, (signed short int)12299, (signed short int)29692, (signed short int)22725, (signed short int)22725, (signed short int)12299, (signed short int)-29692, (signed short int)-22725, (signed short int)22725, (signed short int)-29692, (signed short int)-12299, (signed short int)31521, (signed short int)17855, (signed short int)26722, (signed short int)-31521, (signed short int)17855, (signed short int)6270, (signed short int)6270, (signed short int)26722, (signed short int)26722, (signed short int)6270, (signed short int)-6270, (signed short int)-17855, (signed short int)-31521, (signed short int)26722, (signed short int)-17855, (signed short int)-31521, (signed short int)21407, (signed short int)21407, (signed short int)27969, (signed short int)-11585, (signed short int)21407, (signed short int)-21407, (signed short int)11585, (signed short int)27969, (signed short int)21407, (signed short int)21407, (signed short int)11585, (signed short int)-27969, (signed short int)-21407, (signed short int)21407, (signed short int)-27969, (signed short int)-11585, (signed short int)29692, (signed short int)16819, (signed short int)25172, (signed short int)-29692, (signed short int)16819, (signed short int)5906, (signed short int)5906, (signed short int)25172, (signed short int)25172, (signed short int)5906, (signed short int)-5906, (signed short int)-16819, (signed short int)-29692, (signed short int)25172, (signed short int)-16819, (signed short int)-29692, (signed short int)19266, (signed short int)19266, (signed short int)25172, (signed short int)-10426, (signed short int)19266, (signed short int)-19266, (signed short int)10426, (signed short int)25172, (signed short int)19266, (signed short int)19266, (signed short int)10426, (signed short int)-25172, (signed short int)-19266, (signed short int)19266, (signed short int)-25172, (signed short int)-10426, (signed short int)26722, (signed short int)15137, (signed short int)22654, (signed short int)-26722, (signed short int)15137, (signed short int)5315, (signed short int)5315, (signed short int)22654, (signed short int)22654, (signed short int)5315, (signed short int)-5315, (signed short int)-15137, (signed short int)-26722, (signed short int)22654, (signed short int)-15137, (signed short int)-26722, (signed short int)16384, (signed short int)16384, (signed short int)21407, (signed short int)-8867, (signed short int)16384, (signed short int)-16384, (signed short int)8867, (signed short int)21407, (signed short int)16384, (signed short int)16384, (signed short int)8867, (signed short int)-21407, (signed short int)-16384, (signed short int)16384, (signed short int)-21407, (signed short int)-8867, (signed short int)22725, (signed short int)12873, (signed short int)19266, (signed short int)-22725, (signed short int)12873, (signed short int)4520, (signed short int)4520, (signed short int)19266, (signed short int)19266, (signed short int)4520, (signed short int)-4520, (signed short int)-12873, (signed short int)-22725, (signed short int)19266, (signed short int)-12873, (signed short int)-22725, (signed short int)19266, (signed short int)19266, (signed short int)25172, (signed short int)-10426, (signed short int)19266, (signed short int)-19266, (signed short int)10426, (signed short int)25172, (signed short int)19266, (signed short int)19266, (signed short int)10426, (signed short int)-25172, (signed short int)-19266, (signed short int)19266, (signed short int)-25172, (signed short int)-10426, (signed short int)26722, (signed short int)15137, (signed short int)22654, (signed short int)-26722, (signed short int)15137, (signed short int)5315, (signed short int)5315, (signed short int)22654, (signed short int)22654, (signed short int)5315, (signed short int)-5315, (signed short int)-15137, (signed short int)-26722, (signed short int)22654, (signed short int)-15137, (signed short int)-26722, (signed short int)21407, (signed short int)21407, (signed short int)27969, (signed short int)-11585, (signed short int)21407, (signed short int)-21407, (signed short int)11585, (signed short int)27969, (signed short int)21407, (signed short int)21407, (signed short int)11585, (signed short int)-27969, (signed short int)-21407, (signed short int)21407, (signed short int)-27969, (signed short int)-11585, (signed short int)29692, (signed short int)16819, (signed short int)25172, (signed short int)-29692, (signed short int)16819, (signed short int)5906, (signed short int)5906, (signed short int)25172, (signed short int)25172, (signed short int)5906, (signed short int)-5906, (signed short int)-16819, (signed short int)-29692, (signed short int)25172, (signed short int)-16819, (signed short int)-29692, (signed short int)22725, (signed short int)22725, (signed short int)29692, (signed short int)-12299, (signed short int)22725, (signed short int)-22725, (signed short int)12299, (signed short int)29692, (signed short int)22725, (signed short int)22725, (signed short int)12299, (signed short int)-29692, (signed short int)-22725, (signed short int)22725, (signed short int)-29692, (signed short int)-12299, (signed short int)31521, (signed short int)17855, (signed short int)26722, (signed short int)-31521, (signed short int)17855, (signed short int)6270, (signed short int)6270, (signed short int)26722, (signed short int)26722, (signed short int)6270, (signed short int)-6270, (signed short int)-17855, (signed short int)-31521, (signed short int)26722, (signed short int)-17855, (signed short int)-31521 }; // c::tab_i_04 // file src/idct.c line 566 signed short int tab_i_04[32l]; // c::tab_i_04 // file src/idct.c line 566 signed short int tab_i_04[32l] = { (signed short int)16384, (signed short int)21407, (signed short int)16384, (signed short int)8867, (signed short int)16384, (signed short int)8867, (signed short int)-16384, (signed short int)-21407, (signed short int)16384, (signed short int)-8867, (signed short int)-16384, (signed short int)21407, (signed short int)16384, (signed short int)-21407, (signed short int)16384, (signed short int)-8867, (signed short int)22725, (signed short int)19266, (signed short int)12873, (signed short int)4520, (signed short int)19266, (signed short int)-4520, (signed short int)-22725, (signed short int)-12873, (signed short int)12873, (signed short int)-22725, (signed short int)4520, (signed short int)19266, (signed short int)4520, (signed short int)-12873, (signed short int)19266, (signed short int)-22725 }; // c::tab_i_17 // file src/idct.c line 580 signed short int tab_i_17[32l]; // c::tab_i_17 // file src/idct.c line 580 signed short int tab_i_17[32l] = { (signed short int)22725, (signed short int)29692, (signed short int)22725, (signed short int)12299, (signed short int)22725, (signed short int)12299, (signed short int)-22725, (signed short int)-29692, (signed short int)22725, (signed short int)-12299, (signed short int)-22725, (signed short int)29692, (signed short int)22725, (signed short int)-29692, (signed short int)22725, (signed short int)-12299, (signed short int)31521, (signed short int)26722, (signed short int)17855, (signed short int)6270, (signed short int)26722, (signed short int)-6270, (signed short int)-31521, (signed short int)-17855, (signed short int)17855, (signed short int)-31521, (signed short int)6270, (signed short int)26722, (signed short int)6270, (signed short int)-17855, (signed short int)26722, (signed short int)-31521 }; // c::tab_i_26 // file src/idct.c line 594 signed short int tab_i_26[32l]; // c::tab_i_26 // file src/idct.c line 594 signed short int tab_i_26[32l] = { (signed short int)21407, (signed short int)27969, (signed short int)21407, (signed short int)11585, (signed short int)21407, (signed short int)11585, (signed short int)-21407, (signed short int)-27969, (signed short int)21407, (signed short int)-11585, (signed short int)-21407, (signed short int)27969, (signed short int)21407, (signed short int)-27969, (signed short int)21407, (signed short int)-11585, (signed short int)29692, (signed short int)25172, (signed short int)16819, (signed short int)5906, (signed short int)25172, (signed short int)-5906, (signed short int)-29692, (signed short int)-16819, (signed short int)16819, (signed short int)-29692, (signed short int)5906, (signed short int)25172, (signed short int)5906, (signed short int)-16819, (signed short int)25172, (signed short int)-29692 }; // c::tab_i_35 // file src/idct.c line 608 signed short int tab_i_35[32l]; // c::tab_i_35 // file src/idct.c line 608 signed short int tab_i_35[32l] = { (signed short int)19266, (signed short int)25172, (signed short int)19266, (signed short int)10426, (signed short int)19266, (signed short int)10426, (signed short int)-19266, (signed short int)-25172, (signed short int)19266, (signed short int)-10426, (signed short int)-19266, (signed short int)25172, (signed short int)19266, (signed short int)-25172, (signed short int)19266, (signed short int)-10426, (signed short int)26722, (signed short int)22654, (signed short int)15137, (signed short int)5315, (signed short int)22654, (signed short int)-5315, (signed short int)-26722, (signed short int)-15137, (signed short int)15137, (signed short int)-26722, (signed short int)5315, (signed short int)22654, (signed short int)5315, (signed short int)-15137, (signed short int)22654, (signed short int)-26722 }; // c::tc0 // file src/global.h line 378 signed int tc0; // c::temp_ref // file src/global.h line 418 signed int temp_ref; // c::thread_data_array // file src/putseq.c line 128 struct thread_data thread_data_array[2l]; // c::topfirst // file src/global.h line 429 signed int topfirst; // c::tplorg // file src/global.h line 362 char tplorg[256l]; // c::tplref // file src/global.h line 362 char tplref[256l]; // c::transfer_characteristics // file src/global.h line 411 signed int transfer_characteristics; // c::vbv_buffer_size // file src/global.h line 393 signed int vbv_buffer_size; // c::vbv_delay // file src/global.h line 420 signed int vbv_delay; // c::version // file src/global.h line 250 char version[27l]; // c::version // file src/global.h line 250 char version[27l] = { 109, 112, 101, 103, 50, 101, 110, 99, 111, 100, 101, 32, 86, 49, 46, 50, 44, 32, 57, 54, 47, 48, 55, 47, 49, 57, 0 }; // c::vertical_size // file src/global.h line 384 signed int vertical_size; // c::video_format // file src/global.h line 409 signed int video_format; // c::width // file src/global.h line 385 signed int width; // c::width2 // file src/global.h line 388 signed int width2; // c::zig_zag_scan // file src/global.h line 263 unsigned char zig_zag_scan[64l]; // c::zig_zag_scan // file src/global.h line 263 unsigned char zig_zag_scan[64l] = { (unsigned char)0, (unsigned char)1, (unsigned char)8, (unsigned char)16, (unsigned char)9, (unsigned char)2, (unsigned char)3, (unsigned char)10, (unsigned char)17, (unsigned char)24, (unsigned char)32, (unsigned char)25, (unsigned char)18, (unsigned char)11, (unsigned char)4, (unsigned char)5, (unsigned char)12, (unsigned char)19, (unsigned char)26, (unsigned char)33, (unsigned char)40, (unsigned char)48, (unsigned char)41, (unsigned char)34, (unsigned char)27, (unsigned char)20, (unsigned char)13, (unsigned char)6, (unsigned char)7, (unsigned char)14, (unsigned char)21, (unsigned char)28, (unsigned char)35, (unsigned char)42, (unsigned char)49, (unsigned char)56, (unsigned char)57, (unsigned char)50, (unsigned char)43, (unsigned char)36, (unsigned char)29, (unsigned char)22, (unsigned char)15, (unsigned char)23, (unsigned char)30, (unsigned char)37, (unsigned char)44, (unsigned char)51, (unsigned char)58, (unsigned char)59, (unsigned char)52, (unsigned char)45, (unsigned char)38, (unsigned char)31, (unsigned char)39, (unsigned char)46, (unsigned char)53, (unsigned char)60, (unsigned char)61, (unsigned char)54, (unsigned char)47, (unsigned char)55, (unsigned char)62, (unsigned char)63 }; // c::__signbit // file /usr/include/x86_64-linux-gnu/bits/mathinline.h line 139 signed int __signbit(double __x) { signed int __m; asm("pmovmskb %1, %0"); return (signed int)((__m & 128) != 0); } // c::__signbitf // file /usr/include/x86_64-linux-gnu/bits/mathinline.h line 127 signed int __signbitf(float __x) { signed int __m; asm("pmovmskb %1, %0"); return (signed int)((__m & 8) != 0); } // c::__signbitl // file /usr/include/x86_64-linux-gnu/bits/mathinline.h line 151 signed int __signbitl(long double __x) { union anon$2 __u = (union anon$2){ .__l=__x }; return (signed int)((__u.__i[(signed long int)2] & 32768) != 0); } // c::__strcspn_c1 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 970 unsigned long int __strcspn_c1(const char *__s, signed int __reject) { unsigned long int __result = (unsigned long int)0; while(!((signed int)__s[(signed long int)__result] == 0)) { if((signed int)__s[(signed long int)__result] == __reject) goto __CPROVER_DUMP_L2; __result = __result + 1ul; __result; } __CPROVER_DUMP_L2: ; return __result; } // c::__strcspn_c2 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 981 unsigned long int __strcspn_c2(const char *__s, signed int __reject1, signed int __reject2) { unsigned long int __result = (unsigned long int)0; while(!((signed int)__s[(signed long int)__result] == 0)) { if((signed int)__s[(signed long int)__result] == __reject1) goto __CPROVER_DUMP_L2; if((signed int)__s[(signed long int)__result] == __reject2) goto __CPROVER_DUMP_L2; __result = __result + 1ul; __result; } __CPROVER_DUMP_L2: ; return __result; } // c::__strcspn_c3 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 993 unsigned long int __strcspn_c3(const char *__s, signed int __reject1, signed int __reject2, signed int __reject3) { unsigned long int __result = (unsigned long int)0; while(!((signed int)__s[(signed long int)__result] == 0)) { if((signed int)__s[(signed long int)__result] == __reject1) goto __CPROVER_DUMP_L2; if((signed int)__s[(signed long int)__result] == __reject2) goto __CPROVER_DUMP_L2; if((signed int)__s[(signed long int)__result] == __reject3) goto __CPROVER_DUMP_L2; __result = __result + 1ul; __result; } __CPROVER_DUMP_L2: ; return __result; } // c::__strpbrk_c2 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1123 char * __strpbrk_c2(const char *__s, signed int __accept1, signed int __accept2) { while(!((signed int)*__s == 0)) { if((signed int)*__s == __accept1) goto __CPROVER_DUMP_L2; if((signed int)*__s == __accept2) goto __CPROVER_DUMP_L2; __s = __s + 1l; __s; } __CPROVER_DUMP_L2: ; return (signed int)*__s == 0 ? (char *)NULL : (char *)(unsigned long int)__s; } // c::__strpbrk_c3 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1134 char * __strpbrk_c3(const char *__s, signed int __accept1, signed int __accept2, signed int __accept3) { while(!((signed int)*__s == 0)) { if((signed int)*__s == __accept1) goto __CPROVER_DUMP_L2; if((signed int)*__s == __accept2) goto __CPROVER_DUMP_L2; if((signed int)*__s == __accept3) goto __CPROVER_DUMP_L2; __s = __s + 1l; __s; } __CPROVER_DUMP_L2: ; return (signed int)*__s == 0 ? (char *)NULL : (char *)(unsigned long int)__s; } // c::__strsep_1c // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1222 char * __strsep_1c(char **__s, char __reject) { char *__retval = *__s; char *return_value___builtin_strchr$2; char *tmp_post$1; if(!(__retval == ((char *)NULL))) { return_value___builtin_strchr$2=__builtin_strchr(__retval, (signed int)__reject); *__s = return_value___builtin_strchr$2; if(!(*__s == ((char *)NULL))) { tmp_post$1 = *__s; *__s = *__s + 1l; *tmp_post$1 = (char)0; } } return __retval; } // c::__strsep_2c // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1232 char * __strsep_2c(char **__s, char __reject1, char __reject2) { char *__retval = *__s; _Bool tmp_if_expr$2; char *tmp_post$1; if(!(__retval == ((char *)NULL))) { char *__cp = __retval; while(TRUE) { if(!((signed int)*__cp == 0)) goto __CPROVER_DUMP_L2; __cp = (char *)NULL; goto __CPROVER_DUMP_L6; __CPROVER_DUMP_L2: ; if(*__cp == __reject1) tmp_if_expr$2 = TRUE; else tmp_if_expr$2 = *__cp == __reject2 ? TRUE : FALSE; if(!tmp_if_expr$2) goto __CPROVER_DUMP_L5; tmp_post$1 = __cp; __cp = __cp + 1l; *tmp_post$1 = (char)0; goto __CPROVER_DUMP_L6; __CPROVER_DUMP_L5: ; __cp = __cp + 1l; __cp; } __CPROVER_DUMP_L6: ; *__s = __cp; } return __retval; } // c::__strsep_3c // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1260 char * __strsep_3c(char **__s, char __reject1, char __reject2, char __reject3) { char *__retval = *__s; _Bool tmp_if_expr$2; _Bool tmp_if_expr$3; char *tmp_post$1; if(!(__retval == ((char *)NULL))) { char *__cp = __retval; while(TRUE) { if(!((signed int)*__cp == 0)) goto __CPROVER_DUMP_L2; __cp = (char *)NULL; goto __CPROVER_DUMP_L8; __CPROVER_DUMP_L2: ; if(*__cp == __reject1) tmp_if_expr$2 = TRUE; else tmp_if_expr$2 = *__cp == __reject2 ? TRUE : FALSE; if(tmp_if_expr$2) tmp_if_expr$3 = TRUE; else tmp_if_expr$3 = *__cp == __reject3 ? TRUE : FALSE; if(!tmp_if_expr$3) goto __CPROVER_DUMP_L7; tmp_post$1 = __cp; __cp = __cp + 1l; *tmp_post$1 = (char)0; goto __CPROVER_DUMP_L8; __CPROVER_DUMP_L7: ; __cp = __cp + 1l; __cp; } __CPROVER_DUMP_L8: ; *__s = __cp; } return __retval; } // c::__strspn_c1 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1046 unsigned long int __strspn_c1(const char *__s, signed int __accept) { unsigned long int __result = (unsigned long int)0; while((signed int)__s[(signed long int)__result] == __accept) { __result = __result + 1ul; __result; } return __result; } // c::__strspn_c2 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1058 unsigned long int __strspn_c2(const char *__s, signed int __accept1, signed int __accept2) { unsigned long int __result = (unsigned long int)0; while(TRUE) { if((signed int)__s[(signed long int)__result] == __accept1) goto __CPROVER_DUMP_L2; if((signed int)__s[(signed long int)__result] == __accept2) goto __CPROVER_DUMP_L2; goto __CPROVER_DUMP_L3; __CPROVER_DUMP_L2: ; __result = __result + 1ul; __result; } __CPROVER_DUMP_L3: ; return __result; } // c::__strspn_c3 // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1070 unsigned long int __strspn_c3(const char *__s, signed int __accept1, signed int __accept2, signed int __accept3) { unsigned long int __result = (unsigned long int)0; while(TRUE) { if((signed int)__s[(signed long int)__result] == __accept1) goto __CPROVER_DUMP_L2; if((signed int)__s[(signed long int)__result] == __accept2) goto __CPROVER_DUMP_L2; if((signed int)__s[(signed long int)__result] == __accept3) goto __CPROVER_DUMP_L2; goto __CPROVER_DUMP_L3; __CPROVER_DUMP_L2: ; __result = __result + 1ul; __result; } __CPROVER_DUMP_L3: ; return __result; } // c::__strtok_r_1c // file /usr/include/x86_64-linux-gnu/bits/string2.h line 1172 char * __strtok_r_1c(char *__s, char __sep, char **__nextp) { char *__result; if(__s == ((char *)NULL)) __s = *__nextp; while(*__s == __sep) { __s = __s + 1l; __s; } __result = (char *)NULL; char *tmp_post$1; char *tmp_post$2; if(!((signed int)*__s == 0)) { tmp_post$1 = __s; __s = __s + 1l; __result = tmp_post$1; while(!((signed int)*__s == 0)) { tmp_post$2 = __s; __s = __s + 1l; if(!(*tmp_post$2 == __sep)) goto __CPROVER_DUMP_L4; __s[(signed long int)-1] = (char)0; goto __CPROVER_DUMP_L5; __CPROVER_DUMP_L4: ; } } __CPROVER_DUMP_L5: ; *__nextp = __s; return __result; } // c::add_pred // file src/transfrm.c line 384 static void add_pred(unsigned char *pred, unsigned char *cur, signed int lx, signed short int *blk) { signed int i; signed int j = 0; while(j < 8) { i = 0; while(i < 8) { cur[(signed long int)i] = clp[(signed long int)((signed int)blk[(signed long int)i] + (signed int)pred[(signed long int)i])]; i = i + 1; } blk = blk + (signed long int)8; cur = cur + (signed long int)lx; pred = pred + (signed long int)lx; j = j + 1; } } // c::align_bits // file src/global.h line 140 void align_bits(signed int id) { if(!(out_cnt[(signed long int)id] == 8)) put_bits(0, out_cnt[(signed long int)id], id); } // c::alignbits // file src/global.h line 135 void alignbits() { if(!(outcnt == 8)) putbits(0, outcnt); } // c::atof // file /usr/include/x86_64-linux-gnu/bits/stdlib-float.h line 26 double atof(const char *__nptr) { double return_value_strtod$1; return_value_strtod$1=strtod(__nptr, ((char **)NULL)); return return_value_strtod$1; } // c::atoi // file /usr/include/stdlib.h line 278 signed int atoi(const char *__nptr) { signed long int return_value_strtol$1; return_value_strtol$1=strtol(__nptr, ((char **)NULL), 10); return (signed int)return_value_strtol$1; } // c::atol // file /usr/include/stdlib.h line 283 signed long int atol(const char *__nptr) { signed long int return_value_strtol$1; return_value_strtol$1=strtol(__nptr, ((char **)NULL), 10); return return_value_strtol$1; } // c::atoll // file /usr/include/stdlib.h line 292 signed long long int atoll(const char *__nptr) { signed long long int return_value_strtoll$1; return_value_strtoll$1=strtoll(__nptr, ((char **)NULL), 10); return return_value_strtoll$1; } // c::bcopy // file /usr/include/x86_64-linux-gnu/bits/string3.h line 89 void bcopy(const void *__src, void *__dest, unsigned long int __len) { __builtin___memmove_chk(__dest, __src, (unsigned int)__len, 18446744073709551615ul); } // c::bdist1 // file src/motion.c line 2237 static signed int bdist1(unsigned char *pf, unsigned char *pb, unsigned char *p2, signed int lx, signed int hxf, signed int hyf, signed int hxb, signed int hyb, signed int h) { unsigned char *pfa; unsigned char *pfb; unsigned char *pfc; unsigned char *pba; unsigned char *pbb; unsigned char *pbc; signed int i; signed int j; signed int s; signed int v; signed int sa = 0; pfa = pf + (signed long int)hxf; pfb = pf + (signed long int)(lx * hyf); pfc = pfb + (signed long int)hxf; pba = pb + (signed long int)hxb; pbb = pb + (signed long int)(lx * hyb); pbc = pbb + (signed long int)hxb; s = 0; j = 0; unsigned char *tmp_post$1; unsigned char *tmp_post$2; unsigned char *tmp_post$3; unsigned char *tmp_post$4; unsigned char *tmp_post$5; unsigned char *tmp_post$6; unsigned char *tmp_post$7; unsigned char *tmp_post$8; unsigned char *tmp_post$9; while(!(j >= h)) { i = 0; while(i < 16) { tmp_post$1 = pf; pf = pf + 1l; tmp_post$2 = pfa; pfa = pfa + 1l; tmp_post$3 = pfb; pfb = pfb + 1l; tmp_post$4 = pfc; pfc = pfc + 1l; tmp_post$5 = pb; pb = pb + 1l; tmp_post$6 = pba; pba = pba + 1l; tmp_post$7 = pbb; pbb = pbb + 1l; tmp_post$8 = pbc; pbc = pbc + 1l; tmp_post$9 = p2; p2 = p2 + 1l; v = (signed int)((((unsigned int)((signed int)*tmp_post$1 + (signed int)*tmp_post$2 + (signed int)*tmp_post$3 + (signed int)*tmp_post$4 + 2) >> 2) + ((unsigned int)((signed int)*tmp_post$5 + (signed int)*tmp_post$6 + (signed int)*tmp_post$7 + (signed int)*tmp_post$8 + 2) >> 2) + (unsigned int)1 >> 1) - (unsigned int)*tmp_post$9); if(v >= 0) s = s + v; else s = s - v; i = i + 1; } p2 = p2 + (signed long int)(lx - 16); pf = pf + (signed long int)(lx - 16); pfa = pfa + (signed long int)(lx - 16); pfb = pfb + (signed long int)(lx - 16); pfc = pfc + (signed long int)(lx - 16); pb = pb + (signed long int)(lx - 16); pba = pba + (signed long int)(lx - 16); pbb = pbb + (signed long int)(lx - 16); pbc = pbc + (signed long int)(lx - 16); j = j + 1; } return s; } // c::bdist2 // file src/motion.c line 2358 static signed int bdist2(unsigned char *pf, unsigned char *pb, unsigned char *p2, signed int lx, signed int hxf, signed int hyf, signed int hxb, signed int hyb, signed int h) { unsigned char *pfa; unsigned char *pfb; unsigned char *pfc; unsigned char *pba; unsigned char *pbb; unsigned char *pbc; signed int i; signed int j; signed int s; signed int v; signed int sa = 0; pfa = pf + (signed long int)hxf; pfb = pf + (signed long int)(lx * hyf); pfc = pfb + (signed long int)hxf; pba = pb + (signed long int)hxb; pbb = pb + (signed long int)(lx * hyb); pbc = pbb + (signed long int)hxb; s = 0; j = 0; unsigned char *tmp_post$1; unsigned char *tmp_post$2; unsigned char *tmp_post$3; unsigned char *tmp_post$4; unsigned char *tmp_post$5; unsigned char *tmp_post$6; unsigned char *tmp_post$7; unsigned char *tmp_post$8; unsigned char *tmp_post$9; while(!(j >= h)) { i = 0; while(i < 16) { tmp_post$1 = pf; pf = pf + 1l; tmp_post$2 = pfa; pfa = pfa + 1l; tmp_post$3 = pfb; pfb = pfb + 1l; tmp_post$4 = pfc; pfc = pfc + 1l; tmp_post$5 = pb; pb = pb + 1l; tmp_post$6 = pba; pba = pba + 1l; tmp_post$7 = pbb; pbb = pbb + 1l; tmp_post$8 = pbc; pbc = pbc + 1l; tmp_post$9 = p2; p2 = p2 + 1l; v = (signed int)((((unsigned int)((signed int)*tmp_post$1 + (signed int)*tmp_post$2 + (signed int)*tmp_post$3 + (signed int)*tmp_post$4 + 2) >> 2) + ((unsigned int)((signed int)*tmp_post$5 + (signed int)*tmp_post$6 + (signed int)*tmp_post$7 + (signed int)*tmp_post$8 + 2) >> 2) + (unsigned int)1 >> 1) - (unsigned int)*tmp_post$9); s = s + v * v; i = i + 1; } p2 = p2 + (signed long int)(lx - 16); pf = pf + (signed long int)(lx - 16); pfa = pfa + (signed long int)(lx - 16); pfb = pfb + (signed long int)(lx - 16); pfc = pfc + (signed long int)(lx - 16); pb = pb + (signed long int)(lx - 16); pba = pba + (signed long int)(lx - 16); pbb = pbb + (signed long int)(lx - 16); pbc = pbc + (signed long int)(lx - 16); j = j + 1; } return s; } // c::bitcount // file src/putbits.c line 233 signed int bitcount() { return 8 * bytecnt + (8 - outcnt); } // c::border_extend // file src/readpic.c line 308 static void border_extend(unsigned char *frame, signed int w1, signed int h1, signed int w2, signed int h2) { signed int i; signed int j; unsigned char *fp; j = 0; while(!(j >= h1)) { fp = frame + (signed long int)(j * w2); i = w1; while(!(i >= w2)) { fp[(signed long int)i] = fp[(signed long int)(i - 1)]; i = i + 1; } j = j + 1; } j = h1; while(!(j >= h2)) { fp = frame + (signed long int)(j * w2); i = 0; while(!(i >= w2)) { fp[(signed long int)i] = fp[(signed long int)(i - w2)]; i = i + 1; } j = j + 1; } } // c::bzero // file /usr/include/x86_64-linux-gnu/bits/string3.h line 95 void bzero(void *__dest, unsigned long int __len) { __builtin___memset_chk(__dest, 0, (unsigned int)__len, 18446744073709551615ul); } // c::calcSNR // file src/stats.c line 91 void calcSNR(unsigned char **org, unsigned char **rec) { signed int w; signed int h; signed int offs; double v; double e; w = horizontal_size; h = pict_struct == 3 ? vertical_size : vertical_size >> 1; offs = pict_struct == 2 ? width : 0; calcSNR1(org[(signed long int)0] + (signed long int)offs, rec[(signed long int)0] + (signed long int)offs, width2, w, h, &v, &e); double return_value_log10$1; return_value_log10$1=log10((255.000000 * 255.000000) / e); double return_value_log10$2; return_value_log10$2=log10(v / e); fprintf(statfile, "Y: variance=%4.4g, MSE=%3.3g (%3.3g dB), SNR=%3.3g dB\n", v, e, 10.000000 * return_value_log10$1, 10.000000 * return_value_log10$2); if(!(chroma_format == 3)) { w = w >> 1; offs = offs >> 1; } if(chroma_format == 1) h = h >> 1; calcSNR1(org[(signed long int)1] + (signed long int)offs, rec[(signed long int)1] + (signed long int)offs, chrom_width2, w, h, &v, &e); double return_value_log10$3; return_value_log10$3=log10((255.000000 * 255.000000) / e); double return_value_log10$4; return_value_log10$4=log10(v / e); fprintf(statfile, "U: variance=%4.4g, MSE=%3.3g (%3.3g dB), SNR=%3.3g dB\n", v, e, 10.000000 * return_value_log10$3, 10.000000 * return_value_log10$4); calcSNR1(org[(signed long int)2] + (signed long int)offs, rec[(signed long int)2] + (signed long int)offs, chrom_width2, w, h, &v, &e); double return_value_log10$5; return_value_log10$5=log10((255.000000 * 255.000000) / e); double return_value_log10$6; return_value_log10$6=log10(v / e); fprintf(statfile, "V: variance=%4.4g, MSE=%3.3g (%3.3g dB), SNR=%3.3g dB\n", v, e, 10.000000 * return_value_log10$5, 10.000000 * return_value_log10$6); } // c::calcSNR1 // file src/stats.c line 124 static void calcSNR1(unsigned char *org, unsigned char *rec, signed int lx, signed int w, signed int h, double *pv, double *pe) { signed int i; signed int j; double v1; double s1; double s2; double e2 = 0.000000; s2 = e2; s1 = s2; j = 0; while(!(j >= h)) { i = 0; while(!(i >= w)) { v1 = (double)org[(signed long int)i]; s1 = s1 + v1; s2 = s2 + v1 * v1; v1 = v1 - (double)rec[(signed long int)i]; e2 = e2 + v1 * v1; i = i + 1; } org = org + (signed long int)lx; rec = rec + (signed long int)lx; j = j + 1; } s1 = s1 / (double)(w * h); s2 = s2 / (double)(w * h); e2 = e2 / (double)(w * h); if(IEEE_FLOAT_EQUAL(e2, 0.000000)) e2 = 1.000000e-5; *pv = s2 - s1 * s1; *pe = e2; } // c::calc_DMV // file src/predict.c line 575 static void calc_DMV(signed int (*DMV)[2l], signed int *dmvector, signed int mvx, signed int mvy) { if(pict_struct == 3) { if(!(topfirst == 0)) { DMV[(signed long int)0][(signed long int)0] = (mvx + (signed int)(mvx > 0) >> 1) + dmvector[(signed long int)0]; DMV[(signed long int)0][(signed long int)1] = ((mvy + (signed int)(mvy > 0) >> 1) + dmvector[(signed long int)1]) - 1; DMV[(signed long int)1][(signed long int)0] = (3 * mvx + (signed int)(mvx > 0) >> 1) + dmvector[(signed long int)0]; DMV[(signed long int)1][(signed long int)1] = (3 * mvy + (signed int)(mvy > 0) >> 1) + dmvector[(signed long int)1] + 1; } else { DMV[(signed long int)0][(signed long int)0] = (3 * mvx + (signed int)(mvx > 0) >> 1) + dmvector[(signed long int)0]; DMV[(signed long int)0][(signed long int)1] = ((3 * mvy + (signed int)(mvy > 0) >> 1) + dmvector[(signed long int)1]) - 1; DMV[(signed long int)1][(signed long int)0] = (mvx + (signed int)(mvx > 0) >> 1) + dmvector[(signed long int)0]; DMV[(signed long int)1][(signed long int)1] = (mvy + (signed int)(mvy > 0) >> 1) + dmvector[(signed long int)1] + 1; } } else { DMV[(signed long int)0][(signed long int)0] = (mvx + (signed int)(mvx > 0) >> 1) + dmvector[(signed long int)0]; DMV[(signed long int)0][(signed long int)1] = (mvy + (signed int)(mvy > 0) >> 1) + dmvector[(signed long int)1]; if(pict_struct == 1) DMV[(signed long int)0][(signed long int)1] = DMV[(signed long int)0][(signed long int)1] - 1; else DMV[(signed long int)0][(signed long int)1] = DMV[(signed long int)0][(signed long int)1] + 1; } } // c::calc_actj // file src/ratectl.c line 192 static void calc_actj(unsigned char *frame) { signed int i; signed int j; signed int k; unsigned char *p; double actj; double var; k = 0; j = 0; signed int tmp_post$1; while(!(j >= height2)) { i = 0; while(!(i >= width)) { p = frame + (signed long int)(pict_struct == 2 ? width : 0) + (signed long int)i + (signed long int)(width2 * j); actj=var_sblk(p, width2); var=var_sblk(p + (signed long int)8, width2); if(var < actj) actj = var; var=var_sblk(p + (signed long int)(8 * width2), width2); if(var < actj) actj = var; var=var_sblk(p + (signed long int)(8 * width2) + (signed long int)8, width2); if(var < actj) actj = var; if(fieldpic == 0) { if(prog_seq == 0) { var=var_sblk(p, width << 1); if(var < actj) actj = var; var=var_sblk(p + (signed long int)8, width << 1); if(var < actj) actj = var; var=var_sblk(p + (signed long int)width, width << 1); if(var < actj) actj = var; var=var_sblk(p + (signed long int)width + (signed long int)8, width << 1); if(var < actj) actj = var; } } actj = actj + 1.000000; tmp_post$1 = k; k = k + 1; (mbinfo + (signed long int)tmp_post$1)->act = actj; i = i + 16; } j = j + 16; } } // c::calc_vbv_delay // file src/global.h line 219 void calc_vbv_delay(void) { static double decoding_time; static double next_ip_delay; double picture_delay; if(pict_type == 3) { if(!(prog_seq == 0)) { if(repeatfirst == 0) picture_delay = 90000.000000 / frame_rate; else if(topfirst == 0) picture_delay = (90000.000000 * 2.000000) / frame_rate; else picture_delay = (90000.000000 * 3.000000) / frame_rate; } else if(!(fieldpic == 0)) picture_delay = 90000.000000 / (2.000000 * frame_rate); else if(repeatfirst == 0) picture_delay = (90000.000000 * 2.000000) / (2.000000 * frame_rate); else picture_delay = (90000.000000 * 3.000000) / (2.000000 * frame_rate); } else { if(!(fieldpic == 0)) { if(topfirst == (signed int)(pict_struct == 1)) picture_delay = 90000.000000 / (2.000000 * frame_rate); else picture_delay = next_ip_delay - 90000.000000 / (2.000000 * frame_rate); } else picture_delay = next_ip_delay; if(!(fieldpic == 0)) { if(!(topfirst == (signed int)(pict_struct == 1))) goto __CPROVER_DUMP_L13; } else { __CPROVER_DUMP_L13: ; if(!(prog_seq == 0)) { if(repeatfirst == 0) next_ip_delay = 90000.000000 / frame_rate; else if(topfirst == 0) next_ip_delay = (90000.000000 * 2.000000) / frame_rate; else next_ip_delay = (90000.000000 * 3.000000) / frame_rate; } else if(!(fieldpic == 0)) next_ip_delay = 90000.000000 / (2.000000 * frame_rate); else if(repeatfirst == 0) next_ip_delay = (90000.000000 * 2.000000) / (2.000000 * frame_rate); else next_ip_delay = (90000.000000 * 3.000000) / (2.000000 * frame_rate); } } if(IEEE_FLOAT_EQUAL(decoding_time, 0.000000)) { picture_delay = ((double)((vbv_buffer_size * 16384 * 7) / 8) * 90000.000000) / bit_rate; if(!(fieldpic == 0)) next_ip_delay = (double)(signed int)(90000.000000 / frame_rate + 5.000000e-1); } if(low_delay == 0) { if(decoding_time < ((double)bitcnt_EOP * 90000.000000) / bit_rate) { if(quiet == 0) fprintf(stderr, "vbv_delay underflow! (decoding_time=%.1f, t_EOP=%.1f\n)", decoding_time, ((double)bitcnt_EOP * 90000.000000) / bit_rate); } } decoding_time = decoding_time + picture_delay; signed int return_value_bitcount$1; return_value_bitcount$1=bitcount(); vbv_delay = (signed int)(decoding_time - ((double)return_value_bitcount$1 * 90000.000000) / bit_rate); if(decoding_time + -(((double)bitcnt_EOP * 90000.000000) / bit_rate) > ((double)(16384 * vbv_buffer_size) * 90000.000000) / bit_rate) { if(quiet == 0) fprintf(stderr, "vbv_delay overflow!\n"); } if(vbv_delay < 0) { if(quiet == 0) fprintf(stderr, "vbv_delay underflow: %d\n", vbv_delay); vbv_delay = 0; } if(vbv_delay > 65535) { if(quiet == 0) fprintf(stderr, "vbv_delay overflow: %d\n", vbv_delay); vbv_delay = 65535; } } // c::clearblock // file src/predict.c line 617 static void clearblock(unsigned char **cur, signed int i0, signed int j0) { signed int i; signed int j; signed int w; signed int h; unsigned char *p = cur[(signed long int)0] + (signed long int)(pict_struct == 2 ? width : 0) + (signed long int)i0 + (signed long int)(width2 * j0); j = 0; while(j < 16) { i = 0; while(i < 16) { p[(signed long int)i] = (unsigned char)128; i = i + 1; } p = p + (signed long int)width2; j = j + 1; } h = 16; w = h; if(!(chroma_format == 3)) { i0 = i0 >> 1; w = w >> 1; } if(chroma_format == 1) { j0 = j0 >> 1; h = h >> 1; } p = cur[(signed long int)1] + (signed long int)(pict_struct == 2 ? chrom_width : 0) + (signed long int)i0 + (signed long int)(chrom_width2 * j0); j = 0; while(!(j >= h)) { i = 0; while(!(i >= w)) { p[(signed long int)i] = (unsigned char)128; i = i + 1; } p = p + (signed long int)chrom_width2; j = j + 1; } p = cur[(signed long int)2] + (signed long int)(pict_struct == 2 ? chrom_width : 0) + (signed long int)i0 + (signed long int)(chrom_width2 * j0); j = 0; while(!(j >= h)) { i = 0; while(!(i >= w)) { p[(signed long int)i] = (unsigned char)128; i = i + 1; } p = p + (signed long int)chrom_width2; j = j + 1; } } // c::conv422to420 // file src/readpic.c line 395 static void conv422to420(unsigned char *src, unsigned char *dst) { signed int w; signed int i; signed int j; signed int jm6; signed int jm5; signed int jm4; signed int jm3; signed int jm2; signed int jm1; signed int jp1; signed int jp2; signed int jp3; signed int jp4; signed int jp5; signed int jp6; w = width >> 1; if(!(prog_frame == 0)) { i = 0; while(!(i >= w)) { j = 0; while(!(j >= height)) { jm5 = j < 5 ? 0 : j - 5; jm4 = j < 4 ? 0 : j - 4; jm3 = j < 3 ? 0 : j - 3; jm2 = j < 2 ? 0 : j - 2; jm1 = j < 1 ? 0 : j - 1; jp1 = j < height - 1 ? j + 1 : height - 1; jp2 = j < height - 2 ? j + 2 : height - 1; jp3 = j < height - 3 ? j + 3 : height - 1; jp4 = j < height - 4 ? j + 4 : height - 1; jp5 = j < height - 5 ? j + 5 : height - 1; jp6 = j < height - 5 ? j + 6 : height - 1; dst[(signed long int)(w * (j >> 1))] = clp[(signed long int)((signed int)((((228 * ((signed int)src[(signed long int)(w * j)] + (signed int)src[(signed long int)(w * jp1)]) + 70 * ((signed int)src[(signed long int)(w * jm1)] + (signed int)src[(signed long int)(w * jp2)])) - 37 * ((signed int)src[(signed long int)(w * jm2)] + (signed int)src[(signed long int)(w * jp3)])) - 21 * ((signed int)src[(signed long int)(w * jm3)] + (signed int)src[(signed long int)(w * jp4)])) + 11 * ((signed int)src[(signed long int)(w * jm4)] + (signed int)src[(signed long int)(w * jp5)]) + 5 * ((signed int)src[(signed long int)(w * jm5)] + (signed int)src[(signed long int)(w * jp6)]) + 256) >> 9)]; j = j + 2; } src = src + 1l; dst = dst + 1l; i = i + 1; } } else { i = 0; while(!(i >= w)) { j = 0; while(!(j >= height)) { jm5 = j < 10 ? 0 : j - 10; jm4 = j < 8 ? 0 : j - 8; jm3 = j < 6 ? 0 : j - 6; jm2 = j < 4 ? 0 : j - 4; jm1 = j < 2 ? 0 : j - 2; jp1 = j < height - 2 ? j + 2 : height - 2; jp2 = j < height - 4 ? j + 4 : height - 2; jp3 = j < height - 6 ? j + 6 : height - 2; jp4 = j < height - 8 ? j + 8 : height - 2; jp5 = j < height - 10 ? j + 10 : height - 2; jp6 = j < height - 12 ? j + 12 : height - 2; dst[(signed long int)(w * (j >> 1))] = clp[(signed long int)((signed int)(((((((8 * (signed int)src[(signed long int)(w * jm5)] + 5 * (signed int)src[(signed long int)(w * jm4)]) - 30 * (signed int)src[(signed long int)(w * jm3)]) - 18 * (signed int)src[(signed long int)(w * jm2)]) + 113 * (signed int)src[(signed long int)(w * jm1)] + 242 * (signed int)src[(signed long int)(w * j)] + 192 * (signed int)src[(signed long int)(w * jp1)] + 35 * (signed int)src[(signed long int)(w * jp2)]) - 38 * (signed int)src[(signed long int)(w * jp3)]) - 10 * (signed int)src[(signed long int)(w * jp4)]) + 11 * (signed int)src[(signed long int)(w * jp5)] + 2 * (signed int)src[(signed long int)(w * jp6)] + 256) >> 9)]; jm6 = j < 9 ? 1 : j - 9; jm5 = j < 7 ? 1 : j - 7; jm4 = j < 5 ? 1 : j - 5; jm3 = j < 3 ? 1 : j - 3; jm2 = j < 1 ? 1 : j - 1; jm1 = j < height - 1 ? j + 1 : height - 1; jp1 = j < height - 3 ? j + 3 : height - 1; jp2 = j < height - 5 ? j + 5 : height - 1; jp3 = j < height - 7 ? j + 7 : height - 1; jp4 = j < height - 9 ? j + 9 : height - 1; jp5 = j < height - 11 ? j + 11 : height - 1; jp6 = j < height - 13 ? j + 13 : height - 1; dst[(signed long int)(w * ((j >> 1) + 1))] = clp[(signed long int)((signed int)(((((((8 * (signed int)src[(signed long int)(w * jp6)] + 5 * (signed int)src[(signed long int)(w * jp5)]) - 30 * (signed int)src[(signed long int)(w * jp4)]) - 18 * (signed int)src[(signed long int)(w * jp3)]) + 113 * (signed int)src[(signed long int)(w * jp2)] + 242 * (signed int)src[(signed long int)(w * jp1)] + 192 * (signed int)src[(signed long int)(w * jm1)] + 35 * (signed int)src[(signed long int)(w * jm2)]) - 38 * (signed int)src[(signed long int)(w * jm3)]) - 10 * (signed int)src[(signed long int)(w * jm4)]) + 11 * (signed int)src[(signed long int)(w * jm5)] + 2 * (signed int)src[(signed long int)(w * jm6)] + 256) >> 9)]; j = j + 4; } src = src + 1l; dst = dst + 1l; i = i + 1; } } } // c::conv444to422 // file src/readpic.c line 335 static void conv444to422(unsigned char *src, unsigned char *dst) { signed int i; signed int j; signed int im5; signed int im4; signed int im3; signed int im2; signed int im1; signed int ip1; signed int ip2; signed int ip3; signed int ip4; signed int ip5; signed int ip6; if(!(mpeg1 == 0)) { j = 0; while(!(j >= height)) { i = 0; while(!(i >= width)) { im5 = i < 5 ? 0 : i - 5; im4 = i < 4 ? 0 : i - 4; im3 = i < 3 ? 0 : i - 3; im2 = i < 2 ? 0 : i - 2; im1 = i < 1 ? 0 : i - 1; ip1 = i < width - 1 ? i + 1 : width - 1; ip2 = i < width - 2 ? i + 2 : width - 1; ip3 = i < width - 3 ? i + 3 : width - 1; ip4 = i < width - 4 ? i + 4 : width - 1; ip5 = i < width - 5 ? i + 5 : width - 1; ip6 = i < width - 5 ? i + 6 : width - 1; dst[(signed long int)(i >> 1)] = clp[(signed long int)((signed int)((((228 * ((signed int)src[(signed long int)i] + (signed int)src[(signed long int)ip1]) + 70 * ((signed int)src[(signed long int)im1] + (signed int)src[(signed long int)ip2])) - 37 * ((signed int)src[(signed long int)im2] + (signed int)src[(signed long int)ip3])) - 21 * ((signed int)src[(signed long int)im3] + (signed int)src[(signed long int)ip4])) + 11 * ((signed int)src[(signed long int)im4] + (signed int)src[(signed long int)ip5]) + 5 * ((signed int)src[(signed long int)im5] + (signed int)src[(signed long int)ip6]) + 256) >> 9)]; i = i + 2; } src = src + (signed long int)width; dst = dst + (signed long int)(width >> 1); j = j + 1; } } else { j = 0; while(!(j >= height)) { i = 0; while(!(i >= width)) { im5 = i < 5 ? 0 : i - 5; im3 = i < 3 ? 0 : i - 3; im1 = i < 1 ? 0 : i - 1; ip1 = i < width - 1 ? i + 1 : width - 1; ip3 = i < width - 3 ? i + 3 : width - 1; ip5 = i < width - 5 ? i + 5 : width - 1; dst[(signed long int)(i >> 1)] = clp[(signed long int)((signed int)((22 * ((signed int)src[(signed long int)im5] + (signed int)src[(signed long int)ip5]) - 52 * ((signed int)src[(signed long int)im3] + (signed int)src[(signed long int)ip3])) + 159 * ((signed int)src[(signed long int)im1] + (signed int)src[(signed long int)ip1]) + 256 * (signed int)src[(signed long int)i] + 256) >> 9)]; i = i + 2; } src = src + (signed long int)width; dst = dst + (signed long int)(width >> 1); j = j + 1; } } } // c::dct_type_estimation // file src/transfrm.c line 520 void dct_type_estimation(unsigned char *pred, unsigned char *cur, struct mbinfo *mbi) { signed short int blk0[128l]; signed short int blk1[128l]; signed int i; signed int j; signed int i0; signed int j0; signed int k; signed int offs; signed int s0; signed int s1; signed int sq0; signed int sq1; signed int s01; double d; double r; k = 0; j0 = 0; while(!(j0 >= height2)) { i0 = 0; while(!(i0 >= width)) { if(frame_pred_dct == 0) { if(pict_struct != 3) goto __CPROVER_DUMP_L3; } else { __CPROVER_DUMP_L3: ; (mbi + (signed long int)k)->dct_type = 0; goto __CPROVER_DUMP_L14; } j = 0; while(j < 8) { offs = width * ((j << 1) + j0) + i0; i = 0; while(i < 16) { blk0[(signed long int)(16 * j + i)] = (signed short int)((signed int)cur[(signed long int)offs] - (signed int)pred[(signed long int)offs]); blk1[(signed long int)(16 * j + i)] = (signed short int)((signed int)cur[(signed long int)(offs + width)] - (signed int)pred[(signed long int)(offs + width)]); offs = offs + 1; i = i + 1; } j = j + 1; } s01 = 0; sq1 = s01; sq0 = sq1; s1 = sq0; s0 = s1; i = 0; while(i < 128) { s0 = s0 + (signed int)blk0[(signed long int)i]; sq0 = sq0 + (signed int)blk0[(signed long int)i] * (signed int)blk0[(signed long int)i]; s1 = s1 + (signed int)blk1[(signed long int)i]; sq1 = sq1 + (signed int)blk1[(signed long int)i] * (signed int)blk1[(signed long int)i]; s01 = s01 + (signed int)blk0[(signed long int)i] * (signed int)blk1[(signed long int)i]; i = i + 1; } d = ((double)sq0 - (double)(s0 * s0) / 128.000000) * ((double)sq1 - (double)(s1 * s1) / 128.000000); if(d > 0.000000) { double return_value_sqrt$1; return_value_sqrt$1=sqrt(d); r = ((double)s01 - (double)(s0 * s1) / 128.000000) / return_value_sqrt$1; if(r > 5.000000e-1) (mbi + (signed long int)k)->dct_type = 0; else (mbi + (signed long int)k)->dct_type = 1; } else (mbi + (signed long int)k)->dct_type = 1; __CPROVER_DUMP_L14: ; k = k + 1; i0 = i0 + 16; } j0 = j0 + 16; } } // c::dist1 // file src/motion.c line 1672 static signed int dist1(unsigned char *blk1, unsigned char *blk2, signed int lx, signed int hx, signed int hy, signed int h, signed int distlim) { unsigned char *p1; unsigned char *p1a; unsigned char *p2; signed int i; signed int j; signed int s; signed int v; signed int sa = 0; if(hx == 0) { if(hy != 0) goto __CPROVER_DUMP_L5; s = 0; p1 = blk1; p2 = blk2; j = 0; while(!(j >= h)) { i = 0; while(i < 16) { v = (signed int)p1[(signed long int)i] - (signed int)p2[(signed long int)i]; s = s + (v >= 0 ? v : -v); i = i + 1; } p1 = p1 + (signed long int)lx; p2 = p2 + (signed long int)lx; j = j + 1; } } else { __CPROVER_DUMP_L5: ; if(!(hx == 0)) { if(hy != 0) goto __CPROVER_DUMP_L12; s = 0; p1 = blk1; p2 = blk2; j = 0; while(!(j >= h)) { i = 0; while(i < 16) { v = (signed int)(((unsigned int)((signed int)p1[(signed long int)i] + (signed int)p1[(signed long int)(i + 1)] + 1) >> 1) - (unsigned int)p2[(signed long int)i]); if(v >= 0) s = s + v; else s = s - v; i = i + 1; } p1 = p1 + (signed long int)lx; p2 = p2 + (signed long int)lx; j = j + 1; } } else { __CPROVER_DUMP_L12: ; if(hx == 0) { if(hy == 0) goto __CPROVER_DUMP_L19; s = 0; p1 = blk1; p2 = blk2; p1a = p1 + (signed long int)lx; j = 0; while(!(j >= h)) { i = 0; while(i < 16) { v = (signed int)(((unsigned int)((signed int)p1[(signed long int)i] + (signed int)p1a[(signed long int)i] + 1) >> 1) - (unsigned int)p2[(signed long int)i]); if(v >= 0) s = s + v; else s = s - v; i = i + 1; } p1 = p1a; p1a = p1a + (signed long int)lx; p2 = p2 + (signed long int)lx; j = j + 1; } } else { __CPROVER_DUMP_L19: ; s = 0; p1 = blk1; p2 = blk2; p1a = p1 + (signed long int)lx; j = 0; while(!(j >= h)) { i = 0; while(i < 16) { v = (signed int)(((unsigned int)((signed int)p1[(signed long int)i] + (signed int)p1[(signed long int)(i + 1)] + (signed int)p1a[(signed long int)i] + (signed int)p1a[(signed long int)(i + 1)] + 2) >> 2) - (unsigned int)p2[(signed long int)i]); if(v >= 0) s = s + v; else s = s - v; i = i + 1; } p1 = p1a; p1a = p1a + (signed long int)lx; p2 = p2 + (signed long int)lx; j = j + 1; } } } } return s; } // c::dist2 // file src/motion.c line 1944 static signed int dist2(unsigned char *blk1, unsigned char *blk2, signed int lx, signed int hx, signed int hy, signed int h) { unsigned char *p1; unsigned char *p1a; unsigned char *p2; signed int i; signed int j; signed int s; signed int v; signed int sa = 0; if(hx == 0) { if(hy != 0) goto __CPROVER_DUMP_L5; s = 0; p1 = blk1; p2 = blk2; j = 0; while(!(j >= h)) { i = 0; while(i < 16) { v = (signed int)p1[(signed long int)i] - (signed int)p2[(signed long int)i]; s = s + v * v; i = i + 1; } p1 = p1 + (signed long int)lx; p2 = p2 + (signed long int)lx; j = j + 1; } } else { __CPROVER_DUMP_L5: ; if(!(hx == 0)) { if(hy != 0) goto __CPROVER_DUMP_L10; s = 0; p1 = blk1; p2 = blk2; j = 0; while(!(j >= h)) { i = 0; while(i < 16) { v = (signed int)(((unsigned int)((signed int)p1[(signed long int)i] + (signed int)p1[(signed long int)(i + 1)] + 1) >> 1) - (unsigned int)p2[(signed long int)i]); s = s + v * v; i = i + 1; } p1 = p1 + (signed long int)lx; p2 = p2 + (signed long int)lx; j = j + 1; } } else { __CPROVER_DUMP_L10: ; if(hx == 0) { if(hy == 0) goto __CPROVER_DUMP_L15; s = 0; p1 = blk1; p2 = blk2; p1a = p1 + (signed long int)lx; j = 0; while(!(j >= h)) { i = 0; while(i < 16) { v = (signed int)(((unsigned int)((signed int)p1[(signed long int)i] + (signed int)p1a[(signed long int)i] + 1) >> 1) - (unsigned int)p2[(signed long int)i]); s = s + v * v; i = i + 1; } p1 = p1a; p1a = p1a + (signed long int)lx; p2 = p2 + (signed long int)lx; j = j + 1; } } else { __CPROVER_DUMP_L15: ; s = 0; p1 = blk1; p2 = blk2; p1a = p1 + (signed long int)lx; j = 0; while(!(j >= h)) { i = 0; while(i < 16) { v = (signed int)(((unsigned int)((signed int)p1[(signed long int)i] + (signed int)p1[(signed long int)(i + 1)] + (signed int)p1a[(signed long int)i] + (signed int)p1a[(signed long int)(i + 1)] + 2) >> 2) - (unsigned int)p2[(signed long int)i]); s = s + v * v; i = i + 1; } p1 = p1a; p1a = p1a + (signed long int)lx; p2 = p2 + (signed long int)lx; j = j + 1; } } } } return s; } // c::dpfield_estimate // file src/motion.c line 1228 static void dpfield_estimate(unsigned char *topref, unsigned char *botref, unsigned char *mb, signed int i, signed int j, signed int imins, signed int jmins, signed int *imindmvp, signed int *jmindmvp, signed int *dmcp, signed int *vmcp) { unsigned char *sameref; unsigned char *oppref; signed int io0; signed int jo0; signed int io; signed int jo; signed int delta_x; signed int delta_y; signed int mvxs; signed int mvys; signed int mvxo0; signed int mvyo0; signed int imino; signed int jmino; signed int imindmv; signed int jmindmv; signed int vmc_dp; signed int local_dist; if(pict_struct == 1) { sameref = topref; oppref = botref; } else { sameref = botref; oppref = topref; } mvxs = imins - (i << 1); mvys = jmins - (j << 1); mvxo0 = mvxs + (signed int)(mvxs > 0) >> 1; mvyo0 = mvys + (signed int)(mvys > 0) >> 1; if(pict_struct == 1) mvyo0 = mvyo0 - 1; else mvyo0 = mvyo0 + 1; io0 = mvxo0 + (i << 1); jo0 = mvyo0 + (j << 1); vmc_dp = 1 << 30; delta_y = -1; while(delta_y <= 1) { delta_x = -1; while(delta_x <= 1) { io = io0 + delta_x; jo = jo0 + delta_y; if(io >= 0) { if(-16 + width << 1 >= io) { if(jo >= 0) { if(-16 + height2 << 1 >= jo) { local_dist=bdist2(sameref + (signed long int)(imins >> 1) + (signed long int)(width2 * (jmins >> 1)), oppref + (signed long int)(io >> 1) + (signed long int)(width2 * (jo >> 1)), mb, width2, imins & 1, jmins & 1, io & 1, jo & 1, 16); if(!(local_dist >= vmc_dp)) { imino = io; jmino = jo; imindmv = delta_x; jmindmv = delta_y; vmc_dp = local_dist; } } } } } delta_x = delta_x + 1; } delta_y = delta_y + 1; } *dmcp=bdist1(sameref + (signed long int)(imins >> 1) + (signed long int)(width2 * (jmins >> 1)), oppref + (signed long int)(imino >> 1) + (signed long int)(width2 * (jmino >> 1)), mb, width2, imins & 1, jmins & 1, imino & 1, jmino & 1, 16); *imindmvp = imindmv; *jmindmvp = jmindmv; *vmcp = vmc_dp; } // c::dpframe_estimate // file src/motion.c line 1067 static void dpframe_estimate(unsigned char *ref, unsigned char *mb, signed int i, signed int j, signed int (*iminf)[2l], signed int (*jminf)[2l], signed int *iminp, signed int *jminp, signed int *imindmvp, signed int *jmindmvp, signed int *dmcp, signed int *vmcp) { signed int pref; signed int ppred; signed int delta_x; signed int delta_y; signed int is; signed int js; signed int it; signed int jt; signed int ib; signed int jb; signed int it0; signed int jt0; signed int ib0; signed int jb0; signed int imins; signed int jmins; signed int imint; signed int jmint; signed int iminb; signed int jminb; signed int imindmv; signed int jmindmv; signed int vmc; signed int local_dist; vmc = 1 << 30; pref = 0; while(pref < 2) { ppred = 0; while(ppred < 2) { is = iminf[(signed long int)pref][(signed long int)ppred] - (i << 1); js = jminf[(signed long int)pref][(signed long int)ppred] - (j << 1); if(!(pref == ppred)) { if(ppred == 0) js = js + 1; else js = js - 1; is = is << 1; js = js << 1; if(!(topfirst == ppred)) goto __CPROVER_DUMP_L5; is = is >= 0 ? (is + 1) / 3 : -((-is + 1) / 3); js = js >= 0 ? (js + 1) / 3 : -((-js + 1) / 3); goto __CPROVER_DUMP_L6; } else { __CPROVER_DUMP_L6: ; if(!(topfirst == 0)) { it0 = is + (signed int)(is > 0) >> 1; jt0 = (js + (signed int)(js > 0) >> 1) - 1; ib0 = 3 * is + (signed int)(is > 0) >> 1; jb0 = (3 * js + (signed int)(js > 0) >> 1) + 1; } else { it0 = 3 * is + (signed int)(is > 0) >> 1; jt0 = (3 * js + (signed int)(js > 0) >> 1) - 1; ib0 = is + (signed int)(is > 0) >> 1; jb0 = (js + (signed int)(js > 0) >> 1) + 1; } is = is + (i << 1); js = js + (j << 1); it0 = it0 + (i << 1); jt0 = jt0 + (j << 1); ib0 = ib0 + (i << 1); jb0 = jb0 + (j << 1); if(is >= 0) { if(-16 + width << 1 >= is) { if(js >= 0) { if(-16 + height >= js) { delta_y = -1; while(delta_y <= 1) { delta_x = -1; while(delta_x <= 1) { it = it0 + delta_x; jt = jt0 + delta_y; ib = ib0 + delta_x; jb = jb0 + delta_y; if(it >= 0) { if(-16 + width << 1 >= it) { if(jt >= 0) { if(-16 + height >= jt) { if(ib >= 0) { if(-16 + width << 1 >= ib) { if(jb >= 0) { if(-16 + height >= jb) { local_dist=bdist2(ref + (signed long int)(is >> 1) + (signed long int)((width << 1) * (js >> 1)), ref + (signed long int)width + (signed long int)(it >> 1) + (signed long int)((width << 1) * (jt >> 1)), mb, width << 1, is & 1, js & 1, it & 1, jt & 1, 8); signed int return_value_bdist2$1; return_value_bdist2$1=bdist2(ref + (signed long int)width + (signed long int)(is >> 1) + (signed long int)((width << 1) * (js >> 1)), ref + (signed long int)(ib >> 1) + (signed long int)((width << 1) * (jb >> 1)), mb + (signed long int)width, width << 1, is & 1, js & 1, ib & 1, jb & 1, 8); local_dist = local_dist + return_value_bdist2$1; if(!(local_dist >= vmc)) { imins = is; jmins = js; imint = it; jmint = jt; iminb = ib; jminb = jb; imindmv = delta_x; jmindmv = delta_y; vmc = local_dist; } } } } } } } } } delta_x = delta_x + 1; } delta_y = delta_y + 1; } } } } } } __CPROVER_DUMP_L5: ; ppred = ppred + 1; } pref = pref + 1; } local_dist=bdist1(ref + (signed long int)(imins >> 1) + (signed long int)((width << 1) * (jmins >> 1)), ref + (signed long int)width + (signed long int)(imint >> 1) + (signed long int)((width << 1) * (jmint >> 1)), mb, width << 1, imins & 1, jmins & 1, imint & 1, jmint & 1, 8); signed int return_value_bdist1$2; return_value_bdist1$2=bdist1(ref + (signed long int)width + (signed long int)(imins >> 1) + (signed long int)((width << 1) * (jmins >> 1)), ref + (signed long int)(iminb >> 1) + (signed long int)((width << 1) * (jminb >> 1)), mb + (signed long int)width, width << 1, imins & 1, jmins & 1, iminb & 1, jminb & 1, 8); local_dist = local_dist + return_value_bdist1$2; *dmcp = local_dist; *iminp = imins; *jminp = jmins; *imindmvp = imindmv; *jmindmvp = jmindmv; *vmcp = vmc; } // c::dprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 139 signed int dprintf(signed int __fd, const char * restrict __fmt, ...) { void *return_value___builtin_va_arg_pack$1; return_value___builtin_va_arg_pack$1=__builtin_va_arg_pack(); signed int return_value___dprintf_chk$2; return_value___dprintf_chk$2=__dprintf_chk(__fd, 2 - 1, __fmt, return_value___builtin_va_arg_pack$1); return return_value___dprintf_chk$2; } // c::error // file src/global.h line 122 void error(char *text) { fprintf(stderr, text); fputc(10, stderr); exit(1); } // c::fdct // file src/fdctref.c line 706 void fdct(signed short int *block) { signed int a0; signed int a1; signed int a2; signed int a3; signed int b0; signed int b1; signed int b2; signed int b3; signed short int *sptr; signed short int *optr; signed short int *tf; signed int j; signed short int t0; signed short int t1; signed short int t2; signed short int t3; signed short int t4; signed short int t5; signed short int t6; signed short int t7; signed short int tp03; signed short int tm03; signed short int tp12; signed short int tm12; signed short int tp65; signed short int tm65; signed short int tp465; signed short int tm465; signed short int tp765; signed short int tm765; signed short int xt[80l]; sptr = (signed short int *)block; optr = (signed short int *)block; j = 0; while(j < 8) { xt[(signed long int)7] = sptr[(signed long int)(7 * 8)]; xt[(signed long int)6] = sptr[(signed long int)(6 * 8)]; xt[(signed long int)5] = sptr[(signed long int)(5 * 8)]; xt[(signed long int)4] = sptr[(signed long int)(4 * 8)]; xt[(signed long int)3] = sptr[(signed long int)(3 * 8)]; xt[(signed long int)2] = sptr[(signed long int)(2 * 8)]; xt[(signed long int)1] = sptr[(signed long int)(1 * 8)]; xt[(signed long int)0] = sptr[(signed long int)(0 * 8)]; t0 = (signed short int)((signed int)xt[(signed long int)0] + (signed int)xt[(signed long int)7] << 2); t1 = (signed short int)((signed int)xt[(signed long int)1] + (signed int)xt[(signed long int)6] << 2); t2 = (signed short int)((signed int)xt[(signed long int)2] + (signed int)xt[(signed long int)5] << 2); t3 = (signed short int)((signed int)xt[(signed long int)3] + (signed int)xt[(signed long int)4] << 2); t4 = (signed short int)((signed int)xt[(signed long int)3] - (signed int)xt[(signed long int)4] << 2); t5 = (signed short int)((signed int)xt[(signed long int)2] - (signed int)xt[(signed long int)5] << 2 + 1); t6 = (signed short int)((signed int)xt[(signed long int)1] - (signed int)xt[(signed long int)6] << 2 + 1); t7 = (signed short int)((signed int)xt[(signed long int)0] - (signed int)xt[(signed long int)7] << 2); tp03 = (signed short int)((signed int)t0 + (signed int)t3); tm03 = (signed short int)((signed int)t0 - (signed int)t3); tp12 = (signed short int)((signed int)t1 + (signed int)t2); tm12 = (signed short int)((signed int)t1 - (signed int)t2); optr[(signed long int)(0 * 8)] = (signed short int)((signed int)tp03 + (signed int)tp12); optr[(signed long int)(4 * 8)] = (signed short int)((signed int)tp03 - (signed int)tp12); optr[(signed long int)(2 * 8)] = (signed short int)((signed int)tm03 + (signed int)(signed short int)((signed int)tm12 * (signed int)_tg_2_16 >> 16)); optr[(signed long int)(2 * 8)] = (signed short int)((signed int)optr[(signed long int)(2 * 8)] | (signed int)_one_corr); optr[(signed long int)(6 * 8)] = (signed short int)((signed int)(signed short int)((signed int)tm03 * (signed int)_tg_2_16 >> 16) - (signed int)tm12); optr[(signed long int)(6 * 8)] = (signed short int)((signed int)optr[(signed long int)(6 * 8)] | (signed int)_one_corr); tp65 = (signed short int)((signed int)((signed int)t6 + (signed int)t5) * (signed int)_ocos_4_16 >> 16); tp65 = (signed short int)((signed int)tp65 | (signed int)_one_corr); tm65 = (signed short int)((signed int)((signed int)t6 - (signed int)t5) * (signed int)_ocos_4_16 >> 16); tp765 = (signed short int)((signed int)t7 + (signed int)tp65); tm765 = (signed short int)((signed int)t7 - (signed int)tp65); tp465 = (signed short int)((signed int)t4 + (signed int)tm65); tm465 = (signed short int)((signed int)t4 - (signed int)tm65); optr[(signed long int)(1 * 8)] = (signed short int)((signed int)tp765 + (signed int)(signed short int)((signed int)tp465 * (signed int)_tg_1_16 >> 16)); optr[(signed long int)(1 * 8)] = (signed short int)((signed int)optr[(signed long int)(1 * 8)] | (signed int)_one_corr); optr[(signed long int)(7 * 8)] = (signed short int)((signed int)(signed short int)((signed int)tp765 * (signed int)_tg_1_16 >> 16) - (signed int)tp465); optr[(signed long int)(5 * 8)] = (signed short int)((signed int)(signed short int)((signed int)tm765 * (signed int)_tg_3_16 >> 16) + (signed int)tm465 + (signed int)tm765); optr[(signed long int)(3 * 8)] = (signed short int)((signed int)(signed short int)((signed int)tm465 * (signed int)_tg_3_16 >> 16) + (signed int)tm465); optr[(signed long int)(3 * 8)] = (signed short int)((signed int)tm765 - (signed int)optr[(signed long int)(3 * 8)]); sptr = sptr + 1l; sptr; optr = optr + 1l; optr; j = j + 1; } sptr = (signed short int *)block; optr = (signed short int *)block; tf = &tab_frw_01234567[(signed long int)0]; j = 0; while(j < 8) { xt[(signed long int)3] = (signed short int)((signed int)sptr[(signed long int)3] + (signed int)sptr[(signed long int)4]); xt[(signed long int)2] = (signed short int)((signed int)sptr[(signed long int)2] + (signed int)sptr[(signed long int)5]); xt[(signed long int)1] = (signed short int)((signed int)sptr[(signed long int)1] + (signed int)sptr[(signed long int)6]); xt[(signed long int)0] = (signed short int)((signed int)sptr[(signed long int)0] + (signed int)sptr[(signed long int)7]); xt[(signed long int)7] = (signed short int)((signed int)sptr[(signed long int)3] - (signed int)sptr[(signed long int)4]); xt[(signed long int)6] = (signed short int)((signed int)sptr[(signed long int)2] - (signed int)sptr[(signed long int)5]); xt[(signed long int)5] = (signed short int)((signed int)sptr[(signed long int)1] - (signed int)sptr[(signed long int)6]); xt[(signed long int)4] = (signed short int)((signed int)sptr[(signed long int)0] - (signed int)sptr[(signed long int)7]); a3 = (signed int)xt[(signed long int)0] * (signed int)tf[(signed long int)6] + (signed int)xt[(signed long int)2] * (signed int)tf[(signed long int)7] + (signed int)xt[(signed long int)1] * (signed int)tf[(signed long int)14] + (signed int)xt[(signed long int)3] * (signed int)tf[(signed long int)15]; a2 = (signed int)xt[(signed long int)0] * (signed int)tf[(signed long int)4] + (signed int)xt[(signed long int)2] * (signed int)tf[(signed long int)5] + (signed int)xt[(signed long int)1] * (signed int)tf[(signed long int)12] + (signed int)xt[(signed long int)3] * (signed int)tf[(signed long int)13]; a1 = (signed int)xt[(signed long int)0] * (signed int)tf[(signed long int)2] + (signed int)xt[(signed long int)2] * (signed int)tf[(signed long int)3] + (signed int)xt[(signed long int)1] * (signed int)tf[(signed long int)10] + (signed int)xt[(signed long int)3] * (signed int)tf[(signed long int)11]; a0 = (signed int)xt[(signed long int)0] * (signed int)tf[(signed long int)0] + (signed int)xt[(signed long int)2] * (signed int)tf[(signed long int)1] + (signed int)xt[(signed long int)1] * (signed int)tf[(signed long int)8] + (signed int)xt[(signed long int)3] * (signed int)tf[(signed long int)9]; b3 = (signed int)xt[(signed long int)4] * (signed int)tf[(signed long int)22] + (signed int)xt[(signed long int)6] * (signed int)tf[(signed long int)23] + (signed int)xt[(signed long int)5] * (signed int)tf[(signed long int)30] + (signed int)xt[(signed long int)7] * (signed int)tf[(signed long int)31]; b2 = (signed int)xt[(signed long int)4] * (signed int)tf[(signed long int)20] + (signed int)xt[(signed long int)6] * (signed int)tf[(signed long int)21] + (signed int)xt[(signed long int)5] * (signed int)tf[(signed long int)28] + (signed int)xt[(signed long int)7] * (signed int)tf[(signed long int)29]; b1 = (signed int)xt[(signed long int)4] * (signed int)tf[(signed long int)18] + (signed int)xt[(signed long int)6] * (signed int)tf[(signed long int)19] + (signed int)xt[(signed long int)5] * (signed int)tf[(signed long int)26] + (signed int)xt[(signed long int)7] * (signed int)tf[(signed long int)27]; b0 = (signed int)xt[(signed long int)4] * (signed int)tf[(signed long int)16] + (signed int)xt[(signed long int)6] * (signed int)tf[(signed long int)17] + (signed int)xt[(signed long int)5] * (signed int)tf[(signed long int)24] + (signed int)xt[(signed long int)7] * (signed int)tf[(signed long int)25]; tf = tf + (signed long int)32; a3 = a3 + (1 << (2 + 17) - 1) >> 2 + 17; a2 = a2 + (1 << (2 + 17) - 1) >> 2 + 17; a1 = a1 + (1 << (2 + 17) - 1) >> 2 + 17; a0 = a0 + (1 << (2 + 17) - 1) >> 2 + 17; b3 = b3 + (1 << (2 + 17) - 1) >> 2 + 17; b2 = b2 + (1 << (2 + 17) - 1) >> 2 + 17; b1 = b1 + (1 << (2 + 17) - 1) >> 2 + 17; b0 = b0 + (1 << (2 + 17) - 1) >> 2 + 17; a3 = a3 > 2047 ? 2047 : a3; a2 = a2 > 2047 ? 2047 : a2; a1 = a1 > 2047 ? 2047 : a1; a0 = a0 > 2047 ? 2047 : a0; b3 = b3 > 2047 ? 2047 : b3; b2 = b2 > 2047 ? 2047 : b2; b1 = b1 > 2047 ? 2047 : b1; b0 = b0 > 2047 ? 2047 : b0; a3 = a3 < -2048 ? -2048 : a3; a2 = a2 < -2048 ? -2048 : a2; a1 = a1 < -2048 ? -2048 : a1; a0 = a0 < -2048 ? -2048 : a0; b3 = b3 < -2048 ? -2048 : b3; b2 = b2 < -2048 ? -2048 : b2; b1 = b1 < -2048 ? -2048 : b1; b0 = b0 < -2048 ? -2048 : b0; optr[(signed long int)3] = (signed short int)b1; optr[(signed long int)2] = (signed short int)a1; optr[(signed long int)1] = (signed short int)b0; optr[(signed long int)0] = (signed short int)a0; optr[(signed long int)7] = (signed short int)b3; optr[(signed long int)6] = (signed short int)a3; optr[(signed long int)5] = (signed short int)b2; optr[(signed long int)4] = (signed short int)a2; sptr = sptr + (signed long int)8; optr = optr + (signed long int)8; j = j + 1; } } // c::feof_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 125 signed int feof_unlocked(struct _IO_FILE *__stream) { return (signed int)((__stream->_flags & 16) != 0); } // c::ferror_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 132 signed int ferror_unlocked(struct _IO_FILE *__stream) { return (signed int)((__stream->_flags & 32) != 0); } // c::fgetc_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 53 signed int fgetc_unlocked(struct _IO_FILE *__fp) { signed int tmp_if_expr$3; signed int return_value___uflow$1; char *tmp_post$2; if(__fp->_IO_read_ptr >= __fp->_IO_read_end) { return_value___uflow$1=__uflow(__fp); tmp_if_expr$3 = return_value___uflow$1; } else { tmp_post$2 = __fp->_IO_read_ptr; __fp->_IO_read_ptr = __fp->_IO_read_ptr + 1l; tmp_if_expr$3 = (signed int)*((unsigned char *)tmp_post$2); } return tmp_if_expr$3; } // c::fgets // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 253 char * fgets(char * restrict __s, signed int __n, struct _IO_FILE * restrict __stream) { char *return_value___fgets_chk$1; char *return_value___fgets_chk_warn$2; if(FALSE) { __CPROVER_DUMP_L1: ; return_value___fgets_chk$1=__fgets_chk(__s, 18446744073709551615ul, __n, __stream); return return_value___fgets_chk$1; if((unsigned long int)__n > 18446744073709551615ul) { return_value___fgets_chk_warn$2=__fgets_chk_warn(__s, 18446744073709551615ul, __n, __stream); return return_value___fgets_chk_warn$2; } } char *return_value___fgets_alias$3; return_value___fgets_alias$3=__fgets_alias(__s, __n, __stream); return return_value___fgets_alias$3; } // c::field_ME // file src/motion.c line 575 static void field_ME(unsigned char *oldorg, unsigned char *neworg, unsigned char *oldref, unsigned char *newref, unsigned char *cur, unsigned char *curref, signed int i, signed int j, signed int sxf, signed int syf, signed int sxb, signed int syb, struct mbinfo *mbi, signed int secondfield, signed int ipflag) { signed int w2; unsigned char *mb; unsigned char *toporg; unsigned char *topref; unsigned char *botorg; unsigned char *botref; signed int var; signed int vmc; signed int v0; signed int dmc; signed int dmcfieldi; signed int dmc8i; signed int imin; signed int jmin; signed int imin8u; signed int jmin8u; signed int imin8l; signed int jmin8l; signed int dmcfield; signed int dmc8; signed int sel; signed int sel8u; signed int sel8l; signed int iminf; signed int jminf; signed int imin8uf; signed int jmin8uf; signed int imin8lf; signed int jmin8lf; signed int dmcfieldf; signed int dmc8f; signed int self; signed int sel8uf; signed int sel8lf; signed int iminr; signed int jminr; signed int imin8ur; signed int jmin8ur; signed int imin8lr; signed int jmin8lr; signed int dmcfieldr; signed int dmc8r; signed int selr; signed int sel8ur; signed int sel8lr; signed int imins; signed int jmins; signed int ds; signed int imindmv; signed int jmindmv; signed int vmc_dp; signed int dmc_dp; w2 = width << 1; mb = cur + (signed long int)i + (signed long int)(w2 * j); if(pict_struct == 2) mb = mb + (signed long int)width; var=variance(mb, w2); if(pict_type == 1) mbi->mb_type = 1; else if(pict_type == 2) { toporg = oldorg; topref = oldref; botorg = oldorg + (signed long int)width; botref = oldref + (signed long int)width; if(!(secondfield == 0)) { if(pict_struct == 1) { botorg = cur + (signed long int)width; botref = curref + (signed long int)width; } else { toporg = cur; topref = curref; } } field_estimate(toporg, topref, botorg, botref, mb, i, j, sxf, syf, ipflag, &imin, &jmin, &imin8u, &jmin8u, &imin8l, &jmin8l, &dmcfield, &dmc8, &sel, &sel8u, &sel8l, &imins, &jmins, &ds); if(M == 1) { if(ipflag == 0) dpfield_estimate(topref, botref, mb, i, j, imins, jmins, &imindmv, &jmindmv, &dmc_dp, &vmc_dp); } if(M == 1) { if(ipflag != 0) goto __CPROVER_DUMP_L6; if(dmc_dp >= dmc8) goto __CPROVER_DUMP_L6; if(dmc_dp >= dmcfield) goto __CPROVER_DUMP_L6; mbi->motion_type = 3; dmc = dmc_dp; vmc = vmc_dp; } else { __CPROVER_DUMP_L6: ; if(!(dmc8 >= dmcfield)) { mbi->motion_type = 2; vmc=dist2((sel8u != 0 ? botref : topref) + (signed long int)(imin8u >> 1) + (signed long int)(w2 * (jmin8u >> 1)), mb, w2, imin8u & 1, jmin8u & 1, 8); signed int return_value_dist2$1; return_value_dist2$1=dist2((sel8l != 0 ? botref : topref) + (signed long int)(imin8l >> 1) + (signed long int)(w2 * (jmin8l >> 1)), mb + (signed long int)(8 * w2), w2, imin8l & 1, jmin8l & 1, 8); vmc = vmc + return_value_dist2$1; } else { mbi->motion_type = 1; vmc=dist2((sel != 0 ? botref : topref) + (signed long int)(imin >> 1) + (signed long int)(w2 * (jmin >> 1)), mb, w2, imin & 1, jmin & 1, 16); } } if(!(var >= vmc)) { if(!(vmc >= 2304)) goto __CPROVER_DUMP_L9; mbi->mb_type = 1; } else { __CPROVER_DUMP_L9: ; if(ipflag == 0) v0=dist2((pict_struct == 2 ? botref : topref) + (signed long int)i + (signed long int)(w2 * j), mb, w2, 0, 0, 16); if(ipflag == 0) { if(5 * vmc >= 4 * v0) goto __CPROVER_DUMP_L11; if(!(v0 >= 2304)) goto __CPROVER_DUMP_L11; goto __CPROVER_DUMP_L12; } else { __CPROVER_DUMP_L12: ; var = vmc; mbi->mb_type = 8; if(mbi->motion_type == 1) { mbi->MV[(signed long int)0][(signed long int)0][(signed long int)0] = imin - (i << 1); mbi->MV[(signed long int)0][(signed long int)0][(signed long int)1] = jmin - (j << 1); mbi->mv_field_sel[(signed long int)0][(signed long int)0] = sel; } else if(mbi->motion_type == 3) { mbi->MV[(signed long int)0][(signed long int)0][(signed long int)0] = imins - (i << 1); mbi->MV[(signed long int)0][(signed long int)0][(signed long int)1] = jmins - (j << 1); mbi->dmvector[(signed long int)0] = imindmv; mbi->dmvector[(signed long int)1] = jmindmv; } else { mbi->MV[(signed long int)0][(signed long int)0][(signed long int)0] = imin8u - (i << 1); mbi->MV[(signed long int)0][(signed long int)0][(signed long int)1] = jmin8u - (j << 1); mbi->MV[(signed long int)1][(signed long int)0][(signed long int)0] = imin8l - (i << 1); mbi->MV[(signed long int)1][(signed long int)0][(signed long int)1] = jmin8l - (j + 8 << 1); mbi->mv_field_sel[(signed long int)0][(signed long int)0] = sel8u; mbi->mv_field_sel[(signed long int)1][(signed long int)0] = sel8l; } goto __CPROVER_DUMP_L17; } __CPROVER_DUMP_L11: ; var = v0; mbi->mb_type = 0; mbi->motion_type = 1; mbi->MV[(signed long int)0][(signed long int)0][(signed long int)0] = 0; mbi->MV[(signed long int)0][(signed long int)0][(signed long int)1] = 0; mbi->mv_field_sel[(signed long int)0][(signed long int)0] = (signed int)(pict_struct == 2); } } else { field_estimate(oldorg, oldref, oldorg + (signed long int)width, oldref + (signed long int)width, mb, i, j, sxf, syf, 0, &iminf, &jminf, &imin8uf, &jmin8uf, &imin8lf, &jmin8lf, &dmcfieldf, &dmc8f, &self, &sel8uf, &sel8lf, &imins, &jmins, &ds); field_estimate(neworg, newref, neworg + (signed long int)width, newref + (signed long int)width, mb, i, j, sxb, syb, 0, &iminr, &jminr, &imin8ur, &jmin8ur, &imin8lr, &jmin8lr, &dmcfieldr, &dmc8r, &selr, &sel8ur, &sel8lr, &imins, &jmins, &ds); dmcfieldi=bdist1(oldref + (signed long int)(self != 0 ? width : 0) + (signed long int)(iminf >> 1) + (signed long int)(w2 * (jminf >> 1)), newref + (signed long int)(selr != 0 ? width : 0) + (signed long int)(iminr >> 1) + (signed long int)(w2 * (jminr >> 1)), mb, w2, iminf & 1, jminf & 1, iminr & 1, jminr & 1, 16); dmc8i=bdist1(oldref + (signed long int)(sel8uf != 0 ? width : 0) + (signed long int)(imin8uf >> 1) + (signed long int)(w2 * (jmin8uf >> 1)), newref + (signed long int)(sel8ur != 0 ? width : 0) + (signed long int)(imin8ur >> 1) + (signed long int)(w2 * (jmin8ur >> 1)), mb, w2, imin8uf & 1, jmin8uf & 1, imin8ur & 1, jmin8ur & 1, 8); signed int return_value_bdist1$2; return_value_bdist1$2=bdist1(oldref + (signed long int)(sel8lf != 0 ? width : 0) + (signed long int)(imin8lf >> 1) + (signed long int)(w2 * (jmin8lf >> 1)), newref + (signed long int)(sel8lr != 0 ? width : 0) + (signed long int)(imin8lr >> 1) + (signed long int)(w2 * (jmin8lr >> 1)), mb + (signed long int)(8 * w2), w2, imin8lf & 1, jmin8lf & 1, imin8lr & 1, jmin8lr & 1, 8); dmc8i = dmc8i + return_value_bdist1$2; if(!(dmcfieldi >= dmc8i)) { if(dmcfieldi >= dmcfieldf) goto __CPROVER_DUMP_L19; if(dmcfieldi >= dmc8f) goto __CPROVER_DUMP_L19; if(dmcfieldi >= dmcfieldr) goto __CPROVER_DUMP_L19; if(dmcfieldi >= dmc8r) goto __CPROVER_DUMP_L19; mbi->mb_type = 8 | 4; mbi->motion_type = 1; vmc=bdist2(oldref + (signed long int)(self != 0 ? width : 0) + (signed long int)(iminf >> 1) + (signed long int)(w2 * (jminf >> 1)), newref + (signed long int)(selr != 0 ? width : 0) + (signed long int)(iminr >> 1) + (signed long int)(w2 * (jminr >> 1)), mb, w2, iminf & 1, jminf & 1, iminr & 1, jminr & 1, 16); } else { __CPROVER_DUMP_L19: ; if(!(dmc8i >= dmcfieldf)) { if(dmc8i >= dmc8f) goto __CPROVER_DUMP_L20; if(dmc8i >= dmcfieldr) goto __CPROVER_DUMP_L20; if(dmc8i >= dmc8r) goto __CPROVER_DUMP_L20; mbi->mb_type = 8 | 4; mbi->motion_type = 2; vmc=bdist2(oldref + (signed long int)(sel8uf != 0 ? width : 0) + (signed long int)(imin8uf >> 1) + (signed long int)(w2 * (jmin8uf >> 1)), newref + (signed long int)(sel8ur != 0 ? width : 0) + (signed long int)(imin8ur >> 1) + (signed long int)(w2 * (jmin8ur >> 1)), mb, w2, imin8uf & 1, jmin8uf & 1, imin8ur & 1, jmin8ur & 1, 8); signed int return_value_bdist2$3; return_value_bdist2$3=bdist2(oldref + (signed long int)(sel8lf != 0 ? width : 0) + (signed long int)(imin8lf >> 1) + (signed long int)(w2 * (jmin8lf >> 1)), newref + (signed long int)(sel8lr != 0 ? width : 0) + (signed long int)(imin8lr >> 1) + (signed long int)(w2 * (jmin8lr >> 1)), mb + (signed long int)(8 * w2), w2, imin8lf & 1, jmin8lf & 1, imin8lr & 1, jmin8lr & 1, 8); vmc = vmc + return_value_bdist2$3; } else { __CPROVER_DUMP_L20: ; if(!(dmcfieldf >= dmc8f)) { if(dmcfieldf >= dmcfieldr) goto __CPROVER_DUMP_L21; if(dmcfieldf >= dmc8r) goto __CPROVER_DUMP_L21; mbi->mb_type = 8; mbi->motion_type = 1; vmc=dist2(oldref + (signed long int)(self != 0 ? width : 0) + (signed long int)(iminf >> 1) + (signed long int)(w2 * (jminf >> 1)), mb, w2, iminf & 1, jminf & 1, 16); } else { __CPROVER_DUMP_L21: ; if(!(dmc8f >= dmcfieldr)) { if(dmc8f >= dmc8r) goto __CPROVER_DUMP_L22; mbi->mb_type = 8; mbi->motion_type = 2; vmc=dist2(oldref + (signed long int)(sel8uf != 0 ? width : 0) + (signed long int)(imin8uf >> 1) + (signed long int)(w2 * (jmin8uf >> 1)), mb, w2, imin8uf & 1, jmin8uf & 1, 8); signed int return_value_dist2$4; return_value_dist2$4=dist2(oldref + (signed long int)(sel8lf != 0 ? width : 0) + (signed long int)(imin8lf >> 1) + (signed long int)(w2 * (jmin8lf >> 1)), mb + (signed long int)(8 * w2), w2, imin8lf & 1, jmin8lf & 1, 8); vmc = vmc + return_value_dist2$4; } else { __CPROVER_DUMP_L22: ; if(!(dmcfieldr >= dmc8r)) { mbi->mb_type = 4; mbi->motion_type = 1; vmc=dist2(newref + (signed long int)(selr != 0 ? width : 0) + (signed long int)(iminr >> 1) + (signed long int)(w2 * (jminr >> 1)), mb, w2, iminr & 1, jminr & 1, 16); } else { mbi->mb_type = 4; mbi->motion_type = 2; vmc=dist2(newref + (signed long int)(sel8ur != 0 ? width : 0) + (signed long int)(imin8ur >> 1) + (signed long int)(w2 * (jmin8ur >> 1)), mb, w2, imin8ur & 1, jmin8ur & 1, 8); signed int return_value_dist2$5; return_value_dist2$5=dist2(newref + (signed long int)(sel8lr != 0 ? width : 0) + (signed long int)(imin8lr >> 1) + (signed long int)(w2 * (jmin8lr >> 1)), mb + (signed long int)(8 * w2), w2, imin8lr & 1, jmin8lr & 1, 8); vmc = vmc + return_value_dist2$5; } } } } } if(!(var >= vmc)) { if(!(vmc >= 2304)) goto __CPROVER_DUMP_L25; mbi->mb_type = 1; } else { __CPROVER_DUMP_L25: ; var = vmc; if(mbi->motion_type == 1) { mbi->MV[(signed long int)0][(signed long int)0][(signed long int)0] = iminf - (i << 1); mbi->MV[(signed long int)0][(signed long int)0][(signed long int)1] = jminf - (j << 1); mbi->mv_field_sel[(signed long int)0][(signed long int)0] = self; mbi->MV[(signed long int)0][(signed long int)1][(signed long int)0] = iminr - (i << 1); mbi->MV[(signed long int)0][(signed long int)1][(signed long int)1] = jminr - (j << 1); mbi->mv_field_sel[(signed long int)0][(signed long int)1] = selr; } else { mbi->MV[(signed long int)0][(signed long int)0][(signed long int)0] = imin8uf - (i << 1); mbi->MV[(signed long int)0][(signed long int)0][(signed long int)1] = jmin8uf - (j << 1); mbi->mv_field_sel[(signed long int)0][(signed long int)0] = sel8uf; mbi->MV[(signed long int)1][(signed long int)0][(signed long int)0] = imin8lf - (i << 1); mbi->MV[(signed long int)1][(signed long int)0][(signed long int)1] = jmin8lf - (j + 8 << 1); mbi->mv_field_sel[(signed long int)1][(signed long int)0] = sel8lf; mbi->MV[(signed long int)0][(signed long int)1][(signed long int)0] = imin8ur - (i << 1); mbi->MV[(signed long int)0][(signed long int)1][(signed long int)1] = jmin8ur - (j << 1); mbi->mv_field_sel[(signed long int)0][(signed long int)1] = sel8ur; mbi->MV[(signed long int)1][(signed long int)1][(signed long int)0] = imin8lr - (i << 1); mbi->MV[(signed long int)1][(signed long int)1][(signed long int)1] = jmin8lr - (j + 8 << 1); mbi->mv_field_sel[(signed long int)1][(signed long int)1] = sel8lr; } } } __CPROVER_DUMP_L17: ; mbi->var = var; } // c::field_estimate // file src/motion.c line 955 static void field_estimate(unsigned char *toporg, unsigned char *topref, unsigned char *botorg, unsigned char *botref, unsigned char *mb, signed int i, signed int j, signed int sx, signed int sy, signed int ipflag, signed int *iminp, signed int *jminp, signed int *imin8up, signed int *jmin8up, signed int *imin8lp, signed int *jmin8lp, signed int *dfieldp, signed int *d8p, signed int *selp, signed int *sel8up, signed int *sel8lp, signed int *iminsp, signed int *jminsp, signed int *dsp) { signed int dt; signed int db; signed int imint; signed int jmint; signed int iminb; signed int jminb; signed int notop; signed int nobot; notop = (signed int)(ipflag != 0 && pict_struct == 1); nobot = (signed int)(ipflag != 0 && pict_struct == 2); if(!(notop == 0)) dt = 65536; else dt=fullsearch(toporg, topref, mb, width << 1, i, j, sx, sy >> 1, 16, width, height >> 1, &imint, &jmint); if(!(nobot == 0)) db = 65536; else db=fullsearch(botorg, botref, mb, width << 1, i, j, sx, sy >> 1, 16, width, height >> 1, &iminb, &jminb); if(pict_struct == 1) { *iminsp = imint; *jminsp = jmint; *dsp = dt; } else { *iminsp = iminb; *jminsp = jminb; *dsp = db; } if(db >= dt) { *dfieldp = dt; *iminp = imint; *jminp = jmint; *selp = 0; } else { *dfieldp = db; *iminp = iminb; *jminp = jminb; *selp = 1; } if(!(notop == 0)) dt = 65536; else dt=fullsearch(toporg, topref, mb, width << 1, i, j, sx, sy >> 1, 8, width, height >> 1, &imint, &jmint); if(!(nobot == 0)) db = 65536; else db=fullsearch(botorg, botref, mb, width << 1, i, j, sx, sy >> 1, 8, width, height >> 1, &iminb, &jminb); if(db >= dt) { *d8p = dt; *imin8up = imint; *jmin8up = jmint; *sel8up = 0; } else { *d8p = db; *imin8up = iminb; *jmin8up = jminb; *sel8up = 1; } if(!(notop == 0)) dt = 65536; else dt=fullsearch(toporg, topref, mb + (signed long int)(width << 4), width << 1, i, j + 8, sx, sy >> 1, 8, width, height >> 1, &imint, &jmint); if(!(nobot == 0)) db = 65536; else db=fullsearch(botorg, botref, mb + (signed long int)(width << 4), width << 1, i, j + 8, sx, sy >> 1, 8, width, height >> 1, &iminb, &jminb); if(db >= dt) { *d8p = *d8p + dt; *imin8lp = imint; *jmin8lp = jmint; *sel8lp = 0; } else { *d8p = *d8p + db; *imin8lp = iminb; *jmin8lp = jminb; *sel8lp = 1; } } // c::flushbits // file src/global.h line 137 void flushbits(signed int id) { signed int i; align_bits(id); fwrite((const void *)outfrmbuf[(signed long int)id], 1ul /*[[unsigned char]]*/, (unsigned long int)buf_ptr[(signed long int)id], outfile); buf_ptr[(signed long int)id] = 0; } // c::fprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 95 signed int fprintf(struct _IO_FILE * restrict __stream, const char * restrict __fmt, ...) { void *return_value___builtin_va_arg_pack$1; return_value___builtin_va_arg_pack$1=__builtin_va_arg_pack(); signed int return_value___fprintf_chk$2; return_value___fprintf_chk$2=__fprintf_chk(__stream, 2 - 1, __fmt, return_value___builtin_va_arg_pack$1); return return_value___fprintf_chk$2; } // c::fputc_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 88 signed int fputc_unlocked(signed int __c, struct _IO_FILE *__stream) { signed int tmp_if_expr$3; signed int return_value___overflow$1; char *tmp_post$2; if(__stream->_IO_write_ptr >= __stream->_IO_write_end) { return_value___overflow$1=__overflow(__stream, (signed int)(unsigned char)__c); tmp_if_expr$3 = return_value___overflow$1; } else { tmp_post$2 = __stream->_IO_write_ptr; __stream->_IO_write_ptr = __stream->_IO_write_ptr + 1l; *tmp_post$2 = (char)__c; tmp_if_expr$3 = (signed int)(unsigned char)*tmp_post$2; } return tmp_if_expr$3; } // c::frame_ME // file src/motion.c line 232 static void frame_ME(unsigned char *oldorg, unsigned char *neworg, unsigned char *oldref, unsigned char *newref, unsigned char *cur, signed int i, signed int j, signed int sxf, signed int syf, signed int sxb, signed int syb, struct mbinfo *mbi) { signed int imin; signed int jmin; signed int iminf; signed int jminf; signed int iminr; signed int jminr; signed int imint; signed int jmint; signed int iminb; signed int jminb; signed int imintf; signed int jmintf; signed int iminbf; signed int jminbf; signed int imintr; signed int jmintr; signed int iminbr; signed int jminbr; signed int var; signed int v0; signed int dmc; signed int dmcf; signed int dmcr; signed int dmci; signed int vmc; signed int vmcf; signed int vmcr; signed int vmci; signed int dmcfield; signed int dmcfieldf; signed int dmcfieldr; signed int dmcfieldi; signed int tsel; signed int bsel; signed int tself; signed int bself; signed int tselr; signed int bselr; unsigned char *mb; signed int imins[2l][2l]; signed int jmins[2l][2l]; signed int imindp; signed int jmindp; signed int imindmv; signed int jmindmv; signed int dmc_dp; signed int vmc_dp; mb = cur + (signed long int)i + (signed long int)(width * j); var=variance(mb, width); if(pict_type == 1) mbi->mb_type = 1; else if(pict_type == 2) { if(!(frame_pred_dct == 0)) { dmc=fullsearch(oldorg, oldref, mb, width, i, j, sxf, syf, 16, width, height, &imin, &jmin); vmc=dist2(oldref + (signed long int)(imin >> 1) + (signed long int)(width * (jmin >> 1)), mb, width, imin & 1, jmin & 1, 16); mbi->motion_type = 2; } else { frame_estimate(oldorg, oldref, mb, i, j, sxf, syf, &imin, &jmin, &imint, &jmint, &iminb, &jminb, &dmc, &dmcfield, &tsel, &bsel, imins, jmins); if(M == 1) dpframe_estimate(oldref, mb, i, j >> 1, imins, jmins, &imindp, &jmindp, &imindmv, &jmindmv, &dmc_dp, &vmc_dp); if(M == 1) { if(dmc_dp >= dmc) goto __CPROVER_DUMP_L4; if(dmc_dp >= dmcfield) goto __CPROVER_DUMP_L4; mbi->motion_type = 3; dmc = dmc_dp; vmc = vmc_dp; } else { __CPROVER_DUMP_L4: ; if(dmcfield >= dmc) { mbi->motion_type = 2; vmc=dist2(oldref + (signed long int)(imin >> 1) + (signed long int)(width * (jmin >> 1)), mb, width, imin & 1, jmin & 1, 16); } else { mbi->motion_type = 1; dmc = dmcfield; vmc=dist2(oldref + (signed long int)(tsel != 0 ? width : 0) + (signed long int)(imint >> 1) + (signed long int)((width << 1) * (jmint >> 1)), mb, width << 1, imint & 1, jmint & 1, 8); signed int return_value_dist2$1; return_value_dist2$1=dist2(oldref + (signed long int)(bsel != 0 ? width : 0) + (signed long int)(iminb >> 1) + (signed long int)((width << 1) * (jminb >> 1)), mb + (signed long int)width, width << 1, iminb & 1, jminb & 1, 8); vmc = vmc + return_value_dist2$1; } } } if(!(var >= vmc)) { if(!(vmc >= 2304)) goto __CPROVER_DUMP_L7; mbi->mb_type = 1; } else { __CPROVER_DUMP_L7: ; v0=dist2(oldref + (signed long int)i + (signed long int)(width * j), mb, width, 0, 0, 16); if(!(5 * vmc >= 4 * v0)) { if(!(v0 >= 2304)) goto __CPROVER_DUMP_L11; var = vmc; mbi->mb_type = 8; if(mbi->motion_type == 2) { mbi->MV[(signed long int)0][(signed long int)0][(signed long int)0] = imin - (i << 1); mbi->MV[(signed long int)0][(signed long int)0][(signed long int)1] = jmin - (j << 1); } else if(mbi->motion_type == 3) { mbi->MV[(signed long int)0][(signed long int)0][(signed long int)0] = imindp - (i << 1); mbi->MV[(signed long int)0][(signed long int)0][(signed long int)1] = (jmindp << 1) - (j << 1); mbi->dmvector[(signed long int)0] = imindmv; mbi->dmvector[(signed long int)1] = jmindmv; } else { mbi->MV[(signed long int)0][(signed long int)0][(signed long int)0] = imint - (i << 1); mbi->MV[(signed long int)0][(signed long int)0][(signed long int)1] = (jmint << 1) - (j << 1); mbi->MV[(signed long int)1][(signed long int)0][(signed long int)0] = iminb - (i << 1); mbi->MV[(signed long int)1][(signed long int)0][(signed long int)1] = (jminb << 1) - (j << 1); mbi->mv_field_sel[(signed long int)0][(signed long int)0] = tsel; mbi->mv_field_sel[(signed long int)1][(signed long int)0] = bsel; } } else { __CPROVER_DUMP_L11: ; var = v0; mbi->mb_type = 0; mbi->motion_type = 2; mbi->MV[(signed long int)0][(signed long int)0][(signed long int)0] = 0; mbi->MV[(signed long int)0][(signed long int)0][(signed long int)1] = 0; } } } else { if(!(frame_pred_dct == 0)) { dmcf=fullsearch(oldorg, oldref, mb, width, i, j, sxf, syf, 16, width, height, &iminf, &jminf); vmcf=dist2(oldref + (signed long int)(iminf >> 1) + (signed long int)(width * (jminf >> 1)), mb, width, iminf & 1, jminf & 1, 16); dmcr=fullsearch(neworg, newref, mb, width, i, j, sxb, syb, 16, width, height, &iminr, &jminr); vmcr=dist2(newref + (signed long int)(iminr >> 1) + (signed long int)(width * (jminr >> 1)), mb, width, iminr & 1, jminr & 1, 16); vmci=bdist2(oldref + (signed long int)(iminf >> 1) + (signed long int)(width * (jminf >> 1)), newref + (signed long int)(iminr >> 1) + (signed long int)(width * (jminr >> 1)), mb, width, iminf & 1, jminf & 1, iminr & 1, jminr & 1, 16); if(vmcr >= vmcf) { if(!(vmci >= vmcf)) goto __CPROVER_DUMP_L14; vmc = vmcf; mbi->mb_type = 8; } else { __CPROVER_DUMP_L14: ; if(vmci >= vmcr) { vmc = vmcr; mbi->mb_type = 4; } else { vmc = vmci; mbi->mb_type = 8 | 4; } } mbi->motion_type = 2; } else { frame_estimate(oldorg, oldref, mb, i, j, sxf, syf, &iminf, &jminf, &imintf, &jmintf, &iminbf, &jminbf, &dmcf, &dmcfieldf, &tself, &bself, imins, jmins); frame_estimate(neworg, newref, mb, i, j, sxb, syb, &iminr, &jminr, &imintr, &jmintr, &iminbr, &jminbr, &dmcr, &dmcfieldr, &tselr, &bselr, imins, jmins); dmci=bdist1(oldref + (signed long int)(iminf >> 1) + (signed long int)(width * (jminf >> 1)), newref + (signed long int)(iminr >> 1) + (signed long int)(width * (jminr >> 1)), mb, width, iminf & 1, jminf & 1, iminr & 1, jminr & 1, 16); dmcfieldi=bdist1(oldref + (signed long int)(imintf >> 1) + (signed long int)(tself != 0 ? width : 0) + (signed long int)((width << 1) * (jmintf >> 1)), newref + (signed long int)(imintr >> 1) + (signed long int)(tselr != 0 ? width : 0) + (signed long int)((width << 1) * (jmintr >> 1)), mb, width << 1, imintf & 1, jmintf & 1, imintr & 1, jmintr & 1, 8); signed int return_value_bdist1$2; return_value_bdist1$2=bdist1(oldref + (signed long int)(iminbf >> 1) + (signed long int)(bself != 0 ? width : 0) + (signed long int)((width << 1) * (jminbf >> 1)), newref + (signed long int)(iminbr >> 1) + (signed long int)(bselr != 0 ? width : 0) + (signed long int)((width << 1) * (jminbr >> 1)), mb + (signed long int)width, width << 1, iminbf & 1, jminbf & 1, iminbr & 1, jminbr & 1, 8); dmcfieldi = dmcfieldi + return_value_bdist1$2; if(!(dmci >= dmcfieldi)) { if(dmci >= dmcf) goto __CPROVER_DUMP_L18; if(dmci >= dmcfieldf) goto __CPROVER_DUMP_L18; if(dmci >= dmcr) goto __CPROVER_DUMP_L18; if(dmci >= dmcfieldr) goto __CPROVER_DUMP_L18; mbi->mb_type = 8 | 4; mbi->motion_type = 2; vmc=bdist2(oldref + (signed long int)(iminf >> 1) + (signed long int)(width * (jminf >> 1)), newref + (signed long int)(iminr >> 1) + (signed long int)(width * (jminr >> 1)), mb, width, iminf & 1, jminf & 1, iminr & 1, jminr & 1, 16); } else { __CPROVER_DUMP_L18: ; if(!(dmcfieldi >= dmcf)) { if(dmcfieldi >= dmcfieldf) goto __CPROVER_DUMP_L19; if(dmcfieldi >= dmcr) goto __CPROVER_DUMP_L19; if(dmcfieldi >= dmcfieldr) goto __CPROVER_DUMP_L19; mbi->mb_type = 8 | 4; mbi->motion_type = 1; vmc=bdist2(oldref + (signed long int)(imintf >> 1) + (signed long int)(tself != 0 ? width : 0) + (signed long int)((width << 1) * (jmintf >> 1)), newref + (signed long int)(imintr >> 1) + (signed long int)(tselr != 0 ? width : 0) + (signed long int)((width << 1) * (jmintr >> 1)), mb, width << 1, imintf & 1, jmintf & 1, imintr & 1, jmintr & 1, 8); signed int return_value_bdist2$3; return_value_bdist2$3=bdist2(oldref + (signed long int)(iminbf >> 1) + (signed long int)(bself != 0 ? width : 0) + (signed long int)((width << 1) * (jminbf >> 1)), newref + (signed long int)(iminbr >> 1) + (signed long int)(bselr != 0 ? width : 0) + (signed long int)((width << 1) * (jminbr >> 1)), mb + (signed long int)width, width << 1, iminbf & 1, jminbf & 1, iminbr & 1, jminbr & 1, 8); vmc = vmc + return_value_bdist2$3; } else { __CPROVER_DUMP_L19: ; if(!(dmcf >= dmcfieldf)) { if(dmcf >= dmcr) goto __CPROVER_DUMP_L20; if(dmcf >= dmcfieldr) goto __CPROVER_DUMP_L20; mbi->mb_type = 8; mbi->motion_type = 2; vmc=dist2(oldref + (signed long int)(iminf >> 1) + (signed long int)(width * (jminf >> 1)), mb, width, iminf & 1, jminf & 1, 16); } else { __CPROVER_DUMP_L20: ; if(!(dmcfieldf >= dmcr)) { if(dmcfieldf >= dmcfieldr) goto __CPROVER_DUMP_L21; mbi->mb_type = 8; mbi->motion_type = 1; vmc=dist2(oldref + (signed long int)(tself != 0 ? width : 0) + (signed long int)(imintf >> 1) + (signed long int)((width << 1) * (jmintf >> 1)), mb, width << 1, imintf & 1, jmintf & 1, 8); signed int return_value_dist2$4; return_value_dist2$4=dist2(oldref + (signed long int)(bself != 0 ? width : 0) + (signed long int)(iminbf >> 1) + (signed long int)((width << 1) * (jminbf >> 1)), mb + (signed long int)width, width << 1, iminbf & 1, jminbf & 1, 8); vmc = vmc + return_value_dist2$4; } else { __CPROVER_DUMP_L21: ; if(!(dmcr >= dmcfieldr)) { mbi->mb_type = 4; mbi->motion_type = 2; vmc=dist2(newref + (signed long int)(iminr >> 1) + (signed long int)(width * (jminr >> 1)), mb, width, iminr & 1, jminr & 1, 16); } else { mbi->mb_type = 4; mbi->motion_type = 1; vmc=dist2(newref + (signed long int)(tselr != 0 ? width : 0) + (signed long int)(imintr >> 1) + (signed long int)((width << 1) * (jmintr >> 1)), mb, width << 1, imintr & 1, jmintr & 1, 8); signed int return_value_dist2$5; return_value_dist2$5=dist2(newref + (signed long int)(bselr != 0 ? width : 0) + (signed long int)(iminbr >> 1) + (signed long int)((width << 1) * (jminbr >> 1)), mb + (signed long int)width, width << 1, iminbr & 1, jminbr & 1, 8); vmc = vmc + return_value_dist2$5; } } } } } } if(!(var >= vmc)) { if(!(vmc >= 2304)) goto __CPROVER_DUMP_L25; mbi->mb_type = 1; } else { __CPROVER_DUMP_L25: ; var = vmc; if(mbi->motion_type == 2) { mbi->MV[(signed long int)0][(signed long int)0][(signed long int)0] = iminf - (i << 1); mbi->MV[(signed long int)0][(signed long int)0][(signed long int)1] = jminf - (j << 1); mbi->MV[(signed long int)0][(signed long int)1][(signed long int)0] = iminr - (i << 1); mbi->MV[(signed long int)0][(signed long int)1][(signed long int)1] = jminr - (j << 1); } else { mbi->MV[(signed long int)0][(signed long int)0][(signed long int)0] = imintf - (i << 1); mbi->MV[(signed long int)0][(signed long int)0][(signed long int)1] = (jmintf << 1) - (j << 1); mbi->MV[(signed long int)1][(signed long int)0][(signed long int)0] = iminbf - (i << 1); mbi->MV[(signed long int)1][(signed long int)0][(signed long int)1] = (jminbf << 1) - (j << 1); mbi->mv_field_sel[(signed long int)0][(signed long int)0] = tself; mbi->mv_field_sel[(signed long int)1][(signed long int)0] = bself; mbi->MV[(signed long int)0][(signed long int)1][(signed long int)0] = imintr - (i << 1); mbi->MV[(signed long int)0][(signed long int)1][(signed long int)1] = (jmintr << 1) - (j << 1); mbi->MV[(signed long int)1][(signed long int)1][(signed long int)0] = iminbr - (i << 1); mbi->MV[(signed long int)1][(signed long int)1][(signed long int)1] = (jminbr << 1) - (j << 1); mbi->mv_field_sel[(signed long int)0][(signed long int)1] = tselr; mbi->mv_field_sel[(signed long int)1][(signed long int)1] = bselr; } } } mbi->var = var; } // c::frame_estimate // file src/motion.c line 869 static void frame_estimate(unsigned char *org, unsigned char *ref, unsigned char *mb, signed int i, signed int j, signed int sx, signed int sy, signed int *iminp, signed int *jminp, signed int *imintp, signed int *jmintp, signed int *iminbp, signed int *jminbp, signed int *dframep, signed int *dfieldp, signed int *tselp, signed int *bselp, signed int (*imins)[2l], signed int (*jmins)[2l]) { signed int dt; signed int db; signed int dmint; signed int dminb; signed int imint; signed int iminb; signed int jmint; signed int jminb; *dframep=fullsearch(org, ref, mb, width, i, j, sx, sy, 16, width, height, iminp, jminp); dt=fullsearch(org, ref, mb, width << 1, i, j >> 1, sx, sy >> 1, 8, width, height >> 1, &imint, &jmint); db=fullsearch(org + (signed long int)width, ref + (signed long int)width, mb, width << 1, i, j >> 1, sx, sy >> 1, 8, width, height >> 1, &iminb, &jminb); imins[(signed long int)0][(signed long int)0] = imint; jmins[(signed long int)0][(signed long int)0] = jmint; imins[(signed long int)1][(signed long int)0] = iminb; jmins[(signed long int)1][(signed long int)0] = jminb; if(db >= dt) { dmint = dt; *imintp = imint; *jmintp = jmint; *tselp = 0; } else { dmint = db; *imintp = iminb; *jmintp = jminb; *tselp = 1; } dt=fullsearch(org, ref, mb + (signed long int)width, width << 1, i, j >> 1, sx, sy >> 1, 8, width, height >> 1, &imint, &jmint); db=fullsearch(org + (signed long int)width, ref + (signed long int)width, mb + (signed long int)width, width << 1, i, j >> 1, sx, sy >> 1, 8, width, height >> 1, &iminb, &jminb); imins[(signed long int)0][(signed long int)1] = imint; jmins[(signed long int)0][(signed long int)1] = jmint; imins[(signed long int)1][(signed long int)1] = iminb; jmins[(signed long int)1][(signed long int)1] = jminb; if(dt >= db) { dminb = db; *iminbp = iminb; *jminbp = jminb; *bselp = 1; } else { dminb = dt; *iminbp = imint; *jminbp = jmint; *bselp = 0; } *dfieldp = dmint + dminb; } // c::frametotc // file src/puthdr.c line 191 static signed int frametotc(signed int frame) { signed int fps; signed int pict; signed int sec; signed int minute; signed int hour; signed int tc; fps = (signed int)(frame_rate + 5.000000e-1); pict = frame % fps; frame = (frame - pict) / fps; sec = frame % 60; frame = (frame - sec) / 60; minute = frame % 60; frame = (frame - minute) / 60; hour = frame % 24; tc = hour << 19 | minute << 13 | 1 << 12 | sec << 6 | pict; return tc; } // c::fread // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 282 unsigned long int fread(void * restrict __ptr, unsigned long int __size, unsigned long int __n, struct _IO_FILE * restrict __stream) { unsigned long int return_value___fread_chk$1; unsigned long int return_value___fread_chk_warn$2; if(FALSE) { __CPROVER_DUMP_L1: ; return_value___fread_chk$1=__fread_chk(__ptr, 18446744073709551615ul, __size, __n, __stream); return return_value___fread_chk$1; if(__n * __size > 18446744073709551615ul) { return_value___fread_chk_warn$2=__fread_chk_warn(__ptr, 18446744073709551615ul, __size, __n, __stream); return return_value___fread_chk_warn$2; } } unsigned long int return_value___fread_alias$3; return_value___fread_alias$3=__fread_alias(__ptr, __size, __n, __stream); return return_value___fread_alias$3; } // c::fread_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 343 unsigned long int fread_unlocked(void * restrict __ptr, unsigned long int __size, unsigned long int __n, struct _IO_FILE * restrict __stream) { unsigned long int return_value___fread_unlocked_chk$1; unsigned long int return_value___fread_unlocked_chk_warn$2; if(FALSE) { __CPROVER_DUMP_L1: ; return_value___fread_unlocked_chk$1=__fread_unlocked_chk(__ptr, 18446744073709551615ul, __size, __n, __stream); return return_value___fread_unlocked_chk$1; if(__n * __size > 18446744073709551615ul) { return_value___fread_unlocked_chk_warn$2=__fread_unlocked_chk_warn(__ptr, 18446744073709551615ul, __size, __n, __stream); return return_value___fread_unlocked_chk_warn$2; } } signed int tmp_if_expr$5; signed int return_value___uflow$3; char *tmp_post$4; char *tmp_post$6; if(FALSE) { if(FALSE) { if((__n | __size) < 4294967296ul) { if(__n * __size <= 8ul) { unsigned long int __cnt = __size * __n; char *__cptr = (char *)__ptr; if(__cnt == 0ul) return (unsigned long int)0; while(__cnt > 0ul) { signed int __c; if(__stream->_IO_read_ptr >= __stream->_IO_read_end) { return_value___uflow$3=__uflow(__stream); tmp_if_expr$5 = return_value___uflow$3; } else { tmp_post$4 = __stream->_IO_read_ptr; __stream->_IO_read_ptr = __stream->_IO_read_ptr + 1l; tmp_if_expr$5 = (signed int)*((unsigned char *)tmp_post$4); } __c = tmp_if_expr$5; if(!(__c == -1)) goto __CPROVER_DUMP_L8; goto __CPROVER_DUMP_L9; __CPROVER_DUMP_L8: ; tmp_post$6 = __cptr; __cptr = __cptr + 1l; *tmp_post$6 = (char)__c; __cnt = __cnt - 1ul; } __CPROVER_DUMP_L9: ; return (unsigned long int)(__cptr - (char *)__ptr) / __size; } } } } unsigned long int return_value___fread_unlocked_alias$7; return_value___fread_unlocked_alias$7=__fread_unlocked_alias(__ptr, __size, __n, __stream); return return_value___fread_unlocked_alias$7; } // c::fullsearch // file src/motion.c line 1375 static signed int fullsearch(unsigned char *org, unsigned char *ref, unsigned char *blk, signed int lx, signed int i0, signed int j0, signed int sx, signed int sy, signed int h, signed int xmax, signed int ymax, signed int *iminp, signed int *jminp) { signed int i; signed int j; signed int imin; signed int jmin; signed int ilow; signed int ihigh; signed int jlow; signed int jhigh; signed int d; signed int dmin; signed int p; imin = i0; jmin = j0; dmin=dist1(org + (signed long int)imin + (signed long int)(lx * jmin), blk, lx, 0, 0, h, 65536); if(dmin > 64) { signed int w; signed int z; signed int limitx; signed int limity; ilow = i0 - sx; ihigh = i0 + sx; if(ilow < 0) ilow = 0; if(!(-16 + xmax >= ihigh)) ihigh = xmax - 16; jlow = j0 - sy; jhigh = j0 + sy; if(jlow < 0) jlow = 0; if(!(ymax + -h >= jhigh)) jhigh = ymax - h; limitx = sx / 4; limity = sy / 4; w = -limitx; while(limitx >= w) { z = -limity; while(limity >= z) { i = i0 + 4 * w; j = j0 + 4 * z; if(i >= ilow) { if(ihigh >= i) { if(j >= jlow) { if(jhigh >= j) { d=dist1(org + (signed long int)i + (signed long int)(lx * j), blk, lx, 0, 0, h, dmin); if(!(d >= dmin)) { imin = i; jmin = j; dmin = d; } } } } } z = z + 1; } w = w + 1; } p = 2; i0 = imin; j0 = jmin; while(p > 0) { i = i0 - p; j = j0 - p; if(i >= ilow) { if(ihigh >= i) { if(j >= jlow) { if(jhigh >= j) { d=dist1(org + (signed long int)i + (signed long int)(lx * j), blk, lx, 0, 0, h, dmin); if(!(d >= dmin)) { imin = i; jmin = j; dmin = d; } } } } } i = i0 - p; j = j0 + p; if(i >= ilow) { if(ihigh >= i) { if(j >= jlow) { if(jhigh >= j) { d=dist1(org + (signed long int)i + (signed long int)(lx * j), blk, lx, 0, 0, h, dmin); if(!(d >= dmin)) { imin = i; jmin = j; dmin = d; } } } } } i = i0 + p; j = j0 - p; if(i >= ilow) { if(ihigh >= i) { if(j >= jlow) { if(jhigh >= j) { d=dist1(org + (signed long int)i + (signed long int)(lx * j), blk, lx, 0, 0, h, dmin); if(!(d >= dmin)) { imin = i; jmin = j; dmin = d; } } } } } i = i0 + p; j = j0 + p; if(i >= ilow) { if(ihigh >= i) { if(j >= jlow) { if(jhigh >= j) { d=dist1(org + (signed long int)i + (signed long int)(lx * j), blk, lx, 0, 0, h, dmin); if(!(d >= dmin)) { imin = i; jmin = j; dmin = d; } } } } } i = i0 + p; j = j0; if(i >= ilow) { if(ihigh >= i) { if(j >= jlow) { if(jhigh >= j) { d=dist1(org + (signed long int)i + (signed long int)(lx * j), blk, lx, 0, 0, h, dmin); if(!(d >= dmin)) { imin = i; jmin = j; dmin = d; } } } } } i = i0; j = j0 - p; if(i >= ilow) { if(ihigh >= i) { if(j >= jlow) { if(jhigh >= j) { d=dist1(org + (signed long int)i + (signed long int)(lx * j), blk, lx, 0, 0, h, dmin); if(!(d >= dmin)) { imin = i; jmin = j; dmin = d; } } } } } i = i0 - p; j = j0; if(i >= ilow) { if(ihigh >= i) { if(j >= jlow) { if(jhigh >= j) { d=dist1(org + (signed long int)i + (signed long int)(lx * j), blk, lx, 0, 0, h, dmin); if(!(d >= dmin)) { imin = i; jmin = j; dmin = d; } } } } } i = i0; j = j0 + p; if(i >= ilow) { if(ihigh >= i) { if(j >= jlow) { if(jhigh >= j) { d=dist1(org + (signed long int)i + (signed long int)(lx * j), blk, lx, 0, 0, h, dmin); if(!(d >= dmin)) { imin = i; jmin = j; dmin = d; } } } } } i0 = imin; j0 = jmin; p = p / 2; } } dmin = 65536; imin = imin << 1; jmin = jmin << 1; ilow = imin - (signed int)(imin > 0); ihigh = imin + (signed int)(imin < xmax - 16 << 1); jlow = jmin - (signed int)(jmin > 0); jhigh = jmin + (signed int)(jmin < ymax - h << 1); j = jlow; while(jhigh >= j) { i = ilow; while(ihigh >= i) { d=dist1(ref + (signed long int)(i >> 1) + (signed long int)(lx * (j >> 1)), blk, lx, i & 1, j & 1, h, dmin); if(!(d >= dmin)) { dmin = d; imin = i; jmin = j; } i = i + 1; } j = j + 1; } *iminp = imin; *jminp = jmin; return dmin; } // c::getc_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 63 signed int getc_unlocked(struct _IO_FILE *__fp) { signed int tmp_if_expr$3; signed int return_value___uflow$1; char *tmp_post$2; if(__fp->_IO_read_ptr >= __fp->_IO_read_end) { return_value___uflow$1=__uflow(__fp); tmp_if_expr$3 = return_value___uflow$1; } else { tmp_post$2 = __fp->_IO_read_ptr; __fp->_IO_read_ptr = __fp->_IO_read_ptr + 1l; tmp_if_expr$3 = (signed int)*((unsigned char *)tmp_post$2); } return tmp_if_expr$3; } // c::getchar // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 44 signed int getchar(void) { signed int return_value__IO_getc$1; return_value__IO_getc$1=_IO_getc(stdin); return return_value__IO_getc$1; } // c::getchar_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 70 signed int getchar_unlocked(void) { signed int tmp_if_expr$3; signed int return_value___uflow$1; char *tmp_post$2; if(stdin->_IO_read_ptr >= stdin->_IO_read_end) { return_value___uflow$1=__uflow(stdin); tmp_if_expr$3 = return_value___uflow$1; } else { tmp_post$2 = stdin->_IO_read_ptr; stdin->_IO_read_ptr = stdin->_IO_read_ptr + 1l; tmp_if_expr$3 = (signed int)*((unsigned char *)tmp_post$2); } return tmp_if_expr$3; } // c::gets // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 233 char * gets(char *__str) { char *return_value___gets_chk$1; char *return_value___gets_warn$2; return_value___gets_warn$2=__gets_warn(__str); return return_value___gets_warn$2; } // c::gnu_dev_major // file /usr/include/x86_64-linux-gnu/sys/sysmacros.h line 44 unsigned int gnu_dev_major(unsigned long long int __dev) { return (unsigned int)(__dev >> 8 & (unsigned long int)4095 | (unsigned long int)((unsigned int)(__dev >> 32) & (unsigned int)~4095)); } // c::gnu_dev_makedev // file /usr/include/x86_64-linux-gnu/sys/sysmacros.h line 56 unsigned long long int gnu_dev_makedev(unsigned int __major, unsigned int __minor) { return (unsigned long int)(__minor & (unsigned int)255 | (__major & (unsigned int)4095) << 8) | (unsigned long long int)(__minor & (unsigned int)~255) << 12 | (unsigned long long int)(__major & (unsigned int)~4095) << 32; } // c::gnu_dev_minor // file /usr/include/x86_64-linux-gnu/sys/sysmacros.h line 50 unsigned int gnu_dev_minor(unsigned long long int __dev) { return (unsigned int)(__dev & (unsigned long int)255 | (unsigned long int)((unsigned int)(__dev >> 12) & (unsigned int)~255)); } // c::idct // file src/idct.c line 778 void idct(signed short int *block) { idct_M128ASM_scalar(block); } // c::idct_M128ASM_scalar // file src/idct.c line 742 static void idct_M128ASM_scalar(signed short int *src) { signed int idct_M128ASM_scalar$$1$$1$$a0; signed int idct_M128ASM_scalar$$1$$1$$a1; signed int idct_M128ASM_scalar$$1$$1$$a2; signed int idct_M128ASM_scalar$$1$$1$$a3; signed int idct_M128ASM_scalar$$1$$1$$b0; signed int idct_M128ASM_scalar$$1$$1$$b1; signed int idct_M128ASM_scalar$$1$$1$$b2; signed int idct_M128ASM_scalar$$1$$1$$b3; idct_M128ASM_scalar$$1$$1$$a0 = (signed int)src[(signed long int)0] * (signed int)tab_i_04[(signed long int)0] + (signed int)src[(signed long int)2] * (signed int)tab_i_04[(signed long int)1] + (signed int)src[(signed long int)4] * (signed int)tab_i_04[(signed long int)2] + (signed int)src[(signed long int)6] * (signed int)tab_i_04[(signed long int)3]; idct_M128ASM_scalar$$1$$1$$a1 = (signed int)src[(signed long int)0] * (signed int)tab_i_04[(signed long int)4] + (signed int)src[(signed long int)2] * (signed int)tab_i_04[(signed long int)5] + (signed int)src[(signed long int)4] * (signed int)tab_i_04[(signed long int)6] + (signed int)src[(signed long int)6] * (signed int)tab_i_04[(signed long int)7]; idct_M128ASM_scalar$$1$$1$$a2 = (signed int)src[(signed long int)0] * (signed int)tab_i_04[(signed long int)8] + (signed int)src[(signed long int)2] * (signed int)tab_i_04[(signed long int)9] + (signed int)src[(signed long int)4] * (signed int)tab_i_04[(signed long int)10] + (signed int)src[(signed long int)6] * (signed int)tab_i_04[(signed long int)11]; idct_M128ASM_scalar$$1$$1$$a3 = (signed int)src[(signed long int)0] * (signed int)tab_i_04[(signed long int)12] + (signed int)src[(signed long int)2] * (signed int)tab_i_04[(signed long int)13] + (signed int)src[(signed long int)4] * (signed int)tab_i_04[(signed long int)14] + (signed int)src[(signed long int)6] * (signed int)tab_i_04[(signed long int)15]; idct_M128ASM_scalar$$1$$1$$b0 = (signed int)src[(signed long int)1] * (signed int)tab_i_04[(signed long int)16] + (signed int)src[(signed long int)3] * (signed int)tab_i_04[(signed long int)17] + (signed int)src[(signed long int)5] * (signed int)tab_i_04[(signed long int)18] + (signed int)src[(signed long int)7] * (signed int)tab_i_04[(signed long int)19]; idct_M128ASM_scalar$$1$$1$$b1 = (signed int)src[(signed long int)1] * (signed int)tab_i_04[(signed long int)20] + (signed int)src[(signed long int)3] * (signed int)tab_i_04[(signed long int)21] + (signed int)src[(signed long int)5] * (signed int)tab_i_04[(signed long int)22] + (signed int)src[(signed long int)7] * (signed int)tab_i_04[(signed long int)23]; idct_M128ASM_scalar$$1$$1$$b2 = (signed int)src[(signed long int)1] * (signed int)tab_i_04[(signed long int)24] + (signed int)src[(signed long int)3] * (signed int)tab_i_04[(signed long int)25] + (signed int)src[(signed long int)5] * (signed int)tab_i_04[(signed long int)26] + (signed int)src[(signed long int)7] * (signed int)tab_i_04[(signed long int)27]; idct_M128ASM_scalar$$1$$1$$b3 = (signed int)src[(signed long int)1] * (signed int)tab_i_04[(signed long int)28] + (signed int)src[(signed long int)3] * (signed int)tab_i_04[(signed long int)29] + (signed int)src[(signed long int)5] * (signed int)tab_i_04[(signed long int)30] + (signed int)src[(signed long int)7] * (signed int)tab_i_04[(signed long int)31]; src[(signed long int)0] = (signed short int)(idct_M128ASM_scalar$$1$$1$$a0 + idct_M128ASM_scalar$$1$$1$$b0 + (signed int)RND_INV_ROW >> 16 - 4); src[(signed long int)1] = (signed short int)(idct_M128ASM_scalar$$1$$1$$a1 + idct_M128ASM_scalar$$1$$1$$b1 + (signed int)RND_INV_ROW >> 16 - 4); src[(signed long int)2] = (signed short int)(idct_M128ASM_scalar$$1$$1$$a2 + idct_M128ASM_scalar$$1$$1$$b2 + (signed int)RND_INV_ROW >> 16 - 4); src[(signed long int)3] = (signed short int)(idct_M128ASM_scalar$$1$$1$$a3 + idct_M128ASM_scalar$$1$$1$$b3 + (signed int)RND_INV_ROW >> 16 - 4); src[(signed long int)4] = (signed short int)((idct_M128ASM_scalar$$1$$1$$a3 - idct_M128ASM_scalar$$1$$1$$b3) + (signed int)RND_INV_ROW >> 16 - 4); src[(signed long int)5] = (signed short int)((idct_M128ASM_scalar$$1$$1$$a2 - idct_M128ASM_scalar$$1$$1$$b2) + (signed int)RND_INV_ROW >> 16 - 4); src[(signed long int)6] = (signed short int)((idct_M128ASM_scalar$$1$$1$$a1 - idct_M128ASM_scalar$$1$$1$$b1) + (signed int)RND_INV_ROW >> 16 - 4); src[(signed long int)7] = (signed short int)((idct_M128ASM_scalar$$1$$1$$a0 - idct_M128ASM_scalar$$1$$1$$b0) + (signed int)RND_INV_ROW >> 16 - 4); signed int idct_M128ASM_scalar$$1$$2$$a0; signed int idct_M128ASM_scalar$$1$$2$$a1; signed int idct_M128ASM_scalar$$1$$2$$a2; signed int idct_M128ASM_scalar$$1$$2$$a3; signed int idct_M128ASM_scalar$$1$$2$$b0; signed int idct_M128ASM_scalar$$1$$2$$b1; signed int idct_M128ASM_scalar$$1$$2$$b2; signed int idct_M128ASM_scalar$$1$$2$$b3; idct_M128ASM_scalar$$1$$2$$a0 = (signed int)(src + (signed long int)(8 * 4))[(signed long int)0] * (signed int)tab_i_04[(signed long int)0] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)2] * (signed int)tab_i_04[(signed long int)1] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)4] * (signed int)tab_i_04[(signed long int)2] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)6] * (signed int)tab_i_04[(signed long int)3]; idct_M128ASM_scalar$$1$$2$$a1 = (signed int)(src + (signed long int)(8 * 4))[(signed long int)0] * (signed int)tab_i_04[(signed long int)4] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)2] * (signed int)tab_i_04[(signed long int)5] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)4] * (signed int)tab_i_04[(signed long int)6] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)6] * (signed int)tab_i_04[(signed long int)7]; idct_M128ASM_scalar$$1$$2$$a2 = (signed int)(src + (signed long int)(8 * 4))[(signed long int)0] * (signed int)tab_i_04[(signed long int)8] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)2] * (signed int)tab_i_04[(signed long int)9] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)4] * (signed int)tab_i_04[(signed long int)10] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)6] * (signed int)tab_i_04[(signed long int)11]; idct_M128ASM_scalar$$1$$2$$a3 = (signed int)(src + (signed long int)(8 * 4))[(signed long int)0] * (signed int)tab_i_04[(signed long int)12] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)2] * (signed int)tab_i_04[(signed long int)13] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)4] * (signed int)tab_i_04[(signed long int)14] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)6] * (signed int)tab_i_04[(signed long int)15]; idct_M128ASM_scalar$$1$$2$$b0 = (signed int)(src + (signed long int)(8 * 4))[(signed long int)1] * (signed int)tab_i_04[(signed long int)16] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)3] * (signed int)tab_i_04[(signed long int)17] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)5] * (signed int)tab_i_04[(signed long int)18] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)7] * (signed int)tab_i_04[(signed long int)19]; idct_M128ASM_scalar$$1$$2$$b1 = (signed int)(src + (signed long int)(8 * 4))[(signed long int)1] * (signed int)tab_i_04[(signed long int)20] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)3] * (signed int)tab_i_04[(signed long int)21] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)5] * (signed int)tab_i_04[(signed long int)22] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)7] * (signed int)tab_i_04[(signed long int)23]; idct_M128ASM_scalar$$1$$2$$b2 = (signed int)(src + (signed long int)(8 * 4))[(signed long int)1] * (signed int)tab_i_04[(signed long int)24] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)3] * (signed int)tab_i_04[(signed long int)25] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)5] * (signed int)tab_i_04[(signed long int)26] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)7] * (signed int)tab_i_04[(signed long int)27]; idct_M128ASM_scalar$$1$$2$$b3 = (signed int)(src + (signed long int)(8 * 4))[(signed long int)1] * (signed int)tab_i_04[(signed long int)28] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)3] * (signed int)tab_i_04[(signed long int)29] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)5] * (signed int)tab_i_04[(signed long int)30] + (signed int)(src + (signed long int)(8 * 4))[(signed long int)7] * (signed int)tab_i_04[(signed long int)31]; (src + (signed long int)(8 * 4))[(signed long int)0] = (signed short int)(idct_M128ASM_scalar$$1$$2$$a0 + idct_M128ASM_scalar$$1$$2$$b0 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 4))[(signed long int)1] = (signed short int)(idct_M128ASM_scalar$$1$$2$$a1 + idct_M128ASM_scalar$$1$$2$$b1 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 4))[(signed long int)2] = (signed short int)(idct_M128ASM_scalar$$1$$2$$a2 + idct_M128ASM_scalar$$1$$2$$b2 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 4))[(signed long int)3] = (signed short int)(idct_M128ASM_scalar$$1$$2$$a3 + idct_M128ASM_scalar$$1$$2$$b3 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 4))[(signed long int)4] = (signed short int)((idct_M128ASM_scalar$$1$$2$$a3 - idct_M128ASM_scalar$$1$$2$$b3) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 4))[(signed long int)5] = (signed short int)((idct_M128ASM_scalar$$1$$2$$a2 - idct_M128ASM_scalar$$1$$2$$b2) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 4))[(signed long int)6] = (signed short int)((idct_M128ASM_scalar$$1$$2$$a1 - idct_M128ASM_scalar$$1$$2$$b1) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 4))[(signed long int)7] = (signed short int)((idct_M128ASM_scalar$$1$$2$$a0 - idct_M128ASM_scalar$$1$$2$$b0) + (signed int)RND_INV_ROW >> 16 - 4); signed int idct_M128ASM_scalar$$1$$3$$a0; signed int idct_M128ASM_scalar$$1$$3$$a1; signed int idct_M128ASM_scalar$$1$$3$$a2; signed int idct_M128ASM_scalar$$1$$3$$a3; signed int idct_M128ASM_scalar$$1$$3$$b0; signed int idct_M128ASM_scalar$$1$$3$$b1; signed int idct_M128ASM_scalar$$1$$3$$b2; signed int idct_M128ASM_scalar$$1$$3$$b3; idct_M128ASM_scalar$$1$$3$$a0 = (signed int)(src + (signed long int)8)[(signed long int)0] * (signed int)tab_i_17[(signed long int)0] + (signed int)(src + (signed long int)8)[(signed long int)2] * (signed int)tab_i_17[(signed long int)1] + (signed int)(src + (signed long int)8)[(signed long int)4] * (signed int)tab_i_17[(signed long int)2] + (signed int)(src + (signed long int)8)[(signed long int)6] * (signed int)tab_i_17[(signed long int)3]; idct_M128ASM_scalar$$1$$3$$a1 = (signed int)(src + (signed long int)8)[(signed long int)0] * (signed int)tab_i_17[(signed long int)4] + (signed int)(src + (signed long int)8)[(signed long int)2] * (signed int)tab_i_17[(signed long int)5] + (signed int)(src + (signed long int)8)[(signed long int)4] * (signed int)tab_i_17[(signed long int)6] + (signed int)(src + (signed long int)8)[(signed long int)6] * (signed int)tab_i_17[(signed long int)7]; idct_M128ASM_scalar$$1$$3$$a2 = (signed int)(src + (signed long int)8)[(signed long int)0] * (signed int)tab_i_17[(signed long int)8] + (signed int)(src + (signed long int)8)[(signed long int)2] * (signed int)tab_i_17[(signed long int)9] + (signed int)(src + (signed long int)8)[(signed long int)4] * (signed int)tab_i_17[(signed long int)10] + (signed int)(src + (signed long int)8)[(signed long int)6] * (signed int)tab_i_17[(signed long int)11]; idct_M128ASM_scalar$$1$$3$$a3 = (signed int)(src + (signed long int)8)[(signed long int)0] * (signed int)tab_i_17[(signed long int)12] + (signed int)(src + (signed long int)8)[(signed long int)2] * (signed int)tab_i_17[(signed long int)13] + (signed int)(src + (signed long int)8)[(signed long int)4] * (signed int)tab_i_17[(signed long int)14] + (signed int)(src + (signed long int)8)[(signed long int)6] * (signed int)tab_i_17[(signed long int)15]; idct_M128ASM_scalar$$1$$3$$b0 = (signed int)(src + (signed long int)8)[(signed long int)1] * (signed int)tab_i_17[(signed long int)16] + (signed int)(src + (signed long int)8)[(signed long int)3] * (signed int)tab_i_17[(signed long int)17] + (signed int)(src + (signed long int)8)[(signed long int)5] * (signed int)tab_i_17[(signed long int)18] + (signed int)(src + (signed long int)8)[(signed long int)7] * (signed int)tab_i_17[(signed long int)19]; idct_M128ASM_scalar$$1$$3$$b1 = (signed int)(src + (signed long int)8)[(signed long int)1] * (signed int)tab_i_17[(signed long int)20] + (signed int)(src + (signed long int)8)[(signed long int)3] * (signed int)tab_i_17[(signed long int)21] + (signed int)(src + (signed long int)8)[(signed long int)5] * (signed int)tab_i_17[(signed long int)22] + (signed int)(src + (signed long int)8)[(signed long int)7] * (signed int)tab_i_17[(signed long int)23]; idct_M128ASM_scalar$$1$$3$$b2 = (signed int)(src + (signed long int)8)[(signed long int)1] * (signed int)tab_i_17[(signed long int)24] + (signed int)(src + (signed long int)8)[(signed long int)3] * (signed int)tab_i_17[(signed long int)25] + (signed int)(src + (signed long int)8)[(signed long int)5] * (signed int)tab_i_17[(signed long int)26] + (signed int)(src + (signed long int)8)[(signed long int)7] * (signed int)tab_i_17[(signed long int)27]; idct_M128ASM_scalar$$1$$3$$b3 = (signed int)(src + (signed long int)8)[(signed long int)1] * (signed int)tab_i_17[(signed long int)28] + (signed int)(src + (signed long int)8)[(signed long int)3] * (signed int)tab_i_17[(signed long int)29] + (signed int)(src + (signed long int)8)[(signed long int)5] * (signed int)tab_i_17[(signed long int)30] + (signed int)(src + (signed long int)8)[(signed long int)7] * (signed int)tab_i_17[(signed long int)31]; (src + (signed long int)8)[(signed long int)0] = (signed short int)(idct_M128ASM_scalar$$1$$3$$a0 + idct_M128ASM_scalar$$1$$3$$b0 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)8)[(signed long int)1] = (signed short int)(idct_M128ASM_scalar$$1$$3$$a1 + idct_M128ASM_scalar$$1$$3$$b1 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)8)[(signed long int)2] = (signed short int)(idct_M128ASM_scalar$$1$$3$$a2 + idct_M128ASM_scalar$$1$$3$$b2 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)8)[(signed long int)3] = (signed short int)(idct_M128ASM_scalar$$1$$3$$a3 + idct_M128ASM_scalar$$1$$3$$b3 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)8)[(signed long int)4] = (signed short int)((idct_M128ASM_scalar$$1$$3$$a3 - idct_M128ASM_scalar$$1$$3$$b3) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)8)[(signed long int)5] = (signed short int)((idct_M128ASM_scalar$$1$$3$$a2 - idct_M128ASM_scalar$$1$$3$$b2) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)8)[(signed long int)6] = (signed short int)((idct_M128ASM_scalar$$1$$3$$a1 - idct_M128ASM_scalar$$1$$3$$b1) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)8)[(signed long int)7] = (signed short int)((idct_M128ASM_scalar$$1$$3$$a0 - idct_M128ASM_scalar$$1$$3$$b0) + (signed int)RND_INV_ROW >> 16 - 4); signed int idct_M128ASM_scalar$$1$$4$$a0; signed int idct_M128ASM_scalar$$1$$4$$a1; signed int idct_M128ASM_scalar$$1$$4$$a2; signed int idct_M128ASM_scalar$$1$$4$$a3; signed int idct_M128ASM_scalar$$1$$4$$b0; signed int idct_M128ASM_scalar$$1$$4$$b1; signed int idct_M128ASM_scalar$$1$$4$$b2; signed int idct_M128ASM_scalar$$1$$4$$b3; idct_M128ASM_scalar$$1$$4$$a0 = (signed int)(src + (signed long int)(8 * 7))[(signed long int)0] * (signed int)tab_i_17[(signed long int)0] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)2] * (signed int)tab_i_17[(signed long int)1] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)4] * (signed int)tab_i_17[(signed long int)2] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)6] * (signed int)tab_i_17[(signed long int)3]; idct_M128ASM_scalar$$1$$4$$a1 = (signed int)(src + (signed long int)(8 * 7))[(signed long int)0] * (signed int)tab_i_17[(signed long int)4] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)2] * (signed int)tab_i_17[(signed long int)5] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)4] * (signed int)tab_i_17[(signed long int)6] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)6] * (signed int)tab_i_17[(signed long int)7]; idct_M128ASM_scalar$$1$$4$$a2 = (signed int)(src + (signed long int)(8 * 7))[(signed long int)0] * (signed int)tab_i_17[(signed long int)8] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)2] * (signed int)tab_i_17[(signed long int)9] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)4] * (signed int)tab_i_17[(signed long int)10] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)6] * (signed int)tab_i_17[(signed long int)11]; idct_M128ASM_scalar$$1$$4$$a3 = (signed int)(src + (signed long int)(8 * 7))[(signed long int)0] * (signed int)tab_i_17[(signed long int)12] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)2] * (signed int)tab_i_17[(signed long int)13] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)4] * (signed int)tab_i_17[(signed long int)14] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)6] * (signed int)tab_i_17[(signed long int)15]; idct_M128ASM_scalar$$1$$4$$b0 = (signed int)(src + (signed long int)(8 * 7))[(signed long int)1] * (signed int)tab_i_17[(signed long int)16] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)3] * (signed int)tab_i_17[(signed long int)17] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)5] * (signed int)tab_i_17[(signed long int)18] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)7] * (signed int)tab_i_17[(signed long int)19]; idct_M128ASM_scalar$$1$$4$$b1 = (signed int)(src + (signed long int)(8 * 7))[(signed long int)1] * (signed int)tab_i_17[(signed long int)20] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)3] * (signed int)tab_i_17[(signed long int)21] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)5] * (signed int)tab_i_17[(signed long int)22] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)7] * (signed int)tab_i_17[(signed long int)23]; idct_M128ASM_scalar$$1$$4$$b2 = (signed int)(src + (signed long int)(8 * 7))[(signed long int)1] * (signed int)tab_i_17[(signed long int)24] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)3] * (signed int)tab_i_17[(signed long int)25] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)5] * (signed int)tab_i_17[(signed long int)26] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)7] * (signed int)tab_i_17[(signed long int)27]; idct_M128ASM_scalar$$1$$4$$b3 = (signed int)(src + (signed long int)(8 * 7))[(signed long int)1] * (signed int)tab_i_17[(signed long int)28] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)3] * (signed int)tab_i_17[(signed long int)29] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)5] * (signed int)tab_i_17[(signed long int)30] + (signed int)(src + (signed long int)(8 * 7))[(signed long int)7] * (signed int)tab_i_17[(signed long int)31]; (src + (signed long int)(8 * 7))[(signed long int)0] = (signed short int)(idct_M128ASM_scalar$$1$$4$$a0 + idct_M128ASM_scalar$$1$$4$$b0 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 7))[(signed long int)1] = (signed short int)(idct_M128ASM_scalar$$1$$4$$a1 + idct_M128ASM_scalar$$1$$4$$b1 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 7))[(signed long int)2] = (signed short int)(idct_M128ASM_scalar$$1$$4$$a2 + idct_M128ASM_scalar$$1$$4$$b2 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 7))[(signed long int)3] = (signed short int)(idct_M128ASM_scalar$$1$$4$$a3 + idct_M128ASM_scalar$$1$$4$$b3 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 7))[(signed long int)4] = (signed short int)((idct_M128ASM_scalar$$1$$4$$a3 - idct_M128ASM_scalar$$1$$4$$b3) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 7))[(signed long int)5] = (signed short int)((idct_M128ASM_scalar$$1$$4$$a2 - idct_M128ASM_scalar$$1$$4$$b2) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 7))[(signed long int)6] = (signed short int)((idct_M128ASM_scalar$$1$$4$$a1 - idct_M128ASM_scalar$$1$$4$$b1) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 7))[(signed long int)7] = (signed short int)((idct_M128ASM_scalar$$1$$4$$a0 - idct_M128ASM_scalar$$1$$4$$b0) + (signed int)RND_INV_ROW >> 16 - 4); signed int idct_M128ASM_scalar$$1$$5$$a0; signed int idct_M128ASM_scalar$$1$$5$$a1; signed int idct_M128ASM_scalar$$1$$5$$a2; signed int idct_M128ASM_scalar$$1$$5$$a3; signed int idct_M128ASM_scalar$$1$$5$$b0; signed int idct_M128ASM_scalar$$1$$5$$b1; signed int idct_M128ASM_scalar$$1$$5$$b2; signed int idct_M128ASM_scalar$$1$$5$$b3; idct_M128ASM_scalar$$1$$5$$a0 = (signed int)(src + (signed long int)(8 * 2))[(signed long int)0] * (signed int)tab_i_26[(signed long int)0] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)2] * (signed int)tab_i_26[(signed long int)1] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)4] * (signed int)tab_i_26[(signed long int)2] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)6] * (signed int)tab_i_26[(signed long int)3]; idct_M128ASM_scalar$$1$$5$$a1 = (signed int)(src + (signed long int)(8 * 2))[(signed long int)0] * (signed int)tab_i_26[(signed long int)4] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)2] * (signed int)tab_i_26[(signed long int)5] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)4] * (signed int)tab_i_26[(signed long int)6] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)6] * (signed int)tab_i_26[(signed long int)7]; idct_M128ASM_scalar$$1$$5$$a2 = (signed int)(src + (signed long int)(8 * 2))[(signed long int)0] * (signed int)tab_i_26[(signed long int)8] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)2] * (signed int)tab_i_26[(signed long int)9] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)4] * (signed int)tab_i_26[(signed long int)10] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)6] * (signed int)tab_i_26[(signed long int)11]; idct_M128ASM_scalar$$1$$5$$a3 = (signed int)(src + (signed long int)(8 * 2))[(signed long int)0] * (signed int)tab_i_26[(signed long int)12] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)2] * (signed int)tab_i_26[(signed long int)13] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)4] * (signed int)tab_i_26[(signed long int)14] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)6] * (signed int)tab_i_26[(signed long int)15]; idct_M128ASM_scalar$$1$$5$$b0 = (signed int)(src + (signed long int)(8 * 2))[(signed long int)1] * (signed int)tab_i_26[(signed long int)16] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)3] * (signed int)tab_i_26[(signed long int)17] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)5] * (signed int)tab_i_26[(signed long int)18] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)7] * (signed int)tab_i_26[(signed long int)19]; idct_M128ASM_scalar$$1$$5$$b1 = (signed int)(src + (signed long int)(8 * 2))[(signed long int)1] * (signed int)tab_i_26[(signed long int)20] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)3] * (signed int)tab_i_26[(signed long int)21] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)5] * (signed int)tab_i_26[(signed long int)22] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)7] * (signed int)tab_i_26[(signed long int)23]; idct_M128ASM_scalar$$1$$5$$b2 = (signed int)(src + (signed long int)(8 * 2))[(signed long int)1] * (signed int)tab_i_26[(signed long int)24] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)3] * (signed int)tab_i_26[(signed long int)25] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)5] * (signed int)tab_i_26[(signed long int)26] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)7] * (signed int)tab_i_26[(signed long int)27]; idct_M128ASM_scalar$$1$$5$$b3 = (signed int)(src + (signed long int)(8 * 2))[(signed long int)1] * (signed int)tab_i_26[(signed long int)28] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)3] * (signed int)tab_i_26[(signed long int)29] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)5] * (signed int)tab_i_26[(signed long int)30] + (signed int)(src + (signed long int)(8 * 2))[(signed long int)7] * (signed int)tab_i_26[(signed long int)31]; (src + (signed long int)(8 * 2))[(signed long int)0] = (signed short int)(idct_M128ASM_scalar$$1$$5$$a0 + idct_M128ASM_scalar$$1$$5$$b0 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 2))[(signed long int)1] = (signed short int)(idct_M128ASM_scalar$$1$$5$$a1 + idct_M128ASM_scalar$$1$$5$$b1 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 2))[(signed long int)2] = (signed short int)(idct_M128ASM_scalar$$1$$5$$a2 + idct_M128ASM_scalar$$1$$5$$b2 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 2))[(signed long int)3] = (signed short int)(idct_M128ASM_scalar$$1$$5$$a3 + idct_M128ASM_scalar$$1$$5$$b3 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 2))[(signed long int)4] = (signed short int)((idct_M128ASM_scalar$$1$$5$$a3 - idct_M128ASM_scalar$$1$$5$$b3) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 2))[(signed long int)5] = (signed short int)((idct_M128ASM_scalar$$1$$5$$a2 - idct_M128ASM_scalar$$1$$5$$b2) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 2))[(signed long int)6] = (signed short int)((idct_M128ASM_scalar$$1$$5$$a1 - idct_M128ASM_scalar$$1$$5$$b1) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 2))[(signed long int)7] = (signed short int)((idct_M128ASM_scalar$$1$$5$$a0 - idct_M128ASM_scalar$$1$$5$$b0) + (signed int)RND_INV_ROW >> 16 - 4); signed int idct_M128ASM_scalar$$1$$6$$a0; signed int idct_M128ASM_scalar$$1$$6$$a1; signed int idct_M128ASM_scalar$$1$$6$$a2; signed int idct_M128ASM_scalar$$1$$6$$a3; signed int idct_M128ASM_scalar$$1$$6$$b0; signed int idct_M128ASM_scalar$$1$$6$$b1; signed int idct_M128ASM_scalar$$1$$6$$b2; signed int idct_M128ASM_scalar$$1$$6$$b3; idct_M128ASM_scalar$$1$$6$$a0 = (signed int)(src + (signed long int)(8 * 6))[(signed long int)0] * (signed int)tab_i_26[(signed long int)0] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)2] * (signed int)tab_i_26[(signed long int)1] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)4] * (signed int)tab_i_26[(signed long int)2] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)6] * (signed int)tab_i_26[(signed long int)3]; idct_M128ASM_scalar$$1$$6$$a1 = (signed int)(src + (signed long int)(8 * 6))[(signed long int)0] * (signed int)tab_i_26[(signed long int)4] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)2] * (signed int)tab_i_26[(signed long int)5] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)4] * (signed int)tab_i_26[(signed long int)6] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)6] * (signed int)tab_i_26[(signed long int)7]; idct_M128ASM_scalar$$1$$6$$a2 = (signed int)(src + (signed long int)(8 * 6))[(signed long int)0] * (signed int)tab_i_26[(signed long int)8] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)2] * (signed int)tab_i_26[(signed long int)9] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)4] * (signed int)tab_i_26[(signed long int)10] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)6] * (signed int)tab_i_26[(signed long int)11]; idct_M128ASM_scalar$$1$$6$$a3 = (signed int)(src + (signed long int)(8 * 6))[(signed long int)0] * (signed int)tab_i_26[(signed long int)12] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)2] * (signed int)tab_i_26[(signed long int)13] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)4] * (signed int)tab_i_26[(signed long int)14] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)6] * (signed int)tab_i_26[(signed long int)15]; idct_M128ASM_scalar$$1$$6$$b0 = (signed int)(src + (signed long int)(8 * 6))[(signed long int)1] * (signed int)tab_i_26[(signed long int)16] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)3] * (signed int)tab_i_26[(signed long int)17] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)5] * (signed int)tab_i_26[(signed long int)18] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)7] * (signed int)tab_i_26[(signed long int)19]; idct_M128ASM_scalar$$1$$6$$b1 = (signed int)(src + (signed long int)(8 * 6))[(signed long int)1] * (signed int)tab_i_26[(signed long int)20] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)3] * (signed int)tab_i_26[(signed long int)21] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)5] * (signed int)tab_i_26[(signed long int)22] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)7] * (signed int)tab_i_26[(signed long int)23]; idct_M128ASM_scalar$$1$$6$$b2 = (signed int)(src + (signed long int)(8 * 6))[(signed long int)1] * (signed int)tab_i_26[(signed long int)24] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)3] * (signed int)tab_i_26[(signed long int)25] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)5] * (signed int)tab_i_26[(signed long int)26] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)7] * (signed int)tab_i_26[(signed long int)27]; idct_M128ASM_scalar$$1$$6$$b3 = (signed int)(src + (signed long int)(8 * 6))[(signed long int)1] * (signed int)tab_i_26[(signed long int)28] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)3] * (signed int)tab_i_26[(signed long int)29] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)5] * (signed int)tab_i_26[(signed long int)30] + (signed int)(src + (signed long int)(8 * 6))[(signed long int)7] * (signed int)tab_i_26[(signed long int)31]; (src + (signed long int)(8 * 6))[(signed long int)0] = (signed short int)(idct_M128ASM_scalar$$1$$6$$a0 + idct_M128ASM_scalar$$1$$6$$b0 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 6))[(signed long int)1] = (signed short int)(idct_M128ASM_scalar$$1$$6$$a1 + idct_M128ASM_scalar$$1$$6$$b1 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 6))[(signed long int)2] = (signed short int)(idct_M128ASM_scalar$$1$$6$$a2 + idct_M128ASM_scalar$$1$$6$$b2 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 6))[(signed long int)3] = (signed short int)(idct_M128ASM_scalar$$1$$6$$a3 + idct_M128ASM_scalar$$1$$6$$b3 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 6))[(signed long int)4] = (signed short int)((idct_M128ASM_scalar$$1$$6$$a3 - idct_M128ASM_scalar$$1$$6$$b3) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 6))[(signed long int)5] = (signed short int)((idct_M128ASM_scalar$$1$$6$$a2 - idct_M128ASM_scalar$$1$$6$$b2) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 6))[(signed long int)6] = (signed short int)((idct_M128ASM_scalar$$1$$6$$a1 - idct_M128ASM_scalar$$1$$6$$b1) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 6))[(signed long int)7] = (signed short int)((idct_M128ASM_scalar$$1$$6$$a0 - idct_M128ASM_scalar$$1$$6$$b0) + (signed int)RND_INV_ROW >> 16 - 4); signed int idct_M128ASM_scalar$$1$$7$$a0; signed int idct_M128ASM_scalar$$1$$7$$a1; signed int idct_M128ASM_scalar$$1$$7$$a2; signed int idct_M128ASM_scalar$$1$$7$$a3; signed int idct_M128ASM_scalar$$1$$7$$b0; signed int idct_M128ASM_scalar$$1$$7$$b1; signed int idct_M128ASM_scalar$$1$$7$$b2; signed int idct_M128ASM_scalar$$1$$7$$b3; idct_M128ASM_scalar$$1$$7$$a0 = (signed int)(src + (signed long int)(8 * 3))[(signed long int)0] * (signed int)tab_i_35[(signed long int)0] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)2] * (signed int)tab_i_35[(signed long int)1] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)4] * (signed int)tab_i_35[(signed long int)2] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)6] * (signed int)tab_i_35[(signed long int)3]; idct_M128ASM_scalar$$1$$7$$a1 = (signed int)(src + (signed long int)(8 * 3))[(signed long int)0] * (signed int)tab_i_35[(signed long int)4] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)2] * (signed int)tab_i_35[(signed long int)5] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)4] * (signed int)tab_i_35[(signed long int)6] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)6] * (signed int)tab_i_35[(signed long int)7]; idct_M128ASM_scalar$$1$$7$$a2 = (signed int)(src + (signed long int)(8 * 3))[(signed long int)0] * (signed int)tab_i_35[(signed long int)8] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)2] * (signed int)tab_i_35[(signed long int)9] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)4] * (signed int)tab_i_35[(signed long int)10] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)6] * (signed int)tab_i_35[(signed long int)11]; idct_M128ASM_scalar$$1$$7$$a3 = (signed int)(src + (signed long int)(8 * 3))[(signed long int)0] * (signed int)tab_i_35[(signed long int)12] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)2] * (signed int)tab_i_35[(signed long int)13] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)4] * (signed int)tab_i_35[(signed long int)14] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)6] * (signed int)tab_i_35[(signed long int)15]; idct_M128ASM_scalar$$1$$7$$b0 = (signed int)(src + (signed long int)(8 * 3))[(signed long int)1] * (signed int)tab_i_35[(signed long int)16] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)3] * (signed int)tab_i_35[(signed long int)17] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)5] * (signed int)tab_i_35[(signed long int)18] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)7] * (signed int)tab_i_35[(signed long int)19]; idct_M128ASM_scalar$$1$$7$$b1 = (signed int)(src + (signed long int)(8 * 3))[(signed long int)1] * (signed int)tab_i_35[(signed long int)20] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)3] * (signed int)tab_i_35[(signed long int)21] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)5] * (signed int)tab_i_35[(signed long int)22] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)7] * (signed int)tab_i_35[(signed long int)23]; idct_M128ASM_scalar$$1$$7$$b2 = (signed int)(src + (signed long int)(8 * 3))[(signed long int)1] * (signed int)tab_i_35[(signed long int)24] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)3] * (signed int)tab_i_35[(signed long int)25] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)5] * (signed int)tab_i_35[(signed long int)26] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)7] * (signed int)tab_i_35[(signed long int)27]; idct_M128ASM_scalar$$1$$7$$b3 = (signed int)(src + (signed long int)(8 * 3))[(signed long int)1] * (signed int)tab_i_35[(signed long int)28] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)3] * (signed int)tab_i_35[(signed long int)29] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)5] * (signed int)tab_i_35[(signed long int)30] + (signed int)(src + (signed long int)(8 * 3))[(signed long int)7] * (signed int)tab_i_35[(signed long int)31]; (src + (signed long int)(8 * 3))[(signed long int)0] = (signed short int)(idct_M128ASM_scalar$$1$$7$$a0 + idct_M128ASM_scalar$$1$$7$$b0 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 3))[(signed long int)1] = (signed short int)(idct_M128ASM_scalar$$1$$7$$a1 + idct_M128ASM_scalar$$1$$7$$b1 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 3))[(signed long int)2] = (signed short int)(idct_M128ASM_scalar$$1$$7$$a2 + idct_M128ASM_scalar$$1$$7$$b2 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 3))[(signed long int)3] = (signed short int)(idct_M128ASM_scalar$$1$$7$$a3 + idct_M128ASM_scalar$$1$$7$$b3 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 3))[(signed long int)4] = (signed short int)((idct_M128ASM_scalar$$1$$7$$a3 - idct_M128ASM_scalar$$1$$7$$b3) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 3))[(signed long int)5] = (signed short int)((idct_M128ASM_scalar$$1$$7$$a2 - idct_M128ASM_scalar$$1$$7$$b2) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 3))[(signed long int)6] = (signed short int)((idct_M128ASM_scalar$$1$$7$$a1 - idct_M128ASM_scalar$$1$$7$$b1) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 3))[(signed long int)7] = (signed short int)((idct_M128ASM_scalar$$1$$7$$a0 - idct_M128ASM_scalar$$1$$7$$b0) + (signed int)RND_INV_ROW >> 16 - 4); signed int idct_M128ASM_scalar$$1$$8$$a0; signed int idct_M128ASM_scalar$$1$$8$$a1; signed int idct_M128ASM_scalar$$1$$8$$a2; signed int idct_M128ASM_scalar$$1$$8$$a3; signed int idct_M128ASM_scalar$$1$$8$$b0; signed int idct_M128ASM_scalar$$1$$8$$b1; signed int idct_M128ASM_scalar$$1$$8$$b2; signed int idct_M128ASM_scalar$$1$$8$$b3; idct_M128ASM_scalar$$1$$8$$a0 = (signed int)(src + (signed long int)(8 * 5))[(signed long int)0] * (signed int)tab_i_35[(signed long int)0] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)2] * (signed int)tab_i_35[(signed long int)1] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)4] * (signed int)tab_i_35[(signed long int)2] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)6] * (signed int)tab_i_35[(signed long int)3]; idct_M128ASM_scalar$$1$$8$$a1 = (signed int)(src + (signed long int)(8 * 5))[(signed long int)0] * (signed int)tab_i_35[(signed long int)4] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)2] * (signed int)tab_i_35[(signed long int)5] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)4] * (signed int)tab_i_35[(signed long int)6] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)6] * (signed int)tab_i_35[(signed long int)7]; idct_M128ASM_scalar$$1$$8$$a2 = (signed int)(src + (signed long int)(8 * 5))[(signed long int)0] * (signed int)tab_i_35[(signed long int)8] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)2] * (signed int)tab_i_35[(signed long int)9] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)4] * (signed int)tab_i_35[(signed long int)10] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)6] * (signed int)tab_i_35[(signed long int)11]; idct_M128ASM_scalar$$1$$8$$a3 = (signed int)(src + (signed long int)(8 * 5))[(signed long int)0] * (signed int)tab_i_35[(signed long int)12] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)2] * (signed int)tab_i_35[(signed long int)13] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)4] * (signed int)tab_i_35[(signed long int)14] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)6] * (signed int)tab_i_35[(signed long int)15]; idct_M128ASM_scalar$$1$$8$$b0 = (signed int)(src + (signed long int)(8 * 5))[(signed long int)1] * (signed int)tab_i_35[(signed long int)16] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)3] * (signed int)tab_i_35[(signed long int)17] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)5] * (signed int)tab_i_35[(signed long int)18] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)7] * (signed int)tab_i_35[(signed long int)19]; idct_M128ASM_scalar$$1$$8$$b1 = (signed int)(src + (signed long int)(8 * 5))[(signed long int)1] * (signed int)tab_i_35[(signed long int)20] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)3] * (signed int)tab_i_35[(signed long int)21] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)5] * (signed int)tab_i_35[(signed long int)22] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)7] * (signed int)tab_i_35[(signed long int)23]; idct_M128ASM_scalar$$1$$8$$b2 = (signed int)(src + (signed long int)(8 * 5))[(signed long int)1] * (signed int)tab_i_35[(signed long int)24] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)3] * (signed int)tab_i_35[(signed long int)25] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)5] * (signed int)tab_i_35[(signed long int)26] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)7] * (signed int)tab_i_35[(signed long int)27]; idct_M128ASM_scalar$$1$$8$$b3 = (signed int)(src + (signed long int)(8 * 5))[(signed long int)1] * (signed int)tab_i_35[(signed long int)28] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)3] * (signed int)tab_i_35[(signed long int)29] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)5] * (signed int)tab_i_35[(signed long int)30] + (signed int)(src + (signed long int)(8 * 5))[(signed long int)7] * (signed int)tab_i_35[(signed long int)31]; (src + (signed long int)(8 * 5))[(signed long int)0] = (signed short int)(idct_M128ASM_scalar$$1$$8$$a0 + idct_M128ASM_scalar$$1$$8$$b0 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 5))[(signed long int)1] = (signed short int)(idct_M128ASM_scalar$$1$$8$$a1 + idct_M128ASM_scalar$$1$$8$$b1 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 5))[(signed long int)2] = (signed short int)(idct_M128ASM_scalar$$1$$8$$a2 + idct_M128ASM_scalar$$1$$8$$b2 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 5))[(signed long int)3] = (signed short int)(idct_M128ASM_scalar$$1$$8$$a3 + idct_M128ASM_scalar$$1$$8$$b3 + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 5))[(signed long int)4] = (signed short int)((idct_M128ASM_scalar$$1$$8$$a3 - idct_M128ASM_scalar$$1$$8$$b3) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 5))[(signed long int)5] = (signed short int)((idct_M128ASM_scalar$$1$$8$$a2 - idct_M128ASM_scalar$$1$$8$$b2) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 5))[(signed long int)6] = (signed short int)((idct_M128ASM_scalar$$1$$8$$a1 - idct_M128ASM_scalar$$1$$8$$b1) + (signed int)RND_INV_ROW >> 16 - 4); (src + (signed long int)(8 * 5))[(signed long int)7] = (signed short int)((idct_M128ASM_scalar$$1$$8$$a0 - idct_M128ASM_scalar$$1$$8$$b0) + (signed int)RND_INV_ROW >> 16 - 4); signed int idct_M128ASM_scalar$$1$$9$$t0; signed int idct_M128ASM_scalar$$1$$9$$t1; signed int idct_M128ASM_scalar$$1$$9$$t2; signed int idct_M128ASM_scalar$$1$$9$$t3; signed int idct_M128ASM_scalar$$1$$9$$t4; signed int idct_M128ASM_scalar$$1$$9$$t5; signed int idct_M128ASM_scalar$$1$$9$$t6; signed int idct_M128ASM_scalar$$1$$9$$t7; signed int idct_M128ASM_scalar$$1$$9$$tp03; signed int idct_M128ASM_scalar$$1$$9$$tm03; signed int idct_M128ASM_scalar$$1$$9$$tp12; signed int idct_M128ASM_scalar$$1$$9$$tm12; signed int idct_M128ASM_scalar$$1$$9$$tp65; signed int idct_M128ASM_scalar$$1$$9$$tm65; signed int idct_M128ASM_scalar$$1$$9$$tp465; signed int idct_M128ASM_scalar$$1$$9$$tm465; signed int idct_M128ASM_scalar$$1$$9$$tp765; signed int idct_M128ASM_scalar$$1$$9$$tm765; idct_M128ASM_scalar$$1$$9$$tp765 = (signed int)src[(signed long int)(8 * 1)] + ((signed int)src[(signed long int)(8 * 7)] * 13036 >> 16); idct_M128ASM_scalar$$1$$9$$tp465 = ((signed int)src[(signed long int)(8 * 1)] * 13036 >> 16) - (signed int)src[(signed long int)(8 * 7)]; idct_M128ASM_scalar$$1$$9$$tm765 = ((signed int)src[(signed long int)(8 * 5)] * -21746 >> 16) + (signed int)src[(signed long int)(8 * 5)] + (signed int)src[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$9$$tm465 = ((signed int)src[(signed long int)(8 * 5)] - ((signed int)src[(signed long int)(8 * 3)] * -21746 >> 16)) - (signed int)src[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$9$$t7 = idct_M128ASM_scalar$$1$$9$$tp765 + idct_M128ASM_scalar$$1$$9$$tm765 + 1; idct_M128ASM_scalar$$1$$9$$tp65 = idct_M128ASM_scalar$$1$$9$$tp765 - idct_M128ASM_scalar$$1$$9$$tm765; idct_M128ASM_scalar$$1$$9$$t4 = idct_M128ASM_scalar$$1$$9$$tp465 + idct_M128ASM_scalar$$1$$9$$tm465; idct_M128ASM_scalar$$1$$9$$tm65 = (idct_M128ASM_scalar$$1$$9$$tp465 - idct_M128ASM_scalar$$1$$9$$tm465) + 1; idct_M128ASM_scalar$$1$$9$$t6 = (signed int)(idct_M128ASM_scalar$$1$$9$$tp65 + idct_M128ASM_scalar$$1$$9$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$9$$t6 = idct_M128ASM_scalar$$1$$9$$t6 + idct_M128ASM_scalar$$1$$9$$tp65 + idct_M128ASM_scalar$$1$$9$$tm65; idct_M128ASM_scalar$$1$$9$$t5 = (signed int)(idct_M128ASM_scalar$$1$$9$$tp65 - idct_M128ASM_scalar$$1$$9$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$9$$t5 = idct_M128ASM_scalar$$1$$9$$t5 + (idct_M128ASM_scalar$$1$$9$$tp65 - idct_M128ASM_scalar$$1$$9$$tm65); idct_M128ASM_scalar$$1$$9$$tp03 = (signed int)src[(signed long int)(8 * 0)] + (signed int)src[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$9$$tp12 = (signed int)src[(signed long int)(8 * 0)] - (signed int)src[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$9$$tm03 = (signed int)src[(signed long int)(8 * 2)] + ((signed int)src[(signed long int)(8 * 6)] * 27146 >> 16); idct_M128ASM_scalar$$1$$9$$tm12 = ((signed int)src[(signed long int)(8 * 2)] * 27146 >> 16) - (signed int)src[(signed long int)(8 * 6)]; idct_M128ASM_scalar$$1$$9$$t0 = idct_M128ASM_scalar$$1$$9$$tp03 + idct_M128ASM_scalar$$1$$9$$tm03 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$9$$t3 = (idct_M128ASM_scalar$$1$$9$$tp03 - idct_M128ASM_scalar$$1$$9$$tm03) + (signed int)RND_INV_CORR; idct_M128ASM_scalar$$1$$9$$t1 = idct_M128ASM_scalar$$1$$9$$tp12 + idct_M128ASM_scalar$$1$$9$$tm12 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$9$$t2 = (idct_M128ASM_scalar$$1$$9$$tp12 - idct_M128ASM_scalar$$1$$9$$tm12) + (signed int)RND_INV_CORR; src[(signed long int)(8 * 0)] = (signed short int)((idct_M128ASM_scalar$$1$$9$$t0 + idct_M128ASM_scalar$$1$$9$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$9$$t0 + idct_M128ASM_scalar$$1$$9$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$9$$t0 + idct_M128ASM_scalar$$1$$9$$t7)) >> 1 + 4); src[(signed long int)(8 * 7)] = (signed short int)((idct_M128ASM_scalar$$1$$9$$t0 - idct_M128ASM_scalar$$1$$9$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$9$$t0 - idct_M128ASM_scalar$$1$$9$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$9$$t0 - idct_M128ASM_scalar$$1$$9$$t7)) >> 1 + 4); src[(signed long int)(8 * 1)] = (signed short int)((idct_M128ASM_scalar$$1$$9$$t1 + idct_M128ASM_scalar$$1$$9$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$9$$t1 + idct_M128ASM_scalar$$1$$9$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$9$$t1 + idct_M128ASM_scalar$$1$$9$$t6)) >> 1 + 4); src[(signed long int)(8 * 6)] = (signed short int)((idct_M128ASM_scalar$$1$$9$$t1 - idct_M128ASM_scalar$$1$$9$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$9$$t1 - idct_M128ASM_scalar$$1$$9$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$9$$t1 - idct_M128ASM_scalar$$1$$9$$t6)) >> 1 + 4); src[(signed long int)(8 * 2)] = (signed short int)((idct_M128ASM_scalar$$1$$9$$t2 + idct_M128ASM_scalar$$1$$9$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$9$$t2 + idct_M128ASM_scalar$$1$$9$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$9$$t2 + idct_M128ASM_scalar$$1$$9$$t5)) >> 1 + 4); src[(signed long int)(8 * 5)] = (signed short int)((idct_M128ASM_scalar$$1$$9$$t2 - idct_M128ASM_scalar$$1$$9$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$9$$t2 - idct_M128ASM_scalar$$1$$9$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$9$$t2 - idct_M128ASM_scalar$$1$$9$$t5)) >> 1 + 4); src[(signed long int)(8 * 3)] = (signed short int)((idct_M128ASM_scalar$$1$$9$$t3 + idct_M128ASM_scalar$$1$$9$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$9$$t3 + idct_M128ASM_scalar$$1$$9$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$9$$t3 + idct_M128ASM_scalar$$1$$9$$t4)) >> 1 + 4); src[(signed long int)(8 * 4)] = (signed short int)((idct_M128ASM_scalar$$1$$9$$t3 - idct_M128ASM_scalar$$1$$9$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$9$$t3 - idct_M128ASM_scalar$$1$$9$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$9$$t3 - idct_M128ASM_scalar$$1$$9$$t4)) >> 1 + 4); signed int idct_M128ASM_scalar$$1$$10$$t0; signed int idct_M128ASM_scalar$$1$$10$$t1; signed int idct_M128ASM_scalar$$1$$10$$t2; signed int idct_M128ASM_scalar$$1$$10$$t3; signed int idct_M128ASM_scalar$$1$$10$$t4; signed int idct_M128ASM_scalar$$1$$10$$t5; signed int idct_M128ASM_scalar$$1$$10$$t6; signed int idct_M128ASM_scalar$$1$$10$$t7; signed int idct_M128ASM_scalar$$1$$10$$tp03; signed int idct_M128ASM_scalar$$1$$10$$tm03; signed int idct_M128ASM_scalar$$1$$10$$tp12; signed int idct_M128ASM_scalar$$1$$10$$tm12; signed int idct_M128ASM_scalar$$1$$10$$tp65; signed int idct_M128ASM_scalar$$1$$10$$tm65; signed int idct_M128ASM_scalar$$1$$10$$tp465; signed int idct_M128ASM_scalar$$1$$10$$tm465; signed int idct_M128ASM_scalar$$1$$10$$tp765; signed int idct_M128ASM_scalar$$1$$10$$tm765; idct_M128ASM_scalar$$1$$10$$tp765 = (signed int)(src + (signed long int)1)[(signed long int)(8 * 1)] + ((signed int)(src + (signed long int)1)[(signed long int)(8 * 7)] * 13036 >> 16); idct_M128ASM_scalar$$1$$10$$tp465 = ((signed int)(src + (signed long int)1)[(signed long int)(8 * 1)] * 13036 >> 16) - (signed int)(src + (signed long int)1)[(signed long int)(8 * 7)]; idct_M128ASM_scalar$$1$$10$$tm765 = ((signed int)(src + (signed long int)1)[(signed long int)(8 * 5)] * -21746 >> 16) + (signed int)(src + (signed long int)1)[(signed long int)(8 * 5)] + (signed int)(src + (signed long int)1)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$10$$tm465 = ((signed int)(src + (signed long int)1)[(signed long int)(8 * 5)] - ((signed int)(src + (signed long int)1)[(signed long int)(8 * 3)] * -21746 >> 16)) - (signed int)(src + (signed long int)1)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$10$$t7 = idct_M128ASM_scalar$$1$$10$$tp765 + idct_M128ASM_scalar$$1$$10$$tm765 + 1; idct_M128ASM_scalar$$1$$10$$tp65 = idct_M128ASM_scalar$$1$$10$$tp765 - idct_M128ASM_scalar$$1$$10$$tm765; idct_M128ASM_scalar$$1$$10$$t4 = idct_M128ASM_scalar$$1$$10$$tp465 + idct_M128ASM_scalar$$1$$10$$tm465; idct_M128ASM_scalar$$1$$10$$tm65 = (idct_M128ASM_scalar$$1$$10$$tp465 - idct_M128ASM_scalar$$1$$10$$tm465) + 1; idct_M128ASM_scalar$$1$$10$$t6 = (signed int)(idct_M128ASM_scalar$$1$$10$$tp65 + idct_M128ASM_scalar$$1$$10$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$10$$t6 = idct_M128ASM_scalar$$1$$10$$t6 + idct_M128ASM_scalar$$1$$10$$tp65 + idct_M128ASM_scalar$$1$$10$$tm65; idct_M128ASM_scalar$$1$$10$$t5 = (signed int)(idct_M128ASM_scalar$$1$$10$$tp65 - idct_M128ASM_scalar$$1$$10$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$10$$t5 = idct_M128ASM_scalar$$1$$10$$t5 + (idct_M128ASM_scalar$$1$$10$$tp65 - idct_M128ASM_scalar$$1$$10$$tm65); idct_M128ASM_scalar$$1$$10$$tp03 = (signed int)(src + (signed long int)1)[(signed long int)(8 * 0)] + (signed int)(src + (signed long int)1)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$10$$tp12 = (signed int)(src + (signed long int)1)[(signed long int)(8 * 0)] - (signed int)(src + (signed long int)1)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$10$$tm03 = (signed int)(src + (signed long int)1)[(signed long int)(8 * 2)] + ((signed int)(src + (signed long int)1)[(signed long int)(8 * 6)] * 27146 >> 16); idct_M128ASM_scalar$$1$$10$$tm12 = ((signed int)(src + (signed long int)1)[(signed long int)(8 * 2)] * 27146 >> 16) - (signed int)(src + (signed long int)1)[(signed long int)(8 * 6)]; idct_M128ASM_scalar$$1$$10$$t0 = idct_M128ASM_scalar$$1$$10$$tp03 + idct_M128ASM_scalar$$1$$10$$tm03 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$10$$t3 = (idct_M128ASM_scalar$$1$$10$$tp03 - idct_M128ASM_scalar$$1$$10$$tm03) + (signed int)RND_INV_CORR; idct_M128ASM_scalar$$1$$10$$t1 = idct_M128ASM_scalar$$1$$10$$tp12 + idct_M128ASM_scalar$$1$$10$$tm12 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$10$$t2 = (idct_M128ASM_scalar$$1$$10$$tp12 - idct_M128ASM_scalar$$1$$10$$tm12) + (signed int)RND_INV_CORR; (src + (signed long int)1)[(signed long int)(8 * 0)] = (signed short int)((idct_M128ASM_scalar$$1$$10$$t0 + idct_M128ASM_scalar$$1$$10$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$10$$t0 + idct_M128ASM_scalar$$1$$10$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$10$$t0 + idct_M128ASM_scalar$$1$$10$$t7)) >> 1 + 4); (src + (signed long int)1)[(signed long int)(8 * 7)] = (signed short int)((idct_M128ASM_scalar$$1$$10$$t0 - idct_M128ASM_scalar$$1$$10$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$10$$t0 - idct_M128ASM_scalar$$1$$10$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$10$$t0 - idct_M128ASM_scalar$$1$$10$$t7)) >> 1 + 4); (src + (signed long int)1)[(signed long int)(8 * 1)] = (signed short int)((idct_M128ASM_scalar$$1$$10$$t1 + idct_M128ASM_scalar$$1$$10$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$10$$t1 + idct_M128ASM_scalar$$1$$10$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$10$$t1 + idct_M128ASM_scalar$$1$$10$$t6)) >> 1 + 4); (src + (signed long int)1)[(signed long int)(8 * 6)] = (signed short int)((idct_M128ASM_scalar$$1$$10$$t1 - idct_M128ASM_scalar$$1$$10$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$10$$t1 - idct_M128ASM_scalar$$1$$10$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$10$$t1 - idct_M128ASM_scalar$$1$$10$$t6)) >> 1 + 4); (src + (signed long int)1)[(signed long int)(8 * 2)] = (signed short int)((idct_M128ASM_scalar$$1$$10$$t2 + idct_M128ASM_scalar$$1$$10$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$10$$t2 + idct_M128ASM_scalar$$1$$10$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$10$$t2 + idct_M128ASM_scalar$$1$$10$$t5)) >> 1 + 4); (src + (signed long int)1)[(signed long int)(8 * 5)] = (signed short int)((idct_M128ASM_scalar$$1$$10$$t2 - idct_M128ASM_scalar$$1$$10$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$10$$t2 - idct_M128ASM_scalar$$1$$10$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$10$$t2 - idct_M128ASM_scalar$$1$$10$$t5)) >> 1 + 4); (src + (signed long int)1)[(signed long int)(8 * 3)] = (signed short int)((idct_M128ASM_scalar$$1$$10$$t3 + idct_M128ASM_scalar$$1$$10$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$10$$t3 + idct_M128ASM_scalar$$1$$10$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$10$$t3 + idct_M128ASM_scalar$$1$$10$$t4)) >> 1 + 4); (src + (signed long int)1)[(signed long int)(8 * 4)] = (signed short int)((idct_M128ASM_scalar$$1$$10$$t3 - idct_M128ASM_scalar$$1$$10$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$10$$t3 - idct_M128ASM_scalar$$1$$10$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$10$$t3 - idct_M128ASM_scalar$$1$$10$$t4)) >> 1 + 4); signed int idct_M128ASM_scalar$$1$$11$$t0; signed int idct_M128ASM_scalar$$1$$11$$t1; signed int idct_M128ASM_scalar$$1$$11$$t2; signed int idct_M128ASM_scalar$$1$$11$$t3; signed int idct_M128ASM_scalar$$1$$11$$t4; signed int idct_M128ASM_scalar$$1$$11$$t5; signed int idct_M128ASM_scalar$$1$$11$$t6; signed int idct_M128ASM_scalar$$1$$11$$t7; signed int idct_M128ASM_scalar$$1$$11$$tp03; signed int idct_M128ASM_scalar$$1$$11$$tm03; signed int idct_M128ASM_scalar$$1$$11$$tp12; signed int idct_M128ASM_scalar$$1$$11$$tm12; signed int idct_M128ASM_scalar$$1$$11$$tp65; signed int idct_M128ASM_scalar$$1$$11$$tm65; signed int idct_M128ASM_scalar$$1$$11$$tp465; signed int idct_M128ASM_scalar$$1$$11$$tm465; signed int idct_M128ASM_scalar$$1$$11$$tp765; signed int idct_M128ASM_scalar$$1$$11$$tm765; idct_M128ASM_scalar$$1$$11$$tp765 = (signed int)(src + (signed long int)2)[(signed long int)(8 * 1)] + ((signed int)(src + (signed long int)2)[(signed long int)(8 * 7)] * 13036 >> 16); idct_M128ASM_scalar$$1$$11$$tp465 = ((signed int)(src + (signed long int)2)[(signed long int)(8 * 1)] * 13036 >> 16) - (signed int)(src + (signed long int)2)[(signed long int)(8 * 7)]; idct_M128ASM_scalar$$1$$11$$tm765 = ((signed int)(src + (signed long int)2)[(signed long int)(8 * 5)] * -21746 >> 16) + (signed int)(src + (signed long int)2)[(signed long int)(8 * 5)] + (signed int)(src + (signed long int)2)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$11$$tm465 = ((signed int)(src + (signed long int)2)[(signed long int)(8 * 5)] - ((signed int)(src + (signed long int)2)[(signed long int)(8 * 3)] * -21746 >> 16)) - (signed int)(src + (signed long int)2)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$11$$t7 = idct_M128ASM_scalar$$1$$11$$tp765 + idct_M128ASM_scalar$$1$$11$$tm765 + 1; idct_M128ASM_scalar$$1$$11$$tp65 = idct_M128ASM_scalar$$1$$11$$tp765 - idct_M128ASM_scalar$$1$$11$$tm765; idct_M128ASM_scalar$$1$$11$$t4 = idct_M128ASM_scalar$$1$$11$$tp465 + idct_M128ASM_scalar$$1$$11$$tm465; idct_M128ASM_scalar$$1$$11$$tm65 = (idct_M128ASM_scalar$$1$$11$$tp465 - idct_M128ASM_scalar$$1$$11$$tm465) + 1; idct_M128ASM_scalar$$1$$11$$t6 = (signed int)(idct_M128ASM_scalar$$1$$11$$tp65 + idct_M128ASM_scalar$$1$$11$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$11$$t6 = idct_M128ASM_scalar$$1$$11$$t6 + idct_M128ASM_scalar$$1$$11$$tp65 + idct_M128ASM_scalar$$1$$11$$tm65; idct_M128ASM_scalar$$1$$11$$t5 = (signed int)(idct_M128ASM_scalar$$1$$11$$tp65 - idct_M128ASM_scalar$$1$$11$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$11$$t5 = idct_M128ASM_scalar$$1$$11$$t5 + (idct_M128ASM_scalar$$1$$11$$tp65 - idct_M128ASM_scalar$$1$$11$$tm65); idct_M128ASM_scalar$$1$$11$$tp03 = (signed int)(src + (signed long int)2)[(signed long int)(8 * 0)] + (signed int)(src + (signed long int)2)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$11$$tp12 = (signed int)(src + (signed long int)2)[(signed long int)(8 * 0)] - (signed int)(src + (signed long int)2)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$11$$tm03 = (signed int)(src + (signed long int)2)[(signed long int)(8 * 2)] + ((signed int)(src + (signed long int)2)[(signed long int)(8 * 6)] * 27146 >> 16); idct_M128ASM_scalar$$1$$11$$tm12 = ((signed int)(src + (signed long int)2)[(signed long int)(8 * 2)] * 27146 >> 16) - (signed int)(src + (signed long int)2)[(signed long int)(8 * 6)]; idct_M128ASM_scalar$$1$$11$$t0 = idct_M128ASM_scalar$$1$$11$$tp03 + idct_M128ASM_scalar$$1$$11$$tm03 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$11$$t3 = (idct_M128ASM_scalar$$1$$11$$tp03 - idct_M128ASM_scalar$$1$$11$$tm03) + (signed int)RND_INV_CORR; idct_M128ASM_scalar$$1$$11$$t1 = idct_M128ASM_scalar$$1$$11$$tp12 + idct_M128ASM_scalar$$1$$11$$tm12 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$11$$t2 = (idct_M128ASM_scalar$$1$$11$$tp12 - idct_M128ASM_scalar$$1$$11$$tm12) + (signed int)RND_INV_CORR; (src + (signed long int)2)[(signed long int)(8 * 0)] = (signed short int)((idct_M128ASM_scalar$$1$$11$$t0 + idct_M128ASM_scalar$$1$$11$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$11$$t0 + idct_M128ASM_scalar$$1$$11$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$11$$t0 + idct_M128ASM_scalar$$1$$11$$t7)) >> 1 + 4); (src + (signed long int)2)[(signed long int)(8 * 7)] = (signed short int)((idct_M128ASM_scalar$$1$$11$$t0 - idct_M128ASM_scalar$$1$$11$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$11$$t0 - idct_M128ASM_scalar$$1$$11$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$11$$t0 - idct_M128ASM_scalar$$1$$11$$t7)) >> 1 + 4); (src + (signed long int)2)[(signed long int)(8 * 1)] = (signed short int)((idct_M128ASM_scalar$$1$$11$$t1 + idct_M128ASM_scalar$$1$$11$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$11$$t1 + idct_M128ASM_scalar$$1$$11$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$11$$t1 + idct_M128ASM_scalar$$1$$11$$t6)) >> 1 + 4); (src + (signed long int)2)[(signed long int)(8 * 6)] = (signed short int)((idct_M128ASM_scalar$$1$$11$$t1 - idct_M128ASM_scalar$$1$$11$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$11$$t1 - idct_M128ASM_scalar$$1$$11$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$11$$t1 - idct_M128ASM_scalar$$1$$11$$t6)) >> 1 + 4); (src + (signed long int)2)[(signed long int)(8 * 2)] = (signed short int)((idct_M128ASM_scalar$$1$$11$$t2 + idct_M128ASM_scalar$$1$$11$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$11$$t2 + idct_M128ASM_scalar$$1$$11$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$11$$t2 + idct_M128ASM_scalar$$1$$11$$t5)) >> 1 + 4); (src + (signed long int)2)[(signed long int)(8 * 5)] = (signed short int)((idct_M128ASM_scalar$$1$$11$$t2 - idct_M128ASM_scalar$$1$$11$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$11$$t2 - idct_M128ASM_scalar$$1$$11$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$11$$t2 - idct_M128ASM_scalar$$1$$11$$t5)) >> 1 + 4); (src + (signed long int)2)[(signed long int)(8 * 3)] = (signed short int)((idct_M128ASM_scalar$$1$$11$$t3 + idct_M128ASM_scalar$$1$$11$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$11$$t3 + idct_M128ASM_scalar$$1$$11$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$11$$t3 + idct_M128ASM_scalar$$1$$11$$t4)) >> 1 + 4); (src + (signed long int)2)[(signed long int)(8 * 4)] = (signed short int)((idct_M128ASM_scalar$$1$$11$$t3 - idct_M128ASM_scalar$$1$$11$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$11$$t3 - idct_M128ASM_scalar$$1$$11$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$11$$t3 - idct_M128ASM_scalar$$1$$11$$t4)) >> 1 + 4); signed int idct_M128ASM_scalar$$1$$12$$t0; signed int idct_M128ASM_scalar$$1$$12$$t1; signed int idct_M128ASM_scalar$$1$$12$$t2; signed int idct_M128ASM_scalar$$1$$12$$t3; signed int idct_M128ASM_scalar$$1$$12$$t4; signed int idct_M128ASM_scalar$$1$$12$$t5; signed int idct_M128ASM_scalar$$1$$12$$t6; signed int idct_M128ASM_scalar$$1$$12$$t7; signed int idct_M128ASM_scalar$$1$$12$$tp03; signed int idct_M128ASM_scalar$$1$$12$$tm03; signed int idct_M128ASM_scalar$$1$$12$$tp12; signed int idct_M128ASM_scalar$$1$$12$$tm12; signed int idct_M128ASM_scalar$$1$$12$$tp65; signed int idct_M128ASM_scalar$$1$$12$$tm65; signed int idct_M128ASM_scalar$$1$$12$$tp465; signed int idct_M128ASM_scalar$$1$$12$$tm465; signed int idct_M128ASM_scalar$$1$$12$$tp765; signed int idct_M128ASM_scalar$$1$$12$$tm765; idct_M128ASM_scalar$$1$$12$$tp765 = (signed int)(src + (signed long int)3)[(signed long int)(8 * 1)] + ((signed int)(src + (signed long int)3)[(signed long int)(8 * 7)] * 13036 >> 16); idct_M128ASM_scalar$$1$$12$$tp465 = ((signed int)(src + (signed long int)3)[(signed long int)(8 * 1)] * 13036 >> 16) - (signed int)(src + (signed long int)3)[(signed long int)(8 * 7)]; idct_M128ASM_scalar$$1$$12$$tm765 = ((signed int)(src + (signed long int)3)[(signed long int)(8 * 5)] * -21746 >> 16) + (signed int)(src + (signed long int)3)[(signed long int)(8 * 5)] + (signed int)(src + (signed long int)3)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$12$$tm465 = ((signed int)(src + (signed long int)3)[(signed long int)(8 * 5)] - ((signed int)(src + (signed long int)3)[(signed long int)(8 * 3)] * -21746 >> 16)) - (signed int)(src + (signed long int)3)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$12$$t7 = idct_M128ASM_scalar$$1$$12$$tp765 + idct_M128ASM_scalar$$1$$12$$tm765 + 1; idct_M128ASM_scalar$$1$$12$$tp65 = idct_M128ASM_scalar$$1$$12$$tp765 - idct_M128ASM_scalar$$1$$12$$tm765; idct_M128ASM_scalar$$1$$12$$t4 = idct_M128ASM_scalar$$1$$12$$tp465 + idct_M128ASM_scalar$$1$$12$$tm465; idct_M128ASM_scalar$$1$$12$$tm65 = (idct_M128ASM_scalar$$1$$12$$tp465 - idct_M128ASM_scalar$$1$$12$$tm465) + 1; idct_M128ASM_scalar$$1$$12$$t6 = (signed int)(idct_M128ASM_scalar$$1$$12$$tp65 + idct_M128ASM_scalar$$1$$12$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$12$$t6 = idct_M128ASM_scalar$$1$$12$$t6 + idct_M128ASM_scalar$$1$$12$$tp65 + idct_M128ASM_scalar$$1$$12$$tm65; idct_M128ASM_scalar$$1$$12$$t5 = (signed int)(idct_M128ASM_scalar$$1$$12$$tp65 - idct_M128ASM_scalar$$1$$12$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$12$$t5 = idct_M128ASM_scalar$$1$$12$$t5 + (idct_M128ASM_scalar$$1$$12$$tp65 - idct_M128ASM_scalar$$1$$12$$tm65); idct_M128ASM_scalar$$1$$12$$tp03 = (signed int)(src + (signed long int)3)[(signed long int)(8 * 0)] + (signed int)(src + (signed long int)3)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$12$$tp12 = (signed int)(src + (signed long int)3)[(signed long int)(8 * 0)] - (signed int)(src + (signed long int)3)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$12$$tm03 = (signed int)(src + (signed long int)3)[(signed long int)(8 * 2)] + ((signed int)(src + (signed long int)3)[(signed long int)(8 * 6)] * 27146 >> 16); idct_M128ASM_scalar$$1$$12$$tm12 = ((signed int)(src + (signed long int)3)[(signed long int)(8 * 2)] * 27146 >> 16) - (signed int)(src + (signed long int)3)[(signed long int)(8 * 6)]; idct_M128ASM_scalar$$1$$12$$t0 = idct_M128ASM_scalar$$1$$12$$tp03 + idct_M128ASM_scalar$$1$$12$$tm03 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$12$$t3 = (idct_M128ASM_scalar$$1$$12$$tp03 - idct_M128ASM_scalar$$1$$12$$tm03) + (signed int)RND_INV_CORR; idct_M128ASM_scalar$$1$$12$$t1 = idct_M128ASM_scalar$$1$$12$$tp12 + idct_M128ASM_scalar$$1$$12$$tm12 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$12$$t2 = (idct_M128ASM_scalar$$1$$12$$tp12 - idct_M128ASM_scalar$$1$$12$$tm12) + (signed int)RND_INV_CORR; (src + (signed long int)3)[(signed long int)(8 * 0)] = (signed short int)((idct_M128ASM_scalar$$1$$12$$t0 + idct_M128ASM_scalar$$1$$12$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$12$$t0 + idct_M128ASM_scalar$$1$$12$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$12$$t0 + idct_M128ASM_scalar$$1$$12$$t7)) >> 1 + 4); (src + (signed long int)3)[(signed long int)(8 * 7)] = (signed short int)((idct_M128ASM_scalar$$1$$12$$t0 - idct_M128ASM_scalar$$1$$12$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$12$$t0 - idct_M128ASM_scalar$$1$$12$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$12$$t0 - idct_M128ASM_scalar$$1$$12$$t7)) >> 1 + 4); (src + (signed long int)3)[(signed long int)(8 * 1)] = (signed short int)((idct_M128ASM_scalar$$1$$12$$t1 + idct_M128ASM_scalar$$1$$12$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$12$$t1 + idct_M128ASM_scalar$$1$$12$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$12$$t1 + idct_M128ASM_scalar$$1$$12$$t6)) >> 1 + 4); (src + (signed long int)3)[(signed long int)(8 * 6)] = (signed short int)((idct_M128ASM_scalar$$1$$12$$t1 - idct_M128ASM_scalar$$1$$12$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$12$$t1 - idct_M128ASM_scalar$$1$$12$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$12$$t1 - idct_M128ASM_scalar$$1$$12$$t6)) >> 1 + 4); (src + (signed long int)3)[(signed long int)(8 * 2)] = (signed short int)((idct_M128ASM_scalar$$1$$12$$t2 + idct_M128ASM_scalar$$1$$12$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$12$$t2 + idct_M128ASM_scalar$$1$$12$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$12$$t2 + idct_M128ASM_scalar$$1$$12$$t5)) >> 1 + 4); (src + (signed long int)3)[(signed long int)(8 * 5)] = (signed short int)((idct_M128ASM_scalar$$1$$12$$t2 - idct_M128ASM_scalar$$1$$12$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$12$$t2 - idct_M128ASM_scalar$$1$$12$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$12$$t2 - idct_M128ASM_scalar$$1$$12$$t5)) >> 1 + 4); (src + (signed long int)3)[(signed long int)(8 * 3)] = (signed short int)((idct_M128ASM_scalar$$1$$12$$t3 + idct_M128ASM_scalar$$1$$12$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$12$$t3 + idct_M128ASM_scalar$$1$$12$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$12$$t3 + idct_M128ASM_scalar$$1$$12$$t4)) >> 1 + 4); (src + (signed long int)3)[(signed long int)(8 * 4)] = (signed short int)((idct_M128ASM_scalar$$1$$12$$t3 - idct_M128ASM_scalar$$1$$12$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$12$$t3 - idct_M128ASM_scalar$$1$$12$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$12$$t3 - idct_M128ASM_scalar$$1$$12$$t4)) >> 1 + 4); signed int idct_M128ASM_scalar$$1$$13$$t0; signed int idct_M128ASM_scalar$$1$$13$$t1; signed int idct_M128ASM_scalar$$1$$13$$t2; signed int idct_M128ASM_scalar$$1$$13$$t3; signed int idct_M128ASM_scalar$$1$$13$$t4; signed int idct_M128ASM_scalar$$1$$13$$t5; signed int idct_M128ASM_scalar$$1$$13$$t6; signed int idct_M128ASM_scalar$$1$$13$$t7; signed int idct_M128ASM_scalar$$1$$13$$tp03; signed int idct_M128ASM_scalar$$1$$13$$tm03; signed int idct_M128ASM_scalar$$1$$13$$tp12; signed int idct_M128ASM_scalar$$1$$13$$tm12; signed int idct_M128ASM_scalar$$1$$13$$tp65; signed int idct_M128ASM_scalar$$1$$13$$tm65; signed int idct_M128ASM_scalar$$1$$13$$tp465; signed int idct_M128ASM_scalar$$1$$13$$tm465; signed int idct_M128ASM_scalar$$1$$13$$tp765; signed int idct_M128ASM_scalar$$1$$13$$tm765; idct_M128ASM_scalar$$1$$13$$tp765 = (signed int)(src + (signed long int)4)[(signed long int)(8 * 1)] + ((signed int)(src + (signed long int)4)[(signed long int)(8 * 7)] * 13036 >> 16); idct_M128ASM_scalar$$1$$13$$tp465 = ((signed int)(src + (signed long int)4)[(signed long int)(8 * 1)] * 13036 >> 16) - (signed int)(src + (signed long int)4)[(signed long int)(8 * 7)]; idct_M128ASM_scalar$$1$$13$$tm765 = ((signed int)(src + (signed long int)4)[(signed long int)(8 * 5)] * -21746 >> 16) + (signed int)(src + (signed long int)4)[(signed long int)(8 * 5)] + (signed int)(src + (signed long int)4)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$13$$tm465 = ((signed int)(src + (signed long int)4)[(signed long int)(8 * 5)] - ((signed int)(src + (signed long int)4)[(signed long int)(8 * 3)] * -21746 >> 16)) - (signed int)(src + (signed long int)4)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$13$$t7 = idct_M128ASM_scalar$$1$$13$$tp765 + idct_M128ASM_scalar$$1$$13$$tm765 + 1; idct_M128ASM_scalar$$1$$13$$tp65 = idct_M128ASM_scalar$$1$$13$$tp765 - idct_M128ASM_scalar$$1$$13$$tm765; idct_M128ASM_scalar$$1$$13$$t4 = idct_M128ASM_scalar$$1$$13$$tp465 + idct_M128ASM_scalar$$1$$13$$tm465; idct_M128ASM_scalar$$1$$13$$tm65 = (idct_M128ASM_scalar$$1$$13$$tp465 - idct_M128ASM_scalar$$1$$13$$tm465) + 1; idct_M128ASM_scalar$$1$$13$$t6 = (signed int)(idct_M128ASM_scalar$$1$$13$$tp65 + idct_M128ASM_scalar$$1$$13$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$13$$t6 = idct_M128ASM_scalar$$1$$13$$t6 + idct_M128ASM_scalar$$1$$13$$tp65 + idct_M128ASM_scalar$$1$$13$$tm65; idct_M128ASM_scalar$$1$$13$$t5 = (signed int)(idct_M128ASM_scalar$$1$$13$$tp65 - idct_M128ASM_scalar$$1$$13$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$13$$t5 = idct_M128ASM_scalar$$1$$13$$t5 + (idct_M128ASM_scalar$$1$$13$$tp65 - idct_M128ASM_scalar$$1$$13$$tm65); idct_M128ASM_scalar$$1$$13$$tp03 = (signed int)(src + (signed long int)4)[(signed long int)(8 * 0)] + (signed int)(src + (signed long int)4)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$13$$tp12 = (signed int)(src + (signed long int)4)[(signed long int)(8 * 0)] - (signed int)(src + (signed long int)4)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$13$$tm03 = (signed int)(src + (signed long int)4)[(signed long int)(8 * 2)] + ((signed int)(src + (signed long int)4)[(signed long int)(8 * 6)] * 27146 >> 16); idct_M128ASM_scalar$$1$$13$$tm12 = ((signed int)(src + (signed long int)4)[(signed long int)(8 * 2)] * 27146 >> 16) - (signed int)(src + (signed long int)4)[(signed long int)(8 * 6)]; idct_M128ASM_scalar$$1$$13$$t0 = idct_M128ASM_scalar$$1$$13$$tp03 + idct_M128ASM_scalar$$1$$13$$tm03 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$13$$t3 = (idct_M128ASM_scalar$$1$$13$$tp03 - idct_M128ASM_scalar$$1$$13$$tm03) + (signed int)RND_INV_CORR; idct_M128ASM_scalar$$1$$13$$t1 = idct_M128ASM_scalar$$1$$13$$tp12 + idct_M128ASM_scalar$$1$$13$$tm12 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$13$$t2 = (idct_M128ASM_scalar$$1$$13$$tp12 - idct_M128ASM_scalar$$1$$13$$tm12) + (signed int)RND_INV_CORR; (src + (signed long int)4)[(signed long int)(8 * 0)] = (signed short int)((idct_M128ASM_scalar$$1$$13$$t0 + idct_M128ASM_scalar$$1$$13$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$13$$t0 + idct_M128ASM_scalar$$1$$13$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$13$$t0 + idct_M128ASM_scalar$$1$$13$$t7)) >> 1 + 4); (src + (signed long int)4)[(signed long int)(8 * 7)] = (signed short int)((idct_M128ASM_scalar$$1$$13$$t0 - idct_M128ASM_scalar$$1$$13$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$13$$t0 - idct_M128ASM_scalar$$1$$13$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$13$$t0 - idct_M128ASM_scalar$$1$$13$$t7)) >> 1 + 4); (src + (signed long int)4)[(signed long int)(8 * 1)] = (signed short int)((idct_M128ASM_scalar$$1$$13$$t1 + idct_M128ASM_scalar$$1$$13$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$13$$t1 + idct_M128ASM_scalar$$1$$13$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$13$$t1 + idct_M128ASM_scalar$$1$$13$$t6)) >> 1 + 4); (src + (signed long int)4)[(signed long int)(8 * 6)] = (signed short int)((idct_M128ASM_scalar$$1$$13$$t1 - idct_M128ASM_scalar$$1$$13$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$13$$t1 - idct_M128ASM_scalar$$1$$13$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$13$$t1 - idct_M128ASM_scalar$$1$$13$$t6)) >> 1 + 4); (src + (signed long int)4)[(signed long int)(8 * 2)] = (signed short int)((idct_M128ASM_scalar$$1$$13$$t2 + idct_M128ASM_scalar$$1$$13$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$13$$t2 + idct_M128ASM_scalar$$1$$13$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$13$$t2 + idct_M128ASM_scalar$$1$$13$$t5)) >> 1 + 4); (src + (signed long int)4)[(signed long int)(8 * 5)] = (signed short int)((idct_M128ASM_scalar$$1$$13$$t2 - idct_M128ASM_scalar$$1$$13$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$13$$t2 - idct_M128ASM_scalar$$1$$13$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$13$$t2 - idct_M128ASM_scalar$$1$$13$$t5)) >> 1 + 4); (src + (signed long int)4)[(signed long int)(8 * 3)] = (signed short int)((idct_M128ASM_scalar$$1$$13$$t3 + idct_M128ASM_scalar$$1$$13$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$13$$t3 + idct_M128ASM_scalar$$1$$13$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$13$$t3 + idct_M128ASM_scalar$$1$$13$$t4)) >> 1 + 4); (src + (signed long int)4)[(signed long int)(8 * 4)] = (signed short int)((idct_M128ASM_scalar$$1$$13$$t3 - idct_M128ASM_scalar$$1$$13$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$13$$t3 - idct_M128ASM_scalar$$1$$13$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$13$$t3 - idct_M128ASM_scalar$$1$$13$$t4)) >> 1 + 4); signed int idct_M128ASM_scalar$$1$$14$$t0; signed int idct_M128ASM_scalar$$1$$14$$t1; signed int idct_M128ASM_scalar$$1$$14$$t2; signed int idct_M128ASM_scalar$$1$$14$$t3; signed int idct_M128ASM_scalar$$1$$14$$t4; signed int idct_M128ASM_scalar$$1$$14$$t5; signed int idct_M128ASM_scalar$$1$$14$$t6; signed int idct_M128ASM_scalar$$1$$14$$t7; signed int idct_M128ASM_scalar$$1$$14$$tp03; signed int idct_M128ASM_scalar$$1$$14$$tm03; signed int idct_M128ASM_scalar$$1$$14$$tp12; signed int idct_M128ASM_scalar$$1$$14$$tm12; signed int idct_M128ASM_scalar$$1$$14$$tp65; signed int idct_M128ASM_scalar$$1$$14$$tm65; signed int idct_M128ASM_scalar$$1$$14$$tp465; signed int idct_M128ASM_scalar$$1$$14$$tm465; signed int idct_M128ASM_scalar$$1$$14$$tp765; signed int idct_M128ASM_scalar$$1$$14$$tm765; idct_M128ASM_scalar$$1$$14$$tp765 = (signed int)(src + (signed long int)5)[(signed long int)(8 * 1)] + ((signed int)(src + (signed long int)5)[(signed long int)(8 * 7)] * 13036 >> 16); idct_M128ASM_scalar$$1$$14$$tp465 = ((signed int)(src + (signed long int)5)[(signed long int)(8 * 1)] * 13036 >> 16) - (signed int)(src + (signed long int)5)[(signed long int)(8 * 7)]; idct_M128ASM_scalar$$1$$14$$tm765 = ((signed int)(src + (signed long int)5)[(signed long int)(8 * 5)] * -21746 >> 16) + (signed int)(src + (signed long int)5)[(signed long int)(8 * 5)] + (signed int)(src + (signed long int)5)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$14$$tm465 = ((signed int)(src + (signed long int)5)[(signed long int)(8 * 5)] - ((signed int)(src + (signed long int)5)[(signed long int)(8 * 3)] * -21746 >> 16)) - (signed int)(src + (signed long int)5)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$14$$t7 = idct_M128ASM_scalar$$1$$14$$tp765 + idct_M128ASM_scalar$$1$$14$$tm765 + 1; idct_M128ASM_scalar$$1$$14$$tp65 = idct_M128ASM_scalar$$1$$14$$tp765 - idct_M128ASM_scalar$$1$$14$$tm765; idct_M128ASM_scalar$$1$$14$$t4 = idct_M128ASM_scalar$$1$$14$$tp465 + idct_M128ASM_scalar$$1$$14$$tm465; idct_M128ASM_scalar$$1$$14$$tm65 = (idct_M128ASM_scalar$$1$$14$$tp465 - idct_M128ASM_scalar$$1$$14$$tm465) + 1; idct_M128ASM_scalar$$1$$14$$t6 = (signed int)(idct_M128ASM_scalar$$1$$14$$tp65 + idct_M128ASM_scalar$$1$$14$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$14$$t6 = idct_M128ASM_scalar$$1$$14$$t6 + idct_M128ASM_scalar$$1$$14$$tp65 + idct_M128ASM_scalar$$1$$14$$tm65; idct_M128ASM_scalar$$1$$14$$t5 = (signed int)(idct_M128ASM_scalar$$1$$14$$tp65 - idct_M128ASM_scalar$$1$$14$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$14$$t5 = idct_M128ASM_scalar$$1$$14$$t5 + (idct_M128ASM_scalar$$1$$14$$tp65 - idct_M128ASM_scalar$$1$$14$$tm65); idct_M128ASM_scalar$$1$$14$$tp03 = (signed int)(src + (signed long int)5)[(signed long int)(8 * 0)] + (signed int)(src + (signed long int)5)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$14$$tp12 = (signed int)(src + (signed long int)5)[(signed long int)(8 * 0)] - (signed int)(src + (signed long int)5)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$14$$tm03 = (signed int)(src + (signed long int)5)[(signed long int)(8 * 2)] + ((signed int)(src + (signed long int)5)[(signed long int)(8 * 6)] * 27146 >> 16); idct_M128ASM_scalar$$1$$14$$tm12 = ((signed int)(src + (signed long int)5)[(signed long int)(8 * 2)] * 27146 >> 16) - (signed int)(src + (signed long int)5)[(signed long int)(8 * 6)]; idct_M128ASM_scalar$$1$$14$$t0 = idct_M128ASM_scalar$$1$$14$$tp03 + idct_M128ASM_scalar$$1$$14$$tm03 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$14$$t3 = (idct_M128ASM_scalar$$1$$14$$tp03 - idct_M128ASM_scalar$$1$$14$$tm03) + (signed int)RND_INV_CORR; idct_M128ASM_scalar$$1$$14$$t1 = idct_M128ASM_scalar$$1$$14$$tp12 + idct_M128ASM_scalar$$1$$14$$tm12 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$14$$t2 = (idct_M128ASM_scalar$$1$$14$$tp12 - idct_M128ASM_scalar$$1$$14$$tm12) + (signed int)RND_INV_CORR; (src + (signed long int)5)[(signed long int)(8 * 0)] = (signed short int)((idct_M128ASM_scalar$$1$$14$$t0 + idct_M128ASM_scalar$$1$$14$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$14$$t0 + idct_M128ASM_scalar$$1$$14$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$14$$t0 + idct_M128ASM_scalar$$1$$14$$t7)) >> 1 + 4); (src + (signed long int)5)[(signed long int)(8 * 7)] = (signed short int)((idct_M128ASM_scalar$$1$$14$$t0 - idct_M128ASM_scalar$$1$$14$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$14$$t0 - idct_M128ASM_scalar$$1$$14$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$14$$t0 - idct_M128ASM_scalar$$1$$14$$t7)) >> 1 + 4); (src + (signed long int)5)[(signed long int)(8 * 1)] = (signed short int)((idct_M128ASM_scalar$$1$$14$$t1 + idct_M128ASM_scalar$$1$$14$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$14$$t1 + idct_M128ASM_scalar$$1$$14$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$14$$t1 + idct_M128ASM_scalar$$1$$14$$t6)) >> 1 + 4); (src + (signed long int)5)[(signed long int)(8 * 6)] = (signed short int)((idct_M128ASM_scalar$$1$$14$$t1 - idct_M128ASM_scalar$$1$$14$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$14$$t1 - idct_M128ASM_scalar$$1$$14$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$14$$t1 - idct_M128ASM_scalar$$1$$14$$t6)) >> 1 + 4); (src + (signed long int)5)[(signed long int)(8 * 2)] = (signed short int)((idct_M128ASM_scalar$$1$$14$$t2 + idct_M128ASM_scalar$$1$$14$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$14$$t2 + idct_M128ASM_scalar$$1$$14$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$14$$t2 + idct_M128ASM_scalar$$1$$14$$t5)) >> 1 + 4); (src + (signed long int)5)[(signed long int)(8 * 5)] = (signed short int)((idct_M128ASM_scalar$$1$$14$$t2 - idct_M128ASM_scalar$$1$$14$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$14$$t2 - idct_M128ASM_scalar$$1$$14$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$14$$t2 - idct_M128ASM_scalar$$1$$14$$t5)) >> 1 + 4); (src + (signed long int)5)[(signed long int)(8 * 3)] = (signed short int)((idct_M128ASM_scalar$$1$$14$$t3 + idct_M128ASM_scalar$$1$$14$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$14$$t3 + idct_M128ASM_scalar$$1$$14$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$14$$t3 + idct_M128ASM_scalar$$1$$14$$t4)) >> 1 + 4); (src + (signed long int)5)[(signed long int)(8 * 4)] = (signed short int)((idct_M128ASM_scalar$$1$$14$$t3 - idct_M128ASM_scalar$$1$$14$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$14$$t3 - idct_M128ASM_scalar$$1$$14$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$14$$t3 - idct_M128ASM_scalar$$1$$14$$t4)) >> 1 + 4); signed int idct_M128ASM_scalar$$1$$15$$t0; signed int idct_M128ASM_scalar$$1$$15$$t1; signed int idct_M128ASM_scalar$$1$$15$$t2; signed int idct_M128ASM_scalar$$1$$15$$t3; signed int idct_M128ASM_scalar$$1$$15$$t4; signed int idct_M128ASM_scalar$$1$$15$$t5; signed int idct_M128ASM_scalar$$1$$15$$t6; signed int idct_M128ASM_scalar$$1$$15$$t7; signed int idct_M128ASM_scalar$$1$$15$$tp03; signed int idct_M128ASM_scalar$$1$$15$$tm03; signed int idct_M128ASM_scalar$$1$$15$$tp12; signed int idct_M128ASM_scalar$$1$$15$$tm12; signed int idct_M128ASM_scalar$$1$$15$$tp65; signed int idct_M128ASM_scalar$$1$$15$$tm65; signed int idct_M128ASM_scalar$$1$$15$$tp465; signed int idct_M128ASM_scalar$$1$$15$$tm465; signed int idct_M128ASM_scalar$$1$$15$$tp765; signed int idct_M128ASM_scalar$$1$$15$$tm765; idct_M128ASM_scalar$$1$$15$$tp765 = (signed int)(src + (signed long int)6)[(signed long int)(8 * 1)] + ((signed int)(src + (signed long int)6)[(signed long int)(8 * 7)] * 13036 >> 16); idct_M128ASM_scalar$$1$$15$$tp465 = ((signed int)(src + (signed long int)6)[(signed long int)(8 * 1)] * 13036 >> 16) - (signed int)(src + (signed long int)6)[(signed long int)(8 * 7)]; idct_M128ASM_scalar$$1$$15$$tm765 = ((signed int)(src + (signed long int)6)[(signed long int)(8 * 5)] * -21746 >> 16) + (signed int)(src + (signed long int)6)[(signed long int)(8 * 5)] + (signed int)(src + (signed long int)6)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$15$$tm465 = ((signed int)(src + (signed long int)6)[(signed long int)(8 * 5)] - ((signed int)(src + (signed long int)6)[(signed long int)(8 * 3)] * -21746 >> 16)) - (signed int)(src + (signed long int)6)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$15$$t7 = idct_M128ASM_scalar$$1$$15$$tp765 + idct_M128ASM_scalar$$1$$15$$tm765 + 1; idct_M128ASM_scalar$$1$$15$$tp65 = idct_M128ASM_scalar$$1$$15$$tp765 - idct_M128ASM_scalar$$1$$15$$tm765; idct_M128ASM_scalar$$1$$15$$t4 = idct_M128ASM_scalar$$1$$15$$tp465 + idct_M128ASM_scalar$$1$$15$$tm465; idct_M128ASM_scalar$$1$$15$$tm65 = (idct_M128ASM_scalar$$1$$15$$tp465 - idct_M128ASM_scalar$$1$$15$$tm465) + 1; idct_M128ASM_scalar$$1$$15$$t6 = (signed int)(idct_M128ASM_scalar$$1$$15$$tp65 + idct_M128ASM_scalar$$1$$15$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$15$$t6 = idct_M128ASM_scalar$$1$$15$$t6 + idct_M128ASM_scalar$$1$$15$$tp65 + idct_M128ASM_scalar$$1$$15$$tm65; idct_M128ASM_scalar$$1$$15$$t5 = (signed int)(idct_M128ASM_scalar$$1$$15$$tp65 - idct_M128ASM_scalar$$1$$15$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$15$$t5 = idct_M128ASM_scalar$$1$$15$$t5 + (idct_M128ASM_scalar$$1$$15$$tp65 - idct_M128ASM_scalar$$1$$15$$tm65); idct_M128ASM_scalar$$1$$15$$tp03 = (signed int)(src + (signed long int)6)[(signed long int)(8 * 0)] + (signed int)(src + (signed long int)6)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$15$$tp12 = (signed int)(src + (signed long int)6)[(signed long int)(8 * 0)] - (signed int)(src + (signed long int)6)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$15$$tm03 = (signed int)(src + (signed long int)6)[(signed long int)(8 * 2)] + ((signed int)(src + (signed long int)6)[(signed long int)(8 * 6)] * 27146 >> 16); idct_M128ASM_scalar$$1$$15$$tm12 = ((signed int)(src + (signed long int)6)[(signed long int)(8 * 2)] * 27146 >> 16) - (signed int)(src + (signed long int)6)[(signed long int)(8 * 6)]; idct_M128ASM_scalar$$1$$15$$t0 = idct_M128ASM_scalar$$1$$15$$tp03 + idct_M128ASM_scalar$$1$$15$$tm03 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$15$$t3 = (idct_M128ASM_scalar$$1$$15$$tp03 - idct_M128ASM_scalar$$1$$15$$tm03) + (signed int)RND_INV_CORR; idct_M128ASM_scalar$$1$$15$$t1 = idct_M128ASM_scalar$$1$$15$$tp12 + idct_M128ASM_scalar$$1$$15$$tm12 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$15$$t2 = (idct_M128ASM_scalar$$1$$15$$tp12 - idct_M128ASM_scalar$$1$$15$$tm12) + (signed int)RND_INV_CORR; (src + (signed long int)6)[(signed long int)(8 * 0)] = (signed short int)((idct_M128ASM_scalar$$1$$15$$t0 + idct_M128ASM_scalar$$1$$15$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$15$$t0 + idct_M128ASM_scalar$$1$$15$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$15$$t0 + idct_M128ASM_scalar$$1$$15$$t7)) >> 1 + 4); (src + (signed long int)6)[(signed long int)(8 * 7)] = (signed short int)((idct_M128ASM_scalar$$1$$15$$t0 - idct_M128ASM_scalar$$1$$15$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$15$$t0 - idct_M128ASM_scalar$$1$$15$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$15$$t0 - idct_M128ASM_scalar$$1$$15$$t7)) >> 1 + 4); (src + (signed long int)6)[(signed long int)(8 * 1)] = (signed short int)((idct_M128ASM_scalar$$1$$15$$t1 + idct_M128ASM_scalar$$1$$15$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$15$$t1 + idct_M128ASM_scalar$$1$$15$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$15$$t1 + idct_M128ASM_scalar$$1$$15$$t6)) >> 1 + 4); (src + (signed long int)6)[(signed long int)(8 * 6)] = (signed short int)((idct_M128ASM_scalar$$1$$15$$t1 - idct_M128ASM_scalar$$1$$15$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$15$$t1 - idct_M128ASM_scalar$$1$$15$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$15$$t1 - idct_M128ASM_scalar$$1$$15$$t6)) >> 1 + 4); (src + (signed long int)6)[(signed long int)(8 * 2)] = (signed short int)((idct_M128ASM_scalar$$1$$15$$t2 + idct_M128ASM_scalar$$1$$15$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$15$$t2 + idct_M128ASM_scalar$$1$$15$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$15$$t2 + idct_M128ASM_scalar$$1$$15$$t5)) >> 1 + 4); (src + (signed long int)6)[(signed long int)(8 * 5)] = (signed short int)((idct_M128ASM_scalar$$1$$15$$t2 - idct_M128ASM_scalar$$1$$15$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$15$$t2 - idct_M128ASM_scalar$$1$$15$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$15$$t2 - idct_M128ASM_scalar$$1$$15$$t5)) >> 1 + 4); (src + (signed long int)6)[(signed long int)(8 * 3)] = (signed short int)((idct_M128ASM_scalar$$1$$15$$t3 + idct_M128ASM_scalar$$1$$15$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$15$$t3 + idct_M128ASM_scalar$$1$$15$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$15$$t3 + idct_M128ASM_scalar$$1$$15$$t4)) >> 1 + 4); (src + (signed long int)6)[(signed long int)(8 * 4)] = (signed short int)((idct_M128ASM_scalar$$1$$15$$t3 - idct_M128ASM_scalar$$1$$15$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$15$$t3 - idct_M128ASM_scalar$$1$$15$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$15$$t3 - idct_M128ASM_scalar$$1$$15$$t4)) >> 1 + 4); signed int idct_M128ASM_scalar$$1$$16$$t0; signed int idct_M128ASM_scalar$$1$$16$$t1; signed int idct_M128ASM_scalar$$1$$16$$t2; signed int idct_M128ASM_scalar$$1$$16$$t3; signed int idct_M128ASM_scalar$$1$$16$$t4; signed int idct_M128ASM_scalar$$1$$16$$t5; signed int idct_M128ASM_scalar$$1$$16$$t6; signed int idct_M128ASM_scalar$$1$$16$$t7; signed int idct_M128ASM_scalar$$1$$16$$tp03; signed int idct_M128ASM_scalar$$1$$16$$tm03; signed int idct_M128ASM_scalar$$1$$16$$tp12; signed int idct_M128ASM_scalar$$1$$16$$tm12; signed int idct_M128ASM_scalar$$1$$16$$tp65; signed int idct_M128ASM_scalar$$1$$16$$tm65; signed int idct_M128ASM_scalar$$1$$16$$tp465; signed int idct_M128ASM_scalar$$1$$16$$tm465; signed int idct_M128ASM_scalar$$1$$16$$tp765; signed int idct_M128ASM_scalar$$1$$16$$tm765; idct_M128ASM_scalar$$1$$16$$tp765 = (signed int)(src + (signed long int)7)[(signed long int)(8 * 1)] + ((signed int)(src + (signed long int)7)[(signed long int)(8 * 7)] * 13036 >> 16); idct_M128ASM_scalar$$1$$16$$tp465 = ((signed int)(src + (signed long int)7)[(signed long int)(8 * 1)] * 13036 >> 16) - (signed int)(src + (signed long int)7)[(signed long int)(8 * 7)]; idct_M128ASM_scalar$$1$$16$$tm765 = ((signed int)(src + (signed long int)7)[(signed long int)(8 * 5)] * -21746 >> 16) + (signed int)(src + (signed long int)7)[(signed long int)(8 * 5)] + (signed int)(src + (signed long int)7)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$16$$tm465 = ((signed int)(src + (signed long int)7)[(signed long int)(8 * 5)] - ((signed int)(src + (signed long int)7)[(signed long int)(8 * 3)] * -21746 >> 16)) - (signed int)(src + (signed long int)7)[(signed long int)(8 * 3)]; idct_M128ASM_scalar$$1$$16$$t7 = idct_M128ASM_scalar$$1$$16$$tp765 + idct_M128ASM_scalar$$1$$16$$tm765 + 1; idct_M128ASM_scalar$$1$$16$$tp65 = idct_M128ASM_scalar$$1$$16$$tp765 - idct_M128ASM_scalar$$1$$16$$tm765; idct_M128ASM_scalar$$1$$16$$t4 = idct_M128ASM_scalar$$1$$16$$tp465 + idct_M128ASM_scalar$$1$$16$$tm465; idct_M128ASM_scalar$$1$$16$$tm65 = (idct_M128ASM_scalar$$1$$16$$tp465 - idct_M128ASM_scalar$$1$$16$$tm465) + 1; idct_M128ASM_scalar$$1$$16$$t6 = (signed int)(idct_M128ASM_scalar$$1$$16$$tp65 + idct_M128ASM_scalar$$1$$16$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$16$$t6 = idct_M128ASM_scalar$$1$$16$$t6 + idct_M128ASM_scalar$$1$$16$$tp65 + idct_M128ASM_scalar$$1$$16$$tm65; idct_M128ASM_scalar$$1$$16$$t5 = (signed int)(idct_M128ASM_scalar$$1$$16$$tp65 - idct_M128ASM_scalar$$1$$16$$tm65) * -19195 >> 16 | 1; idct_M128ASM_scalar$$1$$16$$t5 = idct_M128ASM_scalar$$1$$16$$t5 + (idct_M128ASM_scalar$$1$$16$$tp65 - idct_M128ASM_scalar$$1$$16$$tm65); idct_M128ASM_scalar$$1$$16$$tp03 = (signed int)(src + (signed long int)7)[(signed long int)(8 * 0)] + (signed int)(src + (signed long int)7)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$16$$tp12 = (signed int)(src + (signed long int)7)[(signed long int)(8 * 0)] - (signed int)(src + (signed long int)7)[(signed long int)(8 * 4)]; idct_M128ASM_scalar$$1$$16$$tm03 = (signed int)(src + (signed long int)7)[(signed long int)(8 * 2)] + ((signed int)(src + (signed long int)7)[(signed long int)(8 * 6)] * 27146 >> 16); idct_M128ASM_scalar$$1$$16$$tm12 = ((signed int)(src + (signed long int)7)[(signed long int)(8 * 2)] * 27146 >> 16) - (signed int)(src + (signed long int)7)[(signed long int)(8 * 6)]; idct_M128ASM_scalar$$1$$16$$t0 = idct_M128ASM_scalar$$1$$16$$tp03 + idct_M128ASM_scalar$$1$$16$$tm03 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$16$$t3 = (idct_M128ASM_scalar$$1$$16$$tp03 - idct_M128ASM_scalar$$1$$16$$tm03) + (signed int)RND_INV_CORR; idct_M128ASM_scalar$$1$$16$$t1 = idct_M128ASM_scalar$$1$$16$$tp12 + idct_M128ASM_scalar$$1$$16$$tm12 + 16 * (4 - 3); idct_M128ASM_scalar$$1$$16$$t2 = (idct_M128ASM_scalar$$1$$16$$tp12 - idct_M128ASM_scalar$$1$$16$$tm12) + (signed int)RND_INV_CORR; (src + (signed long int)7)[(signed long int)(8 * 0)] = (signed short int)((idct_M128ASM_scalar$$1$$16$$t0 + idct_M128ASM_scalar$$1$$16$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$16$$t0 + idct_M128ASM_scalar$$1$$16$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$16$$t0 + idct_M128ASM_scalar$$1$$16$$t7)) >> 1 + 4); (src + (signed long int)7)[(signed long int)(8 * 7)] = (signed short int)((idct_M128ASM_scalar$$1$$16$$t0 - idct_M128ASM_scalar$$1$$16$$t7 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$16$$t0 - idct_M128ASM_scalar$$1$$16$$t7 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$16$$t0 - idct_M128ASM_scalar$$1$$16$$t7)) >> 1 + 4); (src + (signed long int)7)[(signed long int)(8 * 1)] = (signed short int)((idct_M128ASM_scalar$$1$$16$$t1 + idct_M128ASM_scalar$$1$$16$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$16$$t1 + idct_M128ASM_scalar$$1$$16$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$16$$t1 + idct_M128ASM_scalar$$1$$16$$t6)) >> 1 + 4); (src + (signed long int)7)[(signed long int)(8 * 6)] = (signed short int)((idct_M128ASM_scalar$$1$$16$$t1 - idct_M128ASM_scalar$$1$$16$$t6 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$16$$t1 - idct_M128ASM_scalar$$1$$16$$t6 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$16$$t1 - idct_M128ASM_scalar$$1$$16$$t6)) >> 1 + 4); (src + (signed long int)7)[(signed long int)(8 * 2)] = (signed short int)((idct_M128ASM_scalar$$1$$16$$t2 + idct_M128ASM_scalar$$1$$16$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$16$$t2 + idct_M128ASM_scalar$$1$$16$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$16$$t2 + idct_M128ASM_scalar$$1$$16$$t5)) >> 1 + 4); (src + (signed long int)7)[(signed long int)(8 * 5)] = (signed short int)((idct_M128ASM_scalar$$1$$16$$t2 - idct_M128ASM_scalar$$1$$16$$t5 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$16$$t2 - idct_M128ASM_scalar$$1$$16$$t5 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$16$$t2 - idct_M128ASM_scalar$$1$$16$$t5)) >> 1 + 4); (src + (signed long int)7)[(signed long int)(8 * 3)] = (signed short int)((idct_M128ASM_scalar$$1$$16$$t3 + idct_M128ASM_scalar$$1$$16$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$16$$t3 + idct_M128ASM_scalar$$1$$16$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$16$$t3 + idct_M128ASM_scalar$$1$$16$$t4)) >> 1 + 4); (src + (signed long int)7)[(signed long int)(8 * 4)] = (signed short int)((idct_M128ASM_scalar$$1$$16$$t3 - idct_M128ASM_scalar$$1$$16$$t4 > 32767 ? 32767 : (idct_M128ASM_scalar$$1$$16$$t3 - idct_M128ASM_scalar$$1$$16$$t4 < -32768 ? -32768 : idct_M128ASM_scalar$$1$$16$$t3 - idct_M128ASM_scalar$$1$$16$$t4)) >> 1 + 4); } // c::init // file src/mpeg2enc.c line 139 static void init(void) { static signed int block_count_tab[3l] = { 6, 8, 12 }; signed int i; signed int size; initbits(); init_fdct(); init_idct(); mb_width = (horizontal_size + 15) / 16; mb_height = prog_seq != 0 ? (vertical_size + 15) / 16 : 2 * ((vertical_size + 31) / 32); mb_height2 = fieldpic != 0 ? mb_height >> 1 : mb_height; width = 16 * mb_width; height = 16 * mb_height; chrom_width = chroma_format == 3 ? width : width >> 1; chrom_height = chroma_format != 1 ? height : height >> 1; height2 = fieldpic != 0 ? height >> 1 : height; width2 = fieldpic != 0 ? width << 1 : width; chrom_width2 = fieldpic != 0 ? chrom_width << 1 : chrom_width; block_count = block_count_tab[(signed long int)(chroma_format - 1)]; void *return_value_malloc$1; return_value_malloc$1=malloc((unsigned long int)1024); clp = (unsigned char *)return_value_malloc$1; if(clp == ((unsigned char *)NULL)) error("malloc failed\n"); clp = clp + (signed long int)384; i = -384; while(i < 640) { clp[(signed long int)i] = (unsigned char)(i < 0 ? 0 : (i > 255 ? 255 : i)); i = i + 1; } i = 0; while(i < 3) { size = i == 0 ? width * height : chrom_width * chrom_height; void *return_value_malloc$2; return_value_malloc$2=malloc((unsigned long int)size); newrefframe[(signed long int)i] = (unsigned char *)return_value_malloc$2; if(newrefframe[(signed long int)i] == ((unsigned char *)NULL)) error("malloc failed\n"); void *return_value_malloc$3; return_value_malloc$3=malloc((unsigned long int)size); oldrefframe[(signed long int)i] = (unsigned char *)return_value_malloc$3; if(oldrefframe[(signed long int)i] == ((unsigned char *)NULL)) error("malloc failed\n"); void *return_value_malloc$4; return_value_malloc$4=malloc((unsigned long int)size); auxframe[(signed long int)i] = (unsigned char *)return_value_malloc$4; if(auxframe[(signed long int)i] == ((unsigned char *)NULL)) error("malloc failed\n"); void *return_value_malloc$5; return_value_malloc$5=malloc((unsigned long int)size); neworgframe[(signed long int)i] = (unsigned char *)return_value_malloc$5; if(neworgframe[(signed long int)i] == ((unsigned char *)NULL)) error("malloc failed\n"); void *return_value_malloc$6; return_value_malloc$6=malloc((unsigned long int)size); oldorgframe[(signed long int)i] = (unsigned char *)return_value_malloc$6; if(oldorgframe[(signed long int)i] == ((unsigned char *)NULL)) error("malloc failed\n"); void *return_value_malloc$7; return_value_malloc$7=malloc((unsigned long int)size); auxorgframe[(signed long int)i] = (unsigned char *)return_value_malloc$7; if(auxorgframe[(signed long int)i] == ((unsigned char *)NULL)) error("malloc failed\n"); void *return_value_malloc$8; return_value_malloc$8=malloc((unsigned long int)size); predframe[(signed long int)i] = (unsigned char *)return_value_malloc$8; if(predframe[(signed long int)i] == ((unsigned char *)NULL)) error("malloc failed\n"); i = i + 1; } void *return_value_malloc$9; return_value_malloc$9=malloc((unsigned long int)(mb_width * mb_height2) * 96ul /*[[struct mbinfo]]*/); mbinfo = (struct mbinfo *)return_value_malloc$9; if(mbinfo == ((struct mbinfo *)NULL)) error("malloc failed\n"); void *return_value_malloc$10; return_value_malloc$10=malloc((unsigned long int)(mb_width * mb_height2 * block_count) * 128ul /*[[signed short int [64l]]]*/); blocks = (signed short int (*)[64l])return_value_malloc$10; if(blocks == ((signed short int (*)[64l])NULL)) error("malloc failed\n"); if((signed int)statname[0l] == 45) statfile = stdout; else { statfile=fopen(statname, "w"); if(statfile == ((struct _IO_FILE$link10 *)NULL)) { sprintf(errortext, "Couldn't create statistics output file %s", (const void *)statname); error(errortext); } } } // c::init_fdct // file src/fdctref.c line 106 void init_fdct(void) { signed int i; signed int j; double s; } // c::init_idct // file src/idct.c line 1011 void init_idct(void) { ; } // c::initbits // file src/global.h line 133 void initbits() { signed int id; outcnt = 8; bytecnt = 0; id = 0; while(id < 2) { out_cnt[(signed long int)id] = 8; byte_cnt[(signed long int)id] = 0; buf_ptr[(signed long int)id] = 0; void *return_value_malloc$1; return_value_malloc$1=malloc((unsigned long int)128 * 1ul /*[[unsigned char]]*/); outfrmbuf[(signed long int)id] = (unsigned char *)return_value_malloc$1; cur_size[(signed long int)id] = 128; id = id + 1; } } // c::iquant1_intra // file src/quantize.c line 763 static void iquant1_intra(signed short int *src, signed short int *dst, signed int dc_prec, unsigned char *quant_mat, signed int mquant) { signed int i; signed int val; dst[(signed long int)0] = (signed short int)((signed int)src[(signed long int)0] << 3 - dc_prec); i = 1; while(i < 64) { val = (signed int)((signed int)src[(signed long int)i] * (signed int)quant_mat[(signed long int)i] * mquant) / 16; if((1 & val) == 0) { if(!(val == 0)) val = val + (val > 0 ? -1 : 1); } dst[(signed long int)i] = (signed short int)(val > 2047 ? 2047 : (val < -2048 ? -2048 : val)); i = i + 1; } } // c::iquant1_non_intra // file src/quantize.c line 785 static void iquant1_non_intra(signed short int *src, signed short int *dst, unsigned char *quant_mat, signed int mquant) { signed int i; signed int val; i = 0; while(i < 64) { val = (signed int)src[(signed long int)i]; if(!(val == 0)) { val = (signed int)((2 * val + (val > 0 ? 1 : -1)) * (signed int)quant_mat[(signed long int)i] * mquant) / 32; if((1 & val) == 0) { if(!(val == 0)) val = val + (val > 0 ? -1 : 1); } } dst[(signed long int)i] = (signed short int)(val > 2047 ? 2047 : (val < -2048 ? -2048 : val)); i = i + 1; } } // c::iquant_intra // file src/global.h line 201 void iquant_intra(signed short int *src, signed short int *dst, signed int dc_prec, unsigned char *quant_mat, signed int mquant) { signed int i; signed int val; signed int sum; signed int tmp; if(!(mpeg1 == 0)) iquant1_intra(src, dst, dc_prec, quant_mat, mquant); else { sum = (signed int)src[(signed long int)0] << 3 - dc_prec; tmp = sum; i = 0; while(i < 64) { val = (signed int)((signed int)src[(signed long int)i] * (signed int)quant_mat[(signed long int)i] * mquant) / 16; dst[(signed long int)i] = (signed short int)(val > 2047 ? 2047 : (val < -2048 ? -2048 : val)); sum = sum ^ (signed int)dst[(signed long int)i]; i = i + 1; val = (signed int)((signed int)src[(signed long int)i] * (signed int)quant_mat[(signed long int)i] * mquant) / 16; dst[(signed long int)i] = (signed short int)(val > 2047 ? 2047 : (val < -2048 ? -2048 : val)); sum = sum ^ (signed int)dst[(signed long int)i]; i = i + 1; val = (signed int)((signed int)src[(signed long int)i] * (signed int)quant_mat[(signed long int)i] * mquant) / 16; dst[(signed long int)i] = (signed short int)(val > 2047 ? 2047 : (val < -2048 ? -2048 : val)); sum = sum ^ (signed int)dst[(signed long int)i]; i = i + 1; val = (signed int)((signed int)src[(signed long int)i] * (signed int)quant_mat[(signed long int)i] * mquant) / 16; dst[(signed long int)i] = (signed short int)(val > 2047 ? 2047 : (val < -2048 ? -2048 : val)); sum = sum ^ (signed int)dst[(signed long int)i]; i = i + 1; } sum = sum ^ (signed int)dst[(signed long int)0]; dst[(signed long int)0] = (signed short int)tmp; if((1 & sum) == 0) dst[(signed long int)63] = dst[(signed long int)63] ^ (signed short int)1; } } // c::iquant_non_intra // file src/global.h line 203 void iquant_non_intra(signed short int *src, signed short int *dst, unsigned char *quant_mat, signed int mquant) { signed int i; signed int val; signed int sum; if(!(mpeg1 == 0)) iquant1_non_intra(src, dst, quant_mat, mquant); else { sum = 0; i = 0; while(i < 64) { val = (signed int)src[(signed long int)i]; if(!(val == 0)) val = (signed int)((2 * val + (val > 0 ? 1 : -1)) * (signed int)quant_mat[(signed long int)i] * mquant) / 32; dst[(signed long int)i] = (signed short int)(val > 2047 ? 2047 : (val < -2048 ? -2048 : val)); sum = sum + (signed int)dst[(signed long int)i]; i = i + 1; val = (signed int)src[(signed long int)i]; if(!(val == 0)) val = (signed int)((2 * val + (val > 0 ? 1 : -1)) * (signed int)quant_mat[(signed long int)i] * mquant) / 32; dst[(signed long int)i] = (signed short int)(val > 2047 ? 2047 : (val < -2048 ? -2048 : val)); sum = sum + (signed int)dst[(signed long int)i]; i = i + 1; val = (signed int)src[(signed long int)i]; if(!(val == 0)) val = (signed int)((2 * val + (val > 0 ? 1 : -1)) * (signed int)quant_mat[(signed long int)i] * mquant) / 32; dst[(signed long int)i] = (signed short int)(val > 2047 ? 2047 : (val < -2048 ? -2048 : val)); sum = sum + (signed int)dst[(signed long int)i]; i = i + 1; val = (signed int)src[(signed long int)i]; if(!(val == 0)) val = (signed int)((2 * val + (val > 0 ? 1 : -1)) * (signed int)quant_mat[(signed long int)i] * mquant) / 32; dst[(signed long int)i] = (signed short int)(val > 2047 ? 2047 : (val < -2048 ? -2048 : val)); sum = sum + (signed int)dst[(signed long int)i]; i = i + 1; } if((1 & sum) == 0) dst[(signed long int)63] = dst[(signed long int)63] ^ (signed short int)1; } } // c::itransform // file src/transfrm.c line 313 void itransform(unsigned char **pred, unsigned char **cur, struct mbinfo *mbi, signed short int (*blocks)[64l]) { signed int i; signed int j; signed int i1; signed int j1; signed int k; signed int n; signed int cc; signed int offs; signed int lx; k = 0; j = 0; _Bool tmp_if_expr$1; _Bool tmp_if_expr$2; while(!(j >= height2)) { i = 0; while(!(i >= width)) { n = 0; while(!(n >= block_count)) { cc = n < 4 ? 0 : (n & 1) + 1; if(cc == 0) { if(pict_struct == 3) tmp_if_expr$1 = (mbi + (signed long int)k)->dct_type != 0 ? TRUE : FALSE; else tmp_if_expr$1 = FALSE; if(tmp_if_expr$1) { offs = i + ((n & 1) << 3) + width * (j + ((n & 2) >> 1)); lx = width << 1; } else { offs = i + ((n & 1) << 3) + width2 * (j + ((n & 2) << 2)); lx = width2; } if(pict_struct == 2) offs = offs + width; } else { i1 = chroma_format == 3 ? i : i >> 1; j1 = chroma_format != 1 ? j : j >> 1; if(pict_struct == 3) tmp_if_expr$2 = (mbi + (signed long int)k)->dct_type != 0 ? TRUE : FALSE; else tmp_if_expr$2 = FALSE; if(!(chroma_format == 1) && tmp_if_expr$2) { offs = i1 + (n & 8) + chrom_width * (j1 + ((n & 2) >> 1)); lx = chrom_width << 1; } else { offs = i1 + (n & 8) + chrom_width2 * (j1 + ((n & 2) << 2)); lx = chrom_width2; } if(pict_struct == 2) offs = offs + chrom_width; } idct(blocks[(signed long int)(k * block_count + n)]); add_pred(pred[(signed long int)cc] + (signed long int)offs, cur[(signed long int)cc] + (signed long int)offs, lx, blocks[(signed long int)(k * block_count + n)]); n = n + 1; } k = k + 1; i = i + 16; } j = j + 16; } } // c::main // file src/mpeg2enc.c line 94 signed int main(signed int argc, char **argv) { quiet = 1; if(!(argc == 3)) { printf("\n%s, %s\n", (const void *)version, (const void *)author); printf("Usage: mpeg2encode in.par out.m2v\n"); exit(0); } readparmfile(argv[(signed long int)1]); readquantmat(); outfile=fopen(argv[(signed long int)2], "wb"); if(outfile == ((struct _IO_FILE$link10 *)NULL)) { sprintf(errortext, "Couldn't create output file %s", argv[(signed long int)2]); error(errortext); } init(); QUANT_THRESHOLD = mpeg1 != 0 ? 255 : 2047; putseq(); fclose(outfile); fclose(statfile); return 0; } // c::mbstowcs // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 113 unsigned long int mbstowcs(signed int * restrict __dst, const char * restrict __src, unsigned long int __len) { unsigned long int return_value___mbstowcs_chk$1; unsigned long int return_value___mbstowcs_chk_warn$2; unsigned long int return_value___mbstowcs_alias$3; return_value___mbstowcs_alias$3=__mbstowcs_alias(__dst, __src, __len); return return_value___mbstowcs_alias$3; } // c::memcpy // file /usr/include/x86_64-linux-gnu/bits/string3.h line 48 void * memcpy(void * restrict __dest, const void * restrict __src, unsigned long int __len) { void *return_value___builtin___memcpy_chk$1; return_value___builtin___memcpy_chk$1=__builtin___memcpy_chk(__dest, __src, (unsigned int)__len, 18446744073709551615ul); return return_value___builtin___memcpy_chk$1; } // c::memmove // file /usr/include/x86_64-linux-gnu/bits/string3.h line 55 void * memmove(void *__dest, const void *__src, unsigned long int __len) { char *return_value___builtin___memmove_chk$1; return_value___builtin___memmove_chk$1=__builtin___memmove_chk(__dest, __src, (unsigned int)__len, 18446744073709551615ul); return (void *)return_value___builtin___memmove_chk$1; } // c::memset // file /usr/include/x86_64-linux-gnu/bits/string3.h line 76 void * memset(void *__dest, signed int __ch, unsigned long int __len) { if(FALSE) { if(__len == 0ul) { __CPROVER_DUMP_L1: ; __warn_memset_zero_len(); return __dest; } } void *return_value___builtin___memset_chk$1; return_value___builtin___memset_chk$1=__builtin___memset_chk(__dest, __ch, (unsigned int)__len, 18446744073709551615ul); return return_value___builtin___memset_chk$1; } // c::motion_estimation // file src/global.h line 110 void motion_estimation(unsigned char *oldorg, unsigned char *neworg, unsigned char *oldref, unsigned char *newref, unsigned char *cur, unsigned char *curref, signed int sxf, signed int syf, signed int sxb, signed int syb, struct mbinfo *mbi, signed int secondfield, signed int ipflag) { signed int i; signed int j = 0; while(!(j >= height2)) { i = 0; while(!(i >= width)) { if(pict_struct == 3) frame_ME(oldorg, neworg, oldref, newref, cur, i, j, sxf, syf, sxb, syb, mbi); else field_ME(oldorg, neworg, oldref, newref, cur, curref, i, j, sxf, syf, sxb, syb, mbi, secondfield, ipflag); mbi = mbi + 1l; i = i + 16; } j = j + 16; } } // c::pbm_getc // file src/readpic.c line 506 char pbm_getc(struct _IO_FILE$link2 *file) { char ch; signed int return_value_fgetc$1; return_value_fgetc$1=fgetc(file); ch = (char)return_value_fgetc$1; if((signed int)ch == 35) do { signed int return_value_fgetc$2; return_value_fgetc$2=fgetc(file); ch = (char)return_value_fgetc$2; } while((signed int)ch != 10 && (signed int)ch != 13); return ch; } // c::pbm_getint // file src/readpic.c line 525 static signed int pbm_getint(struct _IO_FILE$link2 *file) { char ch; signed int i; do ch=pbm_getc(file); while((signed int)ch == 9 || (signed int)ch == 10 || (signed int)ch == 13 || (signed int)ch == 32); i = 0; do { i = (i * 10 + (signed int)ch) - 48; ch=pbm_getc(file); } while((signed int)ch <= 57 && (signed int)ch >= 48); return i; } // c::pred // file src/predict.c line 422 static void pred(unsigned char **src, signed int sfield, unsigned char **dst, signed int dfield, signed int lx, signed int w, signed int h, signed int x, signed int y, signed int dx, signed int dy, signed int addflag) { signed int cc = 0; while(cc < 3) { if(cc == 1) { if(chroma_format == 1) { h = h >> 1; y = y >> 1; dy = dy / 2; } if(!(chroma_format == 3)) { w = w >> 1; x = x >> 1; dx = dx / 2; lx = lx >> 1; } } pred_comp(src[(signed long int)cc] + (signed long int)(sfield != 0 ? lx >> 1 : 0), dst[(signed long int)cc] + (signed long int)(dfield != 0 ? lx >> 1 : 0), lx, w, h, x, y, dx, dy, addflag); cc = cc + 1; } } // c::pred_comp // file src/predict.c line 469 static void pred_comp(unsigned char *src, unsigned char *dst, signed int lx, signed int w, signed int h, signed int x, signed int y, signed int dx, signed int dy, signed int addflag) { signed int xint; signed int xh; signed int yint; signed int yh; signed int i; signed int j; unsigned char *s; unsigned char *d; xint = dx >> 1; xh = dx & 1; yint = dy >> 1; yh = dy & 1; s = src + (signed long int)(lx * (y + yint)) + (signed long int)(x + xint); d = dst + (signed long int)(lx * y) + (signed long int)x; if(xh == 0) { if(yh != 0) goto __CPROVER_DUMP_L10; if(!(addflag == 0)) { j = 0; while(!(j >= h)) { i = 0; while(!(i >= w)) { d[(signed long int)i] = (unsigned char)((unsigned int)((signed int)d[(signed long int)i] + (signed int)s[(signed long int)i] + 1) >> 1); i = i + 1; } s = s + (signed long int)lx; d = d + (signed long int)lx; j = j + 1; } } else { j = 0; while(!(j >= h)) { i = 0; while(!(i >= w)) { d[(signed long int)i] = s[(signed long int)i]; i = i + 1; } s = s + (signed long int)lx; d = d + (signed long int)lx; j = j + 1; } } } else { __CPROVER_DUMP_L10: ; if(xh == 0) { if(yh == 0) goto __CPROVER_DUMP_L20; if(!(addflag == 0)) { j = 0; while(!(j >= h)) { i = 0; while(!(i >= w)) { d[(signed long int)i] = (unsigned char)((unsigned int)d[(signed long int)i] + ((unsigned int)((signed int)s[(signed long int)i] + (signed int)s[(signed long int)(i + lx)] + 1) >> 1) + (unsigned int)1 >> 1); i = i + 1; } s = s + (signed long int)lx; d = d + (signed long int)lx; j = j + 1; } } else { j = 0; while(!(j >= h)) { i = 0; while(!(i >= w)) { d[(signed long int)i] = (unsigned char)((unsigned int)((signed int)s[(signed long int)i] + (signed int)s[(signed long int)(i + lx)] + 1) >> 1); i = i + 1; } s = s + (signed long int)lx; d = d + (signed long int)lx; j = j + 1; } } } else { __CPROVER_DUMP_L20: ; if(!(xh == 0)) { if(yh != 0) goto __CPROVER_DUMP_L30; if(!(addflag == 0)) { j = 0; while(!(j >= h)) { i = 0; while(!(i >= w)) { d[(signed long int)i] = (unsigned char)((unsigned int)d[(signed long int)i] + ((unsigned int)((signed int)s[(signed long int)i] + (signed int)s[(signed long int)(i + 1)] + 1) >> 1) + (unsigned int)1 >> 1); i = i + 1; } s = s + (signed long int)lx; d = d + (signed long int)lx; j = j + 1; } } else { j = 0; while(!(j >= h)) { i = 0; while(!(i >= w)) { d[(signed long int)i] = (unsigned char)((unsigned int)((signed int)s[(signed long int)i] + (signed int)s[(signed long int)(i + 1)] + 1) >> 1); i = i + 1; } s = s + (signed long int)lx; d = d + (signed long int)lx; j = j + 1; } } } else { __CPROVER_DUMP_L30: ; if(!(addflag == 0)) { j = 0; while(!(j >= h)) { i = 0; while(!(i >= w)) { d[(signed long int)i] = (unsigned char)((unsigned int)d[(signed long int)i] + ((unsigned int)((signed int)s[(signed long int)i] + (signed int)s[(signed long int)(i + 1)] + (signed int)s[(signed long int)(i + lx)] + (signed int)s[(signed long int)(i + lx + 1)] + 2) >> 2) + (unsigned int)1 >> 1); i = i + 1; } s = s + (signed long int)lx; d = d + (signed long int)lx; j = j + 1; } } else { j = 0; while(!(j >= h)) { i = 0; while(!(i >= w)) { d[(signed long int)i] = (unsigned char)((unsigned int)((signed int)s[(signed long int)i] + (signed int)s[(signed long int)(i + 1)] + (signed int)s[(signed long int)(i + lx)] + (signed int)s[(signed long int)(i + lx + 1)] + 2) >> 2); i = i + 1; } s = s + (signed long int)lx; d = d + (signed long int)lx; j = j + 1; } } } } } } // c::predict // file src/global.h line 125 void predict(unsigned char **reff, unsigned char **refb, unsigned char **cur, signed int secondfield, struct mbinfo *mbi) { signed int i; signed int j; signed int k = 0; j = 0; while(!(j >= height2)) { i = 0; while(!(i >= width)) { predict_mb(reff, refb, cur, width, i, j, pict_type, pict_struct, (mbi + (signed long int)k)->mb_type, (mbi + (signed long int)k)->motion_type, secondfield, (mbi + (signed long int)k)->MV, (mbi + (signed long int)k)->mv_field_sel, (mbi + (signed long int)k)->dmvector); k = k + 1; i = i + 16; } j = j + 16; } } // c::predict_mb // file src/predict.c line 190 static void predict_mb(unsigned char **oldref, unsigned char **newref, unsigned char **cur, signed int lx, signed int bx, signed int by, signed int pict_type, signed int pict_struct, signed int mb_type, signed int motion_type, signed int secondfield, signed int (*PMV)[2l][2l], signed int (*mv_field_sel)[2l], signed int *dmvector) { signed int addflag; signed int currentfield; unsigned char **predframe; signed int DMV[2l][2l]; if(!((1 & mb_type) == 0)) { clearblock(cur, bx, by); return; } addflag = 0; _Bool tmp_if_expr$1; _Bool tmp_if_expr$2; if((8 & mb_type) == 0) { if(pict_type == 2) goto __CPROVER_DUMP_L2; } else { __CPROVER_DUMP_L2: ; if(pict_struct == 3) { if(!(motion_type == 2)) { if((8 & mb_type) == 0) goto __CPROVER_DUMP_L3; } else { __CPROVER_DUMP_L3: ; pred(oldref, 0, cur, 0, lx, 16, 16, bx, by, PMV[(signed long int)0][(signed long int)0][(signed long int)0], PMV[(signed long int)0][(signed long int)0][(signed long int)1], 0); goto __CPROVER_DUMP_L7; } if(motion_type == 1) { pred(oldref, mv_field_sel[(signed long int)0][(signed long int)0], cur, 0, lx << 1, 16, 8, bx, by >> 1, PMV[(signed long int)0][(signed long int)0][(signed long int)0], PMV[(signed long int)0][(signed long int)0][(signed long int)1] >> 1, 0); pred(oldref, mv_field_sel[(signed long int)1][(signed long int)0], cur, 1, lx << 1, 16, 8, bx, by >> 1, PMV[(signed long int)1][(signed long int)0][(signed long int)0], PMV[(signed long int)1][(signed long int)0][(signed long int)1] >> 1, 0); } else if(motion_type == 3) { calc_DMV(DMV, dmvector, PMV[(signed long int)0][(signed long int)0][(signed long int)0], PMV[(signed long int)0][(signed long int)0][(signed long int)1] >> 1); pred(oldref, 0, cur, 0, lx << 1, 16, 8, bx, by >> 1, PMV[(signed long int)0][(signed long int)0][(signed long int)0], PMV[(signed long int)0][(signed long int)0][(signed long int)1] >> 1, 0); pred(oldref, 1, cur, 1, lx << 1, 16, 8, bx, by >> 1, PMV[(signed long int)0][(signed long int)0][(signed long int)0], PMV[(signed long int)0][(signed long int)0][(signed long int)1] >> 1, 0); pred(oldref, 1, cur, 0, lx << 1, 16, 8, bx, by >> 1, DMV[(signed long int)0][(signed long int)0], DMV[(signed long int)0][(signed long int)1], 1); pred(oldref, 0, cur, 1, lx << 1, 16, 8, bx, by >> 1, DMV[(signed long int)1][(signed long int)0], DMV[(signed long int)1][(signed long int)1], 1); } else if(quiet == 0) fprintf(stderr, "invalid motion_type\n"); } else { currentfield = (signed int)(pict_struct == 2); if(pict_type == 2) { if(secondfield == 0) goto __CPROVER_DUMP_L9; tmp_if_expr$1 = currentfield != mv_field_sel[(signed long int)0][(signed long int)0] ? TRUE : FALSE; } else { __CPROVER_DUMP_L9: ; tmp_if_expr$1 = FALSE; } if(tmp_if_expr$1) predframe = newref; else predframe = oldref; if(!(motion_type == 1)) { if((8 & mb_type) == 0) goto __CPROVER_DUMP_L13; } else { __CPROVER_DUMP_L13: ; pred(predframe, mv_field_sel[(signed long int)0][(signed long int)0], cur, currentfield, lx << 1, 16, 16, bx, by, PMV[(signed long int)0][(signed long int)0][(signed long int)0], PMV[(signed long int)0][(signed long int)0][(signed long int)1], 0); goto __CPROVER_DUMP_L23; } if(motion_type == 2) { pred(predframe, mv_field_sel[(signed long int)0][(signed long int)0], cur, currentfield, lx << 1, 16, 8, bx, by, PMV[(signed long int)0][(signed long int)0][(signed long int)0], PMV[(signed long int)0][(signed long int)0][(signed long int)1], 0); if(pict_type == 2) { if(secondfield == 0) goto __CPROVER_DUMP_L15; tmp_if_expr$2 = currentfield != mv_field_sel[(signed long int)1][(signed long int)0] ? TRUE : FALSE; } else { __CPROVER_DUMP_L15: ; tmp_if_expr$2 = FALSE; } if(tmp_if_expr$2) predframe = newref; else predframe = oldref; pred(predframe, mv_field_sel[(signed long int)1][(signed long int)0], cur, currentfield, lx << 1, 16, 8, bx, by + 8, PMV[(signed long int)1][(signed long int)0][(signed long int)0], PMV[(signed long int)1][(signed long int)0][(signed long int)1], 0); } else if(motion_type == 3) { if(!(secondfield == 0)) predframe = newref; else predframe = oldref; calc_DMV(DMV, dmvector, PMV[(signed long int)0][(signed long int)0][(signed long int)0], PMV[(signed long int)0][(signed long int)0][(signed long int)1]); pred(oldref, currentfield, cur, currentfield, lx << 1, 16, 16, bx, by, PMV[(signed long int)0][(signed long int)0][(signed long int)0], PMV[(signed long int)0][(signed long int)0][(signed long int)1], 0); pred(predframe, (signed int)!(currentfield != 0), cur, currentfield, lx << 1, 16, 16, bx, by, DMV[(signed long int)0][(signed long int)0], DMV[(signed long int)0][(signed long int)1], 1); } else if(quiet == 0) fprintf(stderr, "invalid motion_type\n"); } __CPROVER_DUMP_L7: ; __CPROVER_DUMP_L23: ; addflag = 1; } if(!((4 & mb_type) == 0)) { if(pict_struct == 3) { if(motion_type == 2) pred(newref, 0, cur, 0, lx, 16, 16, bx, by, PMV[(signed long int)0][(signed long int)1][(signed long int)0], PMV[(signed long int)0][(signed long int)1][(signed long int)1], addflag); else { pred(newref, mv_field_sel[(signed long int)0][(signed long int)1], cur, 0, lx << 1, 16, 8, bx, by >> 1, PMV[(signed long int)0][(signed long int)1][(signed long int)0], PMV[(signed long int)0][(signed long int)1][(signed long int)1] >> 1, addflag); pred(newref, mv_field_sel[(signed long int)1][(signed long int)1], cur, 1, lx << 1, 16, 8, bx, by >> 1, PMV[(signed long int)1][(signed long int)1][(signed long int)0], PMV[(signed long int)1][(signed long int)1][(signed long int)1] >> 1, addflag); } } else { currentfield = (signed int)(pict_struct == 2); if(motion_type == 1) pred(newref, mv_field_sel[(signed long int)0][(signed long int)1], cur, currentfield, lx << 1, 16, 16, bx, by, PMV[(signed long int)0][(signed long int)1][(signed long int)0], PMV[(signed long int)0][(signed long int)1][(signed long int)1], addflag); else if(motion_type == 2) { pred(newref, mv_field_sel[(signed long int)0][(signed long int)1], cur, currentfield, lx << 1, 16, 8, bx, by, PMV[(signed long int)0][(signed long int)1][(signed long int)0], PMV[(signed long int)0][(signed long int)1][(signed long int)1], addflag); pred(newref, mv_field_sel[(signed long int)1][(signed long int)1], cur, currentfield, lx << 1, 16, 8, bx, by + 8, PMV[(signed long int)1][(signed long int)1][(signed long int)0], PMV[(signed long int)1][(signed long int)1][(signed long int)1], addflag); } else if(quiet == 0) fprintf(stderr, "invalid motion_type\n"); } } } // c::printf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 102 signed int printf(const char * restrict __fmt, ...) { void *return_value___builtin_va_arg_pack$1; return_value___builtin_va_arg_pack$1=__builtin_va_arg_pack(); signed int return_value___printf_chk$2; return_value___printf_chk$2=__printf_chk(2 - 1, __fmt, return_value___builtin_va_arg_pack$1); return return_value___printf_chk$2; } // c::profile_and_level_checks // file src/conform.c line 239 void profile_and_level_checks(void) { signed int i; struct level_limits *maxval; if(!(profile < 0)) { if(profile > 15) goto __CPROVER_DUMP_L1; } else { __CPROVER_DUMP_L1: ; error("profile must be between 0 and 15"); } if(!(level < 0)) { if(level > 15) goto __CPROVER_DUMP_L3; } else { __CPROVER_DUMP_L3: ; error("level must be between 0 and 15"); } if(profile >= 8) { if(quiet == 0) fprintf(stderr, "Warning: profile uses a reserved value, conformance checks skipped\n"); return; } if(!(profile < 1)) { if(profile > 5) goto __CPROVER_DUMP_L7; } else { __CPROVER_DUMP_L7: ; error("undefined Profile"); } if(!(profile == 3)) { if(profile == 2) goto __CPROVER_DUMP_L9; } else { __CPROVER_DUMP_L9: ; error("This encoder currently generates no scalable bitstreams"); } if(!(level < 4)) { if(level > 10) goto __CPROVER_DUMP_L11; if((1 & level) != 0) goto __CPROVER_DUMP_L11; } else { __CPROVER_DUMP_L11: ; error("undefined Level"); } maxval = &maxval_tab[(signed long int)(level - 4 >> 1)]; if(profile_level_defined[-1l + (signed long int)profile][(signed long int)(-4 + level >> 1)] == 0) error("undefined profile@level combination"); if(profile == 5) { if(!(M == 1)) error("Simple Profile does not allow B pictures"); } if(!(profile == 1)) { if(!(chroma_format == 1)) error("chroma format must be 4:2:0 in specified Profile"); } if(profile == 1) { if(chroma_format == 3) error("chroma format must be 4:2:0 or 4:2:2 in High Profile"); } if(profile >= 4) { if(frame_rate_code <= 2) { if(!(repeatfirst == 0)) error("repeat_first_first must be zero"); } if(frame_rate_code <= 6) { if(!(prog_seq == 0)) { if(!(repeatfirst == 0)) error("repeat_first_first must be zero"); } } } if(!(profile == 1)) { if(dc_prec == 3) error("11 bit DC precision only allowed in High Profile"); } if(frame_rate_code > 5) { if(level >= 8) error("Picture rate greater than permitted in specified Level"); } i = 0; while(!(i >= M)) { if(!(maxval->hor_f_code >= (motion_data + (signed long int)i)->forw_hor_f_code)) error("forward horizontal f_code greater than permitted in specified Level"); if(!(maxval->vert_f_code >= (motion_data + (signed long int)i)->forw_vert_f_code)) error("forward vertical f_code greater than permitted in specified Level"); if(!(i == 0)) { if(!(maxval->hor_f_code >= (motion_data + (signed long int)i)->back_hor_f_code)) error("backward horizontal f_code greater than permitted in specified Level"); if(!(maxval->vert_f_code >= (motion_data + (signed long int)i)->back_vert_f_code)) error("backward vertical f_code greater than permitted in specified Level"); } i = i + 1; } if(!(maxval->hor_size >= horizontal_size)) error("Horizontal size is greater than permitted in specified Level"); if(!(maxval->vert_size >= vertical_size)) error("Horizontal size is greater than permitted in specified Level"); if((double)(horizontal_size * vertical_size) * frame_rate > (double)maxval->sample_rate) error("Sample rate is greater than permitted in specified Level"); if(bit_rate > 1.000000e+6 * (double)maxval->bit_rate) error("Bit rate is greater than permitted in specified Level"); if(!(maxval->vbv_buffer_size >= vbv_buffer_size)) error("vbv_buffer_size exceeds High Level limit"); } // c::ptdct_type_estimation // file src/transfrm.c line 582 void ptdct_type_estimation(unsigned char *pred, unsigned char *cur, struct mbinfo *mbi, signed int start_height, signed int end_height) { signed short int blk0[128l]; signed short int blk1[128l]; signed int i; signed int j; signed int i0; signed int j0; signed int k; signed int offs; signed int s0; signed int s1; signed int sq0; signed int sq1; signed int s01; double d; double r; k = (start_height >> 4) * (width >> 4); j0 = start_height; while(!(j0 >= end_height)) { i0 = 0; while(!(i0 >= width)) { if(frame_pred_dct == 0) { if(pict_struct != 3) goto __CPROVER_DUMP_L3; } else { __CPROVER_DUMP_L3: ; (mbi + (signed long int)k)->dct_type = 0; goto __CPROVER_DUMP_L14; } j = 0; while(j < 8) { offs = width * ((j << 1) + j0) + i0; i = 0; while(i < 16) { blk0[(signed long int)(16 * j + i)] = (signed short int)((signed int)cur[(signed long int)offs] - (signed int)pred[(signed long int)offs]); blk1[(signed long int)(16 * j + i)] = (signed short int)((signed int)cur[(signed long int)(offs + width)] - (signed int)pred[(signed long int)(offs + width)]); offs = offs + 1; i = i + 1; } j = j + 1; } s01 = 0; sq1 = s01; sq0 = sq1; s1 = sq0; s0 = s1; i = 0; while(i < 128) { s0 = s0 + (signed int)blk0[(signed long int)i]; sq0 = sq0 + (signed int)blk0[(signed long int)i] * (signed int)blk0[(signed long int)i]; s1 = s1 + (signed int)blk1[(signed long int)i]; sq1 = sq1 + (signed int)blk1[(signed long int)i] * (signed int)blk1[(signed long int)i]; s01 = s01 + (signed int)blk0[(signed long int)i] * (signed int)blk1[(signed long int)i]; i = i + 1; } d = ((double)sq0 - (double)(s0 * s0) / 128.000000) * ((double)sq1 - (double)(s1 * s1) / 128.000000); if(d > 0.000000) { double return_value_sqrt$1; return_value_sqrt$1=sqrt(d); r = ((double)s01 - (double)(s0 * s1) / 128.000000) / return_value_sqrt$1; if(r > 5.000000e-1) (mbi + (signed long int)k)->dct_type = 0; else (mbi + (signed long int)k)->dct_type = 1; } else (mbi + (signed long int)k)->dct_type = 1; __CPROVER_DUMP_L14: ; k = k + 1; i0 = i0 + 16; } j0 = j0 + 16; } } // c::pthread_equal // file /usr/include/pthread.h line 1144 signed int pthread_equal(unsigned long int __thread1, unsigned long int __thread2) { return (signed int)(__thread1 == __thread2); } // c::ptiquant // file src/global.h line 206 void ptiquant(signed int start_k, signed int end_k) { signed int k; signed int j; k = start_k; while(!(k >= end_k)) { if(!((1 & (mbinfo + (signed long int)k)->mb_type) == 0)) { j = 0; while(!(j >= block_count)) { signed int ptiquant$$1$$1$$1$$ind = k * block_count + j; iquant_intra(blocks[(signed long int)ptiquant$$1$$1$$1$$ind], blocks[(signed long int)ptiquant$$1$$1$$1$$ind], dc_prec, intra_q, (mbinfo + (signed long int)k)->mquant); j = j + 1; } } else { j = 0; while(!(j >= block_count)) { signed int ptiquant$$1$$1$$2$$ind = k * block_count + j; iquant_non_intra(blocks[(signed long int)ptiquant$$1$$1$$2$$ind], blocks[(signed long int)ptiquant$$1$$1$$2$$ind], inter_q, (mbinfo + (signed long int)k)->mquant); j = j + 1; } } k = k + 1; } } // c::ptitransform // file src/transfrm.c line 238 void ptitransform(unsigned char **pred, unsigned char **cur, struct mbinfo *mbi, signed short int (*blocks)[64l], signed int start_height, signed int end_height) { signed int i; signed int j; signed int i1; signed int j1; signed int k; signed int n; signed int cc; signed int offs; signed int lx; k = (start_height >> 4) * (width >> 4); j = start_height; _Bool tmp_if_expr$1; _Bool tmp_if_expr$2; while(!(j >= end_height)) { i = 0; while(!(i >= width)) { n = 0; while(!(n >= block_count)) { cc = n < 4 ? 0 : (n & 1) + 1; if(cc == 0) { if(pict_struct == 3) tmp_if_expr$1 = (mbi + (signed long int)k)->dct_type != 0 ? TRUE : FALSE; else tmp_if_expr$1 = FALSE; if(tmp_if_expr$1) { offs = i + ((n & 1) << 3) + width * (j + ((n & 2) >> 1)); lx = width << 1; } else { offs = i + ((n & 1) << 3) + width2 * (j + ((n & 2) << 2)); lx = width2; } if(pict_struct == 2) offs = offs + width; } else { i1 = chroma_format == 3 ? i : i >> 1; j1 = chroma_format != 1 ? j : j >> 1; if(pict_struct == 3) tmp_if_expr$2 = (mbi + (signed long int)k)->dct_type != 0 ? TRUE : FALSE; else tmp_if_expr$2 = FALSE; if(!(chroma_format == 1) && tmp_if_expr$2) { offs = i1 + (n & 8) + chrom_width * (j1 + ((n & 2) >> 1)); lx = chrom_width << 1; } else { offs = i1 + (n & 8) + chrom_width2 * (j1 + ((n & 2) << 2)); lx = chrom_width2; } if(pict_struct == 2) offs = offs + chrom_width; } idct(blocks[(signed long int)(k * block_count + n)]); add_pred(pred[(signed long int)cc] + (signed long int)offs, cur[(signed long int)cc] + (signed long int)offs, lx, blocks[(signed long int)(k * block_count + n)]); n = n + 1; } k = k + 1; i = i + 16; } j = j + 16; } } // c::ptmotion_estimation // file src/global.h line 115 void ptmotion_estimation(unsigned char *oldorg, unsigned char *neworg, unsigned char *oldref, unsigned char *newref, unsigned char *cur, unsigned char *curref, signed int sxf, signed int syf, signed int sxb, signed int syb, struct mbinfo *mbi, signed int secondfield, signed int ipflag, signed int start_height, signed int end_height) { signed int i; signed int j; struct mbinfo *local_mbi = mbi + (signed long int)((start_height >> 4) * (width >> 4)); j = start_height; while(!(j >= end_height)) { i = 0; while(!(i >= width)) { if(pict_struct == 3) frame_ME(oldorg, neworg, oldref, newref, cur, i, j, sxf, syf, sxb, syb, local_mbi); else field_ME(oldorg, neworg, oldref, newref, cur, curref, i, j, sxf, syf, sxb, syb, local_mbi, secondfield, ipflag); local_mbi = local_mbi + 1l; i = i + 16; } j = j + 16; } if(quiet == 0) fputc(10, stderr); } // c::ptpredict // file src/global.h line 128 void ptpredict(unsigned char **reff, unsigned char **refb, unsigned char **cur, signed int secondfield, struct mbinfo *mbi, signed int start_height, signed int end_height) { signed int i; signed int j; signed int k = (start_height >> 4) * (width >> 4); j = start_height; while(!(j >= end_height)) { i = 0; while(!(i >= width)) { predict_mb(reff, refb, cur, width, i, j, pict_type, pict_struct, (mbi + (signed long int)k)->mb_type, (mbi + (signed long int)k)->motion_type, secondfield, (mbi + (signed long int)k)->MV, (mbi + (signed long int)k)->mv_field_sel, (mbi + (signed long int)k)->dmvector); k = k + 1; i = i + 16; } j = j + 16; } } // c::ptputpict // file src/putpic.c line 363 void ptputpict(unsigned char *frame, signed int start_mbh, signed int end_mbh, signed int pmq, signed int id) { signed int i; signed int j; signed int k; signed int comp; signed int cc; signed int mb_type; signed int PMV[2l][2l][2l]; signed int prev_mquant; signed int cbp; signed int MBAinc; k = start_mbh * mb_width; prev_mquant = pmq; j = start_mbh; signed int tmp_if_expr$1; _Bool tmp_if_expr$5; _Bool tmp_if_expr$4; _Bool tmp_if_expr$3; _Bool tmp_if_expr$2; _Bool tmp_if_expr$11; _Bool tmp_if_expr$9; _Bool tmp_if_expr$10; _Bool tmp_if_expr$8; _Bool tmp_if_expr$6; _Bool tmp_if_expr$7; signed int tmp_if_expr$12; while(!(j >= end_mbh)) { i = 0; while(!(i >= mb_width)) { if(i == 0) { align_bits(id); if(mpeg1 == 0) { if(vertical_size <= 2800) goto __CPROVER_DUMP_L3; } else { __CPROVER_DUMP_L3: ; put_bits((signed int)(257l + (signed long int)j), 32, id); goto __CPROVER_DUMP_L5; } put_bits((signed int)(257l + (signed long int)(j & 127)), 32, id); put_bits(j >> 7, 3, id); __CPROVER_DUMP_L5: ; if(!(q_scale_type == 0)) tmp_if_expr$1 = (signed int)map_non_linear_mquant[(signed long int)prev_mquant]; else tmp_if_expr$1 = prev_mquant >> 1; put_bits(tmp_if_expr$1, 5, id); put_bits(0, 1, id); cc = 0; while(cc < 3) { pt_dc_dct_pred[(signed long int)id][(signed long int)cc] = 0; cc = cc + 1; } PMV[(signed long int)1][(signed long int)0][(signed long int)1] = 0; PMV[(signed long int)1][(signed long int)0][(signed long int)0] = PMV[(signed long int)1][(signed long int)0][(signed long int)1]; PMV[(signed long int)0][(signed long int)0][(signed long int)1] = PMV[(signed long int)1][(signed long int)0][(signed long int)0]; PMV[(signed long int)0][(signed long int)0][(signed long int)0] = PMV[(signed long int)0][(signed long int)0][(signed long int)1]; PMV[(signed long int)1][(signed long int)1][(signed long int)1] = 0; PMV[(signed long int)1][(signed long int)1][(signed long int)0] = PMV[(signed long int)1][(signed long int)1][(signed long int)1]; PMV[(signed long int)0][(signed long int)1][(signed long int)1] = PMV[(signed long int)1][(signed long int)1][(signed long int)0]; PMV[(signed long int)0][(signed long int)1][(signed long int)0] = PMV[(signed long int)0][(signed long int)1][(signed long int)1]; MBAinc = i + 1; } mb_type = (mbinfo + (signed long int)k)->mb_type; (mbinfo + (signed long int)k)->mquant = 20; cbp = (mbinfo + (signed long int)k)->cbp; if((1 & mb_type) == 0) { if(!(cbp == 0)) mb_type = mb_type | 2; } if(!(cbp == 0)) { if(!(prev_mquant == (mbinfo + (signed long int)k)->mquant)) mb_type = mb_type | 16; } if(!(i == 0)) { if(i == -1 + mb_width) goto __CPROVER_DUMP_L37; if(cbp != 0) goto __CPROVER_DUMP_L37; if(!(pict_type == 2)) goto __CPROVER_DUMP_L15; if((8 & mb_type) != 0) goto __CPROVER_DUMP_L15; cc = 0; while(cc < 3) { pt_dc_dct_pred[(signed long int)id][(signed long int)cc] = 0; cc = cc + 1; } PMV[(signed long int)1][(signed long int)0][(signed long int)1] = 0; PMV[(signed long int)1][(signed long int)0][(signed long int)0] = PMV[(signed long int)1][(signed long int)0][(signed long int)1]; PMV[(signed long int)0][(signed long int)0][(signed long int)1] = PMV[(signed long int)1][(signed long int)0][(signed long int)0]; PMV[(signed long int)0][(signed long int)0][(signed long int)0] = PMV[(signed long int)0][(signed long int)0][(signed long int)1]; PMV[(signed long int)1][(signed long int)1][(signed long int)1] = 0; PMV[(signed long int)1][(signed long int)1][(signed long int)0] = PMV[(signed long int)1][(signed long int)1][(signed long int)1]; PMV[(signed long int)0][(signed long int)1][(signed long int)1] = PMV[(signed long int)1][(signed long int)1][(signed long int)0]; PMV[(signed long int)0][(signed long int)1][(signed long int)0] = PMV[(signed long int)0][(signed long int)1][(signed long int)1]; (mbinfo + (signed long int)k)->mb_type = mb_type; (mbinfo + (signed long int)k)->skipped = 1; MBAinc = MBAinc + 1; k = k + 1; goto __CPROVER_DUMP_L56; __CPROVER_DUMP_L15: ; if(!(pict_type == 3)) goto __CPROVER_DUMP_L24; if(!(pict_struct == 3)) goto __CPROVER_DUMP_L24; if(!((mbinfo + (signed long int)k)->motion_type == 2)) goto __CPROVER_DUMP_L24; if(!((((-1l + mbinfo + (signed long int)k)->mb_type ^ mb_type) & 12) == 0)) goto __CPROVER_DUMP_L24; if((8 & mb_type) == 0) tmp_if_expr$5 = TRUE; else { if(PMV[0l][0l][0l] == (mbinfo + (signed long int)k)->MV[0l][0l][0l]) tmp_if_expr$4 = PMV[(signed long int)0][(signed long int)0][(signed long int)1] == (mbinfo + (signed long int)k)->MV[(signed long int)0][(signed long int)0][(signed long int)1] ? TRUE : FALSE; else tmp_if_expr$4 = FALSE; tmp_if_expr$5 = tmp_if_expr$4 ? TRUE : FALSE; } if(!tmp_if_expr$5) goto __CPROVER_DUMP_L24; if((4 & mb_type) == 0) tmp_if_expr$3 = TRUE; else { if(PMV[0l][1l][0l] == (mbinfo + (signed long int)k)->MV[0l][1l][0l]) tmp_if_expr$2 = PMV[(signed long int)0][(signed long int)1][(signed long int)1] == (mbinfo + (signed long int)k)->MV[(signed long int)0][(signed long int)1][(signed long int)1] ? TRUE : FALSE; else tmp_if_expr$2 = FALSE; tmp_if_expr$3 = tmp_if_expr$2 ? TRUE : FALSE; } if(!tmp_if_expr$3) goto __CPROVER_DUMP_L24; (mbinfo + (signed long int)k)->mb_type = mb_type; (mbinfo + (signed long int)k)->skipped = 1; MBAinc = MBAinc + 1; k = k + 1; goto __CPROVER_DUMP_L56; __CPROVER_DUMP_L24: ; if(!(pict_type == 3)) goto __CPROVER_DUMP_L37; if(pict_struct == 3) goto __CPROVER_DUMP_L37; if(!((mbinfo + (signed long int)k)->motion_type == 1)) goto __CPROVER_DUMP_L37; if(!((((-1l + mbinfo + (signed long int)k)->mb_type ^ mb_type) & 12) == 0)) goto __CPROVER_DUMP_L37; if((8 & mb_type) == 0) tmp_if_expr$11 = TRUE; else { if(PMV[0l][0l][0l] == (mbinfo + (signed long int)k)->MV[0l][0l][0l]) tmp_if_expr$9 = PMV[(signed long int)0][(signed long int)0][(signed long int)1] == (mbinfo + (signed long int)k)->MV[(signed long int)0][(signed long int)0][(signed long int)1] ? TRUE : FALSE; else tmp_if_expr$9 = FALSE; if(tmp_if_expr$9) tmp_if_expr$10 = (mbinfo + (signed long int)k)->mv_field_sel[(signed long int)0][(signed long int)0] == (signed int)(pict_struct == 2) ? TRUE : FALSE; else tmp_if_expr$10 = FALSE; tmp_if_expr$11 = tmp_if_expr$10 ? TRUE : FALSE; } if(!tmp_if_expr$11) goto __CPROVER_DUMP_L37; if((4 & mb_type) == 0) tmp_if_expr$8 = TRUE; else { if(PMV[0l][1l][0l] == (mbinfo + (signed long int)k)->MV[0l][1l][0l]) tmp_if_expr$6 = PMV[(signed long int)0][(signed long int)1][(signed long int)1] == (mbinfo + (signed long int)k)->MV[(signed long int)0][(signed long int)1][(signed long int)1] ? TRUE : FALSE; else tmp_if_expr$6 = FALSE; if(tmp_if_expr$6) tmp_if_expr$7 = (mbinfo + (signed long int)k)->mv_field_sel[(signed long int)0][(signed long int)1] == (signed int)(pict_struct == 2) ? TRUE : FALSE; else tmp_if_expr$7 = FALSE; tmp_if_expr$8 = tmp_if_expr$7 ? TRUE : FALSE; } if(!tmp_if_expr$8) goto __CPROVER_DUMP_L37; (mbinfo + (signed long int)k)->mb_type = mb_type; (mbinfo + (signed long int)k)->skipped = 1; MBAinc = MBAinc + 1; k = k + 1; } else { __CPROVER_DUMP_L37: ; (mbinfo + (signed long int)k)->skipped = 0; if(pict_type == 2) { if(cbp == 0) { if((8 & mb_type) == 0) mb_type = mb_type | 8; } } put_addrinc(MBAinc, id); MBAinc = 1; put_mbtype(pict_type, mb_type, id); if(!((12 & mb_type) == 0)) { if(frame_pred_dct == 0) put_bits((mbinfo + (signed long int)k)->motion_type, 2, id); } if(pict_struct == 3) { if(!(cbp == 0)) { if(frame_pred_dct == 0) put_bits((mbinfo + (signed long int)k)->dct_type, 1, id); } } if(!((16 & mb_type) == 0)) { if(!(q_scale_type == 0)) tmp_if_expr$12 = (signed int)map_non_linear_mquant[(signed long int)(mbinfo + (signed long int)k)->mquant]; else tmp_if_expr$12 = (mbinfo + (signed long int)k)->mquant >> 1; put_bits(tmp_if_expr$12, 5, id); prev_mquant = (mbinfo + (signed long int)k)->mquant; } if(!((8 & mb_type) == 0)) put_mvs((mbinfo + (signed long int)k)->MV, PMV, (mbinfo + (signed long int)k)->mv_field_sel, (mbinfo + (signed long int)k)->dmvector, 0, (mbinfo + (signed long int)k)->motion_type, forw_hor_f_code, forw_vert_f_code, id); if(!((4 & mb_type) == 0)) put_mvs((mbinfo + (signed long int)k)->MV, PMV, (mbinfo + (signed long int)k)->mv_field_sel, (mbinfo + (signed long int)k)->dmvector, 1, (mbinfo + (signed long int)k)->motion_type, back_hor_f_code, back_vert_f_code, id); if(!((2 & mb_type) == 0)) { put_cbp(cbp >> block_count - 6 & 63, id); if(!(chroma_format == 1)) put_bits(cbp, block_count - 6, id); } comp = 0; while(!(comp >= block_count)) { if(!((1 << -1 + block_count + -comp & cbp) == 0)) { if(!((1 & mb_type) == 0)) { cc = comp < 4 ? 0 : (comp & 1) + 1; put_intrablk(blocks[(signed long int)(k * block_count + comp)], cc, id); } else put_nonintrablk(blocks[(signed long int)(k * block_count + comp)], id); } comp = comp + 1; } if((1 & mb_type) == 0) { cc = 0; while(cc < 3) { pt_dc_dct_pred[(signed long int)id][(signed long int)cc] = 0; cc = cc + 1; } } if((1 & mb_type) == 0) { if(!(pict_type == 2)) goto __CPROVER_DUMP_L53; if((8 & mb_type) != 0) goto __CPROVER_DUMP_L53; goto __CPROVER_DUMP_L54; } else { __CPROVER_DUMP_L54: ; PMV[(signed long int)1][(signed long int)0][(signed long int)1] = 0; PMV[(signed long int)1][(signed long int)0][(signed long int)0] = PMV[(signed long int)1][(signed long int)0][(signed long int)1]; PMV[(signed long int)0][(signed long int)0][(signed long int)1] = PMV[(signed long int)1][(signed long int)0][(signed long int)0]; PMV[(signed long int)0][(signed long int)0][(signed long int)0] = PMV[(signed long int)0][(signed long int)0][(signed long int)1]; PMV[(signed long int)1][(signed long int)1][(signed long int)1] = 0; PMV[(signed long int)1][(signed long int)1][(signed long int)0] = PMV[(signed long int)1][(signed long int)1][(signed long int)1]; PMV[(signed long int)0][(signed long int)1][(signed long int)1] = PMV[(signed long int)1][(signed long int)1][(signed long int)0]; PMV[(signed long int)0][(signed long int)1][(signed long int)0] = PMV[(signed long int)0][(signed long int)1][(signed long int)1]; } __CPROVER_DUMP_L53: ; (mbinfo + (signed long int)k)->mb_type = mb_type; k = k + 1; } __CPROVER_DUMP_L56: ; i = i + 1; } j = j + 1; } } // c::ptquant // file src/global.h line 207 void ptquant(signed int start_mbh, signed int end_mbh) { signed int k; signed int mb_type; signed int comp; signed int cbp; k = start_mbh; while(!(k >= end_mbh)) { mb_type = (mbinfo + (signed long int)k)->mb_type; (mbinfo + (signed long int)k)->mquant = 20; if(!((1 & mb_type) == 0)) { comp = 0; while(!(comp >= block_count)) { signed int ptquant$$1$$1$$1$$1$$ind = k * block_count + comp; quant_intra(blocks[(signed long int)ptquant$$1$$1$$1$$1$$ind], blocks[(signed long int)ptquant$$1$$1$$1$$1$$ind], dc_prec, intra_q, (mbinfo + (signed long int)k)->mquant); comp = comp + 1; } cbp = (1 << block_count) - 1; (mbinfo + (signed long int)k)->cbp = cbp; } else { cbp = 0; comp = 0; while(!(comp >= block_count)) { signed int ptquant$$1$$1$$2$$1$$ind = k * block_count + comp; signed int return_value_quant_non_intra$1; return_value_quant_non_intra$1=quant_non_intra(blocks[(signed long int)ptquant$$1$$1$$2$$1$$ind], blocks[(signed long int)ptquant$$1$$1$$2$$1$$ind], inter_q, (mbinfo + (signed long int)k)->mquant); cbp = cbp << 1 | return_value_quant_non_intra$1; comp = comp + 1; } (mbinfo + (signed long int)k)->cbp = cbp; } k = k + 1; } } // c::ptsname_r // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 64 signed int ptsname_r(signed int __fd, char *__buf, unsigned long int __buflen) { signed int return_value___ptsname_r_chk$1; signed int return_value___ptsname_r_chk_warn$2; signed int return_value___ptsname_r_alias$3; return_value___ptsname_r_alias$3=__ptsname_r_alias(__fd, __buf, __buflen); return return_value___ptsname_r_alias$3; } // c::pttransform // file src/transfrm.c line 166 void pttransform(unsigned char **pred, unsigned char **cur, struct mbinfo *mbi, signed short int (*blocks)[64l], signed int start_height, signed int end_height) { signed int i; signed int j; signed int i1; signed int j1; signed int k; signed int n; signed int cc; signed int offs; signed int lx; k = (start_height >> 4) * (width >> 4); j = start_height; _Bool tmp_if_expr$1; _Bool tmp_if_expr$2; while(!(j >= end_height)) { i = 0; while(!(i >= width)) { n = 0; while(!(n >= block_count)) { cc = n < 4 ? 0 : (n & 1) + 1; if(cc == 0) { if(pict_struct == 3) tmp_if_expr$1 = (mbi + (signed long int)k)->dct_type != 0 ? TRUE : FALSE; else tmp_if_expr$1 = FALSE; if(tmp_if_expr$1) { offs = i + ((n & 1) << 3) + width * (j + ((n & 2) >> 1)); lx = width << 1; } else { offs = i + ((n & 1) << 3) + width2 * (j + ((n & 2) << 2)); lx = width2; } if(pict_struct == 2) offs = offs + width; } else { i1 = chroma_format == 3 ? i : i >> 1; j1 = chroma_format != 1 ? j : j >> 1; if(pict_struct == 3) tmp_if_expr$2 = (mbi + (signed long int)k)->dct_type != 0 ? TRUE : FALSE; else tmp_if_expr$2 = FALSE; if(!(chroma_format == 1) && tmp_if_expr$2) { offs = i1 + (n & 8) + chrom_width * (j1 + ((n & 2) >> 1)); lx = chrom_width << 1; } else { offs = i1 + (n & 8) + chrom_width2 * (j1 + ((n & 2) << 2)); lx = chrom_width2; } if(pict_struct == 2) offs = offs + chrom_width; } sub_pred(pred[(signed long int)cc] + (signed long int)offs, cur[(signed long int)cc] + (signed long int)offs, lx, blocks[(signed long int)(k * block_count + n)]); fdct(blocks[(signed long int)(k * block_count + n)]); n = n + 1; } k = k + 1; i = i + 16; } j = j + 16; } } // c::putAC // file src/global.h line 178 void putAC(signed int run, signed int signed_level, signed int vlcformat) { signed int level; signed int len; struct anon$0 *ptab; level = signed_level < 0 ? -signed_level : signed_level; if(!(run < 0)) { if(run > 63) goto __CPROVER_DUMP_L2; if(level == 0) goto __CPROVER_DUMP_L2; if(level > 2047) goto __CPROVER_DUMP_L2; if(mpeg1 == 0) goto __CPROVER_DUMP_L1; if(!(level > 255)) goto __CPROVER_DUMP_L1; goto __CPROVER_DUMP_L2; } else { __CPROVER_DUMP_L2: ; sprintf(errortext, "AC value out of range (run=%d, signed_level=%d)\n", run, signed_level); error(errortext); } __CPROVER_DUMP_L1: ; len = 0; if(run < 2) { if(!(level < 41)) goto __CPROVER_DUMP_L6; if(!(vlcformat == 0)) ptab = &dct_code_tab1a[(signed long int)run][(signed long int)(level - 1)]; else ptab = &dct_code_tab1[(signed long int)run][(signed long int)(level - 1)]; len = (signed int)ptab->len; } else { __CPROVER_DUMP_L6: ; if(run < 32) { if(level < 6) { if(!(vlcformat == 0)) ptab = &dct_code_tab2a[(signed long int)(run - 2)][(signed long int)(level - 1)]; else ptab = &dct_code_tab2[(signed long int)(run - 2)][(signed long int)(level - 1)]; len = (signed int)ptab->len; } } } if(!(len == 0)) { putbits((signed int)ptab->code, len); putbits((signed int)(signed_level < 0), 1); } else { putbits((signed int)1l, 6); putbits(run, 6); if(!(mpeg1 == 0)) { if(signed_level > 127) putbits(0, 8); if(signed_level < -127) putbits(128, 8); putbits(signed_level, 8); } else putbits(signed_level, 12); } } // c::putACfirst // file src/global.h line 177 void putACfirst(signed int run, signed int val) { if(run == 0) { if(val == 1) goto __CPROVER_DUMP_L1; if(val == -1) goto __CPROVER_DUMP_L1; goto __CPROVER_DUMP_L2; __CPROVER_DUMP_L1: ; putbits(2 | (signed int)(val < 0), 2); } else { __CPROVER_DUMP_L2: ; putAC(run, val, 0); } } // c::putDC // file src/putvlc.c line 298 static void putDC(struct anon$1 *tab, signed int val) { signed int absval; signed int size; absval = val < 0 ? -val : val; if(!(absval > 2047)) { if(mpeg1 == 0) goto __CPROVER_DUMP_L1; if(!(absval > 255)) goto __CPROVER_DUMP_L1; goto __CPROVER_DUMP_L2; } else { __CPROVER_DUMP_L2: ; sprintf(errortext, "DC value out of range (%d)\n", val); error(errortext); } __CPROVER_DUMP_L1: ; size = 0; while(!(absval == 0)) { absval = absval >> 1; size = size + 1; } putbits((signed int)(tab + (signed long int)size)->code, (signed int)(tab + (signed long int)size)->len); if(!(size == 0)) { if(val >= 0) absval = val; else absval = (val + (1 << size)) - 1; putbits(absval, size); } } // c::putDCchrom // file src/global.h line 176 void putDCchrom(signed int val) { putDC(DCchromtab, val); } // c::putDClum // file src/global.h line 175 void putDClum(signed int val) { putDC(DClumtab, val); } // c::put_AC // file src/global.h line 188 void put_AC(signed int run, signed int signed_level, signed int vlcformat, signed int id) { signed int level; signed int len; struct anon$0 *ptab; level = signed_level < 0 ? -signed_level : signed_level; if(!(run < 0)) { if(run > 63) goto __CPROVER_DUMP_L2; if(level == 0) goto __CPROVER_DUMP_L2; if(level > 2047) goto __CPROVER_DUMP_L2; if(mpeg1 == 0) goto __CPROVER_DUMP_L1; if(!(level > 255)) goto __CPROVER_DUMP_L1; goto __CPROVER_DUMP_L2; } else { __CPROVER_DUMP_L2: ; sprintf(errortext, "AC value out of range (run=%d, signed_level=%d)\n", run, signed_level); error(errortext); } __CPROVER_DUMP_L1: ; len = 0; if(run < 2) { if(!(level < 41)) goto __CPROVER_DUMP_L6; if(!(vlcformat == 0)) ptab = &dct_code_tab1a[(signed long int)run][(signed long int)(level - 1)]; else ptab = &dct_code_tab1[(signed long int)run][(signed long int)(level - 1)]; len = (signed int)ptab->len; } else { __CPROVER_DUMP_L6: ; if(run < 32) { if(level < 6) { if(!(vlcformat == 0)) ptab = &dct_code_tab2a[(signed long int)(run - 2)][(signed long int)(level - 1)]; else ptab = &dct_code_tab2[(signed long int)(run - 2)][(signed long int)(level - 1)]; len = (signed int)ptab->len; } } } if(!(len == 0)) { put_bits((signed int)ptab->code, len, id); put_bits((signed int)(signed_level < 0), 1, id); } else { put_bits((signed int)1l, 6, id); put_bits(run, 6, id); if(!(mpeg1 == 0)) { if(signed_level > 127) put_bits(0, 8, id); if(signed_level < -127) put_bits(128, 8, id); put_bits(signed_level, 8, id); } else put_bits(signed_level, 12, id); } } // c::put_ACfirst // file src/global.h line 187 void put_ACfirst(signed int run, signed int val, signed int id) { if(run == 0) { if(val == 1) goto __CPROVER_DUMP_L1; if(val == -1) goto __CPROVER_DUMP_L1; goto __CPROVER_DUMP_L2; __CPROVER_DUMP_L1: ; put_bits(2 | (signed int)(val < 0), 2, id); } else { __CPROVER_DUMP_L2: ; put_AC(run, val, 0, id); } } // c::put_DC // file src/putvlc.c line 109 static void put_DC(struct anon$1 *tab, signed int val, signed int id) { signed int absval; signed int size; absval = val < 0 ? -val : val; if(!(absval > 2047)) { if(mpeg1 == 0) goto __CPROVER_DUMP_L1; if(!(absval > 255)) goto __CPROVER_DUMP_L1; goto __CPROVER_DUMP_L2; } else { __CPROVER_DUMP_L2: ; sprintf(errortext, "DC value out of range (%d)\n", val); error(errortext); } __CPROVER_DUMP_L1: ; size = 0; while(!(absval == 0)) { absval = absval >> 1; size = size + 1; } put_bits((signed int)(tab + (signed long int)size)->code, (signed int)(tab + (signed long int)size)->len, id); if(!(size == 0)) { if(val >= 0) absval = val; else absval = (val + (1 << size)) - 1; put_bits(absval, size, id); } } // c::put_DCchrom // file src/global.h line 186 void put_DCchrom(signed int val, signed int id) { put_DC(DCchromtab, val, id); } // c::put_DClum // file src/global.h line 185 void put_DClum(signed int val, signed int id) { put_DC(DClumtab, val, id); } // c::put_addrinc // file src/global.h line 189 void put_addrinc(signed int addrinc, signed int id) { while(addrinc > 33) { put_bits(8, 11, id); addrinc = addrinc - 33; } put_bits((signed int)addrinctab[(signed long int)(addrinc - 1)].code, (signed int)addrinctab[(signed long int)(addrinc - 1)].len, id); } // c::put_bits // file src/global.h line 139 void put_bits(signed int val, signed int n, signed int id) { signed int i; unsigned int mask = (unsigned int)(1 << n - 1); i = 0; while(!(i >= n)) { out_bfr[(signed long int)id] = out_bfr[(signed long int)id] << 1; if(!((mask & (unsigned int)val) == 0u)) out_bfr[(signed long int)id] = out_bfr[(signed long int)id] | (unsigned char)1; mask = mask >> 1; out_cnt[(signed long int)id] = out_cnt[(signed long int)id] - 1; if(out_cnt[(signed long int)id] == 0) { write_buf(out_bfr[(signed long int)id], id); out_cnt[(signed long int)id] = 8; byte_cnt[(signed long int)id] = byte_cnt[(signed long int)id] + 1; } i = i + 1; } } // c::put_cbp // file src/global.h line 193 void put_cbp(signed int cbp, signed int id) { put_bits((signed int)cbptable[(signed long int)cbp].code, (signed int)cbptable[(signed long int)cbp].len, id); } // c::put_dmv // file src/global.h line 192 void put_dmv(signed int dmv, signed int id) { if(dmv == 0) put_bits(0, 1, id); else if(dmv > 0) put_bits(2, 2, id); else put_bits(3, 2, id); } // c::put_intrablk // file src/putmpg.c line 229 void put_intrablk(signed short int *blk, signed int cc, signed int id) { signed int n; signed int dct_diff; signed int run; signed int signed_level; dct_diff = (signed int)blk[(signed long int)0] - pt_dc_dct_pred[(signed long int)id][(signed long int)cc]; pt_dc_dct_pred[(signed long int)id][(signed long int)cc] = (signed int)blk[(signed long int)0]; if(cc == 0) put_DClum(dct_diff, id); else put_DCchrom(dct_diff, id); run = 0; n = 1; unsigned char *tmp_if_expr$1; while(n < 64) { if(!(altscan == 0)) tmp_if_expr$1 = alternate_scan; else tmp_if_expr$1 = zig_zag_scan; signed_level = (signed int)blk[(signed long int)tmp_if_expr$1[(signed long int)n]]; if(!(signed_level == 0)) { put_AC(run, signed_level, intravlc, id); run = 0; } else run = run + 1; n = n + 1; } if(!(intravlc == 0)) put_bits(6, 4, id); else put_bits(2, 2, id); } // c::put_mbtype // file src/global.h line 190 void put_mbtype(signed int pict_type, signed int mb_type, signed int id) { put_bits((signed int)mbtypetab[(signed long int)(pict_type - 1)][(signed long int)mb_type].code, (signed int)mbtypetab[(signed long int)(pict_type - 1)][(signed long int)mb_type].len, id); } // c::put_motioncode // file src/global.h line 191 void put_motioncode(signed int motion_code, signed int id) { signed int abscode = motion_code >= 0 ? motion_code : -motion_code; put_bits((signed int)motionvectab[(signed long int)abscode].code, (signed int)motionvectab[(signed long int)abscode].len, id); if(!(motion_code == 0)) put_bits((signed int)(motion_code < 0), 1, id); } // c::put_mv // file src/putmpg.c line 195 void put_mv(signed int dmv, signed int f_code, signed int id) { signed int r_size; signed int f; signed int vmin; signed int vmax; signed int dv; signed int temp; signed int motion_code; signed int motion_residual; r_size = f_code - 1; f = 1 << r_size; vmin = -16 * f; vmax = 16 * f - 1; dv = 32 * f; if(!(vmax >= dmv)) dmv = dmv - dv; else if(!(dmv >= vmin)) dmv = dmv + dv; if(dmv >= vmin) { if(!(vmax >= dmv)) goto __CPROVER_DUMP_L3; } else { __CPROVER_DUMP_L3: ; if(quiet == 0) fprintf(stderr, "invalid motion vector\n"); } temp = ((dmv < 0 ? -dmv : dmv) + f) - 1; motion_code = temp >> r_size; if(dmv < 0) motion_code = -motion_code; motion_residual = temp & f - 1; put_motioncode(motion_code, id); if(!(r_size == 0)) { if(!(motion_code == 0)) put_bits(motion_residual, r_size, id); } } // c::put_mvs // file src/putpic.c line 623 static void put_mvs(signed int (*MV)[2l][2l], signed int (*PMV)[2l][2l], signed int (*mv_field_sel)[2l], signed int *dmvector, signed int s, signed int motion_type, signed int hor_f_code, signed int vert_f_code, signed int id) { if(pict_struct == 3) { if(motion_type == 2) { put_mv(MV[(signed long int)0][(signed long int)s][(signed long int)0] - PMV[(signed long int)0][(signed long int)s][(signed long int)0], hor_f_code, id); put_mv(MV[(signed long int)0][(signed long int)s][(signed long int)1] - PMV[(signed long int)0][(signed long int)s][(signed long int)1], vert_f_code, id); PMV[(signed long int)1][(signed long int)s][(signed long int)0] = MV[(signed long int)0][(signed long int)s][(signed long int)0]; PMV[(signed long int)0][(signed long int)s][(signed long int)0] = PMV[(signed long int)1][(signed long int)s][(signed long int)0]; PMV[(signed long int)1][(signed long int)s][(signed long int)1] = MV[(signed long int)0][(signed long int)s][(signed long int)1]; PMV[(signed long int)0][(signed long int)s][(signed long int)1] = PMV[(signed long int)1][(signed long int)s][(signed long int)1]; } else if(motion_type == 1) { put_bits(mv_field_sel[(signed long int)0][(signed long int)s], 1, id); put_mv(MV[(signed long int)0][(signed long int)s][(signed long int)0] - PMV[(signed long int)0][(signed long int)s][(signed long int)0], hor_f_code, id); put_mv((MV[(signed long int)0][(signed long int)s][(signed long int)1] >> 1) - (PMV[(signed long int)0][(signed long int)s][(signed long int)1] >> 1), vert_f_code, id); put_bits(mv_field_sel[(signed long int)1][(signed long int)s], 1, id); put_mv(MV[(signed long int)1][(signed long int)s][(signed long int)0] - PMV[(signed long int)1][(signed long int)s][(signed long int)0], hor_f_code, id); put_mv((MV[(signed long int)1][(signed long int)s][(signed long int)1] >> 1) - (PMV[(signed long int)1][(signed long int)s][(signed long int)1] >> 1), vert_f_code, id); PMV[(signed long int)0][(signed long int)s][(signed long int)0] = MV[(signed long int)0][(signed long int)s][(signed long int)0]; PMV[(signed long int)0][(signed long int)s][(signed long int)1] = MV[(signed long int)0][(signed long int)s][(signed long int)1]; PMV[(signed long int)1][(signed long int)s][(signed long int)0] = MV[(signed long int)1][(signed long int)s][(signed long int)0]; PMV[(signed long int)1][(signed long int)s][(signed long int)1] = MV[(signed long int)1][(signed long int)s][(signed long int)1]; } else { put_mv(MV[(signed long int)0][(signed long int)s][(signed long int)0] - PMV[(signed long int)0][(signed long int)s][(signed long int)0], hor_f_code, id); put_dmv(dmvector[(signed long int)0], id); put_mv((MV[(signed long int)0][(signed long int)s][(signed long int)1] >> 1) - (PMV[(signed long int)0][(signed long int)s][(signed long int)1] >> 1), vert_f_code, id); put_dmv(dmvector[(signed long int)1], id); PMV[(signed long int)1][(signed long int)s][(signed long int)0] = MV[(signed long int)0][(signed long int)s][(signed long int)0]; PMV[(signed long int)0][(signed long int)s][(signed long int)0] = PMV[(signed long int)1][(signed long int)s][(signed long int)0]; PMV[(signed long int)1][(signed long int)s][(signed long int)1] = MV[(signed long int)0][(signed long int)s][(signed long int)1]; PMV[(signed long int)0][(signed long int)s][(signed long int)1] = PMV[(signed long int)1][(signed long int)s][(signed long int)1]; } } else if(motion_type == 1) { put_bits(mv_field_sel[(signed long int)0][(signed long int)s], 1, id); put_mv(MV[(signed long int)0][(signed long int)s][(signed long int)0] - PMV[(signed long int)0][(signed long int)s][(signed long int)0], hor_f_code, id); put_mv(MV[(signed long int)0][(signed long int)s][(signed long int)1] - PMV[(signed long int)0][(signed long int)s][(signed long int)1], vert_f_code, id); PMV[(signed long int)1][(signed long int)s][(signed long int)0] = MV[(signed long int)0][(signed long int)s][(signed long int)0]; PMV[(signed long int)0][(signed long int)s][(signed long int)0] = PMV[(signed long int)1][(signed long int)s][(signed long int)0]; PMV[(signed long int)1][(signed long int)s][(signed long int)1] = MV[(signed long int)0][(signed long int)s][(signed long int)1]; PMV[(signed long int)0][(signed long int)s][(signed long int)1] = PMV[(signed long int)1][(signed long int)s][(signed long int)1]; } else if(motion_type == 2) { put_bits(mv_field_sel[(signed long int)0][(signed long int)s], 1, id); put_mv(MV[(signed long int)0][(signed long int)s][(signed long int)0] - PMV[(signed long int)0][(signed long int)s][(signed long int)0], hor_f_code, id); put_mv(MV[(signed long int)0][(signed long int)s][(signed long int)1] - PMV[(signed long int)0][(signed long int)s][(signed long int)1], vert_f_code, id); put_bits(mv_field_sel[(signed long int)1][(signed long int)s], 1, id); put_mv(MV[(signed long int)1][(signed long int)s][(signed long int)0] - PMV[(signed long int)1][(signed long int)s][(signed long int)0], hor_f_code, id); put_mv(MV[(signed long int)1][(signed long int)s][(signed long int)1] - PMV[(signed long int)1][(signed long int)s][(signed long int)1], vert_f_code, id); PMV[(signed long int)0][(signed long int)s][(signed long int)0] = MV[(signed long int)0][(signed long int)s][(signed long int)0]; PMV[(signed long int)0][(signed long int)s][(signed long int)1] = MV[(signed long int)0][(signed long int)s][(signed long int)1]; PMV[(signed long int)1][(signed long int)s][(signed long int)0] = MV[(signed long int)1][(signed long int)s][(signed long int)0]; PMV[(signed long int)1][(signed long int)s][(signed long int)1] = MV[(signed long int)1][(signed long int)s][(signed long int)1]; } else { put_mv(MV[(signed long int)0][(signed long int)s][(signed long int)0] - PMV[(signed long int)0][(signed long int)s][(signed long int)0], hor_f_code, id); put_dmv(dmvector[(signed long int)0], id); put_mv(MV[(signed long int)0][(signed long int)s][(signed long int)1] - PMV[(signed long int)0][(signed long int)s][(signed long int)1], vert_f_code, id); put_dmv(dmvector[(signed long int)1], id); PMV[(signed long int)1][(signed long int)s][(signed long int)0] = MV[(signed long int)0][(signed long int)s][(signed long int)0]; PMV[(signed long int)0][(signed long int)s][(signed long int)0] = PMV[(signed long int)1][(signed long int)s][(signed long int)0]; PMV[(signed long int)1][(signed long int)s][(signed long int)1] = MV[(signed long int)0][(signed long int)s][(signed long int)1]; PMV[(signed long int)0][(signed long int)s][(signed long int)1] = PMV[(signed long int)1][(signed long int)s][(signed long int)1]; } } // c::put_nonintrablk // file src/putmpg.c line 267 void put_nonintrablk(signed short int *blk, signed int id) { signed int n; signed int run; signed int signed_level; signed int first; run = 0; first = 1; n = 0; unsigned char *tmp_if_expr$1; while(n < 64) { if(!(altscan == 0)) tmp_if_expr$1 = alternate_scan; else tmp_if_expr$1 = zig_zag_scan; signed_level = (signed int)blk[(signed long int)tmp_if_expr$1[(signed long int)n]]; if(!(signed_level == 0)) { if(!(first == 0)) { put_ACfirst(run, signed_level, id); first = 0; } else put_AC(run, signed_level, 0, id); run = 0; } else run = run + 1; n = n + 1; } put_bits(2, 2, id); } // c::putaddrinc // file src/global.h line 179 void putaddrinc(signed int addrinc) { while(addrinc > 33) { putbits(8, 11); addrinc = addrinc - 33; } putbits((signed int)addrinctab[(signed long int)(addrinc - 1)].code, (signed int)addrinctab[(signed long int)(addrinc - 1)].len); } // c::putbits // file src/global.h line 134 void putbits(signed int val, signed int n) { signed int i; unsigned int mask = (unsigned int)(1 << n - 1); i = 0; while(!(i >= n)) { outbfr = outbfr << 1; if(!((mask & (unsigned int)val) == 0u)) outbfr = outbfr | (unsigned char)1; mask = mask >> 1; outcnt = outcnt - 1; if(outcnt == 0) { fputc((signed int)outbfr, outfile); outcnt = 8; bytecnt = bytecnt + 1; } i = i + 1; } } // c::putc_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 98 signed int putc_unlocked(signed int __c, struct _IO_FILE *__stream) { signed int tmp_if_expr$3; signed int return_value___overflow$1; char *tmp_post$2; if(__stream->_IO_write_ptr >= __stream->_IO_write_end) { return_value___overflow$1=__overflow(__stream, (signed int)(unsigned char)__c); tmp_if_expr$3 = return_value___overflow$1; } else { tmp_post$2 = __stream->_IO_write_ptr; __stream->_IO_write_ptr = __stream->_IO_write_ptr + 1l; *tmp_post$2 = (char)__c; tmp_if_expr$3 = (signed int)(unsigned char)*tmp_post$2; } return tmp_if_expr$3; } // c::putcbp // file src/global.h line 183 void putcbp(signed int cbp) { putbits((signed int)cbptable[(signed long int)cbp].code, (signed int)cbptable[(signed long int)cbp].len); } // c::putchar // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 79 signed int putchar(signed int __c) { signed int return_value__IO_putc$1; return_value__IO_putc$1=_IO_putc(__c, stdout); return return_value__IO_putc$1; } // c::putchar_unlocked // file /usr/include/x86_64-linux-gnu/bits/stdio.h line 105 signed int putchar_unlocked(signed int __c) { signed int tmp_if_expr$3; signed int return_value___overflow$1; char *tmp_post$2; if(stdout->_IO_write_ptr >= stdout->_IO_write_end) { return_value___overflow$1=__overflow(stdout, (signed int)(unsigned char)__c); tmp_if_expr$3 = return_value___overflow$1; } else { tmp_post$2 = stdout->_IO_write_ptr; stdout->_IO_write_ptr = stdout->_IO_write_ptr + 1l; *tmp_post$2 = (char)__c; tmp_if_expr$3 = (signed int)(unsigned char)*tmp_post$2; } return tmp_if_expr$3; } // c::putdmv // file src/global.h line 182 void putdmv(signed int dmv) { if(dmv == 0) putbits(0, 1); else if(dmv > 0) putbits(2, 2); else putbits(3, 2); } // c::putgophdr // file src/puthdr.c line 174 void putgophdr(signed int frame, signed int closed_gop) { signed int tc; alignbits(); putbits((signed int)440l, 32); tc=frametotc(tc0 + frame); putbits(tc, 25); putbits(closed_gop, 1); putbits(0, 1); } // c::putintrablk // file src/putmpg.c line 86 void putintrablk(signed short int *blk, signed int cc) { signed int n; signed int dct_diff; signed int run; signed int signed_level; dct_diff = (signed int)blk[(signed long int)0] - dc_dct_pred[(signed long int)cc]; dc_dct_pred[(signed long int)cc] = (signed int)blk[(signed long int)0]; if(cc == 0) putDClum(dct_diff); else putDCchrom(dct_diff); run = 0; n = 1; unsigned char *tmp_if_expr$1; while(n < 64) { if(!(altscan == 0)) tmp_if_expr$1 = alternate_scan; else tmp_if_expr$1 = zig_zag_scan; signed_level = (signed int)blk[(signed long int)tmp_if_expr$1[(signed long int)n]]; if(!(signed_level == 0)) { putAC(run, signed_level, intravlc); run = 0; } else run = run + 1; n = n + 1; } if(!(intravlc == 0)) putbits(6, 4); else putbits(2, 2); } // c::putmbtype // file src/global.h line 180 void putmbtype(signed int pict_type, signed int mb_type) { putbits((signed int)mbtypetab[(signed long int)(pict_type - 1)][(signed long int)mb_type].code, (signed int)mbtypetab[(signed long int)(pict_type - 1)][(signed long int)mb_type].len); } // c::putmotioncode // file src/global.h line 181 void putmotioncode(signed int motion_code) { signed int abscode = motion_code >= 0 ? motion_code : -motion_code; putbits((signed int)motionvectab[(signed long int)abscode].code, (signed int)motionvectab[(signed long int)abscode].len); if(!(motion_code == 0)) putbits((signed int)(motion_code < 0), 1); } // c::putmv // file src/putmpg.c line 159 void putmv(signed int dmv, signed int f_code) { signed int r_size; signed int f; signed int vmin; signed int vmax; signed int dv; signed int temp; signed int motion_code; signed int motion_residual; r_size = f_code - 1; f = 1 << r_size; vmin = -16 * f; vmax = 16 * f - 1; dv = 32 * f; if(!(vmax >= dmv)) dmv = dmv - dv; else if(!(dmv >= vmin)) dmv = dmv + dv; if(dmv >= vmin) { if(!(vmax >= dmv)) goto __CPROVER_DUMP_L3; } else { __CPROVER_DUMP_L3: ; if(quiet == 0) fprintf(stderr, "invalid motion vector\n"); } temp = ((dmv < 0 ? -dmv : dmv) + f) - 1; motion_code = temp >> r_size; if(dmv < 0) motion_code = -motion_code; motion_residual = temp & f - 1; putmotioncode(motion_code); if(!(r_size == 0)) { if(!(motion_code == 0)) putbits(motion_residual, r_size); } } // c::putmvs // file src/putpic.c line 705 static void putmvs(signed int (*MV)[2l][2l], signed int (*PMV)[2l][2l], signed int (*mv_field_sel)[2l], signed int *dmvector, signed int s, signed int motion_type, signed int hor_f_code, signed int vert_f_code) { if(pict_struct == 3) { if(motion_type == 2) { putmv(MV[(signed long int)0][(signed long int)s][(signed long int)0] - PMV[(signed long int)0][(signed long int)s][(signed long int)0], hor_f_code); putmv(MV[(signed long int)0][(signed long int)s][(signed long int)1] - PMV[(signed long int)0][(signed long int)s][(signed long int)1], vert_f_code); PMV[(signed long int)1][(signed long int)s][(signed long int)0] = MV[(signed long int)0][(signed long int)s][(signed long int)0]; PMV[(signed long int)0][(signed long int)s][(signed long int)0] = PMV[(signed long int)1][(signed long int)s][(signed long int)0]; PMV[(signed long int)1][(signed long int)s][(signed long int)1] = MV[(signed long int)0][(signed long int)s][(signed long int)1]; PMV[(signed long int)0][(signed long int)s][(signed long int)1] = PMV[(signed long int)1][(signed long int)s][(signed long int)1]; } else if(motion_type == 1) { putbits(mv_field_sel[(signed long int)0][(signed long int)s], 1); putmv(MV[(signed long int)0][(signed long int)s][(signed long int)0] - PMV[(signed long int)0][(signed long int)s][(signed long int)0], hor_f_code); putmv((MV[(signed long int)0][(signed long int)s][(signed long int)1] >> 1) - (PMV[(signed long int)0][(signed long int)s][(signed long int)1] >> 1), vert_f_code); putbits(mv_field_sel[(signed long int)1][(signed long int)s], 1); putmv(MV[(signed long int)1][(signed long int)s][(signed long int)0] - PMV[(signed long int)1][(signed long int)s][(signed long int)0], hor_f_code); putmv((MV[(signed long int)1][(signed long int)s][(signed long int)1] >> 1) - (PMV[(signed long int)1][(signed long int)s][(signed long int)1] >> 1), vert_f_code); PMV[(signed long int)0][(signed long int)s][(signed long int)0] = MV[(signed long int)0][(signed long int)s][(signed long int)0]; PMV[(signed long int)0][(signed long int)s][(signed long int)1] = MV[(signed long int)0][(signed long int)s][(signed long int)1]; PMV[(signed long int)1][(signed long int)s][(signed long int)0] = MV[(signed long int)1][(signed long int)s][(signed long int)0]; PMV[(signed long int)1][(signed long int)s][(signed long int)1] = MV[(signed long int)1][(signed long int)s][(signed long int)1]; } else { putmv(MV[(signed long int)0][(signed long int)s][(signed long int)0] - PMV[(signed long int)0][(signed long int)s][(signed long int)0], hor_f_code); putdmv(dmvector[(signed long int)0]); putmv((MV[(signed long int)0][(signed long int)s][(signed long int)1] >> 1) - (PMV[(signed long int)0][(signed long int)s][(signed long int)1] >> 1), vert_f_code); putdmv(dmvector[(signed long int)1]); PMV[(signed long int)1][(signed long int)s][(signed long int)0] = MV[(signed long int)0][(signed long int)s][(signed long int)0]; PMV[(signed long int)0][(signed long int)s][(signed long int)0] = PMV[(signed long int)1][(signed long int)s][(signed long int)0]; PMV[(signed long int)1][(signed long int)s][(signed long int)1] = MV[(signed long int)0][(signed long int)s][(signed long int)1]; PMV[(signed long int)0][(signed long int)s][(signed long int)1] = PMV[(signed long int)1][(signed long int)s][(signed long int)1]; } } else if(motion_type == 1) { putbits(mv_field_sel[(signed long int)0][(signed long int)s], 1); putmv(MV[(signed long int)0][(signed long int)s][(signed long int)0] - PMV[(signed long int)0][(signed long int)s][(signed long int)0], hor_f_code); putmv(MV[(signed long int)0][(signed long int)s][(signed long int)1] - PMV[(signed long int)0][(signed long int)s][(signed long int)1], vert_f_code); PMV[(signed long int)1][(signed long int)s][(signed long int)0] = MV[(signed long int)0][(signed long int)s][(signed long int)0]; PMV[(signed long int)0][(signed long int)s][(signed long int)0] = PMV[(signed long int)1][(signed long int)s][(signed long int)0]; PMV[(signed long int)1][(signed long int)s][(signed long int)1] = MV[(signed long int)0][(signed long int)s][(signed long int)1]; PMV[(signed long int)0][(signed long int)s][(signed long int)1] = PMV[(signed long int)1][(signed long int)s][(signed long int)1]; } else if(motion_type == 2) { putbits(mv_field_sel[(signed long int)0][(signed long int)s], 1); putmv(MV[(signed long int)0][(signed long int)s][(signed long int)0] - PMV[(signed long int)0][(signed long int)s][(signed long int)0], hor_f_code); putmv(MV[(signed long int)0][(signed long int)s][(signed long int)1] - PMV[(signed long int)0][(signed long int)s][(signed long int)1], vert_f_code); putbits(mv_field_sel[(signed long int)1][(signed long int)s], 1); putmv(MV[(signed long int)1][(signed long int)s][(signed long int)0] - PMV[(signed long int)1][(signed long int)s][(signed long int)0], hor_f_code); putmv(MV[(signed long int)1][(signed long int)s][(signed long int)1] - PMV[(signed long int)1][(signed long int)s][(signed long int)1], vert_f_code); PMV[(signed long int)0][(signed long int)s][(signed long int)0] = MV[(signed long int)0][(signed long int)s][(signed long int)0]; PMV[(signed long int)0][(signed long int)s][(signed long int)1] = MV[(signed long int)0][(signed long int)s][(signed long int)1]; PMV[(signed long int)1][(signed long int)s][(signed long int)0] = MV[(signed long int)1][(signed long int)s][(signed long int)0]; PMV[(signed long int)1][(signed long int)s][(signed long int)1] = MV[(signed long int)1][(signed long int)s][(signed long int)1]; } else { putmv(MV[(signed long int)0][(signed long int)s][(signed long int)0] - PMV[(signed long int)0][(signed long int)s][(signed long int)0], hor_f_code); putdmv(dmvector[(signed long int)0]); putmv(MV[(signed long int)0][(signed long int)s][(signed long int)1] - PMV[(signed long int)0][(signed long int)s][(signed long int)1], vert_f_code); putdmv(dmvector[(signed long int)1]); PMV[(signed long int)1][(signed long int)s][(signed long int)0] = MV[(signed long int)0][(signed long int)s][(signed long int)0]; PMV[(signed long int)0][(signed long int)s][(signed long int)0] = PMV[(signed long int)1][(signed long int)s][(signed long int)0]; PMV[(signed long int)1][(signed long int)s][(signed long int)1] = MV[(signed long int)0][(signed long int)s][(signed long int)1]; PMV[(signed long int)0][(signed long int)s][(signed long int)1] = PMV[(signed long int)1][(signed long int)s][(signed long int)1]; } } // c::putnonintrablk // file src/putmpg.c line 124 void putnonintrablk(signed short int *blk) { signed int n; signed int run; signed int signed_level; signed int first; run = 0; first = 1; n = 0; unsigned char *tmp_if_expr$1; while(n < 64) { if(!(altscan == 0)) tmp_if_expr$1 = alternate_scan; else tmp_if_expr$1 = zig_zag_scan; signed_level = (signed int)blk[(signed long int)tmp_if_expr$1[(signed long int)n]]; if(!(signed_level == 0)) { if(!(first == 0)) { putACfirst(run, signed_level); first = 0; } else putAC(run, signed_level, 0); run = 0; } else run = run + 1; n = n + 1; } putbits(2, 2); } // c::putpict // file src/putpic.c line 100 void putpict(unsigned char *frame) { signed int i; signed int j; signed int k; signed int comp; signed int cc; signed int mb_type; signed int PMV[2l][2l][2l]; signed int prev_mquant; signed int cbp; signed int MBAinc; rc_init_pict(frame); putpicthdr(); if(mpeg1 == 0) putpictcodext(); prev_mquant=rc_start_mb(); k = 0; j = 0; signed int tmp_if_expr$1; _Bool tmp_if_expr$6; _Bool tmp_if_expr$5; _Bool tmp_if_expr$4; _Bool tmp_if_expr$3; _Bool tmp_if_expr$12; _Bool tmp_if_expr$10; _Bool tmp_if_expr$11; _Bool tmp_if_expr$9; _Bool tmp_if_expr$7; _Bool tmp_if_expr$8; signed int tmp_if_expr$13; while(!(j >= mb_height2)) { i = 0; while(!(i >= mb_width)) { if(i == 0) { alignbits(); if(mpeg1 == 0) { if(vertical_size <= 2800) goto __CPROVER_DUMP_L4; } else { __CPROVER_DUMP_L4: ; putbits((signed int)(257l + (signed long int)j), 32); goto __CPROVER_DUMP_L6; } putbits((signed int)(257l + (signed long int)(j & 127)), 32); putbits(j >> 7, 3); __CPROVER_DUMP_L6: ; if(!(q_scale_type == 0)) tmp_if_expr$1 = (signed int)map_non_linear_mquant[(signed long int)prev_mquant]; else tmp_if_expr$1 = prev_mquant >> 1; putbits(tmp_if_expr$1, 5); putbits(0, 1); cc = 0; while(cc < 3) { dc_dct_pred[(signed long int)cc] = 0; cc = cc + 1; } PMV[(signed long int)1][(signed long int)0][(signed long int)1] = 0; PMV[(signed long int)1][(signed long int)0][(signed long int)0] = PMV[(signed long int)1][(signed long int)0][(signed long int)1]; PMV[(signed long int)0][(signed long int)0][(signed long int)1] = PMV[(signed long int)1][(signed long int)0][(signed long int)0]; PMV[(signed long int)0][(signed long int)0][(signed long int)0] = PMV[(signed long int)0][(signed long int)0][(signed long int)1]; PMV[(signed long int)1][(signed long int)1][(signed long int)1] = 0; PMV[(signed long int)1][(signed long int)1][(signed long int)0] = PMV[(signed long int)1][(signed long int)1][(signed long int)1]; PMV[(signed long int)0][(signed long int)1][(signed long int)1] = PMV[(signed long int)1][(signed long int)1][(signed long int)0]; PMV[(signed long int)0][(signed long int)1][(signed long int)0] = PMV[(signed long int)0][(signed long int)1][(signed long int)1]; MBAinc = i + 1; } mb_type = (mbinfo + (signed long int)k)->mb_type; (mbinfo + (signed long int)k)->mquant=rc_calc_mquant(k); if(!((1 & mb_type) == 0)) { comp = 0; while(!(comp >= block_count)) { signed int putpict$$1$$1$$1$$2$$1$$ind = k * block_count + comp; quant_intra(blocks[(signed long int)putpict$$1$$1$$1$$2$$1$$ind], blocks[(signed long int)putpict$$1$$1$$1$$2$$1$$ind], dc_prec, intra_q, (mbinfo + (signed long int)k)->mquant); comp = comp + 1; } cbp = (1 << block_count) - 1; (mbinfo + (signed long int)k)->cbp = cbp; } else { cbp = 0; comp = 0; while(!(comp >= block_count)) { signed int putpict$$1$$1$$1$$3$$1$$ind = k * block_count + comp; signed int return_value_quant_non_intra$2; return_value_quant_non_intra$2=quant_non_intra(blocks[(signed long int)putpict$$1$$1$$1$$3$$1$$ind], blocks[(signed long int)putpict$$1$$1$$1$$3$$1$$ind], inter_q, (mbinfo + (signed long int)k)->mquant); cbp = cbp << 1 | return_value_quant_non_intra$2; comp = comp + 1; } (mbinfo + (signed long int)k)->cbp = cbp; if(!(cbp == 0)) mb_type = mb_type | 2; } if(!(cbp == 0)) { if(!(prev_mquant == (mbinfo + (signed long int)k)->mquant)) mb_type = mb_type | 16; } if(!(i == 0)) { if(i == -1 + mb_width) goto __CPROVER_DUMP_L43; if(cbp != 0) goto __CPROVER_DUMP_L43; if(!(pict_type == 2)) goto __CPROVER_DUMP_L21; if((8 & mb_type) != 0) goto __CPROVER_DUMP_L21; cc = 0; while(cc < 3) { dc_dct_pred[(signed long int)cc] = 0; cc = cc + 1; } PMV[(signed long int)1][(signed long int)0][(signed long int)1] = 0; PMV[(signed long int)1][(signed long int)0][(signed long int)0] = PMV[(signed long int)1][(signed long int)0][(signed long int)1]; PMV[(signed long int)0][(signed long int)0][(signed long int)1] = PMV[(signed long int)1][(signed long int)0][(signed long int)0]; PMV[(signed long int)0][(signed long int)0][(signed long int)0] = PMV[(signed long int)0][(signed long int)0][(signed long int)1]; PMV[(signed long int)1][(signed long int)1][(signed long int)1] = 0; PMV[(signed long int)1][(signed long int)1][(signed long int)0] = PMV[(signed long int)1][(signed long int)1][(signed long int)1]; PMV[(signed long int)0][(signed long int)1][(signed long int)1] = PMV[(signed long int)1][(signed long int)1][(signed long int)0]; PMV[(signed long int)0][(signed long int)1][(signed long int)0] = PMV[(signed long int)0][(signed long int)1][(signed long int)1]; (mbinfo + (signed long int)k)->mb_type = mb_type; (mbinfo + (signed long int)k)->skipped = 1; MBAinc = MBAinc + 1; k = k + 1; goto __CPROVER_DUMP_L62; __CPROVER_DUMP_L21: ; if(!(pict_type == 3)) goto __CPROVER_DUMP_L30; if(!(pict_struct == 3)) goto __CPROVER_DUMP_L30; if(!((mbinfo + (signed long int)k)->motion_type == 2)) goto __CPROVER_DUMP_L30; if(!((((-1l + mbinfo + (signed long int)k)->mb_type ^ mb_type) & 12) == 0)) goto __CPROVER_DUMP_L30; if((8 & mb_type) == 0) tmp_if_expr$6 = TRUE; else { if(PMV[0l][0l][0l] == (mbinfo + (signed long int)k)->MV[0l][0l][0l]) tmp_if_expr$5 = PMV[(signed long int)0][(signed long int)0][(signed long int)1] == (mbinfo + (signed long int)k)->MV[(signed long int)0][(signed long int)0][(signed long int)1] ? TRUE : FALSE; else tmp_if_expr$5 = FALSE; tmp_if_expr$6 = tmp_if_expr$5 ? TRUE : FALSE; } if(!tmp_if_expr$6) goto __CPROVER_DUMP_L30; if((4 & mb_type) == 0) tmp_if_expr$4 = TRUE; else { if(PMV[0l][1l][0l] == (mbinfo + (signed long int)k)->MV[0l][1l][0l]) tmp_if_expr$3 = PMV[(signed long int)0][(signed long int)1][(signed long int)1] == (mbinfo + (signed long int)k)->MV[(signed long int)0][(signed long int)1][(signed long int)1] ? TRUE : FALSE; else tmp_if_expr$3 = FALSE; tmp_if_expr$4 = tmp_if_expr$3 ? TRUE : FALSE; } if(!tmp_if_expr$4) goto __CPROVER_DUMP_L30; (mbinfo + (signed long int)k)->mb_type = mb_type; (mbinfo + (signed long int)k)->skipped = 1; MBAinc = MBAinc + 1; k = k + 1; goto __CPROVER_DUMP_L62; __CPROVER_DUMP_L30: ; if(!(pict_type == 3)) goto __CPROVER_DUMP_L43; if(pict_struct == 3) goto __CPROVER_DUMP_L43; if(!((mbinfo + (signed long int)k)->motion_type == 1)) goto __CPROVER_DUMP_L43; if(!((((-1l + mbinfo + (signed long int)k)->mb_type ^ mb_type) & 12) == 0)) goto __CPROVER_DUMP_L43; if((8 & mb_type) == 0) tmp_if_expr$12 = TRUE; else { if(PMV[0l][0l][0l] == (mbinfo + (signed long int)k)->MV[0l][0l][0l]) tmp_if_expr$10 = PMV[(signed long int)0][(signed long int)0][(signed long int)1] == (mbinfo + (signed long int)k)->MV[(signed long int)0][(signed long int)0][(signed long int)1] ? TRUE : FALSE; else tmp_if_expr$10 = FALSE; if(tmp_if_expr$10) tmp_if_expr$11 = (mbinfo + (signed long int)k)->mv_field_sel[(signed long int)0][(signed long int)0] == (signed int)(pict_struct == 2) ? TRUE : FALSE; else tmp_if_expr$11 = FALSE; tmp_if_expr$12 = tmp_if_expr$11 ? TRUE : FALSE; } if(!tmp_if_expr$12) goto __CPROVER_DUMP_L43; if((4 & mb_type) == 0) tmp_if_expr$9 = TRUE; else { if(PMV[0l][1l][0l] == (mbinfo + (signed long int)k)->MV[0l][1l][0l]) tmp_if_expr$7 = PMV[(signed long int)0][(signed long int)1][(signed long int)1] == (mbinfo + (signed long int)k)->MV[(signed long int)0][(signed long int)1][(signed long int)1] ? TRUE : FALSE; else tmp_if_expr$7 = FALSE; if(tmp_if_expr$7) tmp_if_expr$8 = (mbinfo + (signed long int)k)->mv_field_sel[(signed long int)0][(signed long int)1] == (signed int)(pict_struct == 2) ? TRUE : FALSE; else tmp_if_expr$8 = FALSE; tmp_if_expr$9 = tmp_if_expr$8 ? TRUE : FALSE; } if(!tmp_if_expr$9) goto __CPROVER_DUMP_L43; (mbinfo + (signed long int)k)->mb_type = mb_type; (mbinfo + (signed long int)k)->skipped = 1; MBAinc = MBAinc + 1; k = k + 1; } else { __CPROVER_DUMP_L43: ; (mbinfo + (signed long int)k)->skipped = 0; if(pict_type == 2) { if(cbp == 0) { if((8 & mb_type) == 0) mb_type = mb_type | 8; } } putaddrinc(MBAinc); MBAinc = 1; putmbtype(pict_type, mb_type); if(!((12 & mb_type) == 0)) { if(frame_pred_dct == 0) putbits((mbinfo + (signed long int)k)->motion_type, 2); } if(pict_struct == 3) { if(!(cbp == 0)) { if(frame_pred_dct == 0) putbits((mbinfo + (signed long int)k)->dct_type, 1); } } if(!((16 & mb_type) == 0)) { if(!(q_scale_type == 0)) tmp_if_expr$13 = (signed int)map_non_linear_mquant[(signed long int)(mbinfo + (signed long int)k)->mquant]; else tmp_if_expr$13 = (mbinfo + (signed long int)k)->mquant >> 1; putbits(tmp_if_expr$13, 5); prev_mquant = (mbinfo + (signed long int)k)->mquant; } if(!((8 & mb_type) == 0)) putmvs((mbinfo + (signed long int)k)->MV, PMV, (mbinfo + (signed long int)k)->mv_field_sel, (mbinfo + (signed long int)k)->dmvector, 0, (mbinfo + (signed long int)k)->motion_type, forw_hor_f_code, forw_vert_f_code); if(!((4 & mb_type) == 0)) putmvs((mbinfo + (signed long int)k)->MV, PMV, (mbinfo + (signed long int)k)->mv_field_sel, (mbinfo + (signed long int)k)->dmvector, 1, (mbinfo + (signed long int)k)->motion_type, back_hor_f_code, back_vert_f_code); if(!((2 & mb_type) == 0)) { putcbp(cbp >> block_count - 6 & 63); if(!(chroma_format == 1)) putbits(cbp, block_count - 6); } comp = 0; while(!(comp >= block_count)) { if(!((1 << -1 + block_count + -comp & cbp) == 0)) { if(!((1 & mb_type) == 0)) { cc = comp < 4 ? 0 : (comp & 1) + 1; putintrablk(blocks[(signed long int)(k * block_count + comp)], cc); } else putnonintrablk(blocks[(signed long int)(k * block_count + comp)]); } comp = comp + 1; } if((1 & mb_type) == 0) { cc = 0; while(cc < 3) { dc_dct_pred[(signed long int)cc] = 0; cc = cc + 1; } } if((1 & mb_type) == 0) { if(!(pict_type == 2)) goto __CPROVER_DUMP_L59; if((8 & mb_type) != 0) goto __CPROVER_DUMP_L59; goto __CPROVER_DUMP_L60; } else { __CPROVER_DUMP_L60: ; PMV[(signed long int)1][(signed long int)0][(signed long int)1] = 0; PMV[(signed long int)1][(signed long int)0][(signed long int)0] = PMV[(signed long int)1][(signed long int)0][(signed long int)1]; PMV[(signed long int)0][(signed long int)0][(signed long int)1] = PMV[(signed long int)1][(signed long int)0][(signed long int)0]; PMV[(signed long int)0][(signed long int)0][(signed long int)0] = PMV[(signed long int)0][(signed long int)0][(signed long int)1]; PMV[(signed long int)1][(signed long int)1][(signed long int)1] = 0; PMV[(signed long int)1][(signed long int)1][(signed long int)0] = PMV[(signed long int)1][(signed long int)1][(signed long int)1]; PMV[(signed long int)0][(signed long int)1][(signed long int)1] = PMV[(signed long int)1][(signed long int)1][(signed long int)0]; PMV[(signed long int)0][(signed long int)1][(signed long int)0] = PMV[(signed long int)0][(signed long int)1][(signed long int)1]; } __CPROVER_DUMP_L59: ; (mbinfo + (signed long int)k)->mb_type = mb_type; k = k + 1; } __CPROVER_DUMP_L62: ; i = i + 1; } j = j + 1; } rc_update_pict(); vbv_end_of_picture(); } // c::putpictcodext // file src/puthdr.c line 244 void putpictcodext(void) { alignbits(); putbits((signed int)437l, 32); putbits(8, 4); putbits(forw_hor_f_code, 4); putbits(forw_vert_f_code, 4); putbits(back_hor_f_code, 4); putbits(back_vert_f_code, 4); putbits(dc_prec, 2); putbits(pict_struct, 2); putbits(pict_struct == 3 ? topfirst : 0, 1); putbits(frame_pred_dct, 1); putbits(0, 1); putbits(q_scale_type, 1); putbits(intravlc, 1); putbits(altscan, 1); putbits(repeatfirst, 1); putbits(prog_frame, 1); putbits(prog_frame, 1); putbits(0, 1); } // c::putpicthdr // file src/puthdr.c line 210 void putpicthdr(void) { alignbits(); putbits((signed int)256l, 32); calc_vbv_delay(); putbits(temp_ref, 10); putbits(pict_type, 3); putbits(vbv_delay, 16); if(!(pict_type == 2)) { if(pict_type == 3) goto __CPROVER_DUMP_L1; } else { __CPROVER_DUMP_L1: ; putbits(0, 1); if(!(mpeg1 == 0)) putbits(forw_hor_f_code, 3); else putbits(7, 3); } if(pict_type == 3) { putbits(0, 1); if(!(mpeg1 == 0)) putbits(back_hor_f_code, 3); else putbits(7, 3); } putbits(0, 1); } // c::putseq // file src/putseq.c line 229 void putseq(void) { signed int i; signed int j; signed int k; signed int f; signed int f0; signed int n; signed int np; signed int nb; signed int sxf; signed int syf; signed int sxb; signed int syb; signed int ipflag; char name[256l]; unsigned char *neworg[3l]; unsigned char *newref[3l]; rc_init_seq(); putseqhdr(); if(mpeg1 == 0) { putseqext(); putseqdispext(); } unsigned long int return_value_strlen$1; return_value_strlen$1=strlen(id_string); if(return_value_strlen$1 > 1ul) putuserdata(id_string); i = 0; while(!(i >= nframes)) { if(quiet == 0) { fprintf(stderr, "Encoding frame %d ", i); fflush(stderr); } f0 = N * ((i + (M - 1)) / N) - (M - 1); if(f0 < 0) f0 = 0; if(!(i == 0)) { if((-1 + i) % M == 0) goto __CPROVER_DUMP_L6; } else { __CPROVER_DUMP_L6: ; j = 0; while(j < 3) { neworg[(signed long int)j] = oldorgframe[(signed long int)j]; newref[(signed long int)j] = oldrefframe[(signed long int)j]; oldorgframe[(signed long int)j] = neworgframe[(signed long int)j]; oldrefframe[(signed long int)j] = newrefframe[(signed long int)j]; neworgframe[(signed long int)j] = neworg[(signed long int)j]; newrefframe[(signed long int)j] = newref[(signed long int)j]; j = j + 1; } f = i == 0 ? 0 : (i + M) - 1; if(f >= nframes) f = nframes - 1; if(i == f0) { pict_type = 1; forw_vert_f_code = 15; forw_hor_f_code = forw_vert_f_code; back_vert_f_code = 15; back_hor_f_code = back_vert_f_code; n = i == 0 ? N - (M - 1) : N; if(!(nframes + -f0 >= n)) n = nframes - f0; if(i == 0) np = (n + 2 * (M - 1)) / M - 1; else np = (n + (M - 1)) / M - 1; nb = (n - np) - 1; rc_init_GOP(np, nb); putgophdr(f0, (signed int)(i == 0)); } else { pict_type = 2; forw_hor_f_code = (motion_data + (signed long int)0)->forw_hor_f_code; forw_vert_f_code = (motion_data + (signed long int)0)->forw_vert_f_code; back_vert_f_code = 15; back_hor_f_code = back_vert_f_code; sxf = (motion_data + (signed long int)0)->sxf; syf = (motion_data + (signed long int)0)->syf; } goto __CPROVER_DUMP_L18; } j = 0; while(j < 3) { neworg[(signed long int)j] = auxorgframe[(signed long int)j]; newref[(signed long int)j] = auxframe[(signed long int)j]; j = j + 1; } f = i - 1; pict_type = 3; n = (i - 2) % M + 1; forw_hor_f_code = (motion_data + (signed long int)n)->forw_hor_f_code; forw_vert_f_code = (motion_data + (signed long int)n)->forw_vert_f_code; back_hor_f_code = (motion_data + (signed long int)n)->back_hor_f_code; back_vert_f_code = (motion_data + (signed long int)n)->back_vert_f_code; sxf = (motion_data + (signed long int)n)->sxf; syf = (motion_data + (signed long int)n)->syf; sxb = (motion_data + (signed long int)n)->sxb; syb = (motion_data + (signed long int)n)->syb; __CPROVER_DUMP_L18: ; temp_ref = f - f0; frame_pred_dct = frame_pred_dct_tab[(signed long int)(pict_type - 1)]; q_scale_type = qscale_tab[(signed long int)(pict_type - 1)]; intravlc = intravlc_tab[(signed long int)(pict_type - 1)]; altscan = altscan_tab[(signed long int)(pict_type - 1)]; sprintf(name, tplorg, f + frame0); readframe(name, neworg); if(!(fieldpic == 0)) { if(quiet == 0) { fprintf(stderr, "\nfirst field (%s) ", topfirst != 0 ? "top" : "bot"); fflush(stderr); } pict_struct = topfirst != 0 ? 1 : 2; motion_estimation(oldorgframe[(signed long int)0], neworgframe[(signed long int)0], oldrefframe[(signed long int)0], newrefframe[(signed long int)0], neworg[(signed long int)0], newref[(signed long int)0], sxf, syf, sxb, syb, mbinfo, 0, 0); predict(oldrefframe, newrefframe, predframe, 0, mbinfo); dct_type_estimation(predframe[(signed long int)0], neworg[(signed long int)0], mbinfo); transform(predframe, neworg, mbinfo, blocks); putpict(neworg[(signed long int)0]); k = 0; while(!(k >= mb_height2 * mb_width)) { if(!((1 & (mbinfo + (signed long int)k)->mb_type) == 0)) { j = 0; while(!(j >= block_count)) { iquant_intra(blocks[(signed long int)(k * block_count + j)], blocks[(signed long int)(k * block_count + j)], dc_prec, intra_q, (mbinfo + (signed long int)k)->mquant); j = j + 1; } } else { j = 0; while(!(j >= block_count)) { iquant_non_intra(blocks[(signed long int)(k * block_count + j)], blocks[(signed long int)(k * block_count + j)], inter_q, (mbinfo + (signed long int)k)->mquant); j = j + 1; } } k = k + 1; } itransform(predframe, newref, mbinfo, blocks); calcSNR(neworg, newref); stats(); if(quiet == 0) { fprintf(stderr, "second field (%s) ", topfirst != 0 ? "bot" : "top"); fflush(stderr); } pict_struct = topfirst != 0 ? 2 : 1; ipflag = (signed int)(pict_type == 1); if(!(ipflag == 0)) { pict_type = 2; forw_hor_f_code = (motion_data + (signed long int)0)->forw_hor_f_code; forw_vert_f_code = (motion_data + (signed long int)0)->forw_vert_f_code; back_vert_f_code = 15; back_hor_f_code = back_vert_f_code; sxf = (motion_data + (signed long int)0)->sxf; syf = (motion_data + (signed long int)0)->syf; } motion_estimation(oldorgframe[(signed long int)0], neworgframe[(signed long int)0], oldrefframe[(signed long int)0], newrefframe[(signed long int)0], neworg[(signed long int)0], newref[(signed long int)0], sxf, syf, sxb, syb, mbinfo, 1, ipflag); predict(oldrefframe, newrefframe, predframe, 1, mbinfo); dct_type_estimation(predframe[(signed long int)0], neworg[(signed long int)0], mbinfo); transform(predframe, neworg, mbinfo, blocks); putpict(neworg[(signed long int)0]); k = 0; while(!(k >= mb_height2 * mb_width)) { if(!((1 & (mbinfo + (signed long int)k)->mb_type) == 0)) { j = 0; while(!(j >= block_count)) { iquant_intra(blocks[(signed long int)(k * block_count + j)], blocks[(signed long int)(k * block_count + j)], dc_prec, intra_q, (mbinfo + (signed long int)k)->mquant); j = j + 1; } } else { j = 0; while(!(j >= block_count)) { iquant_non_intra(blocks[(signed long int)(k * block_count + j)], blocks[(signed long int)(k * block_count + j)], inter_q, (mbinfo + (signed long int)k)->mquant); j = j + 1; } } k = k + 1; } itransform(predframe, newref, mbinfo, blocks); calcSNR(neworg, newref); stats(); } else { pict_struct = 3; data_args.oldorg = oldorgframe[(signed long int)0]; data_args.neworg = neworgframe[(signed long int)0]; data_args.oldref = oldrefframe[(signed long int)0]; data_args.newref = newrefframe[(signed long int)0]; data_args.cur = neworg[(signed long int)0]; data_args.curref = newref[(signed long int)0]; data_args.sxf = sxf; data_args.syf = syf; data_args.sxb = sxb; data_args.syb = syb; data_args.mbi = mbinfo; data_args.secondfield = 0; data_args.ipflag = 0; data_args.reff = oldrefframe; data_args.refb = newrefframe; data_args.pd_cur = predframe; data_args.pred = predframe[(signed long int)0]; data_args.dte_cur = neworg[(signed long int)0]; data_args.trfm_cur = neworg; data_args.blocks = (signed short int **)blocks; data_args.prev_mquant = 20; data_args.itrfm_cur = newref; thread_work_dist(); } sprintf(name, tplref, f + frame0); writeframe(name, newref); i = i + 1; } putseqend(); } // c::putseqdispext // file src/puthdr.c line 142 void putseqdispext(void) { alignbits(); putbits((signed int)437l, 32); putbits(2, 4); putbits(video_format, 3); putbits(1, 1); putbits(color_primaries, 8); putbits(transfer_characteristics, 8); putbits(matrix_coefficients, 8); putbits(display_horizontal_size, 14); putbits(1, 1); putbits(display_vertical_size, 14); } // c::putseqend // file src/puthdr.c line 268 void putseqend(void) { alignbits(); putbits((signed int)439l, 32); } // c::putseqext // file src/puthdr.c line 120 void putseqext(void) { alignbits(); putbits((signed int)437l, 32); putbits(1, 4); putbits(profile << 4 | level, 8); putbits(prog_seq, 1); putbits(chroma_format, 2); putbits(horizontal_size >> 12, 2); putbits(vertical_size >> 12, 2); double return_value_ceil$1; return_value_ceil$1=ceil(bit_rate / 400.000000); putbits((signed int)return_value_ceil$1 >> 18, 12); putbits(1, 1); putbits(vbv_buffer_size >> 10, 8); putbits(0, 1); putbits(0, 2); putbits(0, 5); } // c::putseqhdr // file src/puthdr.c line 93 void putseqhdr(void) { signed int i; alignbits(); putbits((signed int)435l, 32); putbits(horizontal_size, 12); putbits(vertical_size, 12); putbits(aspectratio, 4); putbits(frame_rate_code, 4); double return_value_ceil$1; return_value_ceil$1=ceil(bit_rate / 400.000000); putbits((signed int)return_value_ceil$1, 18); putbits(1, 1); putbits(vbv_buffer_size, 10); putbits(constrparms, 1); putbits(load_iquant, 1); if(!(load_iquant == 0)) { i = 0; while(i < 64) { putbits((signed int)intra_q[(signed long int)zig_zag_scan[(signed long int)i]], 8); i = i + 1; } } putbits(load_niquant, 1); if(!(load_niquant == 0)) { i = 0; while(i < 64) { putbits((signed int)inter_q[(signed long int)zig_zag_scan[(signed long int)i]], 8); i = i + 1; } } } // c::putuserdata // file src/puthdr.c line 161 void putuserdata(char *userdata) { alignbits(); putbits((signed int)434l, 32); char *tmp_post$1; while(!(*userdata == 0)) { tmp_post$1 = userdata; userdata = userdata + 1l; putbits((signed int)*tmp_post$1, 8); } } // c::quant_intra // file src/global.h line 197 signed int quant_intra(signed short int *src, signed short int *dst, signed int dc_prec, unsigned char *quant_mat, signed int mquant) { signed int i; signed int x; signed int y; signed int d; signed short int dst0; x = (signed int)src[(signed long int)0]; d = 8 >> dc_prec; dst0 = (signed short int)(x >= 0 ? (x + (d >> 1)) / d : -((-x + (d >> 1)) / d)); i = 0; while(i < 64) { x = (signed int)src[(signed long int)i]; d = (signed int)quant_mat[(signed long int)i]; y = (32 * (x >= 0 ? x : -x) + (d >> 1)) / d; d = 3 * mquant + 2 >> 2; y = (y + d) / (2 * mquant); y = y > QUANT_THRESHOLD ? QUANT_THRESHOLD : y; dst[(signed long int)i] = (signed short int)(x >= 0 ? y : -y); i = i + 1; x = (signed int)src[(signed long int)i]; d = (signed int)quant_mat[(signed long int)i]; y = (32 * (x >= 0 ? x : -x) + (d >> 1)) / d; d = 3 * mquant + 2 >> 2; y = (y + d) / (2 * mquant); y = y > QUANT_THRESHOLD ? QUANT_THRESHOLD : y; dst[(signed long int)i] = (signed short int)(x >= 0 ? y : -y); i = i + 1; x = (signed int)src[(signed long int)i]; d = (signed int)quant_mat[(signed long int)i]; y = (32 * (x >= 0 ? x : -x) + (d >> 1)) / d; d = 3 * mquant + 2 >> 2; y = (y + d) / (2 * mquant); y = y > QUANT_THRESHOLD ? QUANT_THRESHOLD : y; dst[(signed long int)i] = (signed short int)(x >= 0 ? y : -y); i = i + 1; x = (signed int)src[(signed long int)i]; d = (signed int)quant_mat[(signed long int)i]; y = (32 * (x >= 0 ? x : -x) + (d >> 1)) / d; d = 3 * mquant + 2 >> 2; y = (y + d) / (2 * mquant); y = y > QUANT_THRESHOLD ? QUANT_THRESHOLD : y; dst[(signed long int)i] = (signed short int)(x >= 0 ? y : -y); i = i + 1; } dst[(signed long int)0] = dst0; return 1; } // c::quant_non_intra // file src/global.h line 199 signed int quant_non_intra(signed short int *src, signed short int *dst, unsigned char *quant_mat, signed int mquant) { signed int i; signed int x; signed int y; signed int d; signed int nzflag = 0; i = 0; while(i < 64) { x = (signed int)src[(signed long int)i]; d = (signed int)quant_mat[(signed long int)i]; y = (32 * (x >= 0 ? x : -x) + (d >> 1)) / d; y = y / (2 * mquant); if(!(QUANT_THRESHOLD >= y)) y = QUANT_THRESHOLD; dst[(signed long int)i] = (signed short int)(x >= 0 ? y : -y); if(!((signed int)dst[(signed long int)i] == 0)) nzflag = 1; i = i + 1; x = (signed int)src[(signed long int)i]; d = (signed int)quant_mat[(signed long int)i]; y = (32 * (x >= 0 ? x : -x) + (d >> 1)) / d; y = y / (2 * mquant); if(!(QUANT_THRESHOLD >= y)) y = QUANT_THRESHOLD; dst[(signed long int)i] = (signed short int)(x >= 0 ? y : -y); if(!((signed int)dst[(signed long int)i] == 0)) nzflag = 1; i = i + 1; x = (signed int)src[(signed long int)i]; d = (signed int)quant_mat[(signed long int)i]; y = (32 * (x >= 0 ? x : -x) + (d >> 1)) / d; y = y / (2 * mquant); if(!(QUANT_THRESHOLD >= y)) y = QUANT_THRESHOLD; dst[(signed long int)i] = (signed short int)(x >= 0 ? y : -y); if(!((signed int)dst[(signed long int)i] == 0)) nzflag = 1; i = i + 1; x = (signed int)src[(signed long int)i]; d = (signed int)quant_mat[(signed long int)i]; y = (32 * (x >= 0 ? x : -x) + (d >> 1)) / d; y = y / (2 * mquant); if(!(QUANT_THRESHOLD >= y)) y = QUANT_THRESHOLD; dst[(signed long int)i] = (signed short int)(x >= 0 ? y : -y); if(!((signed int)dst[(signed long int)i] == 0)) nzflag = 1; i = i + 1; } return nzflag; } // c::range_checks // file src/conform.c line 88 void range_checks(void) { signed int i; if(!(horizontal_size < 1)) { if(horizontal_size > 16383) goto __CPROVER_DUMP_L1; } else { __CPROVER_DUMP_L1: ; error("horizontal_size must be between 1 and 16383"); } if(!(mpeg1 == 0)) { if(horizontal_size > 4095) error("horizontal_size must be less than 4096 (MPEG-1)"); } if((4095 & horizontal_size) == 0) error("horizontal_size must not be a multiple of 4096"); if(!(chroma_format == 3)) { if(!(horizontal_size % 2 == 0)) error("horizontal_size must be a even (4:2:0 / 4:2:2)"); } if(!(vertical_size < 1)) { if(vertical_size > 16383) goto __CPROVER_DUMP_L6; } else { __CPROVER_DUMP_L6: ; error("vertical_size must be between 1 and 16383"); } if(!(mpeg1 == 0)) { if(vertical_size > 4095) error("vertical size must be less than 4096 (MPEG-1)"); } if((4095 & vertical_size) == 0) error("vertical_size must not be a multiple of 4096"); if(chroma_format == 1) { if(!(vertical_size % 2 == 0)) error("vertical_size must be a even (4:2:0)"); } if(!(fieldpic == 0)) { if(!(vertical_size % 2 == 0)) error("vertical_size must be a even (field pictures)"); if(chroma_format == 1) { if(!(vertical_size % 4 == 0)) error("vertical_size must be a multiple of 4 (4:2:0 field pictures)"); } } if(!(mpeg1 == 0)) { if(!(aspectratio < 1)) { if(aspectratio > 14) goto __CPROVER_DUMP_L13; } else { __CPROVER_DUMP_L13: ; error("pel_aspect_ratio must be between 1 and 14 (MPEG-1)"); } } else if(!(aspectratio < 1)) { if(aspectratio > 4) goto __CPROVER_DUMP_L16; } else { __CPROVER_DUMP_L16: ; error("aspect_ratio_information must be 1, 2, 3 or 4"); } if(!(frame_rate_code < 1)) { if(frame_rate_code > 8) goto __CPROVER_DUMP_L18; } else { __CPROVER_DUMP_L18: ; error("frame_rate code must be between 1 and 8"); } if(bit_rate <= 0.000000) error("bit_rate must be positive"); if(bit_rate > 4.294967e+11) error("bit_rate must be less than 429 Gbit/s"); if(!(mpeg1 == 0)) { if(bit_rate > 1.048572e+8) error("bit_rate must be less than 104 Mbit/s (MPEG-1)"); } if(!(vbv_buffer_size < 1)) { if(vbv_buffer_size > 262143) goto __CPROVER_DUMP_L23; } else { __CPROVER_DUMP_L23: ; error("vbv_buffer_size must be in range 1..(2^18-1)"); } if(!(mpeg1 == 0)) { if(vbv_buffer_size >= 1024) error("vbv_buffer_size must be less than 1024 (MPEG-1)"); } if(!(chroma_format < 1)) { if(chroma_format > 3) goto __CPROVER_DUMP_L26; } else { __CPROVER_DUMP_L26: ; error("chroma_format must be in range 1...3"); } if(!(video_format < 0)) { if(video_format > 4) goto __CPROVER_DUMP_L28; } else { __CPROVER_DUMP_L28: ; error("video_format must be in range 0...4"); } if(!(color_primaries < 1)) { if(color_primaries > 7) goto __CPROVER_DUMP_L30; if(color_primaries == 3) goto __CPROVER_DUMP_L30; } else { __CPROVER_DUMP_L30: ; error("color_primaries must be in range 1...2 or 4...7"); } if(!(transfer_characteristics < 1)) { if(transfer_characteristics > 7) goto __CPROVER_DUMP_L32; if(transfer_characteristics == 3) goto __CPROVER_DUMP_L32; } else { __CPROVER_DUMP_L32: ; error("transfer_characteristics must be in range 1...2 or 4...7"); } if(!(matrix_coefficients < 1)) { if(matrix_coefficients > 7) goto __CPROVER_DUMP_L34; if(matrix_coefficients == 3) goto __CPROVER_DUMP_L34; } else { __CPROVER_DUMP_L34: ; error("matrix_coefficients must be in range 1...2 or 4...7"); } if(!(display_horizontal_size < 0)) { if(display_horizontal_size > 16383) goto __CPROVER_DUMP_L36; } else { __CPROVER_DUMP_L36: ; error("display_horizontal_size must be in range 0...16383"); } if(!(display_vertical_size < 0)) { if(display_vertical_size > 16383) goto __CPROVER_DUMP_L38; } else { __CPROVER_DUMP_L38: ; error("display_vertical_size must be in range 0...16383"); } if(!(dc_prec < 0)) { if(dc_prec > 3) goto __CPROVER_DUMP_L40; } else { __CPROVER_DUMP_L40: ; error("intra_dc_precision must be in range 0...3"); } i = 0; _Bool tmp_if_expr$1; _Bool tmp_if_expr$2; _Bool tmp_if_expr$3; _Bool tmp_if_expr$4; while(!(i >= M)) { if((motion_data + (signed long int)i)->forw_hor_f_code < 1) tmp_if_expr$1 = TRUE; else tmp_if_expr$1 = (motion_data + (signed long int)i)->forw_hor_f_code > 9 ? TRUE : FALSE; if(tmp_if_expr$1) error("f_code must be between 1 and 9"); if((motion_data + (signed long int)i)->forw_vert_f_code < 1) tmp_if_expr$2 = TRUE; else tmp_if_expr$2 = (motion_data + (signed long int)i)->forw_vert_f_code > 9 ? TRUE : FALSE; if(tmp_if_expr$2) error("f_code must be between 1 and 9"); if(!(mpeg1 == 0)) { if((motion_data + (signed long int)i)->forw_hor_f_code > 7) error("f_code must be le less than 8"); } if(!(mpeg1 == 0)) { if((motion_data + (signed long int)i)->forw_vert_f_code > 7) error("f_code must be le less than 8"); } if((motion_data + (signed long int)i)->sxf <= 0) error("search window must be positive"); if((motion_data + (signed long int)i)->syf <= 0) error("search window must be positive"); if(!(i == 0)) { if((motion_data + (signed long int)i)->back_hor_f_code < 1) tmp_if_expr$3 = TRUE; else tmp_if_expr$3 = (motion_data + (signed long int)i)->back_hor_f_code > 9 ? TRUE : FALSE; if(tmp_if_expr$3) error("f_code must be between 1 and 9"); if((motion_data + (signed long int)i)->back_vert_f_code < 1) tmp_if_expr$4 = TRUE; else tmp_if_expr$4 = (motion_data + (signed long int)i)->back_vert_f_code > 9 ? TRUE : FALSE; if(tmp_if_expr$4) error("f_code must be between 1 and 9"); if(!(mpeg1 == 0)) { if((motion_data + (signed long int)i)->back_hor_f_code > 7) error("f_code must be le less than 8"); } if(!(mpeg1 == 0)) { if((motion_data + (signed long int)i)->back_vert_f_code > 7) error("f_code must be le less than 8"); } if((motion_data + (signed long int)i)->sxb <= 0) error("search window must be positive"); if((motion_data + (signed long int)i)->syb <= 0) error("search window must be positive"); } i = i + 1; } } // c::rc_calc_mquant // file src/global.h line 217 signed int rc_calc_mquant(signed int j) { signed int mquant; double dj; double Qj; double actj; double N_actj; signed int return_value_bitcount$1; return_value_bitcount$1=bitcount(); dj = (double)((d + (return_value_bitcount$1 - S)) - j * (T / (mb_width * mb_height2))); Qj = (dj * 31.000000) / (double)r; actj = (mbinfo + (signed long int)j)->act; actsum = actsum + actj; N_actj = (2.000000 * actj + avg_act) / (actj + 2.000000 * avg_act); if(!(q_scale_type == 0)) { double return_value_floor$2; return_value_floor$2=floor(2.000000 * Qj * N_actj + 5.000000e-1); mquant = (signed int)return_value_floor$2; if(mquant < 1) mquant = 1; if(mquant > 112) mquant = 112; mquant = (signed int)non_linear_mquant_table[(signed long int)map_non_linear_mquant[(signed long int)mquant]]; } else { double return_value_floor$3; return_value_floor$3=floor(Qj * N_actj + 5.000000e-1); mquant = (signed int)return_value_floor$3; mquant = mquant << 1; if(mquant < 2) mquant = 2; if(mquant > 62) mquant = 62; if(mquant >= 8) { if(mquant + -prev_mquant >= -4) { if(mquant + -prev_mquant <= 4) mquant = prev_mquant; } } prev_mquant = mquant; } Q = Q + mquant; return mquant; } // c::rc_init_GOP // file src/global.h line 213 void rc_init_GOP(signed int np, signed int nb) { double return_value_floor$1; return_value_floor$1=floor(((double)(1 + np + nb) * bit_rate) / frame_rate + 5.000000e-1); R = R + (signed int)return_value_floor$1; Np = fieldpic != 0 ? 2 * np + 1 : np; Nb = fieldpic != 0 ? 2 * nb : nb; } // c::rc_init_pict // file src/global.h line 214 void rc_init_pict(unsigned char *frame) { double Tmin; double return_value_floor$1; double return_value_floor$2; double return_value_floor$3; double return_value_floor$4; switch(pict_type) { case 1: { return_value_floor$1=floor((double)R / (1.000000 + (double)(Np * Xp) / ((double)Xi * 1.000000) + (double)(Nb * Xb) / ((double)Xi * 1.400000e+0)) + 5.000000e-1); T = (signed int)return_value_floor$1; d = d0i; goto __CPROVER_DUMP_L4; } case 2: { return_value_floor$2=floor((double)R / ((double)Np + ((double)Nb * 1.000000 * (double)Xb) / (1.400000e+0 * (double)Xp)) + 5.000000e-1); T = (signed int)return_value_floor$2; d = d0p; goto __CPROVER_DUMP_L4; } case 3: { return_value_floor$3=floor((double)R / ((double)Nb + ((double)Np * 1.400000e+0 * (double)Xp) / (1.000000 * (double)Xb)) + 5.000000e-1); T = (signed int)return_value_floor$3; d = d0b; goto __CPROVER_DUMP_L4; } default: { __CPROVER_DUMP_L4: ; return_value_floor$4=floor(bit_rate / (8.000000 * frame_rate) + 5.000000e-1); Tmin = (double)(signed int)return_value_floor$4; if((double)T < Tmin) T = (signed int)Tmin; S=bitcount(); Q = 0; calc_actj(frame); actsum = 0.000000; } } } // c::rc_init_seq // file src/global.h line 212 void rc_init_seq(void) { double return_value_floor$1; if(r == 0) { return_value_floor$1=floor((2.000000 * bit_rate) / frame_rate + 5.000000e-1); r = (signed int)return_value_floor$1; } if(IEEE_FLOAT_EQUAL(avg_act, 0.000000)) avg_act = 400.000000; R = 0; double return_value_floor$2; if(Xi == 0) { return_value_floor$2=floor((160.000000 * bit_rate) / 115.000000 + 5.000000e-1); Xi = (signed int)return_value_floor$2; } double return_value_floor$3; if(Xp == 0) { return_value_floor$3=floor((60.000000 * bit_rate) / 115.000000 + 5.000000e-1); Xp = (signed int)return_value_floor$3; } double return_value_floor$4; if(Xb == 0) { return_value_floor$4=floor((42.000000 * bit_rate) / 115.000000 + 5.000000e-1); Xb = (signed int)return_value_floor$4; } double return_value_floor$5; if(d0i == 0) { return_value_floor$5=floor((10.000000 * (double)r) / 31.000000 + 5.000000e-1); d0i = (signed int)return_value_floor$5; } double return_value_floor$6; if(d0p == 0) { return_value_floor$6=floor((10.000000 * (double)r) / 31.000000 + 5.000000e-1); d0p = (signed int)return_value_floor$6; } double return_value_floor$7; if(d0b == 0) { return_value_floor$7=floor((1.400000e+0 * 10.000000 * (double)r) / 31.000000 + 5.000000e-1); d0b = (signed int)return_value_floor$7; } } // c::rc_start_mb // file src/global.h line 216 signed int rc_start_mb(void) { signed int mquant; if(!(q_scale_type == 0)) { double return_value_floor$1; return_value_floor$1=floor((2.000000 * (double)d * 31.000000) / (double)r + 5.000000e-1); mquant = (signed int)return_value_floor$1; if(mquant < 1) mquant = 1; if(mquant > 112) mquant = 112; mquant = (signed int)non_linear_mquant_table[(signed long int)map_non_linear_mquant[(signed long int)mquant]]; } else { double return_value_floor$2; return_value_floor$2=floor(((double)d * 31.000000) / (double)r + 5.000000e-1); mquant = (signed int)return_value_floor$2; mquant = mquant << 1; if(mquant < 2) mquant = 2; if(mquant > 62) mquant = 62; prev_mquant = mquant; } return mquant; } // c::rc_update_pict // file src/global.h line 215 void rc_update_pict(void) { double X; signed int return_value_bitcount$1; return_value_bitcount$1=bitcount(); S = return_value_bitcount$1 - S; R = R - S; double return_value_floor$2; return_value_floor$2=floor((double)S * ((5.000000e-1 * (double)Q) / (double)(mb_width * mb_height2)) + 5.000000e-1); X = (double)(signed int)return_value_floor$2; d = d + (S - T); avg_act = actsum / (double)(mb_width * mb_height2); switch(pict_type) { case 1: { Xi = (signed int)X; d0i = d; goto __CPROVER_DUMP_L4; } case 2: { Xp = (signed int)X; d0p = d; Np = Np - 1; goto __CPROVER_DUMP_L4; } case 3: { Xb = (signed int)X; d0b = d; Nb = Nb - 1; } default: __CPROVER_DUMP_L4: ; } } // c::read_ppm // file src/readpic.c line 203 static void read_ppm(char *fname, unsigned char **frame) { static double coef[7l][3l] = { { 2.125000e-1, 7.154000e-1, 7.210000e-2 }, { 2.990000e-1, 5.870000e-1, 1.140000e-1 }, { 2.990000e-1, 5.870000e-1, 1.140000e-1 }, { 3.000000e-1, 5.900000e-1, 1.100000e-1 }, { 2.990000e-1, 5.870000e-1, 1.140000e-1 }, { 2.990000e-1, 5.870000e-1, 1.140000e-1 }, { 2.120000e-1, 7.010000e-1, 8.700000e-2 } }; static unsigned char *u422; static unsigned char *u444; static unsigned char *v422; static unsigned char *v444; signed int i; signed int j; signed int r; signed int g; signed int b; double y; double u; double v; double cr; double cg; double cb; double cu; double cv; char name[128l]; struct _IO_FILE$link2 *fd; unsigned char *yp; unsigned char *up; unsigned char *vp; i = matrix_coefficients; if(i > 8) i = 3; cr = coef[(signed long int)(i - 1)][(signed long int)0]; cg = coef[(signed long int)(i - 1)][(signed long int)1]; cb = coef[(signed long int)(i - 1)][(signed long int)2]; cu = 5.000000e-1 / (1.000000 - cb); cv = 5.000000e-1 / (1.000000 - cr); if(chroma_format == 3) { u444 = frame[(signed long int)1]; v444 = frame[(signed long int)2]; } else if(u444 == ((unsigned char *)NULL)) { void *return_value_malloc$1; return_value_malloc$1=malloc((unsigned long int)(width * height)); u444 = (unsigned char *)return_value_malloc$1; if(u444 == ((unsigned char *)NULL)) error("malloc failed"); void *return_value_malloc$2; return_value_malloc$2=malloc((unsigned long int)(width * height)); v444 = (unsigned char *)return_value_malloc$2; if(v444 == ((unsigned char *)NULL)) error("malloc failed"); if(chroma_format == 1) { void *return_value_malloc$3; return_value_malloc$3=malloc((unsigned long int)((width >> 1) * height)); u422 = (unsigned char *)return_value_malloc$3; if(u422 == ((unsigned char *)NULL)) error("malloc failed"); void *return_value_malloc$4; return_value_malloc$4=malloc((unsigned long int)((width >> 1) * height)); v422 = (unsigned char *)return_value_malloc$4; if(v422 == ((unsigned char *)NULL)) error("malloc failed"); } } sprintf(name, "%s.ppm", fname); fd=fopen(name, "rb"); if(fd == ((struct _IO_FILE$link2 *)NULL)) { sprintf(errortext, "Couldn't open %s\n", (const void *)name); error(errortext); } fgetc(fd); fgetc(fd); pbm_getint(fd); pbm_getint(fd); pbm_getint(fd); i = 0; while(!(i >= vertical_size)) { yp = frame[(signed long int)0] + (signed long int)(i * width); up = u444 + (signed long int)(i * width); vp = v444 + (signed long int)(i * width); j = 0; while(!(j >= horizontal_size)) { r=fgetc(fd); g=fgetc(fd); b=fgetc(fd); y = cr * (double)r + cg * (double)g + cb * (double)b; u = cu * ((double)b - y); v = cv * ((double)r - y); yp[(signed long int)j] = (unsigned char)((219.000000 / 256.000000) * y + 1.650000e+1); up[(signed long int)j] = (unsigned char)((224.000000 / 256.000000) * u + 1.285000e+2); vp[(signed long int)j] = (unsigned char)((224.000000 / 256.000000) * v + 1.285000e+2); j = j + 1; } i = i + 1; } fclose(fd); border_extend(frame[(signed long int)0], horizontal_size, vertical_size, width, height); border_extend(u444, horizontal_size, vertical_size, width, height); border_extend(v444, horizontal_size, vertical_size, width, height); if(chroma_format == 2) { conv444to422(u444, frame[(signed long int)1]); conv444to422(v444, frame[(signed long int)2]); } if(chroma_format == 1) { conv444to422(u444, u422); conv444to422(v444, v422); conv422to420(u422, frame[(signed long int)1]); conv422to420(v422, frame[(signed long int)2]); } } // c::read_y_u_v // file src/readpic.c line 116 static void read_y_u_v(char *fname, unsigned char **frame) { signed int i; signed int chrom_hsize; signed int chrom_vsize; char name[128l]; struct _IO_FILE$link2 *fd; chrom_hsize = chroma_format == 3 ? horizontal_size : horizontal_size >> 1; chrom_vsize = chroma_format != 1 ? vertical_size : vertical_size >> 1; sprintf(name, "%s.Y", fname); fd=fopen(name, "rb"); if(fd == ((struct _IO_FILE$link2 *)NULL)) { sprintf(errortext, "Couldn't open %s\n", (const void *)name); error(errortext); } i = 0; while(!(i >= vertical_size)) { fread((void *)(frame[(signed long int)0] + (signed long int)(i * width)), (unsigned long int)1, (unsigned long int)horizontal_size, fd); i = i + 1; } fclose(fd); border_extend(frame[(signed long int)0], horizontal_size, vertical_size, width, height); sprintf(name, "%s.U", fname); fd=fopen(name, "rb"); if(fd == ((struct _IO_FILE$link2 *)NULL)) { sprintf(errortext, "Couldn't open %s\n", (const void *)name); error(errortext); } i = 0; while(!(i >= chrom_vsize)) { fread((void *)(frame[(signed long int)1] + (signed long int)(i * chrom_width)), (unsigned long int)1, (unsigned long int)chrom_hsize, fd); i = i + 1; } fclose(fd); border_extend(frame[(signed long int)1], chrom_hsize, chrom_vsize, chrom_width, chrom_height); sprintf(name, "%s.V", fname); fd=fopen(name, "rb"); if(fd == ((struct _IO_FILE$link2 *)NULL)) { sprintf(errortext, "Couldn't open %s\n", (const void *)name); error(errortext); } i = 0; while(!(i >= chrom_vsize)) { fread((void *)(frame[(signed long int)2] + (signed long int)(i * chrom_width)), (unsigned long int)1, (unsigned long int)chrom_hsize, fd); i = i + 1; } fclose(fd); border_extend(frame[(signed long int)2], chrom_hsize, chrom_vsize, chrom_width, chrom_height); } // c::read_yuv // file src/readpic.c line 164 static void read_yuv(char *fname, unsigned char **frame) { signed int i; signed int chrom_hsize; signed int chrom_vsize; char name[128l]; struct _IO_FILE$link2 *fd; chrom_hsize = chroma_format == 3 ? horizontal_size : horizontal_size >> 1; chrom_vsize = chroma_format != 1 ? vertical_size : vertical_size >> 1; sprintf(name, "%s.yuv", fname); fd=fopen(name, "rb"); if(fd == ((struct _IO_FILE$link2 *)NULL)) { sprintf(errortext, "Couldn't open %s\n", (const void *)name); error(errortext); } i = 0; while(!(i >= vertical_size)) { fread((void *)(frame[(signed long int)0] + (signed long int)(i * width)), (unsigned long int)1, (unsigned long int)horizontal_size, fd); i = i + 1; } border_extend(frame[(signed long int)0], horizontal_size, vertical_size, width, height); i = 0; while(!(i >= chrom_vsize)) { fread((void *)(frame[(signed long int)1] + (signed long int)(i * chrom_width)), (unsigned long int)1, (unsigned long int)chrom_hsize, fd); i = i + 1; } border_extend(frame[(signed long int)1], chrom_hsize, chrom_vsize, chrom_width, chrom_height); i = 0; while(!(i >= chrom_vsize)) { fread((void *)(frame[(signed long int)2] + (signed long int)(i * chrom_width)), (unsigned long int)1, (unsigned long int)chrom_hsize, fd); i = i + 1; } border_extend(frame[(signed long int)2], chrom_hsize, chrom_vsize, chrom_width, chrom_height); fclose(fd); } // c::readframe // file src/readpic.c line 96 void readframe(char *fname, unsigned char **frame) { switch(inputtype) { case 0: { read_y_u_v(fname, frame); goto __CPROVER_DUMP_L4; } case 1: { read_yuv(fname, frame); goto __CPROVER_DUMP_L4; } case 2: read_ppm(fname, frame); default: __CPROVER_DUMP_L4: ; } } // c::readparmfile // file src/mpeg2enc.c line 224 static void readparmfile(char *fname) { signed int Xb; signed int Xi; signed int Xp; double avg_act; signed int d0b; signed int d0i; signed int d0p; signed int r; static double ratetab[8l] = { 24000.000000 / 1001.000000, 24.000000, 25.000000, 30000.000000 / 1001.000000, 30.000000, 50.000000, 60000.000000 / 1001.000000, 60.000000 }; signed int i; signed int h; signed int m; signed int s; signed int f; struct _IO_FILE$link10 *fd; char line[256l]; fd=fopen(fname, "r"); if(fd == ((struct _IO_FILE$link10 *)NULL)) { sprintf(errortext, "Couldn't open parameter file %s", fname); error(errortext); } fgets(id_string, 254, fd); fgets(line, 254, fd); sscanf(line, "%s", (const void *)tplorg); fgets(line, 254, fd); sscanf(line, "%s", (const void *)tplref); fgets(line, 254, fd); sscanf(line, "%s", (const void *)iqname); fgets(line, 254, fd); sscanf(line, "%s", (const void *)niqname); fgets(line, 254, fd); sscanf(line, "%s", (const void *)statname); fgets(line, 254, fd); sscanf(line, "%d", &inputtype); fgets(line, 254, fd); sscanf(line, "%d", &nframes); fgets(line, 254, fd); sscanf(line, "%d", &frame0); fgets(line, 254, fd); sscanf(line, "%d:%d:%d:%d", &h, &m, &s, &f); fgets(line, 254, fd); sscanf(line, "%d", &N); fgets(line, 254, fd); sscanf(line, "%d", &M); fgets(line, 254, fd); sscanf(line, "%d", &mpeg1); fgets(line, 254, fd); sscanf(line, "%d", &fieldpic); fgets(line, 254, fd); sscanf(line, "%d", &horizontal_size); fgets(line, 254, fd); sscanf(line, "%d", &vertical_size); fgets(line, 254, fd); sscanf(line, "%d", &aspectratio); fgets(line, 254, fd); sscanf(line, "%d", &frame_rate_code); fgets(line, 254, fd); sscanf(line, "%lf", &bit_rate); fgets(line, 254, fd); sscanf(line, "%d", &vbv_buffer_size); fgets(line, 254, fd); sscanf(line, "%d", &low_delay); fgets(line, 254, fd); sscanf(line, "%d", &constrparms); fgets(line, 254, fd); sscanf(line, "%d", &profile); fgets(line, 254, fd); sscanf(line, "%d", &level); fgets(line, 254, fd); sscanf(line, "%d", &prog_seq); fgets(line, 254, fd); sscanf(line, "%d", &chroma_format); fgets(line, 254, fd); sscanf(line, "%d", &video_format); fgets(line, 254, fd); sscanf(line, "%d", &color_primaries); fgets(line, 254, fd); sscanf(line, "%d", &transfer_characteristics); fgets(line, 254, fd); sscanf(line, "%d", &matrix_coefficients); fgets(line, 254, fd); sscanf(line, "%d", &display_horizontal_size); fgets(line, 254, fd); sscanf(line, "%d", &display_vertical_size); fgets(line, 254, fd); sscanf(line, "%d", &dc_prec); fgets(line, 254, fd); sscanf(line, "%d", &topfirst); fgets(line, 254, fd); sscanf(line, "%d %d %d", (const void *)frame_pred_dct_tab, frame_pred_dct_tab + (signed long int)1, frame_pred_dct_tab + (signed long int)2); fgets(line, 254, fd); sscanf(line, "%d %d %d", (const void *)conceal_tab, conceal_tab + (signed long int)1, conceal_tab + (signed long int)2); fgets(line, 254, fd); sscanf(line, "%d %d %d", (const void *)qscale_tab, qscale_tab + (signed long int)1, qscale_tab + (signed long int)2); fgets(line, 254, fd); sscanf(line, "%d %d %d", (const void *)intravlc_tab, intravlc_tab + (signed long int)1, intravlc_tab + (signed long int)2); fgets(line, 254, fd); sscanf(line, "%d %d %d", (const void *)altscan_tab, altscan_tab + (signed long int)1, altscan_tab + (signed long int)2); fgets(line, 254, fd); sscanf(line, "%d", &repeatfirst); fgets(line, 254, fd); sscanf(line, "%d", &prog_frame); fgets(line, 254, fd); sscanf(line, "%d", &P); fgets(line, 254, fd); sscanf(line, "%d", &r); fgets(line, 254, fd); sscanf(line, "%lf", &avg_act); fgets(line, 254, fd); sscanf(line, "%d", &Xi); fgets(line, 254, fd); sscanf(line, "%d", &Xp); fgets(line, 254, fd); sscanf(line, "%d", &Xb); fgets(line, 254, fd); sscanf(line, "%d", &d0i); fgets(line, 254, fd); sscanf(line, "%d", &d0p); fgets(line, 254, fd); sscanf(line, "%d", &d0b); if(N < 1) error("N must be positive"); if(M < 1) error("M must be positive"); if(!(N % M == 0)) error("N must be an integer multiple of M"); void *return_value_malloc$1; return_value_malloc$1=malloc((unsigned long int)M * 32ul /*[[struct motion_data]]*/); motion_data = (struct motion_data *)return_value_malloc$1; if(motion_data == ((struct motion_data *)NULL)) error("malloc failed\n"); i = 0; while(!(i >= M)) { fgets(line, 254, fd); sscanf(line, "%d %d %d %d", &(motion_data + (signed long int)i)->forw_hor_f_code, &(motion_data + (signed long int)i)->forw_vert_f_code, &(motion_data + (signed long int)i)->sxf, &(motion_data + (signed long int)i)->syf); if(!(i == 0)) { fgets(line, 254, fd); sscanf(line, "%d %d %d %d", &(motion_data + (signed long int)i)->back_hor_f_code, &(motion_data + (signed long int)i)->back_vert_f_code, &(motion_data + (signed long int)i)->sxb, &(motion_data + (signed long int)i)->syb); } i = i + 1; } fclose(fd); mpeg1 = (signed int)!(!(mpeg1 != 0)); fieldpic = (signed int)!(!(fieldpic != 0)); low_delay = (signed int)!(!(low_delay != 0)); constrparms = (signed int)!(!(constrparms != 0)); prog_seq = (signed int)!(!(prog_seq != 0)); topfirst = (signed int)!(!(topfirst != 0)); i = 0; while(i < 3) { frame_pred_dct_tab[(signed long int)i] = (signed int)!(!(frame_pred_dct_tab[(signed long int)i] != 0)); conceal_tab[(signed long int)i] = (signed int)!(!(conceal_tab[(signed long int)i] != 0)); qscale_tab[(signed long int)i] = (signed int)!(!(qscale_tab[(signed long int)i] != 0)); intravlc_tab[(signed long int)i] = (signed int)!(!(intravlc_tab[(signed long int)i] != 0)); altscan_tab[(signed long int)i] = (signed int)!(!(altscan_tab[(signed long int)i] != 0)); i = i + 1; } repeatfirst = (signed int)!(!(repeatfirst != 0)); prog_frame = (signed int)!(!(prog_frame != 0)); range_checks(); frame_rate = ratetab[(signed long int)(frame_rate_code - 1)]; tc0 = h; tc0 = 60 * tc0 + m; tc0 = 60 * tc0 + s; tc0 = (signed int)(frame_rate + 5.000000e-1) * tc0 + f; if(mpeg1 == 0) profile_and_level_checks(); else { if(!(constrparms == 0)) { if(!(horizontal_size > 768)) { if(vertical_size > 576) goto __CPROVER_DUMP_L12; if(((15 + horizontal_size) / 16) * ((15 + vertical_size) / 16) > 396) goto __CPROVER_DUMP_L12; if((double)(((15 + horizontal_size) / 16) * ((15 + vertical_size) / 16)) * frame_rate > 9900.000000) goto __CPROVER_DUMP_L12; if(frame_rate > 30.000000) goto __CPROVER_DUMP_L12; } else { __CPROVER_DUMP_L12: ; if(quiet == 0) fprintf(stderr, "Warning: setting constrained_parameters_flag = 0\n"); constrparms = 0; } } if(!(constrparms == 0)) { i = 0; while(!(i >= M)) { if(!((motion_data + (signed long int)i)->forw_hor_f_code > 4)) goto __CPROVER_DUMP_L17; if(quiet == 0) fprintf(stderr, "Warning: setting constrained_parameters_flag = 0\n"); constrparms = 0; goto __CPROVER_DUMP_L24; __CPROVER_DUMP_L17: ; if(!((motion_data + (signed long int)i)->forw_vert_f_code > 4)) goto __CPROVER_DUMP_L19; if(quiet == 0) fprintf(stderr, "Warning: setting constrained_parameters_flag = 0\n"); constrparms = 0; goto __CPROVER_DUMP_L24; __CPROVER_DUMP_L19: ; if(i == 0) goto __CPROVER_DUMP_L23; if(!((motion_data + (signed long int)i)->back_hor_f_code > 4)) goto __CPROVER_DUMP_L21; if(quiet == 0) fprintf(stderr, "Warning: setting constrained_parameters_flag = 0\n"); constrparms = 0; goto __CPROVER_DUMP_L24; __CPROVER_DUMP_L21: ; if(!((motion_data + (signed long int)i)->back_vert_f_code > 4)) goto __CPROVER_DUMP_L23; if(quiet == 0) fprintf(stderr, "Warning: setting constrained_parameters_flag = 0\n"); constrparms = 0; goto __CPROVER_DUMP_L24; __CPROVER_DUMP_L23: ; i = i + 1; } } } __CPROVER_DUMP_L24: ; if(!(mpeg1 == 0)) { if(prog_seq == 0) { if(quiet == 0) fprintf(stderr, "Warning: setting progressive_sequence = 1\n"); prog_seq = 1; } if(!(chroma_format == 1)) { if(quiet == 0) fprintf(stderr, "Warning: setting chroma_format = 1 (4:2:0)\n"); chroma_format = 1; } if(!(dc_prec == 0)) { if(quiet == 0) fprintf(stderr, "Warning: setting intra_dc_precision = 0\n"); dc_prec = 0; } i = 0; while(i < 3) { if(!(qscale_tab[(signed long int)i] == 0)) { if(quiet == 0) fprintf(stderr, "Warning: setting qscale_tab[%d] = 0\n", i); qscale_tab[(signed long int)i] = 0; } i = i + 1; } i = 0; while(i < 3) { if(!(intravlc_tab[(signed long int)i] == 0)) { if(quiet == 0) fprintf(stderr, "Warning: setting intravlc_tab[%d] = 0\n", i); intravlc_tab[(signed long int)i] = 0; } i = i + 1; } i = 0; while(i < 3) { if(!(altscan_tab[(signed long int)i] == 0)) { if(quiet == 0) fprintf(stderr, "Warning: setting altscan_tab[%d] = 0\n", i); altscan_tab[(signed long int)i] = 0; } i = i + 1; } } if(mpeg1 == 0) { if(!(constrparms == 0)) { if(quiet == 0) fprintf(stderr, "Warning: setting constrained_parameters_flag = 0\n"); constrparms = 0; } } if(!(prog_seq == 0)) { if(prog_frame == 0) { if(quiet == 0) fprintf(stderr, "Warning: setting progressive_frame = 1\n"); prog_frame = 1; } } if(!(prog_frame == 0)) { if(!(fieldpic == 0)) { if(quiet == 0) fprintf(stderr, "Warning: setting field_pictures = 0\n"); fieldpic = 0; } } if(prog_frame == 0) { if(!(repeatfirst == 0)) { if(quiet == 0) fprintf(stderr, "Warning: setting repeat_first_field = 0\n"); repeatfirst = 0; } } if(!(prog_frame == 0)) { i = 0; while(i < 3) { if(frame_pred_dct_tab[(signed long int)i] == 0) { if(quiet == 0) fprintf(stderr, "Warning: setting frame_pred_frame_dct[%d] = 1\n", i); frame_pred_dct_tab[(signed long int)i] = 1; } i = i + 1; } } if(!(prog_seq == 0)) { if(repeatfirst == 0) { if(!(topfirst == 0)) { if(quiet == 0) fprintf(stderr, "Warning: setting top_field_first = 0\n"); topfirst = 0; } } } i = 0; while(!(i >= M)) { if(!(-1 + (4 << (motion_data + (signed long int)i)->forw_hor_f_code) >= (motion_data + (signed long int)i)->sxf)) { if(quiet == 0) fprintf(stderr, "Warning: reducing forward horizontal search width to %d\n", (4 << (motion_data + (signed long int)i)->forw_hor_f_code) - 1); (motion_data + (signed long int)i)->sxf = (4 << (motion_data + (signed long int)i)->forw_hor_f_code) - 1; } if(!(-1 + (4 << (motion_data + (signed long int)i)->forw_vert_f_code) >= (motion_data + (signed long int)i)->syf)) { if(quiet == 0) fprintf(stderr, "Warning: reducing forward vertical search width to %d\n", (4 << (motion_data + (signed long int)i)->forw_vert_f_code) - 1); (motion_data + (signed long int)i)->syf = (4 << (motion_data + (signed long int)i)->forw_vert_f_code) - 1; } if(!(i == 0)) { if(!(-1 + (4 << (motion_data + (signed long int)i)->back_hor_f_code) >= (motion_data + (signed long int)i)->sxb)) { if(quiet == 0) fprintf(stderr, "Warning: reducing backward horizontal search width to %d\n", (4 << (motion_data + (signed long int)i)->back_hor_f_code) - 1); (motion_data + (signed long int)i)->sxb = (4 << (motion_data + (signed long int)i)->back_hor_f_code) - 1; } if(!(-1 + (4 << (motion_data + (signed long int)i)->back_vert_f_code) >= (motion_data + (signed long int)i)->syb)) { if(quiet == 0) fprintf(stderr, "Warning: reducing backward vertical search width to %d\n", (4 << (motion_data + (signed long int)i)->back_vert_f_code) - 1); (motion_data + (signed long int)i)->syb = (4 << (motion_data + (signed long int)i)->back_vert_f_code) - 1; } } i = i + 1; } } // c::readquantmat // file src/mpeg2enc.c line 565 static void readquantmat(void) { signed int i; signed int v; struct _IO_FILE$link10 *fd; if((signed int)iqname[0l] == 45) { load_iquant = 0; i = 0; while(i < 64) { intra_q[(signed long int)i] = default_intra_quantizer_matrix[(signed long int)i]; i = i + 1; } } else { load_iquant = 1; fd=fopen(iqname, "r"); if(fd == ((struct _IO_FILE$link10 *)NULL)) { sprintf(errortext, "Couldn't open quant matrix file %s", (const void *)iqname); error(errortext); } i = 0; while(i < 64) { fscanf(fd, "%d", &v); if(!(v < 1)) { if(v > 255) goto __CPROVER_DUMP_L6; } else { __CPROVER_DUMP_L6: ; error("invalid value in quant matrix"); } intra_q[(signed long int)i] = (unsigned char)v; i = i + 1; } fclose(fd); } if((signed int)niqname[0l] == 45) { load_niquant = 0; i = 0; while(i < 64) { inter_q[(signed long int)i] = (unsigned char)16; i = i + 1; } } else { load_niquant = 1; fd=fopen(niqname, "r"); if(fd == ((struct _IO_FILE$link10 *)NULL)) { sprintf(errortext, "Couldn't open quant matrix file %s", (const void *)niqname); error(errortext); } i = 0; while(i < 64) { fscanf(fd, "%d", &v); if(!(v < 1)) { if(v > 255) goto __CPROVER_DUMP_L15; } else { __CPROVER_DUMP_L15: ; error("invalid value in quant matrix"); } inter_q[(signed long int)i] = (unsigned char)v; i = i + 1; } fclose(fd); } } // c::realpath // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 37 char * realpath(const char * restrict __name, char * restrict __resolved) { char *return_value___realpath_alias$2; return_value___realpath_alias$2=__realpath_alias(__name, __resolved); return return_value___realpath_alias$2; } // c::snprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 61 signed int snprintf(char * restrict __s, unsigned long int __n, const char * restrict __fmt, ...) { void *return_value___builtin_va_arg_pack$1; return_value___builtin_va_arg_pack$1=__builtin_va_arg_pack(); signed int return_value___builtin___snprintf_chk$2; return_value___builtin___snprintf_chk$2=__builtin___snprintf_chk(__s, __n, 2 - 1, 18446744073709551615ul, __fmt, return_value___builtin_va_arg_pack$1); return return_value___builtin___snprintf_chk$2; } // c::sprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 31 signed int sprintf(char * restrict __s, const char * restrict __fmt, ...) { void *return_value___builtin_va_arg_pack$1; return_value___builtin_va_arg_pack$1=__builtin_va_arg_pack(); signed int return_value___builtin___sprintf_chk$2; return_value___builtin___sprintf_chk$2=__builtin___sprintf_chk(__s, 2 - 1, 18446744073709551615ul, __fmt, return_value___builtin_va_arg_pack$1); return return_value___builtin___sprintf_chk$2; } // c::stats // file src/stats.c line 161 void stats(void) { signed int i; signed int j; signed int k; signed int nmb; signed int mb_type; signed int n_skipped; signed int n_intra; signed int n_ncoded; signed int n_blocks; signed int n_interp; signed int n_forward; signed int n_backward; struct mbinfo *mbi; nmb = mb_width * mb_height2; n_backward = 0; n_forward = n_backward; n_interp = n_forward; n_blocks = n_interp; n_ncoded = n_blocks; n_intra = n_ncoded; n_skipped = n_intra; k = 0; while(!(k >= nmb)) { mbi = mbinfo + (signed long int)k; if(!(mbi->skipped == 0)) n_skipped = n_skipped + 1; else if(!((1 & mbi->mb_type) == 0)) n_intra = n_intra + 1; else if((2 & mbi->mb_type) == 0) n_ncoded = n_ncoded + 1; i = 0; while(!(i >= block_count)) { if(!((mbi->cbp & 1 << i) == 0)) n_blocks = n_blocks + 1; i = i + 1; } if(!((8 & mbi->mb_type) == 0)) { if(!((4 & mbi->mb_type) == 0)) n_interp = n_interp + 1; else n_forward = n_forward + 1; } else if(!((4 & mbi->mb_type) == 0)) n_backward = n_backward + 1; k = k + 1; } fprintf(statfile, "\npicture statistics:\n"); fprintf(statfile, " # of intra coded macroblocks: %4d (%.1f%%)\n", n_intra, (100.000000 * (double)n_intra) / (double)nmb); fprintf(statfile, " # of coded blocks: %4d (%.1f%%)\n", n_blocks, (100.000000 * (double)n_blocks) / (double)(block_count * nmb)); fprintf(statfile, " # of not coded macroblocks: %4d (%.1f%%)\n", n_ncoded, (100.000000 * (double)n_ncoded) / (double)nmb); fprintf(statfile, " # of skipped macroblocks: %4d (%.1f%%)\n", n_skipped, (100.000000 * (double)n_skipped) / (double)nmb); fprintf(statfile, " # of forw. pred. macroblocks: %4d (%.1f%%)\n", n_forward, (100.000000 * (double)n_forward) / (double)nmb); fprintf(statfile, " # of backw. pred. macroblocks: %4d (%.1f%%)\n", n_backward, (100.000000 * (double)n_backward) / (double)nmb); fprintf(statfile, " # of interpolated macroblocks: %4d (%.1f%%)\n", n_interp, (100.000000 * (double)n_interp) / (double)nmb); fprintf(statfile, "\nmacroblock_type map:\n"); k = 0; j = 0; signed int tmp_if_expr$1; while(!(j >= mb_height2)) { i = 0; while(!(i >= mb_width)) { mbi = mbinfo + (signed long int)k; mb_type = mbi->mb_type; if(!(mbi->skipped == 0)) fputc(83, statfile); else if(!((1 & mb_type) == 0)) fputc(73, statfile); else { if(!((12 & mb_type) == 8)) { if((12 & mb_type) == 4) goto __CPROVER_DUMP_L20; if((12 & mb_type) == 12) goto __CPROVER_DUMP_L21; } else { if(mbi->motion_type == 1) tmp_if_expr$1 = 102; else tmp_if_expr$1 = mbi->motion_type == 3 ? 112 : 70; fputc(tmp_if_expr$1, statfile); goto __CPROVER_DUMP_L23; __CPROVER_DUMP_L20: ; fputc(mbi->motion_type == 1 ? 98 : 66, statfile); goto __CPROVER_DUMP_L23; __CPROVER_DUMP_L21: ; fputc(mbi->motion_type == 1 ? 100 : 68, statfile); goto __CPROVER_DUMP_L23; } fputc(48, statfile); } __CPROVER_DUMP_L23: ; if(!((16 & mb_type) == 0)) fputc(81, statfile); else if(!((3 & mb_type) == 0)) fputc(32, statfile); else fputc(78, statfile); fputc(32, statfile); k = k + 1; i = i + 1; } fputc(10, statfile); j = j + 1; } fprintf(statfile, "\nmquant map:\n"); k = 0; j = 0; _Bool tmp_if_expr$2; while(!(j >= mb_height2)) { i = 0; while(!(i >= mb_width)) { if(i == 0) tmp_if_expr$2 = TRUE; else tmp_if_expr$2 = (mbinfo + (signed long int)k)->mquant != (mbinfo + (signed long int)(k - 1))->mquant ? TRUE : FALSE; if(tmp_if_expr$2) fprintf(statfile, "%3d", (mbinfo + (signed long int)k)->mquant); else fprintf(statfile, " "); k = k + 1; i = i + 1; } fputc(10, statfile); j = j + 1; } } // c::stpncpy // file /usr/include/x86_64-linux-gnu/bits/string3.h line 130 char * stpncpy(char *__dest, const char *__src, unsigned long int __n) { char *return_value___stpncpy_chk$1; if(FALSE) { __CPROVER_DUMP_L1: ; return_value___stpncpy_chk$1=__stpncpy_chk(__dest, __src, __n, 18446744073709551615ul); return return_value___stpncpy_chk$1; } char *return_value___stpncpy_alias$2; return_value___stpncpy_alias$2=__stpncpy_alias(__dest, __src, __n); return return_value___stpncpy_alias$2; } // c::strcat // file /usr/include/x86_64-linux-gnu/bits/string3.h line 140 char * strcat(char * restrict __dest, const char * restrict __src) { char *return_value___builtin___strcat_chk$1; return_value___builtin___strcat_chk$1=__builtin___strcat_chk(__dest, __src, 18446744073709551615ul); return return_value___builtin___strcat_chk$1; } // c::strcpy // file /usr/include/x86_64-linux-gnu/bits/string3.h line 102 char * strcpy(char * restrict __dest, const char * restrict __src) { char *return_value___builtin___strcpy_chk$1; return_value___builtin___strcpy_chk$1=__builtin___strcpy_chk(__dest, __src, 18446744073709551615ul); return return_value___builtin___strcpy_chk$1; } // c::strncat // file /usr/include/x86_64-linux-gnu/bits/string3.h line 147 char * strncat(char * restrict __dest, const char * restrict __src, unsigned long int __len) { char *return_value___builtin___strncat_chk$1; return_value___builtin___strncat_chk$1=__builtin___strncat_chk(__dest, __src, (unsigned int)__len, 18446744073709551615ul); return return_value___builtin___strncat_chk$1; } // c::strncpy // file /usr/include/x86_64-linux-gnu/bits/string3.h line 117 char * strncpy(char * restrict __dest, const char * restrict __src, unsigned long int __len) { char *return_value___builtin___strncpy_chk$1; return_value___builtin___strncpy_chk$1=__builtin___strncpy_chk(__dest, __src, (unsigned int)__len, 18446744073709551615ul); return return_value___builtin___strncpy_chk$1; } // c::sub_pred // file src/transfrm.c line 451 static void sub_pred(unsigned char *pred, unsigned char *cur, signed int lx, signed short int *blk) { signed int i; signed int j = 0; while(j < 4) { i = 0; while(i < 8) { blk[(signed long int)i] = (signed short int)((signed int)cur[(signed long int)i] - (signed int)pred[(signed long int)i]); i = i + 1; } blk = blk + (signed long int)8; cur = cur + (signed long int)lx; pred = pred + (signed long int)lx; i = 0; while(i < 8) { blk[(signed long int)i] = (signed short int)((signed int)cur[(signed long int)i] - (signed int)pred[(signed long int)i]); i = i + 1; } blk = blk + (signed long int)8; cur = cur + (signed long int)lx; pred = pred + (signed long int)lx; j = j + 1; } } // c::thread_work // file src/putseq.c line 93 void * thread_work(void *threadargs) { struct thread_data *my_data = (struct thread_data *)threadargs; struct Data_Args *mda = my_data->data_ptr; signed int start_height = my_data->s_height; signed int end_height = my_data->e_height; struct mbinfo *mbi = mda->mbi; ptmotion_estimation(mda->oldorg, mda->neworg, mda->oldref, mda->newref, mda->cur, mda->curref, mda->sxf, mda->syf, mda->sxb, mda->syb, mbi, mda->secondfield, mda->ipflag, start_height, end_height); ptpredict(mda->reff, mda->refb, mda->pd_cur, mda->secondfield, mbi, start_height, end_height); ptdct_type_estimation(mda->pred, mda->dte_cur, mbi, start_height, end_height); pttransform(mda->pd_cur, mda->trfm_cur, mbi, (signed short int (*)[64l])mda->blocks, start_height, end_height); ptquant(my_data->s_mbh, my_data->e_mbh); ptputpict(mda->dte_cur, my_data->pp_smbh, my_data->pp_embh, mda->prev_mquant, my_data->id); ptiquant(my_data->s_mbh, my_data->e_mbh); ptitransform(mda->pd_cur, mda->itrfm_cur, mbi, (signed short int (*)[64l])mda->blocks, start_height, end_height); return NULL; } // c::thread_work_dist // file src/putseq.c line 131 void thread_work_dist() { signed int tmp; signed int tmp1; signed int rc; signed int t; signed int status; signed int excess; signed int chunk; union pthread_attr_t attr; unsigned long int thread[1l]; pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr, 0); chunk = height2 / 2; excess = (height2 / 16) % 2; t = 0; while(t < 2) { if(t == 0) { thread_data_array[(signed long int)t].s_height = 0; thread_data_array[(signed long int)t].s_mbh = 0; thread_data_array[(signed long int)t].pp_smbh = 0; tmp = chunk; } else { thread_data_array[(signed long int)t].s_height = thread_data_array[(signed long int)(t - 1)].e_height; thread_data_array[(signed long int)t].s_mbh = thread_data_array[(signed long int)(t - 1)].e_mbh; thread_data_array[(signed long int)t].pp_smbh = thread_data_array[(signed long int)(t - 1)].pp_embh; tmp = thread_data_array[(signed long int)(t - 1)].e_height + chunk; } if(!(excess == 0)) { tmp = (tmp + 16) - tmp % 16; excess = excess - 1; } else tmp = tmp - tmp % 16; tmp1 = tmp / 16; thread_data_array[(signed long int)t].e_height = tmp; thread_data_array[(signed long int)t].pp_embh = tmp1; thread_data_array[(signed long int)t].e_mbh = tmp1 * mb_width; thread_data_array[(signed long int)t].id = t; thread_data_array[(signed long int)t].data_ptr = &data_args; if(t < 1) { rc=pthread_create(&thread[(signed long int)t], &attr, thread_work, (void *)&thread_data_array[(signed long int)t]); if(!(rc == 0)) { printf("ERROR; return code from pthread_create() is %d\n", rc); exit(-1); } } t = t + 1; } pthread_attr_destroy(&attr); putpicthdr(); if(mpeg1 == 0) putpictcodext(); alignbits(); thread_work((void *)&thread_data_array[(signed long int)(2 - 1)]); t = 0; while(t < 1) { rc=pthread_join(thread[(signed long int)t], (void **)&status); if(!(rc == 0)) { printf("ERROR; return code from pthread_join() is %d\n", rc); exit(-1); } flushbits(t); t = t + 1; } flushbits(2 - 1); } // c::transform // file src/transfrm.c line 93 void transform(unsigned char **pred, unsigned char **cur, struct mbinfo *mbi, signed short int (*blocks)[64l]) { signed int i; signed int j; signed int i1; signed int j1; signed int k; signed int n; signed int cc; signed int offs; signed int lx; k = 0; j = 0; _Bool tmp_if_expr$1; _Bool tmp_if_expr$2; while(!(j >= height2)) { i = 0; while(!(i >= width)) { n = 0; while(!(n >= block_count)) { cc = n < 4 ? 0 : (n & 1) + 1; if(cc == 0) { if(pict_struct == 3) tmp_if_expr$1 = (mbi + (signed long int)k)->dct_type != 0 ? TRUE : FALSE; else tmp_if_expr$1 = FALSE; if(tmp_if_expr$1) { offs = i + ((n & 1) << 3) + width * (j + ((n & 2) >> 1)); lx = width << 1; } else { offs = i + ((n & 1) << 3) + width2 * (j + ((n & 2) << 2)); lx = width2; } if(pict_struct == 2) offs = offs + width; } else { i1 = chroma_format == 3 ? i : i >> 1; j1 = chroma_format != 1 ? j : j >> 1; if(pict_struct == 3) tmp_if_expr$2 = (mbi + (signed long int)k)->dct_type != 0 ? TRUE : FALSE; else tmp_if_expr$2 = FALSE; if(!(chroma_format == 1) && tmp_if_expr$2) { offs = i1 + (n & 8) + chrom_width * (j1 + ((n & 2) >> 1)); lx = chrom_width << 1; } else { offs = i1 + (n & 8) + chrom_width2 * (j1 + ((n & 2) << 2)); lx = chrom_width2; } if(pict_struct == 2) offs = offs + chrom_width; } sub_pred(pred[(signed long int)cc] + (signed long int)offs, cur[(signed long int)cc] + (signed long int)offs, lx, blocks[(signed long int)(k * block_count + n)]); fdct(blocks[(signed long int)(k * block_count + n)]); n = n + 1; } k = k + 1; i = i + 16; } j = j + 16; } } // c::var_sblk // file src/ratectl.c line 385 static double var_sblk(unsigned char *p, signed int lx) { signed int i; signed int j; unsigned int v; unsigned int s; unsigned int s2 = (unsigned int)0; s = s2; j = 0; unsigned char *tmp_post$1; while(j < 8) { i = 0; while(i < 8) { tmp_post$1 = p; p = p + 1l; v = (unsigned int)*tmp_post$1; s = s + v; s2 = s2 + v * v; i = i + 1; } p = p + (signed long int)(lx - 8); j = j + 1; } return (double)s2 / 64.000000 - ((double)s / 64.000000) * ((double)s / 64.000000); } // c::variance // file src/motion.c line 2480 static signed int variance(unsigned char *p, signed int lx) { signed int i; signed int j; unsigned int v; unsigned int s; unsigned int s2; unsigned int sa; unsigned int s2a = (unsigned int)0; sa = s2a; s2 = (unsigned int)0; s = s2; j = 0; unsigned char *tmp_post$1; while(j < 16) { i = 0; while(i < 16) { tmp_post$1 = p; p = p + 1l; v = (unsigned int)*tmp_post$1; s = s + v; s2 = s2 + v * v; i = i + 1; } p = p + (signed long int)(lx - 16); j = j + 1; } return (signed int)(s2 - (s * s) / (unsigned int)256); } // c::vbv_end_of_picture // file src/global.h line 218 void vbv_end_of_picture(void) { bitcnt_EOP=bitcount(); bitcnt_EOP = bitcnt_EOP + 7 & ~7; } // c::vdprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 150 signed int vdprintf(signed int __fd, const char * restrict __fmt, void **__ap) { signed int return_value___vdprintf_chk$1; return_value___vdprintf_chk$1=__vdprintf_chk(__fd, 2 - 1, __fmt, __ap); return return_value___vdprintf_chk$1; } // c::vfprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 124 signed int vfprintf(struct _IO_FILE * restrict __stream, const char * restrict __fmt, void **__ap) { signed int return_value___vfprintf_chk$1; return_value___vfprintf_chk$1=__vfprintf_chk(__stream, 2 - 1, __fmt, __ap); return return_value___vfprintf_chk$1; } // c::vprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 114 signed int vprintf(const char * restrict __fmt, void **__ap) { signed int return_value___vfprintf_chk$1; return_value___vfprintf_chk$1=__vfprintf_chk(stdout, 2 - 1, __fmt, __ap); return return_value___vfprintf_chk$1; } // c::vsnprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 74 signed int vsnprintf(char * restrict __s, unsigned long int __n, const char * restrict __fmt, void **__ap) { signed int return_value___builtin___vsnprintf_chk$1; return_value___builtin___vsnprintf_chk$1=__builtin___vsnprintf_chk(__s, __n, 2 - 1, 18446744073709551615ul, __fmt, __ap); return return_value___builtin___vsnprintf_chk$1; } // c::vsprintf // file /usr/include/x86_64-linux-gnu/bits/stdio2.h line 43 signed int vsprintf(char * restrict __s, const char * restrict __fmt, void **__ap) { signed int return_value___builtin___vsprintf_chk$1; return_value___builtin___vsprintf_chk$1=__builtin___vsprintf_chk(__s, 2 - 1, 18446744073709551615ul, __fmt, __ap); return return_value___builtin___vsprintf_chk$1; } // c::wcstombs // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 144 unsigned long int wcstombs(char * restrict __dst, const signed int * restrict __src, unsigned long int __len) { unsigned long int return_value___wcstombs_chk$1; unsigned long int return_value___wcstombs_chk_warn$2; unsigned long int return_value___wcstombs_alias$3; return_value___wcstombs_alias$3=__wcstombs_alias(__dst, __src, __len); return return_value___wcstombs_alias$3; } // c::wctomb // file /usr/include/x86_64-linux-gnu/bits/stdlib.h line 83 signed int wctomb(char *__s, signed int __wchar) { signed int return_value___wctomb_chk$1; signed int return_value___wctomb_alias$2; return_value___wctomb_alias$2=__wctomb_alias(__s, __wchar); return return_value___wctomb_alias$2; } // c::write_buf // file src/putbits.c line 105 void write_buf(unsigned char val, signed int id) { if(buf_ptr[(signed long int)id] == -1 + cur_size[(signed long int)id]) { unsigned char *tmp; cur_size[(signed long int)id] = cur_size[(signed long int)id] << 1; void *return_value_malloc$1; return_value_malloc$1=malloc((unsigned long int)cur_size[(signed long int)id] * 1ul /*[[unsigned char]]*/); tmp = (unsigned char *)return_value_malloc$1; memcpy((void *)tmp, (const void *)outfrmbuf[(signed long int)id], (unsigned long int)(cur_size[(signed long int)id] >> 1)); free((void *)outfrmbuf[(signed long int)id]); outfrmbuf[(signed long int)id] = tmp; } signed int tmp_post$2 = buf_ptr[(signed long int)id]; buf_ptr[(signed long int)id] = buf_ptr[(signed long int)id] + 1; outfrmbuf[(signed long int)id][(signed long int)tmp_post$2] = val; } // c::writeframe // file src/global.h line 245 void writeframe(char *fname, unsigned char **frame) { signed int chrom_hsize; signed int chrom_vsize; char name[128l]; struct _IO_FILE$link12 *fd; chrom_hsize = chroma_format == 3 ? horizontal_size : horizontal_size >> 1; chrom_vsize = chroma_format != 1 ? vertical_size : vertical_size >> 1; if((signed int)*fname == 45) return; sprintf(name, "%s.Y", fname); fd=fopen(name, "wb"); if(fd == ((struct _IO_FILE$link12 *)NULL)) { sprintf(errortext, "Couldn't create %s\n", (const void *)name); error(errortext); } fwrite((const void *)frame[(signed long int)0], (unsigned long int)1, (unsigned long int)(horizontal_size * vertical_size), fd); fclose(fd); sprintf(name, "%s.U", fname); fd=fopen(name, "wb"); if(fd == ((struct _IO_FILE$link12 *)NULL)) { sprintf(errortext, "Couldn't create %s\n", (const void *)name); error(errortext); } fwrite((const void *)frame[(signed long int)1], (unsigned long int)1, (unsigned long int)(chrom_hsize * chrom_vsize), fd); fclose(fd); sprintf(name, "%s.V", fname); fd=fopen(name, "wb"); if(fd == ((struct _IO_FILE$link12 *)NULL)) { sprintf(errortext, "Couldn't create %s\n", (const void *)name); error(errortext); } fwrite((const void *)frame[(signed long int)2], (unsigned long int)1, (unsigned long int)(chrom_hsize * chrom_vsize), fd); fclose(fd); }
36.714748
6,508
0.612847
b1451a9495ccc04dd49c77ab42ecf4a1605fa265
24,886
h
C
ortools/sat/cuts.h
stradivari96/or-tools
338166b8d4428fb571cec1811a0d2617a05b4d2a
[ "Apache-2.0" ]
null
null
null
ortools/sat/cuts.h
stradivari96/or-tools
338166b8d4428fb571cec1811a0d2617a05b4d2a
[ "Apache-2.0" ]
null
null
null
ortools/sat/cuts.h
stradivari96/or-tools
338166b8d4428fb571cec1811a0d2617a05b4d2a
[ "Apache-2.0" ]
null
null
null
// Copyright 2010-2021 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef OR_TOOLS_SAT_CUTS_H_ #define OR_TOOLS_SAT_CUTS_H_ #include <utility> #include <vector> #include "ortools/base/int_type.h" #include "ortools/base/strong_vector.h" #include "ortools/sat/implied_bounds.h" #include "ortools/sat/integer.h" #include "ortools/sat/intervals.h" #include "ortools/sat/linear_constraint.h" #include "ortools/sat/linear_constraint_manager.h" #include "ortools/sat/model.h" #include "ortools/util/time_limit.h" namespace operations_research { namespace sat { // A "cut" generator on a set of IntegerVariable. // // The generate_cuts() function will usually be called with the current LP // optimal solution (but should work for any lp_values). Note that a // CutGenerator should: // - Only look at the lp_values positions that corresponds to its 'vars' or // their negation. // - Only add cuts in term of the same variables or their negation. struct CutGenerator { std::vector<IntegerVariable> vars; std::function<void( const absl::StrongVector<IntegerVariable, double>& lp_values, LinearConstraintManager* manager)> generate_cuts; }; // Given an upper-bounded linear relation (sum terms <= ub), this algorithm // inspects the integer variable appearing in the sum and try to replace each of // them by a tight lower bound (>= coeff * binary + lb) using the implied bound // repository. By tight, we mean that it will take the same value under the // current LP solution. // // We use a class to reuse memory of the tmp terms. class ImpliedBoundsProcessor { public: // We will only replace IntegerVariable appearing in lp_vars_. ImpliedBoundsProcessor(absl::Span<const IntegerVariable> lp_vars_, IntegerTrail* integer_trail, ImpliedBounds* implied_bounds) : lp_vars_(lp_vars_.begin(), lp_vars_.end()), integer_trail_(integer_trail), implied_bounds_(implied_bounds) {} // See if some of the implied bounds equation are violated and add them to // the IB cut pool if it is the case. // // Important: This must be called before we process any constraints with a // different lp_values or level zero bounds. void RecomputeCacheAndSeparateSomeImpliedBoundCuts( const absl::StrongVector<IntegerVariable, double>& lp_values); // Processes and updates the given cut. void ProcessUpperBoundedConstraint( const absl::StrongVector<IntegerVariable, double>& lp_values, LinearConstraint* cut); // Same as ProcessUpperBoundedConstraint() but instead of just using // var >= coeff * binary + lb we use var == slack + coeff * binary + lb where // slack is a new temporary variable that we create. // // The new slack will be such that slack_infos[(slack - first_slack) / 2] // contains its definition so that we can properly handle it in the cut // generation and substitute it back later. struct SlackInfo { // This slack is equal to sum of terms + offset. std::vector<std::pair<IntegerVariable, IntegerValue>> terms; IntegerValue offset; // The slack bounds and current lp_value. IntegerValue lb = IntegerValue(0); IntegerValue ub = IntegerValue(0); double lp_value = 0.0; }; void ProcessUpperBoundedConstraintWithSlackCreation( bool substitute_only_inner_variables, IntegerVariable first_slack, const absl::StrongVector<IntegerVariable, double>& lp_values, LinearConstraint* cut, std::vector<SlackInfo>* slack_infos); // Only used for debugging. // // Substituting back the slack created by the function above should give // exactly the same cut as the original one. bool DebugSlack(IntegerVariable first_slack, const LinearConstraint& initial_cut, const LinearConstraint& cut, const std::vector<SlackInfo>& info); // Add a new variable that could be used in the new cuts. // Note that the cache must be computed to take this into account. void AddLpVariable(IntegerVariable var) { lp_vars_.insert(var); } // Once RecomputeCacheAndSeparateSomeImpliedBoundCuts() has been called, // we can get the best implied bound for each variables. struct BestImpliedBoundInfo { double bool_lp_value = 0.0; double slack_lp_value = std::numeric_limits<double>::infinity(); bool is_positive; IntegerValue bound_diff; IntegerVariable bool_var = kNoIntegerVariable; }; BestImpliedBoundInfo GetCachedImpliedBoundInfo(IntegerVariable var); // As we compute the best implied bounds for each variable, we add violated // cuts here. TopNCuts& IbCutPool() { return ib_cut_pool_; } private: BestImpliedBoundInfo ComputeBestImpliedBound( IntegerVariable var, const absl::StrongVector<IntegerVariable, double>& lp_values); absl::flat_hash_set<IntegerVariable> lp_vars_; mutable absl::flat_hash_map<IntegerVariable, BestImpliedBoundInfo> cache_; TopNCuts ib_cut_pool_ = TopNCuts(50); // Data from the constructor. IntegerTrail* integer_trail_; ImpliedBounds* implied_bounds_; // Temporary memory used by ProcessUpperBoundedConstraint(). mutable std::vector<std::pair<IntegerVariable, IntegerValue>> tmp_terms_; }; // Visible for testing. Returns a function f on integers such that: // - f is non-decreasing. // - f is super-additive: f(a) + f(b) <= f(a + b) // - 1 <= f(divisor) <= max_scaling // - For all x, f(x * divisor) = x * f(divisor) // - For all x, f(x * divisor + remainder) = x * f(divisor) // // Preconditions: // - 0 <= remainder < divisor. // - 1 <= max_scaling. // // This is used in IntegerRoundingCut() and is responsible for "strengthening" // the cut. Just taking f(x) = x / divisor result in the non-strengthened cut // and using any function that stricly dominate this one is better. // // Algorithm: // - We first scale by a factor t so that rhs_remainder >= divisor / 2. // - Then, if max_scaling == 2, we use the function described // in "Strenghtening Chvatal-Gomory cuts and Gomory fractional cuts", Adam N. // Letchfrod, Andrea Lodi. // - Otherwise, we use a generalization of this which is a discretized version // of the classical MIR rounding function that only take the value of the // form "an_integer / max_scaling". As max_scaling goes to infinity, this // converge to the real-valued MIR function. // // Note that for each value of max_scaling we will get a different function. // And that there is no dominance relation between any of these functions. So // it could be nice to try to generate a cut using different values of // max_scaling. IntegerValue GetFactorT(IntegerValue rhs_remainder, IntegerValue divisor, IntegerValue max_t); std::function<IntegerValue(IntegerValue)> GetSuperAdditiveRoundingFunction( IntegerValue rhs_remainder, IntegerValue divisor, IntegerValue t, IntegerValue max_scaling); // Given an upper bounded linear constraint, this function tries to transform it // to a valid cut that violate the given LP solution using integer rounding. // Note that the returned cut might not always violate the LP solution, in which // case it can be discarded. // // What this does is basically take the integer division of the constraint by an // integer. If the coefficients where doubles, this would be the same as scaling // the constraint and then rounding. We choose the coefficient of the most // fractional variable (rescaled by its coefficient) as the divisor, but there // are other possible alternatives. // // Note that if the constraint is tight under the given lp solution, and if // there is a unique variable not at one of its bounds and fractional, then we // are guaranteed to generate a cut that violate the current LP solution. This // should be the case for Chvatal-Gomory base constraints modulo our loss of // precision while doing exact integer computations. // // Precondition: // - We assumes that the given initial constraint is tight using the given lp // values. This could be relaxed, but for now it should always be the case, so // we log a message and abort if not, to ease debugging. // - The IntegerVariable of the cuts are not used here. We assumes that the // first three vectors are in one to one correspondence with the initial order // of the variable in the cut. // // TODO(user): There is a bunch of heuristic involved here, and we could spend // more effort tunning them. In particular, one can try many heuristics and keep // the best looking cut (or more than one). This is not on the critical code // path, so we can spend more effort in finding good cuts. struct RoundingOptions { IntegerValue max_scaling = IntegerValue(60); }; class IntegerRoundingCutHelper { public: void ComputeCut(RoundingOptions options, const std::vector<double>& lp_values, const std::vector<IntegerValue>& lower_bounds, const std::vector<IntegerValue>& upper_bounds, ImpliedBoundsProcessor* ib_processor, LinearConstraint* cut); // Returns the number of implied bound lifted Booleans in the last // ComputeCut() call. Useful for investigation. int NumLiftedBooleans() const { return num_lifted_booleans_; } private: // The helper is just here to reuse the memory for these vectors. std::vector<int> relevant_indices_; std::vector<double> relevant_lp_values_; std::vector<IntegerValue> relevant_coeffs_; std::vector<IntegerValue> relevant_bound_diffs_; std::vector<IntegerValue> divisors_; std::vector<std::pair<int, IntegerValue>> adjusted_coeffs_; std::vector<IntegerValue> remainders_; std::vector<bool> change_sign_at_postprocessing_; std::vector<IntegerValue> rs_; std::vector<IntegerValue> best_rs_; int num_lifted_booleans_ = 0; std::vector<std::pair<IntegerVariable, IntegerValue>> tmp_terms_; }; // Helper to find knapsack or flow cover cuts (not yet implemented). class CoverCutHelper { public: // Try to find a cut with a knapsack heuristic. // If this returns true, you can get the cut via cut(). bool TrySimpleKnapsack(const LinearConstraint base_ct, const std::vector<double>& lp_values, const std::vector<IntegerValue>& lower_bounds, const std::vector<IntegerValue>& upper_bounds); // If successful, info about the last generated cut. LinearConstraint* mutable_cut() { return &cut_; } const LinearConstraint& cut() const { return cut_; } // Single line of text that we append to the cut log line. const std::string Info() { return absl::StrCat("lift=", num_lifting_); } private: struct Term { int index; double dist_to_max_value; IntegerValue positive_coeff; // abs(coeff in original constraint). IntegerValue diff; }; std::vector<Term> terms_; std::vector<bool> in_cut_; LinearConstraint cut_; int num_lifting_; }; // If a variable is away from its upper bound by more than value 1.0, then it // cannot be part of a cover that will violate the lp solution. This method // returns a reduced constraint by removing such variables from the given // constraint. LinearConstraint GetPreprocessedLinearConstraint( const LinearConstraint& constraint, const absl::StrongVector<IntegerVariable, double>& lp_values, const IntegerTrail& integer_trail); // Returns true if sum of all the variables in the given constraint is less than // or equal to constraint upper bound. This method assumes that all the // coefficients are non negative. bool ConstraintIsTriviallyTrue(const LinearConstraint& constraint, const IntegerTrail& integer_trail); // If the left variables in lp solution satisfies following inequality, we prove // that there does not exist any knapsack cut which is violated by the solution. // Let |Cmin| = smallest possible cover size. // Let S = smallest (var_ub - lp_values[var]) first |Cmin| variables. // Let cut lower bound = sum_(var in S)(var_ub - lp_values[var]) // For any cover, // If cut lower bound >= 1 // ==> sum_(var in S)(var_ub - lp_values[var]) >= 1 // ==> sum_(var in cover)(var_ub - lp_values[var]) >= 1 // ==> The solution already satisfies cover. Since this is true for all covers, // this method returns false in such cases. // This method assumes that the constraint is preprocessed and has only non // negative coefficients. bool CanBeFilteredUsingCutLowerBound( const LinearConstraint& preprocessed_constraint, const absl::StrongVector<IntegerVariable, double>& lp_values, const IntegerTrail& integer_trail); // Struct to help compute upper bound for knapsack instance. struct KnapsackItem { double profit; double weight; bool operator>(const KnapsackItem& other) const { return profit * other.weight > other.profit * weight; } }; // Gets upper bound on profit for knapsack instance by solving the linear // relaxation. double GetKnapsackUpperBound(std::vector<KnapsackItem> items, double capacity); // Returns true if the linear relaxation upper bound for the knapsack instance // shows that this constraint cannot be used to form a cut. This method assumes // that all the coefficients are non negative. bool CanBeFilteredUsingKnapsackUpperBound( const LinearConstraint& constraint, const absl::StrongVector<IntegerVariable, double>& lp_values, const IntegerTrail& integer_trail); // Returns true if the given constraint passes all the filters described above. // This method assumes that the constraint is preprocessed and has only non // negative coefficients. bool CanFormValidKnapsackCover( const LinearConstraint& preprocessed_constraint, const absl::StrongVector<IntegerVariable, double>& lp_values, const IntegerTrail& integer_trail); // Converts the given constraint into canonical knapsack form (described // below) and adds it to 'knapsack_constraints'. // Canonical knapsack form: // - Constraint has finite upper bound. // - All coefficients are positive. // For constraint with finite lower bound, this method also adds the negation of // the given constraint after converting it to canonical knapsack form. void ConvertToKnapsackForm(const LinearConstraint& constraint, std::vector<LinearConstraint>* knapsack_constraints, IntegerTrail* integer_trail); // Returns true if the cut is lifted. Lifting procedure is described below. // // First we decide a lifting sequence for the binary variables which are not // already in cut. We lift the cut for each lifting candidate one by one. // // Given the original constraint where the lifting candidate is fixed to one, we // compute the maximum value the cut can take and still be feasible using a // knapsack problem. We can then lift the variable in the cut using the // difference between the cut upper bound and this maximum value. bool LiftKnapsackCut( const LinearConstraint& constraint, const absl::StrongVector<IntegerVariable, double>& lp_values, const std::vector<IntegerValue>& cut_vars_original_coefficients, const IntegerTrail& integer_trail, TimeLimit* time_limit, LinearConstraint* cut); // A cut generator that creates knpasack cover cuts. // // For a constraint of type // \sum_{i=1..n}(a_i * x_i) <= b // where x_i are integer variables with upper bound u_i, a cover of size k is a // subset C of {1 , .. , n} such that \sum_{c \in C}(a_c * u_c) > b. // // A knapsack cover cut is a constraint of the form // \sum_{c \in C}(u_c - x_c) >= 1 // which is equivalent to \sum_{c \in C}(x_c) <= \sum_{c \in C}(u_c) - 1. // In other words, in a feasible solution, at least some of the variables do // not take their maximum value. // // If all x_i are binary variables then the cover cut becomes // \sum_{c \in C}(x_c) <= |C| - 1. // // The major difficulty for generating Knapsack cover cuts is finding a minimal // cover set C that cut a given floating point solution. There are many ways to // heuristically generate the cover but the following method that uses a // solution of the LP relaxation of the constraint works the best. // // Look at a given linear relaxation solution for the integer problem x' // and try to solve the following knapsack problem: // Minimize \sum_{i=1..n}(z_i * (u_i - x_i')), // such that \sum_{i=1..n}(a_i * u_i * z_i) > b, // where z_i is a binary decision variable and x_i' are values of the variables // in the given relaxation solution x'. If the objective of the optimal solution // of this problem is less than 1, this algorithm does not generate any cuts. // Otherwise, it adds a knapsack cover cut in the form // \sum_{i=1..n}(z_i' * x_i) <= cb, // where z_i' is the value of z_i in the optimal solution of the above // problem and cb is the upper bound for the cut constraint. Note that the above // problem can be converted into a standard kanpsack form by replacing z_i by 1 // - y_i. In that case the problem becomes // Maximize \sum_{i=1..n}((u_i - x_i') * (y_i - 1)), // such that // \sum_{i=1..n}(a_i * u_i * y_i) <= \sum_{i=1..n}(a_i * u_i) - b - 1. // // Solving this knapsack instance would help us find the smallest cover with // maximum LP violation. // // Cut strengthning: // Let lambda = \sum_{c \in C}(a_c * u_c) - b and max_coeff = \max_{c // \in C}(a_c), then cut can be strengthened as // \sum_{c \in C}(u_c - x_c) >= ceil(lambda / max_coeff) // // For further information about knapsack cover cuts see // A. Atamtürk, Cover and Pack Inequalities for (Mixed) Integer Programming // Annals of Operations Research Volume 139, Issue 1 , pp 21-38, 2005. // TODO(user): Implement cut lifting. CutGenerator CreateKnapsackCoverCutGenerator( const std::vector<LinearConstraint>& base_constraints, const std::vector<IntegerVariable>& vars, Model* model); // A cut generator for z = x * y (x and y >= 0). CutGenerator CreatePositiveMultiplicationCutGenerator(IntegerVariable z, IntegerVariable x, IntegerVariable y, Model* model); // A cut generator for y = x ^ 2 (x >= 0). // It will dynamically add a linear inequality to push y closer to the parabola. CutGenerator CreateSquareCutGenerator(IntegerVariable y, IntegerVariable x, Model* model); // A cut generator for all_diff(xi). Let the united domain of all xi be D. Sum // of any k-sized subset of xi need to be greater or equal to the sum of // smallest k values in D and lesser or equal to the sum of largest k values in // D. The cut generator first sorts the variables based on LP values and adds // cuts of the form described above if they are violated by lp solution. Note // that all the fixed variables are ignored while generating cuts. CutGenerator CreateAllDifferentCutGenerator( const std::vector<IntegerVariable>& vars, Model* model); // Consider the Lin Max constraint with d expressions and n variables in the // form: target = max {exprs[k] = Sum (wki * xi + bk)}. k in {1,..,d}. // Li = lower bound of xi // Ui = upper bound of xi. // Let zk be in {0,1} for all k in {1,..,d}. // The target = exprs[k] when zk = 1. // // The following is a valid linearization for Lin Max. // target >= exprs[k], for all k in {1,..,d} // target <= Sum (wli * xi) + Sum((Nlk + bk) * zk), for all l in {1,..,d} // Where Nlk is a large number defined as: // Nlk = Sum (max((wki - wli)*Li, (wki - wli)*Ui)) // = Sum (max corner difference for variable i, target expr l, max expr k) // // Consider a partition of variables xi into set {1,..,d} as I. // i.e. I(i) = j means xi is mapped to jth index. // The following inequality is valid and sharp cut for the lin max constraint // described above. // // target <= Sum(i=1..n)(wI(i)i * xi + Sum(k=1..d)(MPlusCoefficient_ki * zk)) // + Sum(k=1..d)(bk * zk) , // Where MPlusCoefficient_ki = max((wki - wI(i)i) * Li, // (wki - wI(i)i) * Ui) // = max corner difference for variable i, // target expr I(i), max expr k. // // For detailed proof of validity, refer // Reference: "Strong mixed-integer programming formulations for trained neural // networks" by Ross Anderson et. (https://arxiv.org/pdf/1811.01988.pdf). // // In the cut generator, we compute the most violated partition I by computing // the rhs value (wI(i)i * lp_value(xi) + Sum(k=1..d)(MPlusCoefficient_ki * zk)) // for each variable for each partition index. We choose the partition index // that gives lowest rhs value for a given variable. // // Note: This cut generator requires all expressions to contain only positive // vars. CutGenerator CreateLinMaxCutGenerator( const IntegerVariable target, const std::vector<LinearExpression>& exprs, const std::vector<IntegerVariable>& z_vars, Model* model); // For a given set of intervals and demands, we compute the maximum energy of // each task and make sure it is less than the span of the intervals * its // capacity. // // If an interval is optional, it contributes // min_demand * min_size * presence_literal // amount of total energy. // // If an interval is performed, it contributes either min_demand * size or // demand * min_size. We choose the most violated formulation. // // The maximum energy is capacity * span of intervals at level 0. CutGenerator CreateCumulativeCutGenerator( const std::vector<IntervalVariable>& intervals, const IntegerVariable capacity, const std::vector<IntegerVariable>& demands, Model* model); // For a given set of intervals and demands, we first compute the mandatory part // of the interval as [start_max , end_min]. We use this to calculate mandatory // demands for each start_max time points for eligible intervals. // Since the sum of these mandatory demands must be smaller or equal to the // capacity, we create a cut representing that. // // If an interval is optional, it contributes min_demand * presence_literal // amount of demand to the mandatory demands sum. So the final cut is generated // as follows: // sum(demands of always present intervals) // + sum(presence_literal * min_of_demand) <= capacity. CutGenerator CreateCumulativeOverlappingCutGenerator( const std::vector<IntervalVariable>& intervals, const IntegerVariable capacity, const std::vector<IntegerVariable>& demands, Model* model); // Completion time cuts for the cumulative constraint. It is a simple relaxation // where we replace a cumulative task with demand k and duration d by a // no_overlap task with duration d * k / capacity_max. CutGenerator CreateCumulativeCompletionTimeCutGenerator( const std::vector<IntervalVariable>& intervals, const IntegerVariable capacity, const std::vector<IntegerVariable>& demands, Model* model); // For a given set of intervals, we first compute the min and max of all // intervals. Then we create a cut that indicates that all intervals must fit // in that span. // // If an interval is optional, it contributes min_size * presence_literal // amount of demand to the mandatory demands sum. So the final cut is generated // as follows: // sum(sizes of always present intervals) // + sum(presence_literal * min_of_size) <= span of all intervals. CutGenerator CreateNoOverlapEnergyCutGenerator( const std::vector<IntervalVariable>& intervals, Model* model); // For a given set of intervals in a no_overlap constraint, we detect violated // mandatory precedences and create a cut for these. CutGenerator CreateNoOverlapPrecedenceCutGenerator( const std::vector<IntervalVariable>& intervals, Model* model); // For a given set of intervals in a no_overlap constraint, we detect violated // area based cuts from Queyranne 93 [see note in the code] and create a cut for // these. CutGenerator CreateNoOverlapCompletionTimeCutGenerator( const std::vector<IntervalVariable>& intervals, Model* model); // Extracts the variables that have a Literal view from base variables and // create a generator that will returns constraint of the form "at_most_one" // between such literals. CutGenerator CreateCliqueCutGenerator( const std::vector<IntegerVariable>& base_variables, Model* model); } // namespace sat } // namespace operations_research #endif // OR_TOOLS_SAT_CUTS_H_
45.165154
80
0.722896
7f3af0907b5b49074d3faec1a4a433c848c3551e
8,764
c
C
src/lib/ecore_file/ecore_file_monitor_win32.c
OpenInkpot-archive/ecore
ff995d40902635df3e765be3c94db45a93bc8594
[ "MIT-advertising" ]
null
null
null
src/lib/ecore_file/ecore_file_monitor_win32.c
OpenInkpot-archive/ecore
ff995d40902635df3e765be3c94db45a93bc8594
[ "MIT-advertising" ]
null
null
null
src/lib/ecore_file/ecore_file_monitor_win32.c
OpenInkpot-archive/ecore
ff995d40902635df3e765be3c94db45a93bc8594
[ "MIT-advertising" ]
null
null
null
/* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #ifdef HAVE_NOTIFY_WIN32 # define WIN32_LEAN_AND_MEAN # include <windows.h> # undef WIN32_LEAN_AND_MEAN # include <process.h> # include "ecore_file_private.h" typedef struct _Ecore_File_Monitor_Win32 Ecore_File_Monitor_Win32; typedef struct _Ecore_File_Monitor_Win32_Data Ecore_File_Monitor_Win32_Data; /* 4096 = 256 * sizeof(FILE_NOTIFY_INFORMATION) */ # define ECORE_FILE_MONITOR_WIN32_BUFFER_SIZE 4096 # define ECORE_FILE_MONITOR_WIN32(x) ((Ecore_File_Monitor_Win32 *)(x)) struct _Ecore_File_Monitor_Win32_Data { char buffer[ECORE_FILE_MONITOR_WIN32_BUFFER_SIZE]; OVERLAPPED overlapped; HANDLE handle; HANDLE event; Ecore_File_Monitor *monitor; Ecore_Win32_Handler *h; DWORD buf_length; int is_dir; }; struct _Ecore_File_Monitor_Win32 { Ecore_File_Monitor monitor; Ecore_File_Monitor_Win32_Data *file; Ecore_File_Monitor_Win32_Data *dir; }; static Ecore_File_Monitor *_monitors = NULL; static Eina_Bool _ecore_file_monitor_win32_cb(void *data, Ecore_Win32_Handler *wh); static Ecore_File_Monitor_Win32_Data * _ecore_file_monitor_win32_data_new(Ecore_File_Monitor *monitor, int type) { Ecore_File_Monitor_Win32_Data *md; DWORD filter; md = (Ecore_File_Monitor_Win32_Data *)calloc(1, sizeof(Ecore_File_Monitor_Win32_Data)); if (!md) return NULL; md->handle = CreateFile(monitor->path, FILE_LIST_DIRECTORY, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OVERLAPPED, NULL); if (md->handle == INVALID_HANDLE_VALUE) goto free_md; md->event = CreateEvent(NULL, FALSE, FALSE, NULL); if (!md->event) goto close_handle; ZeroMemory (&md->overlapped, sizeof(md->overlapped)); md->overlapped.hEvent = md->event; filter = (type == 0) ? FILE_NOTIFY_CHANGE_FILE_NAME : FILE_NOTIFY_CHANGE_DIR_NAME; filter |= FILE_NOTIFY_CHANGE_ATTRIBUTES | FILE_NOTIFY_CHANGE_SIZE | FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_LAST_ACCESS | FILE_NOTIFY_CHANGE_CREATION | FILE_NOTIFY_CHANGE_SECURITY; if (!ReadDirectoryChangesW(md->handle, md->buffer, ECORE_FILE_MONITOR_WIN32_BUFFER_SIZE, FALSE, filter, &md->buf_length, &md->overlapped, NULL)) goto close_event; md->h = ecore_main_win32_handler_add(md->event, _ecore_file_monitor_win32_cb, md); if (!md->h) goto close_event; md->monitor = monitor; md->is_dir = type; return md; close_event: CloseHandle(md->event); close_handle: CloseHandle(md->handle); free_md: free(md); return NULL; } static void _ecore_file_monitor_win32_data_free(Ecore_File_Monitor_Win32_Data *md) { if (!md) return; CloseHandle(md->event); CloseHandle (md->handle); free (md); } static Eina_Bool _ecore_file_monitor_win32_cb(void *data, Ecore_Win32_Handler *wh) { char filename[PATH_MAX]; PFILE_NOTIFY_INFORMATION fni; Ecore_File_Monitor_Win32_Data *md; wchar_t *wname; char *name; DWORD filter; DWORD offset; DWORD buf_length; Ecore_File_Event event = ECORE_FILE_EVENT_NONE; md = (Ecore_File_Monitor_Win32_Data *)data; if (!GetOverlappedResult (md->handle, &md->overlapped, &buf_length, TRUE)) return 1; fni = (PFILE_NOTIFY_INFORMATION)md->buffer; do { if (!fni) break; offset = fni->NextEntryOffset; wname = (wchar_t *)malloc(sizeof(wchar_t) * (fni->FileNameLength + 1)); if (!wname) return 0; memcpy(wname, fni->FileName, fni->FileNameLength); wname[fni->FileNameLength]='\0'; name = evil_wchar_to_char(wname); free(wname); if (!name) return 0; _snprintf(filename, PATH_MAX, "%s\\%s", md->monitor->path, name); free(name); switch (fni->Action) { case FILE_ACTION_ADDED: if (md->is_dir) event = ECORE_FILE_EVENT_CREATED_DIRECTORY; else event = ECORE_FILE_EVENT_CREATED_FILE; break; case FILE_ACTION_REMOVED: if (md->is_dir) event = ECORE_FILE_EVENT_DELETED_DIRECTORY; else event = ECORE_FILE_EVENT_DELETED_FILE; break; case FILE_ACTION_MODIFIED: if (!md->is_dir) event = ECORE_FILE_EVENT_MODIFIED; break; case FILE_ACTION_RENAMED_OLD_NAME: if (md->is_dir) event = ECORE_FILE_EVENT_DELETED_DIRECTORY; else event = ECORE_FILE_EVENT_DELETED_FILE; break; case FILE_ACTION_RENAMED_NEW_NAME: if (md->is_dir) event = ECORE_FILE_EVENT_CREATED_DIRECTORY; else event = ECORE_FILE_EVENT_CREATED_FILE; break; default: fprintf(stderr, "unknown event\n"); event = ECORE_FILE_EVENT_NONE; break; } if (event != ECORE_FILE_EVENT_NONE) md->monitor->func(md->monitor->data, md->monitor, event, filename); fni = (PFILE_NOTIFY_INFORMATION)((LPBYTE)fni + offset); } while (offset); filter = (md->is_dir == 0) ? FILE_NOTIFY_CHANGE_FILE_NAME : FILE_NOTIFY_CHANGE_DIR_NAME; filter |= FILE_NOTIFY_CHANGE_ATTRIBUTES | FILE_NOTIFY_CHANGE_SIZE | FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_LAST_ACCESS | FILE_NOTIFY_CHANGE_CREATION | FILE_NOTIFY_CHANGE_SECURITY; ReadDirectoryChangesW(md->handle, md->buffer, ECORE_FILE_MONITOR_WIN32_BUFFER_SIZE, FALSE, filter, &md->buf_length, &md->overlapped, NULL); return 1; } int ecore_file_monitor_win32_init(void) { return 1; } int ecore_file_monitor_win32_shutdown(void) { return 1; } Ecore_File_Monitor * ecore_file_monitor_win32_add(const char *path, void (*func) (void *data, Ecore_File_Monitor *em, Ecore_File_Event event, const char *path), void *data) { Ecore_File_Monitor_Win32 *m; Ecore_File_Monitor *em; size_t len; if (!path || (*path == '\0')) return NULL; if (!ecore_file_exists(path) || !ecore_file_is_dir(path)) return NULL; if (!func) return NULL; em = (Ecore_File_Monitor *)calloc(1, sizeof(Ecore_File_Monitor_Win32)); if (!em) return NULL; em->func = func; em->data = data; em->path = strdup(path); if (!em->path) { free(em); return NULL; } len = strlen(em->path); if (em->path[len - 1] == '/' || em->path[len - 1] == '\\') em->path[len - 1] = '\0'; m = ECORE_FILE_MONITOR_WIN32(em); m->file = _ecore_file_monitor_win32_data_new(em, 0); if (!m->file) { free(em->path); free(em); return NULL; } m->dir = _ecore_file_monitor_win32_data_new(em, 1); if (!m->dir) { _ecore_file_monitor_win32_data_free(m->file); free(em->path); free(em); return NULL; } _monitors = ECORE_FILE_MONITOR(eina_inlist_append(EINA_INLIST_GET(_monitors), EINA_INLIST_GET(em))); return em; } void ecore_file_monitor_win32_del(Ecore_File_Monitor *em) { Ecore_File_Monitor_Win32 *m; if (!em) return; m = ECORE_FILE_MONITOR_WIN32(em); _ecore_file_monitor_win32_data_free(m->dir); _ecore_file_monitor_win32_data_free(m->file); free(em->path); free(em); } #endif
28.180064
104
0.567093
d276460c87404091027f0301a15d7be1d12b3896
8,127
h
C
Code/Framework/AtomCore/AtomCore/std/containers/vector_set_base.h
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T12:39:24.000Z
2021-07-20T12:39:24.000Z
Code/Framework/AtomCore/AtomCore/std/containers/vector_set_base.h
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
Code/Framework/AtomCore/AtomCore/std/containers/vector_set_base.h
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include <AzCore/std/algorithm.h> #include <AzCore/std/sort.h> namespace AZStd { /** * This class is an ordered set implementation which uses a sorted vector. Insertions / removals * are slower, but searches and iteration are very cache friendly. This container wraps an * AZStd::vector by default, but can wrap any random access container adhering to the interface. * See @ref fixed_vector_set for a version that does not perform any allocations. The iterator * invalidation behavior is directly inherited from the underlying container. */ template <typename Key, typename Compare, typename RandomAccessContainer> class vector_set_base { using this_type = vector_set_base<Key, Compare, RandomAccessContainer>; public: using pointer = typename RandomAccessContainer::pointer; using reference = typename RandomAccessContainer::reference; using iterator = typename RandomAccessContainer::iterator; using reverse_iterator = typename RandomAccessContainer::reverse_iterator; using const_pointer = typename RandomAccessContainer::const_pointer; using const_reference = typename RandomAccessContainer::const_reference; using const_iterator = typename RandomAccessContainer::const_iterator; using const_reverse_iterator = typename RandomAccessContainer::const_reverse_iterator; using size_type = typename RandomAccessContainer::size_type; using difference_type = typename RandomAccessContainer::difference_type; using key_type = Key; using pair_iter_bool = AZStd::pair<iterator, bool>; template <typename ... Args> AZ_FORCE_INLINE vector_set_base(Args&&... arguments) : m_container{AZStd::forward<Args>(arguments)...} {} iterator begin() { return m_container.begin(); } const_iterator begin() const { return m_container.begin(); } iterator end() { return m_container.end(); } const_iterator end() const { return m_container.end(); } reverse_iterator rbegin() { return m_container.rbegin(); } const_reverse_iterator rbegin() const { return m_container.rbegin(); } reverse_iterator rend() { return m_container.rend(); } const_reverse_iterator rend() const { return m_container.rend(); } reference front() { return m_container.front(); } const_reference front() const { return m_container.front(); } reference back() { return m_container.back(); } const_reference back() const { return m_container.back(); } size_type size() const { return m_container.size(); } size_type capacity() const { return m_container.capacity(); } bool empty() const { return m_container.empty(); } pointer data() { return m_container.data(); } const_pointer data() const { return m_container.data(); } template <typename ... Args> pair_iter_bool emplace(Args&&... arguments) { return insert(Key(AZStd::forward<Args>(arguments) ...)); } pair_iter_bool insert(key_type&& key) { Compare comp; iterator first = lower_bound(key); if (first != m_container.end()) { if (comp(key, *first)) { return pair_iter_bool(m_container.insert(first, AZStd::move(key)), true); } else { return pair_iter_bool(first, false); } } return pair_iter_bool(m_container.insert(first, AZStd::move(key)), true); } pair_iter_bool insert(const_reference key) { Compare comp; iterator first = lower_bound(key); if (first != m_container.end()) { if (comp(key, *first)) { return pair_iter_bool(m_container.insert(first, key), true); } else { return pair_iter_bool(first, false); } } return pair_iter_bool(m_container.insert(first, key), true); } template <typename InputIterator> void assign(InputIterator first, InputIterator last) { m_container.assign(first, last); // Sort the whole container. AZStd::sort(m_container.begin(), m_container.end(), Compare()); // De-duplicate entries and resize. iterator newEnd = AZStd::unique(m_container.begin(), m_container.end()); m_container.erase(newEnd, m_container.end()); } template <typename InputIterator> void insert(InputIterator first, InputIterator last) { for (; first != last; ++first) { insert(*first); } } iterator lower_bound(const key_type& key) { return AZStd::lower_bound(m_container.begin(), m_container.end(), key, Compare()); } const_iterator lower_bound(const key_type& key) const { return AZStd::lower_bound(m_container.begin(), m_container.end(), key, Compare()); } iterator upper_bound(const key_type& key) { return AZStd::upper_bound(m_container.begin(), m_container.end(), key, Compare()); } const_iterator upper_bound(const key_type& key) const { return AZStd::upper_bound(m_container.begin(), m_container.end(), key, Compare()); } iterator find(const key_type& key) { Compare comp; iterator first = lower_bound(key); if (first != m_container.end() && !comp(key, *first)) { return first; } return m_container.end(); } const_iterator find(const key_type& key) const { Compare comp; const_iterator first = lower_bound(key); if (first != m_container.end() && !comp(key, *first)) { return first; } return m_container.end(); } size_t erase(const key_type& key) { Compare comp; iterator first = lower_bound(key); if (first != m_container.end() && !comp(key, *first)) { m_container.erase(first); return 1; } return 0; } reference at(size_type position) { return m_container.at(position); } const_reference at(size_type position) const { return m_container.at(position); } reference operator[](size_type position) { return m_container[position]; } const_reference operator[](size_type position) const { return m_container[position]; } void swap(this_type& rhs) { m_container.swap(rhs.m_container); } void clear() { m_container.clear(); } friend bool operator==(const this_type& lhs, const this_type& rhs) { return lhs.m_container == rhs.m_container; } friend bool operator!=(const this_type& lhs, const this_type& rhs) { return lhs.m_container != rhs.m_container; } protected: RandomAccessContainer m_container; }; }
35.334783
158
0.558632
32141b0b36a818c00e90c1c4ac3e3a0be463514b
428
h
C
usr/libexec/gamed/GKTurnBasedMultiplayerMatchChangedBulletin.h
lechium/tvOS142Headers
c7696f6d760e4822f61b9f2c2adcd18749700fda
[ "MIT" ]
1
2020-11-11T06:05:23.000Z
2020-11-11T06:05:23.000Z
usr/libexec/gamed/GKTurnBasedMultiplayerMatchChangedBulletin.h
lechium/tvOS142Headers
c7696f6d760e4822f61b9f2c2adcd18749700fda
[ "MIT" ]
null
null
null
usr/libexec/gamed/GKTurnBasedMultiplayerMatchChangedBulletin.h
lechium/tvOS142Headers
c7696f6d760e4822f61b9f2c2adcd18749700fda
[ "MIT" ]
null
null
null
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 Steve Nygard. // #import "GKTurnBasedMultiplayerBulletin.h" @interface GKTurnBasedMultiplayerMatchChangedBulletin : GKTurnBasedMultiplayerBulletin { } + (_Bool)displayNotification; // IMP=0x00000001000db59c - (id)aggregateDictionaryKey; // IMP=0x00000001000db5a4 @end
23.777778
120
0.764019
3267f75c83cdf7f28e563d148cfe0e1ec383d733
4,201
h
C
cpp/daal/src/services/service_allocators.h
samir-nasibli/oneDAL
a8112a7a18ce1dba13b1a5751ced8ce2bc9f7382
[ "Apache-2.0" ]
188
2016-04-16T12:11:48.000Z
2018-01-12T12:42:55.000Z
cpp/daal/src/services/service_allocators.h
samir-nasibli/oneDAL
a8112a7a18ce1dba13b1a5751ced8ce2bc9f7382
[ "Apache-2.0" ]
350
2018-01-22T10:48:15.000Z
2020-03-24T10:05:45.000Z
cpp/daal/src/services/service_allocators.h
samir-nasibli/oneDAL
a8112a7a18ce1dba13b1a5751ced8ce2bc9f7382
[ "Apache-2.0" ]
93
2018-01-23T01:59:23.000Z
2020-03-16T11:04:19.000Z
/* file: service_allocators.h */ /******************************************************************************* * Copyright 2015 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *******************************************************************************/ #ifndef __SERVICE_ALLOCATORS_H__ #define __SERVICE_ALLOCATORS_H__ #include "src/services/service_utils.h" #include "src/externals/service_memory.h" #include "src/services/service_type_traits.h" namespace daal { namespace services { namespace internal { template <typename T, CpuType cpu, typename... Args> inline void constructAt(T * ptr, Args &&... args) { ::new (static_cast<void *>(ptr)) T(forward<cpu, Args>(args)...); } template <typename T, CpuType cpu> inline void destroyAt(T * ptr) { ptr->~T(); } template <typename T, CpuType cpu, typename... Args> void constructRange(T * first, T * last, Args &&... args) { for (T * ptr = first; ptr != last; ++ptr) { constructAt<T, cpu, Args...>(ptr, args...); } } template <typename T, CpuType cpu> void destroyRange(T * first, T * last) { for (T * ptr = first; ptr != last; ++ptr) { destroyAt<T, cpu>(ptr); } } /* CPU specific allocators */ template <typename T, CpuType cpu> struct DefaultAllocator { static T * allocate(size_t n) { return new T[n]; } static void deallocate(T * ptr) { delete[] ptr; } }; template <typename T, CpuType cpu> struct DAALMalloc { static T * allocate(size_t n) { return service_malloc<T, cpu>(n); } static void deallocate(T * ptr) { service_free<T, cpu>(ptr); } }; template <typename T, CpuType cpu> struct DAALCalloc { static T * allocate(size_t n) { return service_calloc<T, cpu>(n); } static void deallocate(T * ptr) { service_free<T, cpu>(ptr); } }; template <typename T, CpuType cpu> struct ScalableMalloc { static T * allocate(size_t n) { return service_scalable_malloc<T, cpu>(n); } static void deallocate(T * ptr) { service_scalable_free<T, cpu>(ptr); } }; template <typename T, CpuType cpu> struct ScalableCalloc { static T * allocate(size_t n) { return service_scalable_calloc<T, cpu>(n); } static void deallocate(T * ptr) { service_scalable_free<T, cpu>(ptr); } }; /* CPU specific deleters */ template <typename T, CpuType cpu> struct DefaultDeleter { void operator()(T * ptr) { delete ptr; } }; template <typename T, CpuType cpu> struct EmptyDeleter { void operator()(T * ptr) {} }; /* Construction policy that does call explicitly constructor/destructor for type T */ template <typename T, CpuType cpu> struct DoConstruct { static void construct(T * begin, T * end) { constructRange<T, cpu>(begin, end); } static void destroy(T * begin, T * end) { destroyRange<T, cpu>(begin, end); } }; /* Construction policy that doesn't call constructor/destructor */ template <typename T, CpuType cpu> struct DoNotConstruct { static void construct(T * begin, T * end) {} static void destroy(T * begin, T * end) {} }; /* Allows to detect primitive and non-primitive types automatically * and apply an appropriate construction policy */ template <typename T, CpuType cpu, bool isPrimitive = IsPrimitiveType<T, cpu>::value> struct DefaultConstructionPolicy {}; /* Enables DoNotConstruct policy for all primitive types */ template <typename T, CpuType cpu> struct DefaultConstructionPolicy<T, cpu, /* isPrimitive = */ true> : DoNotConstruct<T, cpu> {}; /* Enables DoConstruct policy for all 'complex' types */ template <typename T, CpuType cpu> struct DefaultConstructionPolicy<T, cpu, /* isPrimitive = */ false> : DoConstruct<T, cpu> {}; } // namespace internal } // namespace services } // namespace daal #endif
28.006667
91
0.671507
d6910a4bd414ba8fc07d2a7c5c9b85c76669cc44
951
h
C
src/Clients/SysAdmin/SysAdmin.h
AntonioRib/TME-CPS
7836c098e84c3a94180ad0b99a0f72e0e5b57fa3
[ "MIT" ]
null
null
null
src/Clients/SysAdmin/SysAdmin.h
AntonioRib/TME-CPS
7836c098e84c3a94180ad0b99a0f72e0e5b57fa3
[ "MIT" ]
null
null
null
src/Clients/SysAdmin/SysAdmin.h
AntonioRib/TME-CPS
7836c098e84c3a94180ad0b99a0f72e0e5b57fa3
[ "MIT" ]
1
2021-02-24T03:12:04.000Z
2021-02-24T03:12:04.000Z
#ifndef _SYSADMIN_H_ #define _SYSADMIN_H_ #include <netdb.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/wait.h> // for wait() #include <unistd.h> // for fork() #include <iostream> #include <iterator> #include <sstream> #include <string> #include <thread> #include <vector> #include "../../Utilities/AttestationConstants.h" #include "../../Utilities/General.h" #include "../../Utilities/Messages.h" #include "../../Utilities/Ports.h" using namespace std; class SysAdmin { private: string username; string hubHost; string remoteHost; string key; string hubSocket; void attestLogger(int loggetSocket); //TODO bool startLocalProxy(); public: SysAdmin(); SysAdmin(string username, string hubhost, string remoteHost, string key); bool manageNode(); bool urgentManageNode(); }; #endif
21.613636
78
0.678233
a9580097cba8fe0d7db36793c8f8cf831323579e
6,845
h
C
kernel/linux-4.13/arch/mips/include/asm/compat.h
ShawnZhong/SplitFS
7e21a6fc505ff70802e5666d097326ecb97a4ae3
[ "Apache-2.0" ]
55
2019-12-20T03:25:14.000Z
2022-01-16T07:19:47.000Z
kernel/linux-4.13/arch/mips/include/asm/compat.h
braymill/SplitFS
00a42bb1b51718048e4c15dde31e9d358932575e
[ "Apache-2.0" ]
5
2020-04-04T09:24:09.000Z
2020-04-19T12:33:55.000Z
kernel/linux-4.13/arch/mips/include/asm/compat.h
braymill/SplitFS
00a42bb1b51718048e4c15dde31e9d358932575e
[ "Apache-2.0" ]
30
2018-05-02T08:43:27.000Z
2022-01-23T03:25:54.000Z
#ifndef _ASM_COMPAT_H #define _ASM_COMPAT_H /* * Architecture specific compatibility types */ #include <linux/thread_info.h> #include <linux/types.h> #include <asm/page.h> #include <asm/ptrace.h> #define COMPAT_USER_HZ 100 #define COMPAT_UTS_MACHINE "mips\0\0\0" typedef u32 compat_size_t; typedef s32 compat_ssize_t; typedef s32 compat_time_t; typedef s32 compat_clock_t; typedef s32 compat_suseconds_t; typedef s32 compat_pid_t; typedef s32 __compat_uid_t; typedef s32 __compat_gid_t; typedef __compat_uid_t __compat_uid32_t; typedef __compat_gid_t __compat_gid32_t; typedef u32 compat_mode_t; typedef u32 compat_ino_t; typedef u32 compat_dev_t; typedef s32 compat_off_t; typedef s64 compat_loff_t; typedef u32 compat_nlink_t; typedef s32 compat_ipc_pid_t; typedef s32 compat_daddr_t; typedef s32 compat_caddr_t; typedef struct { s32 val[2]; } compat_fsid_t; typedef s32 compat_timer_t; typedef s32 compat_key_t; typedef s32 compat_int_t; typedef s32 compat_long_t; typedef s64 compat_s64; typedef u32 compat_uint_t; typedef u32 compat_ulong_t; typedef u64 compat_u64; typedef u32 compat_uptr_t; struct compat_timespec { compat_time_t tv_sec; s32 tv_nsec; }; struct compat_timeval { compat_time_t tv_sec; s32 tv_usec; }; struct compat_stat { compat_dev_t st_dev; s32 st_pad1[3]; compat_ino_t st_ino; compat_mode_t st_mode; compat_nlink_t st_nlink; __compat_uid_t st_uid; __compat_gid_t st_gid; compat_dev_t st_rdev; s32 st_pad2[2]; compat_off_t st_size; s32 st_pad3; compat_time_t st_atime; s32 st_atime_nsec; compat_time_t st_mtime; s32 st_mtime_nsec; compat_time_t st_ctime; s32 st_ctime_nsec; s32 st_blksize; s32 st_blocks; s32 st_pad4[14]; }; struct compat_flock { short l_type; short l_whence; compat_off_t l_start; compat_off_t l_len; s32 l_sysid; compat_pid_t l_pid; short __unused; s32 pad[4]; }; #define F_GETLK64 33 #define F_SETLK64 34 #define F_SETLKW64 35 struct compat_flock64 { short l_type; short l_whence; compat_loff_t l_start; compat_loff_t l_len; compat_pid_t l_pid; }; struct compat_statfs { int f_type; int f_bsize; int f_frsize; int f_blocks; int f_bfree; int f_files; int f_ffree; int f_bavail; compat_fsid_t f_fsid; int f_namelen; int f_flags; int f_spare[5]; }; #define COMPAT_RLIM_INFINITY 0x7fffffffUL typedef u32 compat_old_sigset_t; /* at least 32 bits */ #define _COMPAT_NSIG 128 /* Don't ask !$@#% ... */ #define _COMPAT_NSIG_BPW 32 typedef u32 compat_sigset_word; typedef union compat_sigval { compat_int_t sival_int; compat_uptr_t sival_ptr; } compat_sigval_t; /* Can't use the generic version because si_code and si_errno are swapped */ #define SI_PAD_SIZE32 (128/sizeof(int) - 3) typedef struct compat_siginfo { int si_signo; int si_code; int si_errno; union { int _pad[128 / sizeof(int) - 3]; /* kill() */ struct { compat_pid_t _pid; /* sender's pid */ __compat_uid32_t _uid; /* sender's uid */ } _kill; /* POSIX.1b timers */ struct { compat_timer_t _tid; /* timer id */ int _overrun; /* overrun count */ compat_sigval_t _sigval; /* same as below */ } _timer; /* POSIX.1b signals */ struct { compat_pid_t _pid; /* sender's pid */ __compat_uid32_t _uid; /* sender's uid */ compat_sigval_t _sigval; } _rt; /* SIGCHLD */ struct { compat_pid_t _pid; /* which child */ __compat_uid32_t _uid; /* sender's uid */ int _status; /* exit code */ compat_clock_t _utime; compat_clock_t _stime; } _sigchld; /* SIGILL, SIGFPE, SIGSEGV, SIGBUS */ struct { compat_uptr_t _addr; /* faulting insn/memory ref. */ #ifdef __ARCH_SI_TRAPNO int _trapno; /* TRAP # which caused the signal */ #endif short _addr_lsb; /* LSB of the reported address */ struct { compat_uptr_t _lower; compat_uptr_t _upper; } _addr_bnd; } _sigfault; /* SIGPOLL */ struct { compat_long_t _band; /* POLL_IN, POLL_OUT, POLL_MSG */ int _fd; } _sigpoll; struct { compat_uptr_t _call_addr; /* calling insn */ int _syscall; /* triggering system call number */ compat_uint_t _arch; /* AUDIT_ARCH_* of syscall */ } _sigsys; } _sifields; } compat_siginfo_t; #define COMPAT_OFF_T_MAX 0x7fffffff #define COMPAT_LOFF_T_MAX 0x7fffffffffffffffL /* * A pointer passed in from user mode. This should not * be used for syscall parameters, just declare them * as pointers because the syscall entry code will have * appropriately converted them already. */ static inline void __user *compat_ptr(compat_uptr_t uptr) { /* cast to a __user pointer via "unsigned long" makes sparse happy */ return (void __user *)(unsigned long)(long)uptr; } static inline compat_uptr_t ptr_to_compat(void __user *uptr) { return (u32)(unsigned long)uptr; } static inline void __user *arch_compat_alloc_user_space(long len) { struct pt_regs *regs = (struct pt_regs *) ((unsigned long) current_thread_info() + THREAD_SIZE - 32) - 1; return (void __user *) (regs->regs[29] - len); } struct compat_ipc64_perm { compat_key_t key; __compat_uid32_t uid; __compat_gid32_t gid; __compat_uid32_t cuid; __compat_gid32_t cgid; compat_mode_t mode; unsigned short seq; unsigned short __pad2; compat_ulong_t __unused1; compat_ulong_t __unused2; }; struct compat_semid64_ds { struct compat_ipc64_perm sem_perm; compat_time_t sem_otime; compat_time_t sem_ctime; compat_ulong_t sem_nsems; compat_ulong_t __unused1; compat_ulong_t __unused2; }; struct compat_msqid64_ds { struct compat_ipc64_perm msg_perm; #ifndef CONFIG_CPU_LITTLE_ENDIAN compat_ulong_t __unused1; #endif compat_time_t msg_stime; #ifdef CONFIG_CPU_LITTLE_ENDIAN compat_ulong_t __unused1; #endif #ifndef CONFIG_CPU_LITTLE_ENDIAN compat_ulong_t __unused2; #endif compat_time_t msg_rtime; #ifdef CONFIG_CPU_LITTLE_ENDIAN compat_ulong_t __unused2; #endif #ifndef CONFIG_CPU_LITTLE_ENDIAN compat_ulong_t __unused3; #endif compat_time_t msg_ctime; #ifdef CONFIG_CPU_LITTLE_ENDIAN compat_ulong_t __unused3; #endif compat_ulong_t msg_cbytes; compat_ulong_t msg_qnum; compat_ulong_t msg_qbytes; compat_pid_t msg_lspid; compat_pid_t msg_lrpid; compat_ulong_t __unused4; compat_ulong_t __unused5; }; struct compat_shmid64_ds { struct compat_ipc64_perm shm_perm; compat_size_t shm_segsz; compat_time_t shm_atime; compat_time_t shm_dtime; compat_time_t shm_ctime; compat_pid_t shm_cpid; compat_pid_t shm_lpid; compat_ulong_t shm_nattch; compat_ulong_t __unused1; compat_ulong_t __unused2; }; /* MIPS has unusual order of fields in stack_t */ typedef struct compat_sigaltstack { compat_uptr_t ss_sp; compat_size_t ss_size; int ss_flags; } compat_stack_t; #define compat_sigaltstack compat_sigaltstack static inline int is_compat_task(void) { return test_thread_flag(TIF_32BIT_ADDR); } #endif /* _ASM_COMPAT_H */
22.009646
76
0.75851
659d275b087c27f3dd6357741438cc1d7c8a835a
1,899
h
C
src/inputParser.h
stefanbartels/idp-flowSim
88b833a4dcce2d9e13968e7202d03413943f82fa
[ "MIT" ]
1
2019-11-23T12:06:07.000Z
2019-11-23T12:06:07.000Z
src/inputParser.h
stefanbartels/idp-flowSim
88b833a4dcce2d9e13968e7202d03413943f82fa
[ "MIT" ]
null
null
null
src/inputParser.h
stefanbartels/idp-flowSim
88b833a4dcce2d9e13968e7202d03413943f82fa
[ "MIT" ]
null
null
null
#ifndef INPUTPARSER_H #define INPUTPARSER_H //******************************************************************** //** includes //******************************************************************** #include "Definitions.h" #include "Parameters.h" #include <string> #include <stdlib.h> //==================================================================== /*! \class InputParser \brief Class for input file parsing */ //==================================================================== class InputParser { public: // ------------------------------------------------- // static parameter handling functions // ------------------------------------------------- //! @name static parameter handling functions //! @{ //! \brief parses the command line parameters and reads //! the parameters from a given config file //! \param number of command line arguments //! \param array of command line arguments //! \param pointer to parameter structure to fill with the imported values static bool readParameters ( int argc, char* argv[], Parameters* parameters ); //! \brief creates an obstacle map from a PGM image //! \param obstacle map pointer. The memory will be allocated within the function //! \param width of the simulation domain //! \param height of the simulation domain //! \param file name of the PGM file to read //! \todo move check for valid map from solver to here! static bool readObstacleMap ( bool*** obstacleMap, int width, int height, std::string fileName ); //! \brief prints the parameters to console //! \param pointer to parameter structure static void printParameters ( Parameters* parameters ); //! \brief prints the parameter usage to console static void printUsage ( char* programName ); //! @} }; #endif // INPUTPARSER_H
25.32
84
0.533965
457f2b6ce154451a19dcac6cea68643dfaa1d84d
3,179
h
C
Validation/TrackerHits/interface/TrackerHitAnalyzer.h
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
1
2019-08-09T08:42:11.000Z
2019-08-09T08:42:11.000Z
Validation/TrackerHits/interface/TrackerHitAnalyzer.h
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
Validation/TrackerHits/interface/TrackerHitAnalyzer.h
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
1
2019-04-03T19:23:27.000Z
2019-04-03T19:23:27.000Z
#ifndef TrackerHitAnalyzer_H #define TrackerHitAnalyzer_H /* * \file TrackerHitAnalyzer.h * * \author F. Cossutti * */ // framework & common header files #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include <DQMServices/Core/interface/DQMEDAnalyzer.h> #include "SimDataFormats/Track/interface/SimTrackContainer.h" #include "SimDataFormats/TrackingHit/interface/PSimHitContainer.h" #include <string> class DQMStore; class MonitorElement; class TrackerHitAnalyzer: public DQMEDAnalyzer { public: /// Constructor TrackerHitAnalyzer(const edm::ParameterSet& ps); /// Destructor ~TrackerHitAnalyzer() override; protected: void bookHistograms(DQMStore::IBooker & ibooker,const edm::Run& run, const edm::EventSetup& es) override; /// Analyze void analyze(const edm::Event& e, const edm::EventSetup& c) override; // EndJob void endJob() override; //void BookTestHistos(Char_t sname, int nbin, float *xmin, float *xmax); private: bool verbose_; edm::EDGetTokenT<edm::PSimHitContainer> edmPSimHitContainer_pxlBrlLow_Token_, edmPSimHitContainer_pxlBrlHigh_Token_; edm::EDGetTokenT<edm::PSimHitContainer> edmPSimHitContainer_pxlFwdLow_Token_, edmPSimHitContainer_pxlFwdHigh_Token_; edm::EDGetTokenT<edm::PSimHitContainer> edmPSimHitContainer_siTIBLow_Token_, edmPSimHitContainer_siTIBHigh_Token_; edm::EDGetTokenT<edm::PSimHitContainer> edmPSimHitContainer_siTOBLow_Token_, edmPSimHitContainer_siTOBHigh_Token_; edm::EDGetTokenT<edm::PSimHitContainer> edmPSimHitContainer_siTIDLow_Token_, edmPSimHitContainer_siTIDHigh_Token_; edm::EDGetTokenT<edm::PSimHitContainer> edmPSimHitContainer_siTECLow_Token_, edmPSimHitContainer_siTECHigh_Token_; edm::EDGetTokenT<edm::SimTrackContainer> edmSimTrackContainerToken_; DQMStore* fDBE; edm::ParameterSet conf_; MonitorElement* htofeta; MonitorElement* htofphi; MonitorElement* htofr; MonitorElement* htofz; MonitorElement* htofeta_profile; MonitorElement* htofphi_profile; MonitorElement* htofr_profile; MonitorElement* htofz_profile; MonitorElement* h1e[12]; MonitorElement* h2e[12]; MonitorElement* h3e[12]; MonitorElement* h4e[12]; MonitorElement* h5e[12]; MonitorElement* h6e[12]; MonitorElement* h1ex[12]; MonitorElement* h2ex[12]; MonitorElement* h3ex[12]; MonitorElement* h4ex[12]; MonitorElement* h5ex[12]; MonitorElement* h6ex[12]; MonitorElement* h1ey[12]; MonitorElement* h2ey[12]; MonitorElement* h3ey[12]; MonitorElement* h4ey[12]; MonitorElement* h5ey[12]; MonitorElement* h6ey[12]; MonitorElement* h1ez[12]; MonitorElement* h2ez[12]; MonitorElement* h3ez[12]; MonitorElement* h4ez[12]; MonitorElement* h5ez[12]; MonitorElement* h6ez[12]; MonitorElement* h1lx[12]; MonitorElement* h2lx[12]; MonitorElement* h3lx[12]; MonitorElement* h4lx[12]; MonitorElement* h5lx[12]; MonitorElement* h6lx[12]; MonitorElement* h1ly[12]; MonitorElement* h2ly[12]; MonitorElement* h3ly[12]; MonitorElement* h4ly[12]; MonitorElement* h5ly[12]; MonitorElement* h6ly[12]; bool runStandalone; std::string fOutputFile; bool pixelOutput; }; #endif
26.491667
117
0.791129
04c4af497332abce7b5febc924f99a4667d05ba6
2,966
h
C
src/operators/PersistentParticles/QvisPersistentParticlesWindow.h
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/operators/PersistentParticles/QvisPersistentParticlesWindow.h
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/operators/PersistentParticles/QvisPersistentParticlesWindow.h
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt // Project developers. See the top-level LICENSE file for dates and other // details. No copyright assignment is required to contribute to VisIt. #ifndef QVISPERSISTENTPARTICLESWINDOW_H #define QVISPERSISTENTPARTICLESWINDOW_H #include <QvisOperatorWindow.h> #include <AttributeSubject.h> class PersistentParticlesAttributes; class QLabel; class QCheckBox; class QLineEdit; class QButtonGroup; class QvisVariableButton; // **************************************************************************** // Class: QvisPersistentParticlesWindow // // Purpose: // Defines QvisPersistentParticlesWindow class. // // Notes: Autogenerated by xml2window. // // Programmer: xml2window // Creation: omitted // // Modifications: // // **************************************************************************** class QvisPersistentParticlesWindow : public QvisOperatorWindow { Q_OBJECT public: QvisPersistentParticlesWindow(const int type, PersistentParticlesAttributes *subj, const QString &caption = QString(), const QString &shortName = QString(), QvisNotepadArea *notepad = 0); virtual ~QvisPersistentParticlesWindow(); virtual void CreateWindowContents(); protected: void UpdateWindow(bool doAll); virtual void GetCurrentValues(int which_widget); private slots: void startIndexProcessText(); void startPathTypeChanged(int val); void stopIndexProcessText(); void stopPathTypeChanged(int val); void updateStopIndexText(); void updateStartIndexText(); void strideProcessText(); void traceVariableXChanged(const QString &varName); void traceVariableYChanged(const QString &varName); void traceVariableZChanged(const QString &varName); void connectParticlesChanged(bool val); void showPointsChanged(bool val); void indexVariableChanged(const QString &varName); private: QLineEdit *startIndex; QWidget *startPathType; QButtonGroup *startPathTypeButtonGroup; QLineEdit *stopIndex; QWidget *stopPathType; QButtonGroup *stopPathTypeButtonGroup; QLineEdit *stride; QvisVariableButton *traceVariableX; QvisVariableButton *traceVariableY; QvisVariableButton *traceVariableZ; QCheckBox *connectParticles; QCheckBox *showPoints; QvisVariableButton *indexVariable; QLabel *startIndexLabel; QLabel *startPathTypeLabel; QLabel *stopIndexLabel; QLabel *stopPathTypeLabel; QLabel *strideLabel; QLabel *traceVariableXLabel; QLabel *traceVariableYLabel; QLabel *traceVariableZLabel; QLabel *indexVariableLabel; PersistentParticlesAttributes *atts; QCheckBox *startIndexRelative; QCheckBox *stopIndexRelative; void stopIndexRelativeChanged(bool val); void startIndexRelativeChanged(bool val); }; #endif
30.57732
79
0.697235
04dcc58e74cce0aafc0139c14afb359a95bcbdc9
736
h
C
MFC_Final_Project_Rest_Update/Business.h
niv656/MFC-Restaurant-management
2f8fd263afe09a2700c0a6fac9d4fb12427adf89
[ "MIT" ]
null
null
null
MFC_Final_Project_Rest_Update/Business.h
niv656/MFC-Restaurant-management
2f8fd263afe09a2700c0a6fac9d4fb12427adf89
[ "MIT" ]
null
null
null
MFC_Final_Project_Rest_Update/Business.h
niv656/MFC-Restaurant-management
2f8fd263afe09a2700c0a6fac9d4fb12427adf89
[ "MIT" ]
null
null
null
#pragma once class Business { public: // Constructurs Business(); Business(const CString &, const CString &, const CString &, const CString&, const CString&); virtual ~Business(); // Get's Functions CString GetName(); CString GetAddress(); CString GetTel(); CString GetOpenH(); CString GetCloseH(); // Set's Functions void SetName(const CString&); void SetAddress(const CString&); void SetTel(const CString&); void SetOpenH(const CString&); void SetCloseH(const CString&); // Services Functions virtual void show() = 0; // Abstract Class private: // Rest Details CString Name; CString Address; CString Telephone; CString OpenHours; CString CloseHours; };
16.727273
94
0.66712
ca3760e7238b055a6371eec629b3b32cc857930c
675
h
C
platform/winrt/gl_context_egl.h
shackra/godot
685384f4eb0a29f3415d44e4d284e368e2688673
[ "CC-BY-3.0", "MIT" ]
56
2015-01-20T09:52:35.000Z
2021-06-04T22:14:18.000Z
platform/winrt/gl_context_egl.h
shackra/godot
685384f4eb0a29f3415d44e4d284e368e2688673
[ "CC-BY-3.0", "MIT" ]
1
2015-01-24T01:10:26.000Z
2015-01-24T01:10:26.000Z
platform/winrt/gl_context_egl.h
shackra/godot
685384f4eb0a29f3415d44e4d284e368e2688673
[ "CC-BY-3.0", "MIT" ]
29
2015-01-12T15:59:06.000Z
2021-06-29T21:39:37.000Z
#ifndef CONTEXT_EGL_H #define CONTEXT_EGL_H #include <wrl.h> #include "os/os.h" #include "EGL/egl.h" #include "error_list.h" #include "drivers/gl_context/context_gl.h" using namespace Windows::UI::Core; class ContextEGL : public ContextGL { CoreWindow^ window; EGLDisplay mEglDisplay; EGLContext mEglContext; EGLSurface mEglSurface; EGLint width; EGLint height; public: virtual void release_current(); virtual void make_current(); virtual int get_window_width(); virtual int get_window_height(); virtual void swap_buffers(); virtual Error initialize(); void reset(); void cleanup(); ContextEGL(CoreWindow^ p_window); ~ContextEGL(); }; #endif
14.673913
42
0.745185
3413726f18cc585ce84189fd76681c973a960344
3,756
c
C
kernel/kernel/scs.c
wonderful666/marx-10.1.0
a8be8880fe31bff4f94d6e3fad17c455666ff60f
[ "MIT" ]
null
null
null
kernel/kernel/scs.c
wonderful666/marx-10.1.0
a8be8880fe31bff4f94d6e3fad17c455666ff60f
[ "MIT" ]
null
null
null
kernel/kernel/scs.c
wonderful666/marx-10.1.0
a8be8880fe31bff4f94d6e3fad17c455666ff60f
[ "MIT" ]
null
null
null
/* * Shadow Call Stack support. * * Copyright (C) 2018 Google LLC */ #include <linux/cpuhotplug.h> #include <linux/mm.h> #include <linux/mmzone.h> #include <linux/slab.h> #include <linux/scs.h> #include <linux/vmalloc.h> #include <linux/vmstat.h> #include <asm/scs.h> #define SCS_END_MAGIC 0xaf0194819b1635f6UL static inline void *__scs_base(struct task_struct *tsk) { return (void *)((uintptr_t)task_scs(tsk) & ~(SCS_SIZE - 1)); } #ifdef CONFIG_SHADOW_CALL_STACK_VMAP /* Keep a cache of shadow stacks */ #define SCS_CACHE_SIZE 2 static DEFINE_PER_CPU(void *, scs_cache[SCS_CACHE_SIZE]); static void *scs_alloc(int node) { int i; for (i = 0; i < SCS_CACHE_SIZE; i++) { void *s; s = this_cpu_xchg(scs_cache[i], NULL); if (s) { memset(s, 0, SCS_SIZE); return s; } } return __vmalloc_node_range(SCS_SIZE, SCS_SIZE, VMALLOC_START, VMALLOC_END, SCS_GFP, PAGE_KERNEL, 0, node, __builtin_return_address(0)); } static void scs_free(void *s) { int i; for (i = 0; i < SCS_CACHE_SIZE; i++) { if (this_cpu_cmpxchg(scs_cache[i], 0, s) != 0) continue; return; } vfree_atomic(s); } static struct page *__scs_page(struct task_struct *tsk) { return vmalloc_to_page(__scs_base(tsk)); } static int scs_cleanup(unsigned int cpu) { int i; void **cache = per_cpu_ptr(scs_cache, cpu); for (i = 0; i < SCS_CACHE_SIZE; i++) { vfree(cache[i]); cache[i] = NULL; } return 0; } void __init scs_init(void) { cpuhp_setup_state(CPUHP_BP_PREPARE_DYN, "scs:scs_cleanup", NULL, scs_cleanup); } #else /* !CONFIG_SHADOW_CALL_STACK_VMAP */ static inline void *scs_alloc(int node) { return kmalloc(SCS_SIZE, SCS_GFP); } static inline void scs_free(void *s) { kfree(s); } static struct page *__scs_page(struct task_struct *tsk) { return virt_to_page(__scs_base(tsk)); } void __init scs_init(void) { } #endif /* CONFIG_SHADOW_CALL_STACK_VMAP */ static inline unsigned long *scs_magic(struct task_struct *tsk) { return (unsigned long *)(__scs_base(tsk) + SCS_SIZE - sizeof(long)); } static inline void scs_set_magic(struct task_struct *tsk) { *scs_magic(tsk) = SCS_END_MAGIC; } void scs_task_init(struct task_struct *tsk) { task_set_scs(tsk, NULL); } void scs_task_reset(struct task_struct *tsk) { task_set_scs(tsk, __scs_base(tsk)); } void scs_set_init_magic(struct task_struct *tsk) { scs_save(tsk); scs_set_magic(tsk); scs_load(tsk); } static void scs_account(struct task_struct *tsk, int account) { mod_zone_page_state(page_zone(__scs_page(tsk)), NR_KERNEL_SCS_BYTES, account * SCS_SIZE); } int scs_prepare(struct task_struct *tsk, int node) { void *s; s = scs_alloc(node); if (!s) return -ENOMEM; task_set_scs(tsk, s); scs_set_magic(tsk); scs_account(tsk, 1); return 0; } #ifdef CONFIG_DEBUG_STACK_USAGE static inline unsigned long scs_used(struct task_struct *tsk) { unsigned long *p = __scs_base(tsk); unsigned long *end = scs_magic(tsk); uintptr_t s = (uintptr_t)p; while (p < end && *p) p++; return (uintptr_t)p - s; } static void scs_check_usage(struct task_struct *tsk) { static DEFINE_SPINLOCK(lock); static unsigned long highest; unsigned long used = scs_used(tsk); if (used <= highest) return; spin_lock(&lock); if (used > highest) { pr_info("%s: highest shadow stack usage %lu bytes\n", __func__, used); highest = used; } spin_unlock(&lock); } #else static inline void scs_check_usage(struct task_struct *tsk) { } #endif bool scs_corrupted(struct task_struct *tsk) { return *scs_magic(tsk) != SCS_END_MAGIC; } void scs_release(struct task_struct *tsk) { void *s; s = __scs_base(tsk); if (!s) return; BUG_ON(scs_corrupted(tsk)); scs_check_usage(tsk); scs_account(tsk, -1); scs_task_init(tsk); scs_free(s); }
17.308756
69
0.704473
43dd3dc70b5c66343625fe5701e80f3b95e928bc
1,472
h
C
chrome/browser/offline_pages/offline_page_model_factory.h
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
chrome/browser/offline_pages/offline_page_model_factory.h
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
chrome/browser/offline_pages/offline_page_model_factory.h
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_FACTORY_H_ #define CHROME_BROWSER_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_FACTORY_H_ #include "base/macros.h" #include "components/keyed_service/content/browser_context_keyed_service_factory.h" namespace base { template <typename T> struct DefaultSingletonTraits; } // namespace base namespace offline_pages { class OfflinePageModel; // A factory to create one unique OfflinePageModel. Offline pages are not // supported in incognito, and this class uses default implementation of // |GetBrowserContextToUse|. // TODO(fgorski): Add an integration test that ensures incognito users don't // save or open offline pages. class OfflinePageModelFactory : public BrowserContextKeyedServiceFactory { public: static OfflinePageModelFactory* GetInstance(); static OfflinePageModel* GetForBrowserContext( content::BrowserContext* context); private: friend struct base::DefaultSingletonTraits<OfflinePageModelFactory>; OfflinePageModelFactory(); ~OfflinePageModelFactory() override {} KeyedService* BuildServiceInstanceFor( content::BrowserContext* context) const override; DISALLOW_COPY_AND_ASSIGN(OfflinePageModelFactory); }; } // namespace offline_pages #endif // CHROME_BROWSER_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_FACTORY_H_
32
83
0.811821
a15383d2e4e1450b9f0188373d61fca6720a32b2
1,506
h
C
include/Object.h
rGovers/Anny.Mei
6329df8eb06ae9d03a4457518b26300942b7cc13
[ "MIT" ]
1
2021-05-18T04:28:48.000Z
2021-05-18T04:28:48.000Z
include/Object.h
rGovers/Anny.Mei
6329df8eb06ae9d03a4457518b26300942b7cc13
[ "MIT" ]
null
null
null
include/Object.h
rGovers/Anny.Mei
6329df8eb06ae9d03a4457518b26300942b7cc13
[ "MIT" ]
1
2021-05-18T04:28:51.000Z
2021-05-18T04:28:51.000Z
#pragma once #include <list> class AnimControl; class Camera; class Component; class Name; class Namer; class PropertyFile; class PropertyFileProperty; class Transform; class Workspace; class Object { private: AnimControl* m_animControl; Name* m_name; Object* m_parent; std::list<Object*> m_children; std::list<Component*> m_components; Transform* m_transform; bool m_windowOpen; protected: public: Object() = delete; Object(Namer* a_namer, AnimControl* a_animControl); ~Object(); Transform* GetTransform() const; Object* GetParent() const; void SetParent(Object* a_parent); std::list<Object*> GetChildren() const; void SetTrueName(const char* a_trueName); const char* GetTrueName() const; // Note that true name takes priority and can overwrite the name // Only use when necessary void SetName(const char* a_name); const char* GetName() const; void DisplayValues(bool a_state); void MoveChildUp(Object* a_child); void MoveChildDown(Object* a_child); void LoadComponent(PropertyFileProperty* a_propertyFile); void SaveComponents(PropertyFile* a_propertyFile, PropertyFileProperty* a_parent) const; void UpdateComponentUI(Workspace* a_workspace); void UpdateComponents(bool a_preview, Camera* a_camera, double a_delta); };
24.290323
92
0.646082
bd1bf911b40ea2fd1d8a26611fca1a2f3741ab4c
167
c
C
src/rtlib/win32/sys_getcwd.c
zai1208/fbc
02cc78513c9e9d2aeab93dd41994f7593fceff48
[ "MIT" ]
521
2015-01-13T20:42:25.000Z
2022-03-24T19:13:18.000Z
src/rtlib/win32/sys_getcwd.c
jayrm/fbc
ae665330eefc276bc16c0831657b714ee2f592fd
[ "MIT" ]
196
2015-02-06T14:01:07.000Z
2022-03-30T18:10:33.000Z
src/rtlib/win32/sys_getcwd.c
jayrm/fbc
ae665330eefc276bc16c0831657b714ee2f592fd
[ "MIT" ]
142
2015-02-04T03:59:44.000Z
2022-03-09T07:33:33.000Z
/* get current dir */ #include "../fb.h" #include <windows.h> ssize_t fb_hGetCurrentDir( char *dst, ssize_t maxlen ) { return GetCurrentDirectory( maxlen, dst ); }
16.7
54
0.694611
bd34800374b32955a6a322d99640dec519d6ca27
1,657
h
C
src/xcode/mobbl-core-lib/View/MBPanel.h
berryp84/itude-mobile-ios-mobbl
21308e053bfd7f6c9d355112f57f1d4dae285236
[ "Apache-2.0" ]
null
null
null
src/xcode/mobbl-core-lib/View/MBPanel.h
berryp84/itude-mobile-ios-mobbl
21308e053bfd7f6c9d355112f57f1d4dae285236
[ "Apache-2.0" ]
null
null
null
src/xcode/mobbl-core-lib/View/MBPanel.h
berryp84/itude-mobile-ios-mobbl
21308e053bfd7f6c9d355112f57f1d4dae285236
[ "Apache-2.0" ]
null
null
null
/* * (C) Copyright Itude Mobile B.V., The Netherlands. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #import "MBComponent.h" #import "MBComponentContainer.h" @class MBPanelDefinition; /** Basic building block of an MBPage. * MBPanel instances are defined in a page definition in the application definition file(s). * You never need to subclass an MBPanel */ @interface MBPanel : MBComponentContainer { NSString *_type; NSString *_title; NSString *_titlePath; int _width; int _height; BOOL _zoomable; NSString *_outcomeName; NSString *_path; } @property (nonatomic, retain) NSString *type; @property (nonatomic, retain) NSString *title; @property (nonatomic, retain) NSString *titlePath; @property (nonatomic, assign) int width; @property (nonatomic, assign) int height; @property (nonatomic, assign) BOOL zoomable; @property (nonatomic, retain) NSString *outcomeName; @property (nonatomic, retain) NSString *path; - (id) initWithDefinition:(MBPanelDefinition *)definition document:(MBDocument*) document parent:(MBComponentContainer *) parent buildViewStructure:(BOOL) buildViewStructure; - (void) rebuild; @end
32.490196
174
0.750754
08e8d689962489c55641ff27bf321a66f93c4bcc
366
h
C
Headers/SBWorkspaceAlertAnimationProviding-Protocol.h
MoTheNerd/oledlock
b1a79668a8f31d0c8cdfea11e14d5dc19654f380
[ "MIT" ]
12
2019-06-02T02:42:41.000Z
2021-04-13T07:22:20.000Z
Headers/SBWorkspaceAlertAnimationProviding-Protocol.h
MoTheNerd/oledlock
b1a79668a8f31d0c8cdfea11e14d5dc19654f380
[ "MIT" ]
null
null
null
Headers/SBWorkspaceAlertAnimationProviding-Protocol.h
MoTheNerd/oledlock
b1a79668a8f31d0c8cdfea11e14d5dc19654f380
[ "MIT" ]
3
2019-06-11T02:46:10.000Z
2019-12-21T14:58:16.000Z
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" @protocol SBWorkspaceAlertAnimationProviding <NSObject> @property(nonatomic) _Bool wantsToHandleItsOwnAnimation; - (void)setVisible:(_Bool)arg1 animated:(_Bool)arg2 completion:(void (^)(_Bool))arg3; @end
26.142857
85
0.726776
83d3e653e103d2c19b76a0a5f2a2d3e43dc60536
2,539
h
C
src/hardware/reSID/voice.h
mediaexplorer74/dosbox-x
be9f94b740234f7813bf5a063a558cef9dc7f9a6
[ "MIT" ]
3
2022-02-20T11:06:29.000Z
2022-03-11T08:16:55.000Z
src/hardware/reSID/voice.h
mediaexplorer74/dosbox-x
be9f94b740234f7813bf5a063a558cef9dc7f9a6
[ "MIT" ]
null
null
null
src/hardware/reSID/voice.h
mediaexplorer74/dosbox-x
be9f94b740234f7813bf5a063a558cef9dc7f9a6
[ "MIT" ]
null
null
null
// --------------------------------------------------------------------------- // This file is part of reSID, a MOS6581 SID emulator engine. // Copyright (C) 2004 Dag Lem <resid@nimrod.no> // // 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 // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License along // with this program; if not, write to the Free Software Foundation, Inc., // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // --------------------------------------------------------------------------- #ifndef __VOICE_H__ #define __VOICE_H__ #include "siddefs.h" #include "wave.h" #include "envelope.h" class Voice { public: Voice(); void set_chip_model(chip_model model); void set_sync_source(Voice*); void reset(); void writeCONTROL_REG(reg8); // Amplitude modulated waveform output. // Range [-2048*255, 2047*255]. RESID_INLINE sound_sample output(); void SaveState( std::ostream& stream ); void LoadState( std::istream& stream ); protected: WaveformGenerator wave; EnvelopeGenerator envelope; // Waveform D/A zero level. sound_sample wave_zero; // Multiplying D/A DC offset. sound_sample voice_DC; friend class SID2; }; // ---------------------------------------------------------------------------- // Inline functions. // The following function is defined inline because it is called every // time a sample is calculated. // ---------------------------------------------------------------------------- #if RESID_INLINING || defined(__VOICE_CC__) // ---------------------------------------------------------------------------- // Amplitude modulated waveform output. // Ideal range [-2048*255, 2047*255]. // ---------------------------------------------------------------------------- RESID_INLINE sound_sample Voice::output() { // Multiply oscillator output with envelope output. return ((sound_sample)wave.output() - (sound_sample)wave_zero)*(sound_sample)envelope.output() + (sound_sample)voice_DC; } #endif // RESID_INLINING || defined(__VOICE_CC__) #endif // not __VOICE_H__
31.345679
122
0.596692
c192d15cd50d5c6718be98482e6c11b666678b6a
3,186
c
C
main.c
Moosemorals/ptyGateway
49a06792507c1c56887f819b59b561733bc123a0
[ "MIT" ]
null
null
null
main.c
Moosemorals/ptyGateway
49a06792507c1c56887f819b59b561733bc123a0
[ "MIT" ]
null
null
null
main.c
Moosemorals/ptyGateway
49a06792507c1c56887f819b59b561733bc123a0
[ "MIT" ]
null
null
null
#define _GNU_SOURCE #include <fcntl.h> #include <poll.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> int open_pty(int *aleader, int *aminion) { int leader, minion; char *name; // Get leader side of pseudo terminal (pty) leader = getpt(); if (leader < 0) { return 0; } // Set permissions and unlock pty if (grantpt(leader) < 0 || unlockpt(leader) < 0) { goto close_leader; } // Get the name of the minion name = ptsname(leader); if (name == NULL) { goto close_leader; } minion = open(name, O_RDWR); if (minion == -1) { goto close_leader; } *aleader = leader; *aminion = minion; return 1; close_leader: close(leader); return 0; } void copy(int fdIn, int fdOut) { char buf[1024 * 16]; while (1) { ssize_t r = read(fdIn, buf, sizeof(buf)); if (r == -1) { perror("read"); exit(EXIT_FAILURE); } else if (r == 0) { return; } ssize_t w = write(fdOut, buf, r); if (w == -1) { perror("write"); exit(EXIT_FAILURE); } else if (w != r) { // TODO: Handle this better fprintf(stderr, "Wrote %ld bytes, should have written %ld\n", w, r); exit(EXIT_FAILURE); } } } void child(int minion) { if (dup2(STDIN_FILENO, minion) == -1) { perror("Can't dup2 stdin to minion"); exit(EXIT_FAILURE); } if (dup2(STDOUT_FILENO, minion) == -1) { perror("Can't dup2 stdout to minion"); exit(EXIT_FAILURE); } if (dup2(STDERR_FILENO,minion) == -1) { perror("Can't dup2 stderr to minion"); exit(EXIT_FAILURE); } char * argv[] = {"bash", NULL}; char * envp[] = { NULL }; execve("/bin/bash", argv, envp); perror("Can't run bash"); exit(EXIT_FAILURE); } void parent(int leader) { struct pollfd *pfds = calloc(2, sizeof(struct pollfd)); if (pfds == NULL) { perror("Can't allocate memory for poll"); exit(EXIT_FAILURE); } pfds[0].fd = leader; pfds[0].events = POLLIN; pfds[1].fd = STDIN_FILENO; pfds[1].events = POLLIN; while (1) { int ready; ready = poll(pfds, 1, -1); if (ready == -1) { perror("Poll failed"); exit(EXIT_FAILURE); } if (pfds[0].revents != 0) { if (pfds[0].revents & POLLIN) { copy(pfds[0].fd, STDOUT_FILENO); } else { fprintf(stderr, "pty closed unexpectedly\n"); exit(EXIT_FAILURE); } } if (pfds[1].revents != 0) { if (pfds[1].revents & POLLIN) { copy(pfds[1].fd, leader); } else { fprintf(stderr, "pty closed unexpectedly\n"); exit(EXIT_FAILURE); } } } } int main() { int leader, minion; if (!open_pty(&leader, &minion)) { perror("Can't open pesudo TTY"); exit(EXIT_FAILURE); } pid_t pid = fork(); if (pid == 0) { // Child child(minion); } else if (pid > 0) { // parent parent(leader); } else { perror("Fork failed"); exit(EXIT_FAILURE); } }
20.554839
74
0.531073
146bd774264763f1779a983e1093bc2c7fde01a8
438
h
C
FFHeros/Features/Common/Models/Common/ffSummaryModel.h
imeteora/FFHeros
48ff23b7372b7f113e70463d381e99a073fbcfd1
[ "MIT" ]
null
null
null
FFHeros/Features/Common/Models/Common/ffSummaryModel.h
imeteora/FFHeros
48ff23b7372b7f113e70463d381e99a073fbcfd1
[ "MIT" ]
null
null
null
FFHeros/Features/Common/Models/Common/ffSummaryModel.h
imeteora/FFHeros
48ff23b7372b7f113e70463d381e99a073fbcfd1
[ "MIT" ]
null
null
null
// // ffSummaryModel.h // FFHeros // // Created by ZhuDelun on 2018/5/16. // Copyright © 2018 ZhuDelun. All rights reserved. // #import "gt_Modelizable.h" @interface ffSummaryModel : gt_Modelizable @property (nonatomic, copy) NSString * resourceURI; @property (nonatomic, copy) NSString * name; @property (nonatomic, copy) NSString * type; @property (nonatomic, copy) NSString * role; // special for 'creator' segment @end
23.052632
84
0.707763
9f03e5f48aa4ee20136a3bfd13294d7680e09f4b
8,873
c
C
src/ap/ap_md5c.c
fobser/apache-httpd-openbsd
53bedaefc46214b4f7d5a01aa9e9219ffbba25f3
[ "Apache-1.1" ]
3
2015-10-21T00:32:00.000Z
2021-03-19T02:25:11.000Z
src/ap/ap_md5c.c
fobser/apache-httpd-openbsd
53bedaefc46214b4f7d5a01aa9e9219ffbba25f3
[ "Apache-1.1" ]
null
null
null
src/ap/ap_md5c.c
fobser/apache-httpd-openbsd
53bedaefc46214b4f7d5a01aa9e9219ffbba25f3
[ "Apache-1.1" ]
1
2016-10-19T19:08:07.000Z
2016-10-19T19:08:07.000Z
/* $OpenBSD: ap_md5c.c,v 1.11 2009/10/31 13:29:07 sobrado Exp $ */ /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000-2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * Portions of this software are based upon public domain software * originally written at the National Center for Supercomputing Applications, * University of Illinois, Urbana-Champaign. */ /* * The ap_MD5Encode() routine uses much code obtained from the FreeBSD 3.0 * MD5 crypt() function, which is licenced as follows: * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- */ #include <string.h> #include "ap_config.h" #include "ap_md5.h" #include "ap.h" static void Encode(unsigned char *output, const UINT4 *input, unsigned int len); static void Decode(UINT4 *output, const unsigned char *input, unsigned int len); API_EXPORT(void) ap_MD5Init(AP_MD5_CTX *context) { MD5Init(context); } API_EXPORT(void) ap_MD5Update(AP_MD5_CTX *context, const unsigned char *input, unsigned int inputLen) { MD5Update(context, input, inputLen); } API_EXPORT(void) ap_MD5Final(unsigned char digest[16], AP_MD5_CTX *context) { MD5Final(digest, context); } /* Encodes input (UINT4) into output (unsigned char). Assumes len is a multiple of 4. */ static void Encode(unsigned char *output, const UINT4 *input, unsigned int len) { unsigned int i, j; UINT4 k; for (i = 0, j = 0; j < len; i++, j += 4) { k = input[i]; output[j] = (unsigned char) (k & 0xff); output[j + 1] = (unsigned char) ((k >> 8) & 0xff); output[j + 2] = (unsigned char) ((k >> 16) & 0xff); output[j + 3] = (unsigned char) ((k >> 24) & 0xff); } } /* Decodes input (unsigned char) into output (UINT4). Assumes len is * a multiple of 4. */ static void Decode(UINT4 *output, const unsigned char *input, unsigned int len) { unsigned int i, j; for (i = 0, j = 0; j < len; i++, j += 4) output[i] = ((UINT4) input[j]) | (((UINT4) input[j + 1]) << 8) | (((UINT4) input[j + 2]) << 16) | (((UINT4) input[j + 3]) << 24); } /* * The following MD5 password encryption code was largely borrowed from * the FreeBSD 3.0 /usr/src/lib/libcrypt/crypt.c file, which is * licenced as stated at the top of this file. */ API_EXPORT(void) ap_to64(char *s, unsigned long v, int n) { static unsigned char itoa64[] = /* 0 ... 63 => ASCII - 64 */ "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; while (--n >= 0) { *s++ = itoa64[v&0x3f]; v >>= 6; } } API_EXPORT(void) ap_MD5Encode(const unsigned char *pw, const unsigned char *salt, char *result, size_t nbytes) { /* * Minimum size is 8 bytes for salt, plus 1 for the trailing NUL, * plus 4 for the '$' separators, plus the password hash itself. * Let's leave a goodly amount of leeway. */ char passwd[120], *p; const unsigned char *sp, *ep; unsigned char final[16]; int i; unsigned int sl; int pl; unsigned int pwlen; MD5_CTX ctx, ctx1; unsigned long l; /* * Refine the salt first. It's possible we were given an already-hashed * string as the salt argument, so extract the actual salt value from it * if so. Otherwise just use the string up to the first '$' as the salt. */ sp = salt; /* * If it starts with the magic string, then skip that. */ if (strncmp((char *)sp, AP_MD5PW_ID, AP_MD5PW_IDLEN) == 0) sp += AP_MD5PW_IDLEN; /* * It stops at the first '$' or 8 chars, whichever comes first */ for (ep = sp; (*ep != '\0') && (*ep != '$') && (ep < (sp + 8)); ep++) continue; /* * Get the length of the true salt */ sl = ep - sp; /* * 'Time to make the doughnuts..' */ MD5Init(&ctx); pwlen = strlen((char *)pw); /* * The password first, since that is what is most unknown */ MD5Update(&ctx, pw, pwlen); /* * Then our magic string */ MD5Update(&ctx, (const unsigned char *) AP_MD5PW_ID, AP_MD5PW_IDLEN); /* * Then the raw salt */ MD5Update(&ctx, sp, sl); /* * Then just as many characters of the MD5(pw, salt, pw) */ MD5Init(&ctx1); MD5Update(&ctx1, pw, pwlen); MD5Update(&ctx1, sp, sl); MD5Update(&ctx1, pw, pwlen); MD5Final(final, &ctx1); for(pl = pwlen; pl > 0; pl -= 16) MD5Update(&ctx, final, (pl > 16) ? 16 : (unsigned int) pl); /* * Don't leave anything around in vm they could use. */ memset(final, 0, sizeof(final)); /* * Then something really weird... */ for (i = pwlen; i != 0; i >>= 1) { if (i & 1) MD5Update(&ctx, final, 1); else MD5Update(&ctx, pw, 1); } /* * Now make the output string. We know our limitations, so we * can use the string routines without bounds checking. */ ap_cpystrn(passwd, AP_MD5PW_ID, AP_MD5PW_IDLEN + 1); ap_cpystrn(passwd + AP_MD5PW_IDLEN, (char *)sp, sl + 1); passwd[AP_MD5PW_IDLEN + sl] = '$'; passwd[AP_MD5PW_IDLEN + sl + 1] = '\0'; MD5Final(final, &ctx); /* * And now, just to make sure things don't run too fast.. * On a 60 MHz Pentium this takes 34 msec, so you would * need 30 seconds to build a 1000 entry dictionary... */ for (i = 0; i < 1000; i++) { MD5Init(&ctx1); if (i & 1) MD5Update(&ctx1, pw, pwlen); else MD5Update(&ctx1, final, 16); if (i % 3) MD5Update(&ctx1, sp, sl); if (i % 7) MD5Update(&ctx1, pw, pwlen); if (i & 1) MD5Update(&ctx1, final, 16); else MD5Update(&ctx1, pw, pwlen); MD5Final(final,&ctx1); } p = passwd + strlen(passwd); l = (final[ 0]<<16) | (final[ 6]<<8) | final[12]; ap_to64(p, l, 4); p += 4; l = (final[ 1]<<16) | (final[ 7]<<8) | final[13]; ap_to64(p, l, 4); p += 4; l = (final[ 2]<<16) | (final[ 8]<<8) | final[14]; ap_to64(p, l, 4); p += 4; l = (final[ 3]<<16) | (final[ 9]<<8) | final[15]; ap_to64(p, l, 4); p += 4; l = (final[ 4]<<16) | (final[10]<<8) | final[ 5]; ap_to64(p, l, 4); p += 4; l = final[11] ; ap_to64(p, l, 2); p += 2; *p = '\0'; /* * Don't leave anything around in vm they could use. */ memset(final, 0, sizeof(final)); ap_cpystrn(result, passwd, nbytes - 1); }
29.775168
80
0.636425
1554635bb49a2429dada9986d7b38c58b2883e2a
2,849
c
C
analog.c
MeharunisaAshraf/Line-Follower-Robot
406eda4159f542830f18731d67896f3ab021b9cf
[ "MIT" ]
null
null
null
analog.c
MeharunisaAshraf/Line-Follower-Robot
406eda4159f542830f18731d67896f3ab021b9cf
[ "MIT" ]
null
null
null
analog.c
MeharunisaAshraf/Line-Follower-Robot
406eda4159f542830f18731d67896f3ab021b9cf
[ "MIT" ]
null
null
null
void SystemInit() {} #define SYSCTL_RCGCGPIO_R (*((volatile unsigned long *)0x400FE608)) #define SYSCTL_RCGCADC_R (*((volatile unsigned long *)0x400FE638)) #define GPIO_PORTA_DATA_R (*((volatile unsigned long *)0x400043FC)) #define GPIO_PORTA_DIR_R (*((volatile unsigned long *)0x40004400)) #define GPIO_PORTA_DEN_R (*((volatile unsigned long *)0x4000451C)) #define GPIO_PORTB_DATA_R (*((volatile unsigned long *)0x400053FC)) #define GPIO_PORTB_DIR_R (*((volatile unsigned long *)0x40005400)) #define GPIO_PORTB_DEN_R (*((volatile unsigned long *)0x4000551C)) #define GPIO_PORTF_DATA_R (*((volatile unsigned long *)0x400253FC)) #define GPIO_PORTF_DIR_R (*((volatile unsigned long *)0x40025400)) #define GPIO_PORTF_DEN_R (*((volatile unsigned long *)0x4002551C)) #define ADC_BASE 0x40038000 #define ADC0_PC_R *(volatile long *)(ADC_BASE +0xFC4) #define ADC0_SSPRI_R *(volatile long *)(ADC_BASE+0x020) #define ADC0_ACTSS_R *(volatile long *)(ADC_BASE+0x000) #define ADC0_IM_R *(volatile long *)(ADC_BASE+0x008) #define ADC0_RIS_R *(volatile long *)(ADC_BASE +0x004) #define ADC0_ISC_R *(volatile long *)(ADC_BASE +0x00C) #define ADC0_SAC_R *(volatile long *)(ADC_BASE +0x030) #define ADC0_PSSI_R *(volatile long *)(ADC_BASE+0x028) #define ADC0_SSCTL3_R *(volatile long *)(ADC_BASE+0x0A4) #define ADC0_SSFIFO3_R *(volatile long *)(ADC_BASE +0x0A8) unsigned char Lookup_7Seg_Disp[12]={0xC0,0xF9,0xA4,0xB0,0x99, 0x92,0x82,0xF8,0x80,0x90,0xC6}; unsigned char Temperature_Value[3]={0,0,0xA}; unsigned char i,value=0; unsigned int ADC_value = 0,temperature=0; void ADC_Init(void) { volatile unsigned long delay; SYSCTL_RCGCGPIO_R |= 0x23; SYSCTL_RCGCADC_R |=0x01; delay=SYSCTL_RCGCADC_R; GPIO_PORTA_DIR_R |= 0x38; GPIO_PORTA_DEN_R |= 0x38; GPIO_PORTB_DIR_R |= 0xFF; GPIO_PORTB_DEN_R |=0xFF; GPIO_PORTB_DATA_R |=0xFF; GPIO_PORTF_DIR_R |=0x08; GPIO_PORTF_DEN_R |=0x08; GPIO_PORTF_DATA_R |=0x08; ADC0_PC_R &=0x00; ADC0_PC_R |= 0x01; ADC0_SSPRI_R |=0x3210; ADC0_ACTSS_R &= ~(0x08); ADC0_SSCTL3_R |= 0x0E; ADC0_SAC_R |= 0x04; ADC0_IM_R &= ~(0x08); ADC0_ACTSS_R |= 0x08; } void ADC_Temperature(void){ ADC0_PSSI_R |=0x08; while ((ADC0_RIS_R & 0x08)==0); ADC_value = (ADC0_SSFIFO3_R & 0xFFF); temperature = (unsigned char)(147.5-(ADC_value*3.3*75)/4096); Temperature_Value[0]=temperature%10; Temperature_Value[1]=temperature%10; ADC0_ISC_R |= 0x08; } void Delay(unsigned long count) { int i; for(i=0;i<count;i++) {} } int main() { ADC_Init(); while(1) { for(i=0;i<=2;i++) { value=Temperature_Value[i]; GPIO_PORTB_DATA_R=Lookup_7Seg_Disp[value]; GPIO_PORTA_DATA_R = (0x38-(1<<(i+3))); Delay(1000); } ADC_Temperature(); } }
26.37963
94
0.690067
186c52fd5ef045a573497ec158f0f2842723ce3a
92
c
C
reference/C/sizeof.c
steadylearner/code
ba6df6c38a6e25b7ea996f4df905921e27760e04
[ "MIT" ]
4
2019-07-17T14:43:32.000Z
2022-03-27T21:38:01.000Z
reference/C/sizeof.c
steadylearner/code
ba6df6c38a6e25b7ea996f4df905921e27760e04
[ "MIT" ]
39
2020-09-04T03:31:16.000Z
2022-03-08T22:54:03.000Z
reference/C/sizeof.c
steadylearner/code
ba6df6c38a6e25b7ea996f4df905921e27760e04
[ "MIT" ]
1
2021-03-03T13:04:28.000Z
2021-03-03T13:04:28.000Z
// always use sizeof instead of manually assuming the size struct { char c; int i; }
13.142857
58
0.673913
76b64371021786ee198be616382fcc9caa2a2d37
6,541
c
C
Dark soft/ZeroAccess/Source/Shigure/main.c
ExaByt3s/hack_scripts
cc801b36ea25f3b5a82d2900f53f5036e7abd8ad
[ "WTFPL" ]
3
2021-01-22T19:32:23.000Z
2022-01-03T01:06:44.000Z
Trojan.Win32.ZeroAccess/Source/Shigure/main.c
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
Trojan.Win32.ZeroAccess/Source/Shigure/main.c
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
1
2019-06-18T22:10:53.000Z
2019-06-18T22:10:53.000Z
/******************************************************************************* * * (C) COPYRIGHT AUTHORS, 2016 * * TITLE: MAIN.C * * VERSION: 1.01 * * DATE: 20 Jan 2016 * * Shigure program entry point. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF * ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A * PARTICULAR PURPOSE. * *******************************************************************************/ #pragma comment(lib, "bcrypt.lib") #include "..\shared\global.h" #include "..\shared\cui.h" #include "..\shared\cab.h" #include <Bcrypt.h> HANDLE g_ConOut = NULL; WCHAR BE = 0xFEFF; BOOL g_ConsoleOutput = FALSE; #define T_SFDECRYPTTITLE L"Sirefef/ZeroAccess 3 decryptor v1.0 (10/01/16)" #define T_SFDECRYPTUSAGE L"Usage: zadecrypt inputfile [outputfile]\n\r\te.g. zadecrypt in.dll out.bin\r\n" #define T_SFDECRYPTED L"File decrypted " #define T_SFDECRYPTFAIL L"\r\nError while decrypting file" #define T_SFPRESSANYKEY L"\r\nPress Enter to exit" /* * SfDecryptPayload * * Purpose: * * Decrypt container from resource using as hash md5 from file header bytes. * * CNG variant * */ UINT SfDecryptPayload( LPWSTR lpParameter ) { BOOL cond = FALSE, bSuccess = FALSE; PBYTE cng_object, hashdata, decrypted, enc_data, extracted; ULONG obj_sz, rlen, hdatasz, enc_data_size; BCRYPT_ALG_HANDLE h_alg = NULL; BCRYPT_HASH_HANDLE h_hash = NULL; BCRYPT_KEY_HANDLE h_rc4key = NULL; NTSTATUS status; HANDLE pheap = NULL; PIMAGE_FILE_HEADER fheader; PVOID pdll = NULL; WCHAR InputFile[MAX_PATH + 1], OutputFile[MAX_PATH + 1]; rlen = 0; RtlSecureZeroMemory(InputFile, sizeof(InputFile)); GetCommandLineParam(lpParameter, 1, InputFile, MAX_PATH, &rlen); if (rlen == 0) { SfcuiPrintText(g_ConOut, T_SFDECRYPTUSAGE, g_ConsoleOutput, FALSE); return (UINT)-1; } do { rlen = 0; GetCommandLineParam(lpParameter, 2, OutputFile, MAX_PATH, &rlen); if (rlen == 0) _strcpy(OutputFile, TEXT("out.bin")); pdll = SfuCreateFileMappingNoExec(InputFile); if (pdll == NULL) break; enc_data_size = 0; enc_data = SfLdrQueryResourceData(2, pdll, &enc_data_size); if (enc_data == NULL) break; fheader = &(RtlImageNtHeader(pdll)->FileHeader); status = BCryptOpenAlgorithmProvider(&h_alg, BCRYPT_MD5_ALGORITHM, NULL, 0); if (!NT_SUCCESS(status)) break; obj_sz = 0; rlen = 0; status = BCryptGetProperty(h_alg, BCRYPT_OBJECT_LENGTH, (PUCHAR)&obj_sz, sizeof(obj_sz), &rlen, 0); if (!NT_SUCCESS(status)) break; hdatasz = 0; rlen = 0; status = BCryptGetProperty(h_alg, BCRYPT_HASH_LENGTH, (PUCHAR)&hdatasz, sizeof(hdatasz), &rlen, 0); if (!NT_SUCCESS(status)) break; pheap = HeapCreate(0, 0, 0); if (pheap == NULL) break; cng_object = HeapAlloc(pheap, HEAP_ZERO_MEMORY, obj_sz); if (cng_object == NULL) break; hashdata = HeapAlloc(pheap, HEAP_ZERO_MEMORY, hdatasz); if (hashdata == NULL) break; status = BCryptCreateHash(h_alg, &h_hash, cng_object, obj_sz, NULL, 0, 0); if (!NT_SUCCESS(status)) break; status = BCryptHashData(h_hash, (PUCHAR)fheader, sizeof(IMAGE_FILE_HEADER), 0); if (!NT_SUCCESS(status)) break; status = BCryptFinishHash(h_hash, hashdata, hdatasz, 0); if (!NT_SUCCESS(status)) break; BCryptDestroyHash(h_hash); BCryptCloseAlgorithmProvider(h_alg, 0); HeapFree(pheap, 0, cng_object); h_alg = NULL; h_hash = NULL; status = BCryptOpenAlgorithmProvider(&h_alg, BCRYPT_RC4_ALGORITHM, NULL, 0); if (!NT_SUCCESS(status)) break; obj_sz = 0; rlen = 0; status = BCryptGetProperty(h_alg, BCRYPT_OBJECT_LENGTH, (PUCHAR)&obj_sz, sizeof(obj_sz), &rlen, 0); if (!NT_SUCCESS(status)) break; cng_object = HeapAlloc(pheap, HEAP_ZERO_MEMORY, obj_sz); if (cng_object == NULL) break; status = BCryptGenerateSymmetricKey(h_alg, &h_rc4key, cng_object, obj_sz, hashdata, hdatasz, 0); if (!NT_SUCCESS(status)) break; decrypted = HeapAlloc(pheap, HEAP_ZERO_MEMORY, enc_data_size); if (decrypted == NULL) break; rlen = 0; status = BCryptEncrypt(h_rc4key, enc_data, enc_data_size, NULL, NULL, 0, decrypted, enc_data_size, &rlen, 0); if (!NT_SUCCESS(status)) break; bSuccess = FALSE; enc_data_size = rlen; rlen = 0; extracted = SfcabExtractMemory(decrypted, enc_data_size, &rlen); if (extracted) { if (SfuWriteBufferToFile(OutputFile, extracted, rlen, FALSE, FALSE) == rlen) { bSuccess = TRUE; } LocalFree(extracted); } else { //failed to extract, drop cab as is if (SfuWriteBufferToFile(OutputFile, decrypted, enc_data_size, FALSE, FALSE) == enc_data_size) { bSuccess = TRUE; } } if (bSuccess) { SfcuiPrintText(g_ConOut, T_SFDECRYPTED, g_ConsoleOutput, FALSE); SfcuiPrintText(g_ConOut, OutputFile, g_ConsoleOutput, FALSE); } } while (cond); if (bSuccess == FALSE) { SfcuiPrintText(g_ConOut, T_SFDECRYPTFAIL, g_ConsoleOutput, FALSE); } if (h_rc4key != NULL) BCryptDestroyKey(h_rc4key); if (h_hash != NULL) BCryptDestroyHash(h_hash); if (h_alg != NULL) BCryptCloseAlgorithmProvider(h_alg, 0); if (pheap != NULL) HeapDestroy(pheap); if (pdll != 0) NtUnmapViewOfSection(NtCurrentProcess(), (PVOID)pdll); return 0; } /* * SfMain * * Purpose: * * Shigure main. * */ void SfMain( VOID ) { BOOL cond = FALSE; UINT uResult = 0; DWORD dwTemp; HANDLE StdIn; INPUT_RECORD inp1; __security_init_cookie(); do { g_ConOut = GetStdHandle(STD_OUTPUT_HANDLE); if (g_ConOut == INVALID_HANDLE_VALUE) { uResult = (UINT)-1; break; } g_ConsoleOutput = TRUE; if (!GetConsoleMode(g_ConOut, &dwTemp)) { g_ConsoleOutput = FALSE; } SetConsoleTitle(T_SFDECRYPTTITLE); SetConsoleMode(g_ConOut, ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT | ENABLE_PROCESSED_OUTPUT); if (g_ConsoleOutput == FALSE) { WriteFile(g_ConOut, &BE, sizeof(WCHAR), &dwTemp, NULL); } uResult = SfDecryptPayload(GetCommandLine()); if (g_ConsoleOutput) { SfcuiPrintText(g_ConOut, T_SFPRESSANYKEY, TRUE, FALSE); StdIn = GetStdHandle(STD_INPUT_HANDLE); if (StdIn != INVALID_HANDLE_VALUE) { RtlSecureZeroMemory(&inp1, sizeof(inp1)); ReadConsoleInput(StdIn, &inp1, 1, &dwTemp); ReadConsole(StdIn, &BE, sizeof(BE), &dwTemp, NULL); } } } while (cond); ExitProcess(uResult); }
23.27758
111
0.664272
4997cab61a2d8eb249fdfa0d197fe861c8e52c10
847
h
C
chrome/browser/net/chrome_cookie_notification_details.h
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
chrome/browser/net/chrome_cookie_notification_details.h
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
chrome/browser/net/chrome_cookie_notification_details.h
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_NET_CHROME_COOKIE_NOTIFICATION_DETAILS_H_ #define CHROME_BROWSER_NET_CHROME_COOKIE_NOTIFICATION_DETAILS_H_ #include "services/network/public/mojom/cookie_manager.mojom.h" namespace net { class CanonicalCookie; } struct ChromeCookieDetails { public: ChromeCookieDetails(const net::CanonicalCookie* cookie_copy, bool is_removed, network::mojom::CookieChangeCause cause) : cookie(cookie_copy), removed(is_removed), cause(cause) {} const net::CanonicalCookie* cookie; bool removed; network::mojom::CookieChangeCause cause; }; #endif // CHROME_BROWSER_NET_CHROME_COOKIE_NOTIFICATION_DETAILS_H_
31.37037
73
0.762692
17cc6307eafc81cce671f86f1355c815af48dc2e
282
h
C
Classes/IFMHTTPConfig.h
JohnWong/iOS-file-manager
e23bc600a20939196fdb5b0a34665815938feb72
[ "MIT" ]
1
2015-09-11T19:05:57.000Z
2015-09-11T19:05:57.000Z
Classes/IFMHTTPConfig.h
JohnWong/iOS-file-manager
e23bc600a20939196fdb5b0a34665815938feb72
[ "MIT" ]
null
null
null
Classes/IFMHTTPConfig.h
JohnWong/iOS-file-manager
e23bc600a20939196fdb5b0a34665815938feb72
[ "MIT" ]
null
null
null
// // IFMHTTPConfig.h // iOSFileManager // // Created by John Wong on 9/7/15. // Copyright (c) 2015 John Wong. All rights reserved. // #import <CocoaHttpServer/HTTPConnection.h> @interface IFMHTTPConfig : HTTPConfig @property (nonatomic, strong) NSString *docRoot; @end
17.625
54
0.705674
6fcd1decd584e02e2fea711a0d4b75de0553612a
910
c
C
v1/udpcliserv/udpSvr.c
NicoleRobin/UNP
ffc26150f3444597e678f6004b40f176a933daea
[ "MIT" ]
null
null
null
v1/udpcliserv/udpSvr.c
NicoleRobin/UNP
ffc26150f3444597e678f6004b40f176a933daea
[ "MIT" ]
null
null
null
v1/udpcliserv/udpSvr.c
NicoleRobin/UNP
ffc26150f3444597e678f6004b40f176a933daea
[ "MIT" ]
null
null
null
/* * gcc -o udpSvr ./udpSvr.c */ #include <unistd.h> #include <sys/socket.h> #include <sys/types.h> #include <arpa/inet.h> #include <netinet/in.h> #include <stdio.h> #include <string.h> #include <errno.h> const int PORT = 8080; int main(int argc, char **argv) { int fd = socket(AF_INET, SOCK_DGRAM, 0); if (fd == -1) { perror("socket"); return errno; } struct sockaddr_in addr; memset(&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; addr.sin_addr.s_addr = INADDR_ANY; addr.sin_port = htons(PORT); if (-1 == bind(fd, (struct sockaddr*)&addr, sizeof(addr))) { perror("bind"); return errno; } getchar(); char buf[1500]; int iCount = 0; while(1) { memset(buf, 0, 1024); int iRet = recv(fd, buf, 1500, 0); iCount++; // printf("recv data len [%d]\n", iRet); printf("Recv package count[%d]\t", iCount); printf("recv content [%s]\n", buf); } close(fd); return 0; }
17.169811
59
0.621978
77a8b30e7fd6499e71614e0525df95962b6a9c67
4,088
h
C
gcc_sync_functions.h
RocketSoftware/devel
bcbb8268c3cb2bd6e7fca566317bf2dd15b76018
[ "MIT" ]
null
null
null
gcc_sync_functions.h
RocketSoftware/devel
bcbb8268c3cb2bd6e7fca566317bf2dd15b76018
[ "MIT" ]
null
null
null
gcc_sync_functions.h
RocketSoftware/devel
bcbb8268c3cb2bd6e7fca566317bf2dd15b76018
[ "MIT" ]
null
null
null
#pragma comment(copyright, " © Copyright Rocket Software, Inc. 2016, 2018 ") #if defined(__MVS__) && !defined(__GCC_SYNC_FUNCTIONS__) #define __GCC_SYNC_FUNCTIONS__ 1 #ifdef __cplusplus extern "C" { #endif #include <builtins.h> #include <stdlib.h> #ifndef GCC_SYNC_VOLATILE #define GCC_SYNC_VOLATILE #endif #if !defined(bool) && !defined(__cplusplus) #define bool int #endif #define __cs_4 __cs1 #define __cs_8 __csg #define __arg1(x) x #define SYNC_FETCH_AND_OP_FN(type,type_name,len,name,op,uop) \ static inline type __sync_fetch_and_##name##_##type_name(GCC_SYNC_VOLATILE type *ptr, type value) { \ type old_value = *ptr; \ type new_value; \ do {new_value = uop(old_value op value);} \ while (__cs_##len(&old_value, (void *)ptr, &new_value)); \ return old_value; \ } #define SYNC_OP_AND_FETCH_FN(type,type_name,len,name,op,uop) \ static inline type __sync_##name##_and_fetch_##type_name(GCC_SYNC_VOLATILE type *ptr, type value) { \ type old_value = *ptr; \ type new_value; \ do {new_value = uop(old_value op value);} \ while (__cs_##len(&old_value, (void *)ptr, &new_value)); \ return new_value; \ } #define SYNC_FNS(type,type_name,len) \ SYNC_FETCH_AND_OP_FN(type,type_name,len,add,+,__arg1) \ SYNC_FETCH_AND_OP_FN(type,type_name,len,sub,-,__arg1) \ SYNC_FETCH_AND_OP_FN(type,type_name,len,and,&,__arg1) \ SYNC_FETCH_AND_OP_FN(type,type_name,len,or,|,__arg1) \ SYNC_FETCH_AND_OP_FN(type,type_name,len,xor,^,__arg1) \ SYNC_FETCH_AND_OP_FN(type,type_name,len,nand,&,~) \ SYNC_OP_AND_FETCH_FN(type,type_name,len,add,+,__arg1) \ SYNC_OP_AND_FETCH_FN(type,type_name,len,sub,-,__arg1) \ SYNC_OP_AND_FETCH_FN(type,type_name,len,and,&,__arg1) \ SYNC_OP_AND_FETCH_FN(type,type_name,len,or,|,__arg1) \ SYNC_OP_AND_FETCH_FN(type,type_name,len,xor,^,__arg1) \ SYNC_OP_AND_FETCH_FN(type,type_name,len,nand,&,~) SYNC_FNS(int,int,4) SYNC_FNS(long long,long_long,8) #ifdef __64BIT__ SYNC_FNS(long,long,8) #else SYNC_FNS(long,long,4) #endif SYNC_FNS(unsigned int,unsigned_int,4) SYNC_FNS(unsigned long long,unsigned_long_long,8) #ifdef __64BIT__ SYNC_FNS(unsigned long,unsigned_long,8) #else SYNC_FNS(unsigned long,unsigned_long,4) #endif #define SYNC_BOOL_COMPARE_AND_SWAP_FN(type,type_name,len) \ static inline bool __sync_bool_compare_and_swap_##type_name(GCC_SYNC_VOLATILE type *ptr, type oldval, type newval) { \ return !__cs_##len(&oldval, (void *)ptr, &newval); \ } #define SYNC_VAL_COMPARE_AND_SWAP_FN(type,type_name,len) \ static inline type __sync_val_compare_and_swap_##type_name(GCC_SYNC_VOLATILE type *ptr, type oldval, type newval) { \ __cs_##len(&oldval, (void *)ptr, &newval); \ return oldval; \ } #define SYNC_CS_FNS(type,type_name,len) \ SYNC_BOOL_COMPARE_AND_SWAP_FN(type,type_name,len) \ SYNC_VAL_COMPARE_AND_SWAP_FN(type,type_name,len) SYNC_CS_FNS(int,int,4) SYNC_CS_FNS(long long,long_long,8) #ifdef __64BIT__ SYNC_CS_FNS(long,long,8) SYNC_CS_FNS(void *,void_ptr,8) #else SYNC_CS_FNS(long,long,4) SYNC_CS_FNS(void *,void_ptr,4) #endif #if 0 /* __asm__ modifier strings do not work in ascii mode c++ for some reason */ /* apparantly __sync_synchronize is a undocumented builtin function. No telling whether it works. */ static inline void __sync_synchronize_(void) { __asm__ volatile ("BCR 15,0"); }; static inline int __sync_lock_test_and_set_int(GCC_SYNC_VOLATILE int *ptr, int value) { int result; __asm__ volatile (" XR %0,%0\n TS %1\n IPM %0\n SRL %0,28":"=r"(result):"a"(ptr)); return result; } static inline void __sync_lock_release_int(GCC_SYNC_VOLATILE int *ptr) { __asm__ volatile (" MVI X'00',%0\n BC 15,0"::"a"(ptr)); } #else static inline void __sync_synchronize_(void) { int x = 0; __sync_fetch_and_add_int(&x, 0); } static inline int __sync_lock_test_and_set_int(GCC_SYNC_VOLATILE int *ptr, int value) { return __sync_fetch_and_or_int(ptr, -1); } static inline void __sync_lock_release_int(GCC_SYNC_VOLATILE int *ptr) { __sync_fetch_and_and_int(ptr, 0); } #endif #ifdef __cplusplus } #endif #endif /* © 2016-2018 Rocket Software, Inc. or its affiliates. All Rights Reserved. ROCKET SOFTWARE, INC. */
30.969697
118
0.759051
a057ce69cbffd4586a2fcef52a803554e0569a2e
22
c
C
kernel/basic/arch/bsp/raspi/ipi.c
MisaZhu/EwokOS
daa89ff9f3c326f30c6bc6a5d3568f686a940485
[ "Apache-2.0" ]
166
2018-02-20T06:23:58.000Z
2022-03-15T08:25:16.000Z
kernel/basic/arch/bsp/raspi/ipi.c
MisaZhu/EwokOS
daa89ff9f3c326f30c6bc6a5d3568f686a940485
[ "Apache-2.0" ]
9
2019-05-04T03:27:45.000Z
2020-12-04T06:52:54.000Z
kernel/basic/arch/bsp/raspi/ipi.c
MisaZhu/EwokOS
daa89ff9f3c326f30c6bc6a5d3568f686a940485
[ "Apache-2.0" ]
32
2018-02-19T11:37:38.000Z
2022-03-24T08:42:51.000Z
#include <dev/ipi.h>
7.333333
20
0.636364
e287c8541eb4250d2cb14fcf8d0468c111b7340e
484
h
C
CondFormats/DataRecord/interface/HcalRecoParamsRcd.h
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CondFormats/DataRecord/interface/HcalRecoParamsRcd.h
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CondFormats/DataRecord/interface/HcalRecoParamsRcd.h
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#ifndef HcalRecoParamsRcd_H #define HcalRecoParamsRcd_H #include "FWCore/Framework/interface/DependentRecordImplementation.h" #include "Geometry/Records/interface/HcalRecNumberingRecord.h" #include "Geometry/Records/interface/IdealGeometryRecord.h" class HcalRecoParamsRcd : public edm::eventsetup::DependentRecordImplementation< HcalRecoParamsRcd, edm::mpl::Vector<HcalRecNumberingRecord, IdealGeometryRecord> > {}; #endif
48.4
97
0.745868
3ee02a50b8bfab073009cd6ac202e6365b903601
700
h
C
api/os/os.h
morteza-jamali/neutralinojs
d1dadf3627b9bba84ea6582d2bce967b0d958875
[ "MIT" ]
null
null
null
api/os/os.h
morteza-jamali/neutralinojs
d1dadf3627b9bba84ea6582d2bce967b0d958875
[ "MIT" ]
null
null
null
api/os/os.h
morteza-jamali/neutralinojs
d1dadf3627b9bba84ea6582d2bce967b0d958875
[ "MIT" ]
null
null
null
#ifndef OS_H #define OS_H namespace os { struct MessageBoxOptions { string type; string title; string content; }; struct MessageBoxResult { bool hasError = false; string error; bool yesButtonClicked = false; }; string execCommand(string command); MessageBoxResult showMessageBox(MessageBoxOptions options); namespace controllers { json execCommand(json input); json getEnvar(json input); json dialogOpen(json input); json dialogSave(json input); json showNotification(json input); json showMessageBox(json input); json setTray(json input); } // namespace controllers } // namespace os #endif
22.580645
63
0.671429
85f5835e373a0b5af2b8a0f0505d406cfad68398
4,071
c
C
test/log_test.c
jetperch/fitterbap
dc29db72c2d7b01d90556a251be0a361574033bc
[ "Apache-2.0" ]
21
2021-05-14T20:16:56.000Z
2022-03-30T18:54:31.000Z
test/log_test.c
jetperch/fitterbap
dc29db72c2d7b01d90556a251be0a361574033bc
[ "Apache-2.0" ]
null
null
null
test/log_test.c
jetperch/fitterbap
dc29db72c2d7b01d90556a251be0a361574033bc
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2014-2021 Jetperch LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef FBP_LOG_GLOBAL_LEVEL #define FBP_LOG_GLOBAL_LEVEL FBP_LOG_LEVEL_ALL #endif #ifndef FBP_LOG_LEVEL #define FBP_LOG_LEVEL FBP_LOG_LEVEL_ALL #endif #define FBP_LOG_PRINTF(level, format, ...) \ fbp_log_printf_("%c " format "\n", fbp_log_level_char[level], __VA_ARGS__); #include <stdarg.h> #include <stddef.h> #include <setjmp.h> #include <cmocka.h> #include <stdarg.h> #include <stdio.h> #include "fitterbap/log.h" void my_printf(const char * format, ...) { char str[256]; va_list arg; va_start(arg, format); vsnprintf(str, sizeof(str), format, arg); va_end(arg); check_expected_ptr(str); } static void test_logf(void **state) { (void) state; fbp_log_initialize(my_printf); expect_string(my_printf, str, "C hello world\n"); FBP_LOG_CRITICAL("%s %s", "hello", "world"); expect_string(my_printf, str, "E hello world\n"); FBP_LOG_ERROR("%s %s", "hello", "world"); expect_string(my_printf, str, "W hello world\n"); FBP_LOG_WARNING("%s %s", "hello", "world"); expect_string(my_printf, str, "N hello world\n"); FBP_LOG_NOTICE("%s %s", "hello", "world"); expect_string(my_printf, str, "I hello world\n"); FBP_LOG_INFO("%s %s", "hello", "world"); expect_string(my_printf, str, "D hello world\n"); FBP_LOG_DEBUG1("%s %s", "hello", "world"); expect_string(my_printf, str, "D hello world\n"); FBP_LOG_DEBUG2("%s %s", "hello", "world"); expect_string(my_printf, str, "D hello world\n"); FBP_LOG_DEBUG3("%s %s", "hello", "world"); } static void test_logs(void **state) { (void) state; fbp_log_initialize(my_printf); expect_string(my_printf, str, "C hello\n"); FBP_LOG_CRITICAL("hello"); expect_string(my_printf, str, "E hello\n"); FBP_LOG_ERROR("hello"); expect_string(my_printf, str, "W hello\n"); FBP_LOG_WARNING("hello"); expect_string(my_printf, str, "N hello\n"); FBP_LOG_NOTICE("hello"); expect_string(my_printf, str, "I hello\n"); FBP_LOG_INFO("hello"); expect_string(my_printf, str, "D hello\n"); FBP_LOG_DEBUG1("hello"); expect_string(my_printf, str, "D hello\n"); FBP_LOG_DEBUG2("hello"); expect_string(my_printf, str, "D hello\n"); FBP_LOG_DEBUG3("hello"); } static void test_local_levels(void **state) { (void) state; #undef FBP_LOG_LEVEL #define FBP_LOG_LEVEL FBP_LOG_LEVEL_DEBUG fbp_log_initialize(my_printf); expect_string(my_printf, str, "D hello\n"); FBP_LOG_DEBUG("%s", "hello"); FBP_LOG_DEBUG2("%s", "hello"); expect_string(my_printf, str, "D hello\n"); FBP_LOG_DEBUG("hello"); FBP_LOG_DEBUG2("hello"); #undef FBP_LOG_LEVEL #define FBP_LOG_LEVEL FBP_LOG_LEVEL_ALL } static void test_global_levels(void **state) { (void) state; #undef FBP_LOG_GLOBAL_LEVEL #define FBP_LOG_GLOBAL_LEVEL FBP_LOG_LEVEL_DEBUG fbp_log_initialize(my_printf); expect_string(my_printf, str, "D hello\n"); FBP_LOG_DEBUG("%s", "hello"); FBP_LOG_DEBUG2("%s", "hello"); expect_string(my_printf, str, "D hello\n"); FBP_LOG_DEBUG("hello"); FBP_LOG_DEBUG2("hello"); #undef FBP_LOG_GLOBAL_LEVEL #define FBP_LOG_GLOBAL_LEVEL FBP_LOG_LEVEL_ALL } int main(void) { const struct CMUnitTest tests[] = { cmocka_unit_test(test_logf), cmocka_unit_test(test_logs), cmocka_unit_test(test_local_levels), cmocka_unit_test(test_global_levels), }; return cmocka_run_group_tests(tests, NULL, NULL); }
31.55814
79
0.688283
0ee755c2f5af0d67687f55fbf8b72d08633487d2
2,193
h
C
node_modules/ttf2woff2/csrc/woff2/glyph.h
elektronikasa/GWK
02114fb711f6e14063a6ee586f859cd1735243d0
[ "MIT" ]
777
2017-08-29T15:15:32.000Z
2022-03-21T05:29:41.000Z
node_modules/ttf2woff2/csrc/woff2/glyph.h
elektronikasa/GWK
02114fb711f6e14063a6ee586f859cd1735243d0
[ "MIT" ]
66
2017-08-30T18:31:18.000Z
2021-08-02T10:59:35.000Z
node_modules/ttf2woff2/csrc/woff2/glyph.h
elektronikasa/GWK
02114fb711f6e14063a6ee586f859cd1735243d0
[ "MIT" ]
123
2017-08-30T01:19:34.000Z
2022-03-17T22:55:31.000Z
// Copyright 2013 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // Data model and I/O for glyph data within sfnt format files for the purpose of // performing the preprocessing step of the WOFF 2.0 conversion. #ifndef WOFF2_GLYPH_H_ #define WOFF2_GLYPH_H_ #include <stddef.h> #include <inttypes.h> #include <vector> namespace woff2 { // Represents a parsed simple or composite glyph. The composite glyph data and // instructions are un-parsed and we keep only pointers to the raw data, // therefore the glyph is valid only so long the data from which it was parsed // is around. class Glyph { public: Glyph() : instructions_size(0), composite_data_size(0) {} // Bounding box. int16_t x_min; int16_t x_max; int16_t y_min; int16_t y_max; // Instructions. uint16_t instructions_size; const uint8_t* instructions_data; // Data model for simple glyphs. struct Point { int x; int y; bool on_curve; }; std::vector<std::vector<Point> > contours; // Data for composite glyphs. const uint8_t* composite_data; uint32_t composite_data_size; bool have_instructions; }; // Parses the glyph from the given data. Returns false on parsing failure or // buffer overflow. The glyph is valid only so long the input data pointer is // valid. bool ReadGlyph(const uint8_t* data, size_t len, Glyph* glyph); // Stores the glyph into the specified dst buffer. The *dst_size is the buffer // size on entry and is set to the actual (unpadded) stored size on exit. // Returns false on buffer overflow. bool StoreGlyph(const Glyph& glyph, uint8_t* dst, size_t* dst_size); } // namespace woff2 #endif // WOFF2_GLYPH_H_
30.458333
80
0.73917
856322d0bb855cf9d506482105a23c18826d1e9f
543
h
C
qqtw/qqheaders7.2/TBStoryInteractiveContentDelegate-Protocol.h
onezens/QQTweak
04b9efd1d93eba8ef8fec5cf9a20276637765777
[ "MIT" ]
5
2018-02-20T14:24:17.000Z
2020-08-06T09:31:21.000Z
qqtw/qqheaders7.2/TBStoryInteractiveContentDelegate-Protocol.h
onezens/QQTweak
04b9efd1d93eba8ef8fec5cf9a20276637765777
[ "MIT" ]
1
2020-06-10T07:49:16.000Z
2020-06-12T02:08:35.000Z
qqtw/qqheaders7.2/TBStoryInteractiveContentDelegate-Protocol.h
onezens/SmartQQ
04b9efd1d93eba8ef8fec5cf9a20276637765777
[ "MIT" ]
null
null
null
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" @class TBStoryVideoCommentInfo; @protocol TBStoryInteractiveContentDelegate <NSObject> @optional - (void)didCommentCellLongTap:(TBStoryVideoCommentInfo *)arg1; - (void)didCommentCellTap:(TBStoryVideoCommentInfo *)arg1; - (void)didCommentNickTap; - (void)didFoldTipsCellTap; - (void)didLikeCellTap; - (void)didLikeNickTap; - (void)didNickChange; - (void)didTotalTipsCellTap; @end
22.625
83
0.74954
3f7c1fa311fe571ff193d4d281a7e2dcb2ac2497
5,206
h
C
include/mfc_templ_defines.h
tobias-loew/mixins
e443eab36108be4a1cb079d9a2b4b4f01a5a12c9
[ "BSL-1.0" ]
2
2020-09-10T11:36:28.000Z
2020-12-16T18:36:31.000Z
include/mfc_templ_defines.h
tobias-loew/mixins
e443eab36108be4a1cb079d9a2b4b4f01a5a12c9
[ "BSL-1.0" ]
null
null
null
include/mfc_templ_defines.h
tobias-loew/mixins
e443eab36108be4a1cb079d9a2b4b4f01a5a12c9
[ "BSL-1.0" ]
1
2020-12-16T18:36:46.000Z
2020-12-16T18:36:46.000Z
// Usage is granted as specified in the following "Boost Software License - Version 1.0", but usage and / or distribution and / or selling as a or as part of a commercial Fortran to C / C++ translation - tool and / or translation - service is prohibited. // // // Boost Software License - Version 1.0 - August 17th, 2003 // // Permission is hereby granted, free of charge, to any person or organization // obtaining a copy of the software and accompanying documentation covered by // this license(the "Software") to use, reproduce, display, distribute, // execute, and transmit the Software, and to prepare derivative works of the // Software, and to permit third - parties to whom the Software is furnished to // do so, all subject to the following : // // The copyright notices in the Software and this entire statement, including // the above license grant, this restriction and the following disclaimer, // must be included in all copies of the Software, in whole or in part, and // all derivative works of the Software, unless such copies or derivative // works are solely in the form of machine - executable object code generated by // a source language processor. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON - INFRINGEMENT.IN NO EVENT // SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE // FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. /*============================================================================= Copyright (c) 2019 Tobias Loew Distributed under the Boost Software License, Version 1.0. (See above or at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #pragma once /////////////////////////////////////////////////////////////////////////////// // // mfc_templ_defines.h // // inline versions of MFC's message-map macros that work within template-class // (but also work in non-template classes) // usage: // // template<...> // class derived : public base { // // public: // using this_type = derived; // using base_type = base; // // ... // // BEGIN_MESSAGE_MAP_INLINE(this_type, base_type) // ON_WM_... // END_MESSAGE_MAP_INLINE() // }; // // // no DECLARE_MESSAGE_MAP... or IMPLEMENT_MESSAGE_MAP... needed! // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // definition for MESSAGE_MAP: // the original, non-template version /********************************************** #define BEGIN_MESSAGE_MAP(theClass, baseClass) \ PTM_WARNING_DISABLE \ const AFX_MSGMAP* theClass::GetMessageMap() const \ { return GetThisMessageMap(); } \ const AFX_MSGMAP* PASCAL theClass::GetThisMessageMap() \ { \ typedef theClass ThisClass; \ typedef baseClass TheBaseClass; \ static const AFX_MSGMAP_ENTRY _messageEntries[] = \ { #define END_MESSAGE_MAP() \ {0, 0, 0, 0, AfxSig_end, (AFX_PMSG)0 } \ }; \ static const AFX_MSGMAP messageMap = \ { &TheBaseClass::GetThisMessageMap, &_messageEntries[0] }; \ return &messageMap; \ } \ PTM_WARNING_RESTORE *************************************************/ #ifndef POINTER_CAST_WARNING_DISABLE #define POINTER_CAST_WARNING_DISABLE \ __pragma(warning( push )) \ __pragma(warning( disable : 4407 )) #define POINTER_CAST_WARNING_RESTORE \ __pragma(warning( pop )) #endif #ifndef PTM_WARNING_DISABLE #define PTM_WARNING_DISABLE \ __pragma(warning( push )) \ __pragma(warning( disable : 4867 )) #define PTM_WARNING_RESTORE \ __pragma(warning( pop )) #endif #define STATIC_ASSERT_CCMDTARGET_IS_FIRST_BASE(theClass) \ static_assert(offsetof(theClass, CCmdTarget::m_dwRef) == offsetof(CCmdTarget, m_dwRef), "") // class inline version #define BEGIN_MESSAGE_MAP_INLINE(theClass, baseClass) \ protected: \ PTM_WARNING_DISABLE \ POINTER_CAST_WARNING_DISABLE \ virtual const AFX_MSGMAP* GetMessageMap() const \ { return GetThisMessageMap(); } \ static const AFX_MSGMAP* PASCAL GetThisMessageMap() \ { \ static_assert(offsetof(theClass, CCmdTarget::m_dwRef) == offsetof(CCmdTarget, m_dwRef), "");\ typedef theClass ThisClass; \ typedef baseClass TheBaseClass; \ __pragma(warning(push)) \ __pragma(warning(disable: 4640)) /* message maps can only be called by single threaded message pump */ \ static const AFX_MSGMAP_ENTRY _messageEntries[] = \ { #define END_MESSAGE_MAP_INLINE() \ {0, 0, 0, 0, AfxSig_end, (AFX_PMSG)0 } \ }; \ static const AFX_MSGMAP messageMap = \ { &TheBaseClass::GetThisMessageMap, &_messageEntries[0] }; \ return &messageMap; \ } \ POINTER_CAST_WARNING_RESTORE \ PTM_WARNING_RESTORE #define BEGIN_MESSAGE_MAP_INLINE_THIS_BASE() BEGIN_MESSAGE_MAP_INLINE(this_type, base_type)
34.476821
254
0.648483
28fd81c9f68bc7b58e9d4a3a5f30ccac40582486
1,552
h
C
src/batterytech/src/batterytech/ui/UIAnimator.h
puretekniq/batterytech
cc831b2835b7bf4826948831f0274e3d80921339
[ "MIT", "BSD-3-Clause-Clear", "Zlib", "BSD-3-Clause" ]
10
2015-04-07T22:23:31.000Z
2016-03-06T11:48:32.000Z
src/batterytech/src/batterytech/ui/UIAnimator.h
robdoesstuff/batterytech
cc831b2835b7bf4826948831f0274e3d80921339
[ "MIT", "BSD-3-Clause-Clear", "Zlib", "BSD-3-Clause" ]
3
2015-05-17T10:45:48.000Z
2016-07-29T18:34:53.000Z
src/batterytech/src/batterytech/ui/UIAnimator.h
puretekniq/batterytech
cc831b2835b7bf4826948831f0274e3d80921339
[ "MIT", "BSD-3-Clause-Clear", "Zlib", "BSD-3-Clause" ]
4
2015-05-03T03:00:48.000Z
2016-03-03T12:49:01.000Z
/* * BatteryTech * Copyright (c) 2010 Battery Powered Games LLC. * * This code is a component of BatteryTech and is subject to the 'BatteryTech * End User License Agreement'. Among other important provisions, this * license prohibits the distribution of source code to anyone other than * authorized parties. If you have any questions or would like an additional * copy of the license, please contact: support@batterypoweredgames.com */ //============================================================================ // Name : UIAnimator.h // Description : Abstract base class for UI Animators. // Usage : Subclass with specific functionality. //============================================================================ #ifndef UIANIMATOR_H_ #define UIANIMATOR_H_ #include "../primitives.h" #include "../render/GraphicsConfiguration.h" #include "UIComponent.h" namespace BatteryTech { class UIComponent; class Context; /** \brief UIAnimator Base class for bolt-on animator components * \ingroup UI * \class UIAnimator */ class UIAnimator { public: UIAnimator(); virtual ~UIAnimator(); virtual void reset(){}; virtual void update(F32 delta){}; virtual void drawPreComponent(Context *context){}; virtual void drawPostComponent(Context *context){}; virtual void setComponent(UIComponent *component){ this->component = component; }; virtual BOOL32 isComplete(){return TRUE;}; protected: UIComponent *component; }; } #endif /* UIANIMATOR_H_ */
31.04
85
0.636598
5f951e2cc6bf60cb6c23d277e81825f0c713d1d7
389
h
C
OCExpandableButton/OCAppDelegate.h
ocrickard/OCExpandableButton
380231abdc6e44842431d5658c2dda41799feaad
[ "MIT" ]
86
2015-01-04T08:09:02.000Z
2021-05-14T08:52:18.000Z
OCExpandableButton/OCAppDelegate.h
rnystrom/OCExpandableButton
2c9de5ca55aadba849996f73bde73fabc21b28e3
[ "MIT" ]
2
2015-07-07T14:40:41.000Z
2015-07-08T04:38:00.000Z
OCExpandableButton/OCAppDelegate.h
rnystrom/OCExpandableButton
2c9de5ca55aadba849996f73bde73fabc21b28e3
[ "MIT" ]
14
2015-01-04T08:09:02.000Z
2020-12-25T11:34:47.000Z
// // OCAppDelegate.h // OCExpandableButton // // Created by Oliver Rickard on 5/18/13. // Copyright (c) 2013 Oliver Rickard. All rights reserved. // #import <UIKit/UIKit.h> @class OCViewController; @interface OCAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) OCViewController *viewController; @end
19.45
63
0.745501
5f9a247c3defc5fe781298ba6397c8cb8c0b5592
2,467
c
C
source/lib/system/stdlib/mkstemp.c
gil0mendes/Infinity-OS
f0c52fa48b556e895d82a5eedc15eef55aa81f10
[ "MIT" ]
22
2017-02-24T21:21:49.000Z
2022-01-06T22:20:39.000Z
source/lib/system/stdlib/mkstemp.c
gil0mendes/Infinity-OS
f0c52fa48b556e895d82a5eedc15eef55aa81f10
[ "MIT" ]
1
2020-05-12T17:14:33.000Z
2021-04-14T07:09:00.000Z
source/lib/system/stdlib/mkstemp.c
gil0mendes/Infinity-OS
f0c52fa48b556e895d82a5eedc15eef55aa81f10
[ "MIT" ]
1
2020-03-18T01:28:31.000Z
2020-03-18T01:28:31.000Z
/* * Copyright (C) 2008-2010 Gil Mendes * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /** * @file * @brief Temporary file functions. */ #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> /** Letters to use for mkstemp(). */ static const char *mkstemp_letters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; /** * Create and open a temporary file. * * Creates and opens a new temporary file, with a name based on the given * template. The last 6 characters of the template must be XXXXXX, which * will be overwritten by the call. * * @param tpl Template to base file name on. * * @return File descriptor for file. */ int mkstemp(char *tpl) { size_t len, lcount, i, j; char *dest; int fd; if((len = strlen(tpl)) < 6) { errno = EINVAL; return -1; } dest = (tpl + len) - 6; if(strcmp(dest, "XXXXXX") != 0) { errno = EINVAL; return -1; } lcount = strlen(mkstemp_letters); for(i = 0; i < TMP_MAX; i++) { for(j = 0; j < 6; j++) dest[j] = mkstemp_letters[rand() % lcount]; fd = open(tpl, O_RDWR | O_CREAT | O_EXCL, 0600); if(fd >= 0) { return fd; } else if(errno != EEXIST) { return -1; } } errno = EEXIST; return -1; } /** * Create a temporary file. * * Creates new temporary file, with a name based on the given template. The * last 6 characters of the template must be XXXXXX, which will be overwritten * by the call. It is not recommended to use this function; use mkstemp() * instead. * * @param tpl Template to base file name on. * * @return Value supplied for tpl. */ char *mktemp(char *tpl) { int fd; fd = mkstemp(tpl); if(fd < 0) { tpl[0] = 0; return tpl; } close(fd); unlink(tpl); return tpl; }
24.186275
78
0.678962
5c9292e06c009091275f5fcf67545e7550f5f9a9
275
h
C
JSONModelDemo_iOS/CoreDataViewController.h
isabella232/JSONModel
f3df53d68f7401cb9c28c43413521ffd3f032a70
[ "MIT" ]
1
2015-01-26T07:39:19.000Z
2015-01-26T07:39:19.000Z
JSONModelDemo_iOS/CoreDataViewController.h
jbasttdi/JSONModel
2cdc5e4b2d4fc9699f42512db85686bfdada1971
[ "MIT" ]
null
null
null
JSONModelDemo_iOS/CoreDataViewController.h
jbasttdi/JSONModel
2cdc5e4b2d4fc9699f42512db85686bfdada1971
[ "MIT" ]
1
2022-03-22T17:49:27.000Z
2022-03-22T17:49:27.000Z
// // CoreDataViewController.h // JSONModelDemo_iOS // // Created by Marin Todorov on 22/1/14. // Copyright (c) 2014 Underplot ltd. All rights reserved. // #import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @interface CoreDataViewController : UIViewController @end
18.333333
58
0.730909
557e31d09e17af2e7cd5dbc85d2f55b8c337fa86
7,910
c
C
Programs/WithoutMultiplication/crypto_scalarmult/curve25519/Radix2.26/scalarmult.c
stefanberg96/NaCl-RISC-V
b6be3e9ddb54a8d6ee9595fa9d5590246f8abab4
[ "MIT" ]
4
2020-06-28T10:20:58.000Z
2021-03-06T09:44:21.000Z
Programs/WithoutMultiplication/crypto_scalarmult/curve25519/Radix2.26/scalarmult.c
stefanberg96/NaCl-RISC-V
b6be3e9ddb54a8d6ee9595fa9d5590246f8abab4
[ "MIT" ]
null
null
null
Programs/WithoutMultiplication/crypto_scalarmult/curve25519/Radix2.26/scalarmult.c
stefanberg96/NaCl-RISC-V
b6be3e9ddb54a8d6ee9595fa9d5590246f8abab4
[ "MIT" ]
null
null
null
#include "scalarmult.h" #include "stdio.h" extern void karatsuba226_255(unsigned int *, const unsigned int *, const unsigned int *); extern void square226(unsigned int *, const unsigned int *); extern void mainloop226_asm(unsigned int *, const unsigned int *); // addition of a and b // possible need to squeeze for the karatsuba void add226(unsigned int out[10], const unsigned int a[10], const unsigned int b[10]) { unsigned int j; unsigned int u; u = 0; for (j = 0; j < 9; ++j) { u += a[j] + b[j]; out[j] = u & 0x3ffffff; u >>= 26; } u += a[9] + b[9]; out[9] = u; squeeze226(out); } void add226_wo_squeeze(unsigned int out[10], const unsigned int a[10], const unsigned int b[10]) { unsigned int j; unsigned int u; u = 0; for (j = 0; j < 9; ++j) { u += a[j] + b[j]; out[j] = u & 0x3ffffff; u >>= 26; } u += a[9] + b[9]; out[9] = u; } // subtraction of a and b void sub226(unsigned int out[10], const unsigned int a[10], const unsigned int b[10]) { unsigned int j; unsigned long long u; u = 0x3fffda0; for (j = 0; j < 9; ++j) { u += a[j] + 0xffffffc000000 - b[j]; out[j] = u & 0x3ffffff; u >>= 26; } u += a[9] - b[9]; out[9] = u; squeeze226(out); } void add(unsigned int out[32], const unsigned int a[32], const unsigned int b[32]) { unsigned int j; unsigned int u; u = 0; for (j = 0; j < 31; ++j) { u += a[j] + b[j]; out[j] = u & 255; u >>= 8; } u += a[31] + b[31]; out[31] = u; } const unsigned int minusp[10] = {19, 0, 0, 0, 0, 0, 0, 0, 0, 0x200000}; //static const unsigned int minusp[32] = {19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0, 0, 0, 0, 0, 0, 0, 0, 0, 128}; // no idea but only runs once so no need to optimize the shit out of it. void freeze(unsigned int a[10]) { unsigned int aorig[10]; unsigned int j; unsigned int negative; for (j = 0; j < 10; ++j) aorig[j] = a[j]; add226_wo_squeeze(a, a, minusp); negative = -((a[9] >> 21) & 1); for (j = 0; j < 10; ++j) a[j] ^= negative & (aorig[j] ^ a[j]); } /* const unsigned int minusp[10] = {19, 0, 0, 0, 0, 0, 0, 0, 0, 0x200000}; void freeze(unsigned int a[10]) { unsigned int aorig[10]; unsigned int j; unsigned int negative; for (j = 0; j < 10; ++j) aorig[j] = a[j]; add226_wo_squeeze(a, a, minusp); negative = -((a[9] >> 21) & 1); for (j = 0; j < 10; ++j) a[j] ^= negative & (aorig[j] ^ a[j]); } */ void recip226(unsigned int out[10], const unsigned int z[10]) { unsigned int z11[10]; unsigned int t0[10]; unsigned int t1[10]; unsigned int t2[10]; int i; /* 2 */ karatsuba226_255(z11, z, z); /* 4 */ karatsuba226_255(t0, z11, z11); /* 8 */ karatsuba226_255(t0, t0, t0); /* 9 */ karatsuba226_255(t0, t0, z); /* 11 */ karatsuba226_255(z11, z11, t0); /* 22 */ karatsuba226_255(t1, z11, z11); /* 2^5 - 2^0 = 31 */ karatsuba226_255(t0, t1, t0); /* 2^6 - 2^1 */ karatsuba226_255(t1, t0, t0); /* 2^7 - 2^2 */ karatsuba226_255(t1, t1, t1); /* 2^8 - 2^3 */ karatsuba226_255(t1, t1, t1); /* 2^9 - 2^4 */ karatsuba226_255(t1, t1, t1); /* 2^10 - 2^5 */ karatsuba226_255(t1, t1, t1); /* 2^10 - 2^0 */ karatsuba226_255(t1, t0, t1); // last use z2_5_0 /* 2^11 - 2^1 */ karatsuba226_255(t0, t1, t1); /* 2^12 - 2^2 */ karatsuba226_255(t0, t0, t0); /* 2^20 - 2^10 */ for (i = 2; i < 10; i += 2) { karatsuba226_255(t0, t0, t0); karatsuba226_255(t0, t0, t0); } /* 2^20 - 2^0 */ karatsuba226_255(t0, t1, t0); /* 2^21 - 2^1 */ karatsuba226_255(t2, t0, t0); /* 2^22 - 2^2 */ karatsuba226_255(t2, t2, t2); /* 2^40 - 2^20 */ for (i = 2; i < 20; i += 2) { karatsuba226_255(t2, t2, t2); karatsuba226_255(t2, t2, t2); } /* 2^40 - 2^0 */ karatsuba226_255(t0, t0, t2); // last use of z2_20_0 /* 2^41 - 2^1 */ karatsuba226_255(t0, t0, t0); /* 2^42 - 2^2 */ karatsuba226_255(t0, t0, t0); /* 2^50 - 2^10 */ for (i = 2; i < 10; i += 2) { karatsuba226_255(t0, t0, t0); karatsuba226_255(t0, t0, t0); } /* 2^50 - 2^0 */ karatsuba226_255(t2, t0, t1); // last use z2_10_0 /* 2^51 - 2^1 */ karatsuba226_255(t0, t2, t2); /* 2^52 - 2^2 */ karatsuba226_255(t0, t0, t0); /* 2^100 - 2^50 */ for (i = 2; i < 50; i += 2) { karatsuba226_255(t0, t0, t0); karatsuba226_255(t0, t0, t0); } /* 2^100 - 2^0 */ karatsuba226_255(t1, t0, t2); /* 2^101 - 2^1 */ karatsuba226_255(t0, t1, t1); /* 2^102 - 2^2 */ karatsuba226_255(t0, t0, t0); /* 2^200 - 2^100 */ for (i = 2; i < 100; i += 2) { karatsuba226_255(t0, t0, t0); karatsuba226_255(t0, t0, t0); } /* 2^200 - 2^0 */ karatsuba226_255(t0, t0, t1); // lst use z2_100_0 /* 2^201 - 2^1 */ karatsuba226_255(t0, t0, t0); /* 2^202 - 2^2 */ karatsuba226_255(t0, t0, t0); /* 2^250 - 2^50 */ for (i = 2; i < 50; i += 2) { karatsuba226_255(t0, t0, t0); karatsuba226_255(t0, t0, t0); } /* 2^250 - 2^0 */ karatsuba226_255(t0, t0, t2); // last use z2_50_0 /* 2^251 - 2^1 */ karatsuba226_255(t0, t0, t0); /* 2^252 - 2^2 */ karatsuba226_255(t0, t0, t0); /* 2^253 - 2^3 */ karatsuba226_255(t0, t0, t0); /* 2^254 - 2^4 */ karatsuba226_255(t0, t0, t0); /* 2^255 - 2^5 */ karatsuba226_255(t0, t0, t0); /* 2^255 - 21 */ karatsuba226_255(out, t0, z11); } void convert_to_radix226_255(unsigned int *r, const unsigned char *k) { r[0] = k[0] + (k[1] << 8) + (k[2] << 16) + ((k[3] & 3) << 24); r[1] = (k[3] >> 2) + (k[4] << 6) + (k[5] << 14) + ((k[6] & 15) << 22); r[2] = (k[6] >> 4) + (k[7] << 4) + (k[8] << 12) + ((k[9] & 63) << 20); r[3] = (k[9] >> 6) + (k[10] << 2) + ((k[11]) << 10) + (k[12] << 18); r[4] = k[13] + (k[14] << 8) + (k[15] << 16) + ((k[16] & 3) << 24); r[5] = (k[16] >> 2) + (k[17] << 6) + (k[18] << 14) + ((k[19] & 15) << 22); r[6] = (k[19] >> 4) + (k[20] << 4) + (k[21] << 12) + ((k[22] & 63) << 20); r[7] = (k[22] >> 6) + (k[23] << 2) + ((k[24]) << 10) + (k[25] << 18); r[8] = k[26] + (k[27] << 8) + (k[28] << 16) + ((k[29] & 3) << 24); r[9] = (k[29] >> 2) + (k[30] << 6) + (k[31] << 14); } void toradix28_255(unsigned char out[32], unsigned int in[10]) { out[31] = (in[9] >> 14); out[30] = (in[9] >> 6) & 0xff; out[29] = (in[8] >> 24) + ((in[9] & 0x3f) << 2); out[28] = (in[8] >> 16) & 0xff; out[27] = (in[8] >> 8) & 0xff; out[26] = in[8] & 0xff; out[25] = (in[7] >> 18) & 0xff; out[24] = (in[7] >> 10) & 0xff; out[23] = (in[7] >> 2) & 0xff; out[22] = (in[6] >> 20) + ((in[7] & 0x3) << 6); out[21] = (in[6] >> 12) & 0xff; out[20] = (in[6] >> 4) & 0xff; out[19] = (in[5] >> 22) + ((in[6] & 0x0f) << 4); out[18] = (in[5] >> 14) & 0xff; out[17] = (in[5] >> 6) & 0xff; out[16] = (in[4] >> 24) + ((in[5] & 0x3f) << 2); out[15] = (in[4] >> 16) & 0xFF; out[14] = (in[4] >> 8) & 0xFF; out[13] = in[4] & 0xFF; out[12] = (in[3] >> 18) & 0xFF; out[11] = (in[3] >> 10) & 0xFF; out[10] = (in[3] >> 2) & 0xFF; out[9] = (in[2] >> 20) + ((in[3] & 3) << 6); out[8] = (in[2] >> 12) & 0xFF; out[7] = (in[2] >> 4) & 0xFF; out[6] = (in[1] >> 22) + ((in[2] & 0x0F) << 4); out[5] = (in[1] >> 14) & 0xFF; out[4] = (in[1] >> 6) & 0xFF; out[3] = (in[0] >> 24) + ((in[1] & 0x3f) << 2); out[2] = (in[0] >> 16) & 0xFF; out[1] = (in[0] >> 8) & 0xFF; out[0] = in[0] & 0xFF; } int crypto_scalarmult(unsigned char *q, const unsigned char *n, const unsigned char *p) { unsigned int work226[20]; unsigned int e226[10]; convert_to_radix226_255(e226, n); e226[0] &= 0x3fffff8; e226[9] &= 0x1fffff; e226[9] |= 0x100000; convert_to_radix226_255(work226, p); mainloop226_asm(work226, e226); recip226(work226 + 10, work226 + 10); karatsuba226_255(work226, work226, work226 + 10); freeze(work226); toradix28_255(q, work226); return 0; }
31.64
76
0.502402
ebac4010f1d218e2ddb6b31ad80ec9e5b79bf820
3,554
h
C
modules/core/aasb/include/AASB/Engine/Audio/AASBAudioOutput.h
alexa/aac-sdk
9324a7776da8b2d2210b76a88330c3f695d9b9f6
[ "Apache-2.0" ]
139
2018-08-09T15:14:05.000Z
2019-06-21T20:47:58.000Z
modules/core/aasb/include/AASB/Engine/Audio/AASBAudioOutput.h
chris19930209/alexa-auto-sdk
9324a7776da8b2d2210b76a88330c3f695d9b9f6
[ "Apache-2.0" ]
2
2018-09-04T23:43:24.000Z
2019-01-30T20:38:13.000Z
modules/core/aasb/include/AASB/Engine/Audio/AASBAudioOutput.h
chris19930209/alexa-auto-sdk
9324a7776da8b2d2210b76a88330c3f695d9b9f6
[ "Apache-2.0" ]
60
2018-08-09T22:28:37.000Z
2019-06-25T07:06:17.000Z
/* * Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ #ifndef AASB_ENGINE_AUDIO_AASB_AUDIO_OUTPUT_H #define AASB_ENGINE_AUDIO_AASB_AUDIO_OUTPUT_H #include <AACE/Audio/AudioOutput.h> #include <AACE/Audio/AudioOutputProvider.h> #include <AACE/Core/MessageStream.h> #include <AACE/Engine/MessageBroker/MessageBrokerInterface.h> #include <AACE/Engine/MessageBroker/StreamManagerInterface.h> #include <memory> namespace aasb { namespace engine { namespace audio { class AASBAudioOutput : public aace::audio::AudioOutput , public std::enable_shared_from_this<AASBAudioOutput> { private: AASBAudioOutput(const std::string& name, const aace::audio::AudioOutputProvider::AudioOutputType& type); bool initialize( std::shared_ptr<aace::engine::messageBroker::MessageBrokerInterface> messageBroker, std::shared_ptr<aace::engine::messageBroker::StreamManagerInterface> streamManager); public: virtual ~AASBAudioOutput() = default; static std::shared_ptr<AASBAudioOutput> create( const std::string& name, const aace::audio::AudioOutputProvider::AudioOutputType& type, std::shared_ptr<aace::engine::messageBroker::MessageBrokerInterface> messageBroker, std::shared_ptr<aace::engine::messageBroker::StreamManagerInterface> streamManager); // aace::audio::AudioOutput bool prepare(std::shared_ptr<aace::audio::AudioStream> stream, bool repeating) override; bool prepare(const std::string& url, bool repeating) override; void mayDuck() override; bool play() override; bool stop() override; bool pause() override; bool resume() override; bool startDucking() override; bool stopDucking() override; int64_t getPosition() override; bool setPosition(int64_t position) override; int64_t getDuration() override; bool volumeChanged(float volume) override; bool mutedStateChanged(MutedState state) override; int64_t getNumBytesBuffered() override; private: const std::string m_name; const aace::audio::AudioOutputProvider::AudioOutputType m_type; std::string m_currentToken; std::shared_ptr<aace::core::MessageStream> m_handler; std::weak_ptr<aace::engine::messageBroker::MessageBrokerInterface> m_messageBroker; std::weak_ptr<aace::engine::messageBroker::StreamManagerInterface> m_streamManager; // // AudioOutputStreamHandler // class AudioOutputStreamHandler : public aace::core::MessageStream { public: AudioOutputStreamHandler(std::shared_ptr<aace::audio::AudioStream> stream); // aace::core::MessageStream ssize_t read(char* data, const size_t size) override; ssize_t write(const char* data, const size_t size) override; bool isClosed() override; MessageStream::Mode getMode() override; private: std::shared_ptr<aace::audio::AudioStream> m_stream; }; }; } // namespace audio } // namespace engine } // namespace aasb #endif // AASB_ENGINE_AUDIO_AASB_AUDIO_OUTPUT_H
34.843137
108
0.73354
ebc1890720bf10a4e5390514ee3afb693dbe4006
3,416
h
C
abc/src/opt/lpk/lpk.h
HackerFoo/vtr-verilog-to-routing
9bf3c1004e8a7c9f3756167905fd2e71218158d0
[ "MIT" ]
682
2015-07-10T00:39:26.000Z
2022-03-30T05:24:53.000Z
abc/src/opt/lpk/lpk.h
HackerFoo/vtr-verilog-to-routing
9bf3c1004e8a7c9f3756167905fd2e71218158d0
[ "MIT" ]
1,399
2015-07-24T22:09:09.000Z
2022-03-29T06:22:48.000Z
abc/src/opt/lpk/lpk.h
HackerFoo/vtr-verilog-to-routing
9bf3c1004e8a7c9f3756167905fd2e71218158d0
[ "MIT" ]
311
2015-07-09T13:59:48.000Z
2022-03-28T00:15:20.000Z
/**CFile**************************************************************** FileName [lpk.h] SystemName [ABC: Logic synthesis and verification system.] PackageName [Fast Boolean matching for LUT structures.] Synopsis [External declarations.] Author [Alan Mishchenko] Affiliation [UC Berkeley] Date [Ver. 1.0. Started - April 28, 2007.] Revision [$Id: lpk.h,v 1.00 2007/04/28 00:00:00 alanmi Exp $] ***********************************************************************/ #ifndef ABC__opt__lpk__lpk_h #define ABC__opt__lpk__lpk_h //////////////////////////////////////////////////////////////////////// /// INCLUDES /// //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// /// PARAMETERS /// //////////////////////////////////////////////////////////////////////// ABC_NAMESPACE_HEADER_START //////////////////////////////////////////////////////////////////////// /// BASIC TYPES /// //////////////////////////////////////////////////////////////////////// typedef struct Lpk_Par_t_ Lpk_Par_t; struct Lpk_Par_t_ { // user-controlled parameters int nLutsMax; // (N) the maximum number of LUTs in the structure int nLutsOver; // (Q) the maximum number of LUTs not in the MFFC int nVarsShared; // (S) the maximum number of shared variables (crossbars) int nGrowthLevel; // (L) the maximum increase in the node level after resynthesis int fSatur; // iterate till saturation int fZeroCost; // accept zero-cost replacements int fFirst; // use root node and first cut only int fOldAlgo; // use old algorithm int fVerbose; // the verbosiness flag int fVeryVerbose; // additional verbose info printout // internal parameters int nLutSize; // (K) the LUT size (determined by the input network) int nVarsMax; // (V) the largest number of variables: V = N * (K-1) + 1 }; //////////////////////////////////////////////////////////////////////// /// MACRO DEFINITIONS /// //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// /// ITERATORS /// //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// /// FUNCTION DECLARATIONS /// //////////////////////////////////////////////////////////////////////// /*=== lpkCore.c ========================================================*/ extern int Lpk_Resynthesize( Abc_Ntk_t * pNtk, Lpk_Par_t * pPars ); ABC_NAMESPACE_HEADER_END #endif //////////////////////////////////////////////////////////////////////// /// END OF FILE /// ////////////////////////////////////////////////////////////////////////
38.382022
100
0.321429
e4a367591d48174cccbe884ec4c3f92357a34b90
1,446
c
C
node.c
hzyitc/mnh_server
59a750d996e21cad3925675040fd01f22fde59a8
[ "BSD-3-Clause" ]
4
2021-05-26T15:29:56.000Z
2022-02-10T03:29:33.000Z
node.c
hzyitc/mnh_server
59a750d996e21cad3925675040fd01f22fde59a8
[ "BSD-3-Clause" ]
1
2021-05-26T15:34:00.000Z
2021-05-28T11:16:43.000Z
node.c
hzyitc/mnh_server
59a750d996e21cad3925675040fd01f22fde59a8
[ "BSD-3-Clause" ]
1
2022-02-10T03:29:36.000Z
2022-02-10T03:29:36.000Z
#include "node.h" #include <stdlib.h> #include <time.h> #include <string.h> NODE *head = NULL; NODE *end = NULL; void node_append(NODE *node) { if(head == NULL) head = node; node->prev = end; node->next = NULL; if(end) end->next = node; end = node; node->lastUpdate = time(NULL); } void node_delete(NODE *node) { NODE *prev = node->prev; NODE *next = node->next; if(prev) prev->next = next; else head = next; if(next) next->prev = prev; else end = prev; } NODE *node_malloc(bool udp, int sock, struct sockaddr_in address) { NODE *node = malloc(sizeof(NODE)); if(node == NULL) return NULL; node->udp = udp; node->sock = sock; node->address = address; node->id[0] = 0; node->state = STATE_HANDSHAKE; node_append(node); return node; } void node_free(NODE *node) { node_delete(node); free(node); } NODE *node_getFirst() { return head; } NODE *node_queryById(const char *id) { for(NODE *node = end; node; node = node->prev) { if(strcmp(node->id, id) == 0) return node; } return NULL; } NODE *node_queryByAddress(bool udp, struct sockaddr_in address) { for(NODE *node = head; node; node = node->next) { if((node->udp == udp) && (memcmp(&node->address, &address, sizeof(struct sockaddr_in)) == 0)) return node; } return NULL; } void node_update(NODE *node) { node_delete(node); node_append(node); } time_t node_getPast(NODE *node) { return (time(NULL) - node->lastUpdate); }
16.247191
95
0.643845
77fb560a5c9f0d743053e97bc97bb7f36f572da6
2,877
h
C
EG/CNCGenerator.h
ouxianghui/ezcam
195fb402202442b6d035bd70853f2d8c3f615de1
[ "MIT" ]
12
2021-03-26T03:23:30.000Z
2021-12-31T10:05:44.000Z
EG/CNCGenerator.h
15831944/ezcam
195fb402202442b6d035bd70853f2d8c3f615de1
[ "MIT" ]
null
null
null
EG/CNCGenerator.h
15831944/ezcam
195fb402202442b6d035bd70853f2d8c3f615de1
[ "MIT" ]
9
2021-06-23T08:26:40.000Z
2022-01-20T07:18:10.000Z
#ifndef CNCGENERATOR_H #define CNCGENERATOR_H #include "eg_global.h" #include <QMap> #include <QVariant> #include "RS.h" #include "RPolylineData.h" #include "RVector.h" #include "RArc.h" #include "RDocument.h" #include "RDocumentInterface.h" class EGSHARED_EXPORT CNCGenerator { public: CNCGenerator(int nCuttingSpeed, int nProcessSpeed, int nTerminalSpeed, double dSafetyHeight, double dCuttingDepth, double dKnifeDiameter, const QString& slotKnifeType, int nUseDrills, const QMap<QString, QVariant>& drillsMap, const QMap<QString, QVariant>& holesMap, double dSourceBoardW, double dSourceBoardH, const QString& knifeChangeMode, const QString& strNCFileHeader, const QString& strNCFileTail); ~CNCGenerator(); /* return : * 0, 成功 * 1, 在折线中插入下刀点失败:原折线不是闭合的 * 2, 在折线中插入下刀点失败:圆折线线段数量小于3 * 3, 在折线中插入下刀点失败:下刀点不在折线上 * 4, 在折线中插入下刀点失败:不允许下刀点在圆弧上 * 5, 在折线中插入下刀点失败:未知错误 * 6, 动态转换实体失败 * 7, 拉槽刀具T2无法加工拉槽 * 8, 拉槽刀具T3无法加工拉槽 * 9, 无法打开一个nc文件用以写入G代码 */ int generateCNC(RDocument& document, const QString& strSourceBoardID, const QString strOutputPathName); bool generateCNC(RDocumentInterface* documentInterface, const QString& strSourceBoardID, const QString strOutputPathName); private: /* 函数返回值: * 0, 成功重建折线 * 1, 折线不是闭合的 * 2, 折线线段数量小于3 * 3, 下刀点不在折线上 * 4, 下刀点在圆弧上 */ int rebuildPolylineDataWithCuttingPoint(RPolylineData& data, const RVector& ptCutting); bool generateArc(const RVector& pt1, const RVector& pt2, double dBulge, RArc& arc); int processGeneralInnerShape(QTextStream& ncStream, QSharedPointer<RPolyline> orgPolyline); int processID007InnerShape(QTextStream& ncStream, QSharedPointer<RPolyline> orgPolyline, std::map<QString, QVariant>& paramsMap); int processID008InnerShape(QTextStream& ncStream, QSharedPointer<RPolyline> orgPolyline, std::map<QString, QVariant>& paramsMap); int processID013InnerShape(QTextStream& ncStream, QSharedPointer<RPolyline> orgPolyline, std::map<QString, QVariant>& paramsMap); private: int m_nCuttingSpeed; int m_nProcessSpeed; int m_nTerminalSpeed; double m_dSafetyHeight; double m_dCuttingDepth; double m_dKnifeDiameter; QString _slotKnifeType; int m_nUseDrills; QMap<QString, QVariant> _drillsMap; QMap<QString, QVariant> _holesMap; double m_dSourceBoardW; double m_dSourceBoardH; QString _knifeChangeMode; QString m_strNCFileHeader; QString m_strNCFileTail; QString _currentKnife; }; #endif // CNCGENERATOR_H
32.325843
134
0.659367
4ffcd476bbc2b066fc6a603ff5b6103072774321
9,901
h
C
Src/AGZUtils/GraphicsAPI/GL/Buffer.h
AirGuanZ/Utils
6ededbd838697682430a2c0746bfd3b36ff14a5b
[ "MIT" ]
10
2018-10-30T14:19:57.000Z
2021-12-06T07:46:59.000Z
Src/AGZUtils/GraphicsAPI/GL/Buffer.h
AirGuanZ/Utils
6ededbd838697682430a2c0746bfd3b36ff14a5b
[ "MIT" ]
null
null
null
Src/AGZUtils/GraphicsAPI/GL/Buffer.h
AirGuanZ/Utils
6ededbd838697682430a2c0746bfd3b36ff14a5b
[ "MIT" ]
3
2019-04-24T13:42:02.000Z
2021-06-28T08:17:28.000Z
#pragma once #include <type_traits> #include "Common.h" namespace AGZ::GraphicsAPI::GL { /** * @brief 对OpenGL Buffer Object的直接封装 */ class Buffer : public GLObject { public: /** * @param initHandle 是否立即创建一个GL Buffer Name */ explicit Buffer(bool initHandle = false) noexcept { if(initHandle) InitializeHandle(); } Buffer(Buffer &&moveFrom) noexcept : GLObject(moveFrom.handle_) { moveFrom.handle_ = 0; } Buffer &operator=(Buffer &&moveFrom) noexcept { Destroy(); std::swap(handle_, moveFrom.handle_); return *this; } ~Buffer() { Destroy(); } /** * @brief 创建一个GL Buffer Name * @note 若已创建一个Name且未经删除,则调用该函数的结果是未定义的 */ void InitializeHandle() noexcept { AGZ_ASSERT(!handle_); AGZ_GL_CTX glCreateBuffers(1, &handle_); } /** * @brief 若含有Buffer Object,将该Buffer标记为删除 */ void Destroy() noexcept { if(handle_) { AGZ_GL_CTX glDeleteBuffers(1, &handle_); handle_ = 0; } } /** * @brief 初始化该Buffer内部的数据。若已有数据,则释放并重新申请存储空间并初始化。 * @param data 初始化数据指针 * @param byteSize 初始化数据的字节数 * @param usage 如GL_STATIC_DRAW */ void ReinitializeData(const void *data, size_t byteSize, GLenum usage) noexcept { AGZ_ASSERT(handle_); AGZ_GL_CTX glNamedBufferData(handle_, static_cast<GLsizei>(byteSize), data, usage); } /** * @brief 设置Buffer的部分内容 * @param subdata 待写入buffer的数据 * @param byteOffset 要设置的内容据buffer开头的距离 * @param byteSize 要设置的内容的长度 */ void SetData(const void *subdata, size_t byteOffset, size_t byteSize) noexcept { AGZ_ASSERT(handle_); AGZ_GL_CTX glNamedBufferSubData(handle_, static_cast<GLsizei>(byteOffset), static_cast<GLsizei>(byteSize), subdata); } }; /** * @brief 对Vertex Buffer的直接封装。和原生Buffer相比,主要特点是带有类型信息。 * @tparam VarType 顶点数据类型 */ template<typename VarType> class VertexBuffer : public Buffer { uint32_t vertexCount_; public: /** * @param initHandle 是否立即创建一个GL Buffer Name */ explicit VertexBuffer(bool initHandle = false) noexcept : Buffer(initHandle), vertexCount_(0) { } /** * @brief 立刻创建一个Buffer Name并用给定的数据初始化其内容 * @param data 用于初始化的数据指针 * @param vertexCount 有多少个顶点数据 * @param usage 如GL_STATIC_DRAW */ VertexBuffer(const VarType *data, uint32_t vertexCount, GLenum usage) noexcept : VertexBuffer(true) { ReinitializeData(data, vertexCount, usage); } VertexBuffer(VertexBuffer<VarType> &&moveFrom) noexcept : Buffer(std::move(static_cast<Buffer&>(moveFrom))), vertexCount_(moveFrom.vertexCount_) { moveFrom.vertexCount_ = 0; } VertexBuffer<VarType> &operator=(VertexBuffer<VarType> &&moveFrom) noexcept { static_cast<Buffer&>(*this) = std::move(static_cast<Buffer&>(moveFrom)); vertexCount_ = moveFrom.vertexCount_; moveFrom.vertexCount_ = 0; return *this; } /** * @brief 创建一个GL Buffer Name * @note 若已创建一个Name且未经删除,则调用该函数的结果是未定义的 */ void InitializeHandle() noexcept { Buffer::InitializeHandle(); } /** * @brief 若含有Buffer Object,将该Buffer标记为删除 */ void Destroy() noexcept { Buffer::Destroy(); vertexCount_ = 0; } /** * @brief 初始化该Buffer内部的数据。若已有数据,则释放并重新申请存储空间并初始化。 * @param data 初始化数据指针 * @param vertexCount 初始化数据所包含的顶点数 * @param usage 如GL_STATIC_DRAW */ void ReinitializeData(const VarType *data, uint32_t vertexCount, GLenum usage) noexcept { AGZ_ASSERT(vertexCount); Buffer::ReinitializeData(data, sizeof(VarType) * vertexCount, usage); vertexCount_ = vertexCount; } /** * @brief 设置Buffer的部分内容 * @param data 待写入buffer的数据 * @param vertexOffset 要设置的内容据buffer开头有多少个顶点 * @param vertexCount 要设置的内容包含多少个顶点 */ void SetData(const VarType *data, uint32_t vertexOffset, uint32_t vertexCount) const noexcept { AGZ_ASSERT(vertexCount && vertexOffset + vertexCount <= vertexCount_); Buffer::SetData(data, vertexOffset * sizeof(VarType), vertexCount * sizeof(VarType)); } /** * @brief 取得内部所存储的顶点数量 */ uint32_t GetVertexCount() const noexcept { return vertexCount_; } }; /** * @brief 对适用于std140 layout的Uniform Block Object的直接封装 */ template<typename BlockType> class Std140UniformBlockBuffer : public Buffer { public: /** * @param initHandle 是否立即创建一个GL Buffer Name */ explicit Std140UniformBlockBuffer(bool initHandle = false) noexcept : Buffer(initHandle) { } /** * @brief 立刻创建一个Buffer Name并用给定的数据初始化其内容 * @param data 用于初始化的数据指针 * @param usage 如GL_STATIC_DRAW */ Std140UniformBlockBuffer(const BlockType *data, GLenum usage) noexcept : Std140UniformBlockBuffer(true) { ReinitializeData(data, usage); } Std140UniformBlockBuffer(Std140UniformBlockBuffer<BlockType> &&moveFrom) noexcept : Buffer(std::move(static_cast<Buffer&>(moveFrom))) { } Std140UniformBlockBuffer<BlockType> &operator=(Std140UniformBlockBuffer<BlockType> &&moveFrom) noexcept { static_cast<Buffer&>(*this) = std::move(static_cast<Buffer&>(moveFrom)); return *this; } ~Std140UniformBlockBuffer() = default; /** * @brief 创建一个GL Buffer Name * @note 若已创建一个Name且未经删除,则调用该函数的结果是未定义的 */ void InitializeHandle() noexcept { Buffer::InitializeHandle(); } /** * @brief 若含有Buffer Object,将该Buffer标记为删除 */ void Destroy() noexcept { Buffer::Destroy(); } /** * @brief 初始化该Buffer内部的数据。若已有数据,则释放并重新申请存储空间并初始化。 * @param data 初始化数据指针 * @param usage 如GL_STATIC_DRAW */ void ReinitializeData(const BlockType *data, GLenum usage) noexcept { Buffer::ReinitializeData(data, sizeof(BlockType), usage); } /** * @brief 设置Buffer的部分内容 * @param subdata 待写入buffer的数据 * @param byteOffset 要设置的内容距buffer开头的距离 * @param byteSize 要设置的内容的长度 */ void SetData(const void *subdata, size_t byteOffset, size_t byteSize) noexcept { Buffer::SetData(subdata, static_cast<GLsizei>(byteOffset), static_cast<GLsizei>(byteSize)); } /** * @brief 设置整个Buffer的内容 * @param data 待写入buffer的数据 */ void SetData(const BlockType *data) noexcept { Buffer::SetData(data, 0, sizeof(BlockType)); } /** * @brief 将该UBO绑定到指定的binding point */ void Bind(GLuint bindingPoint) const noexcept { AGZ_ASSERT(handle_); glBindBufferBase(GL_UNIFORM_BUFFER, bindingPoint, handle_); } }; /** * @brief 对OpenGL Element Buffer的直接封装 */ template<typename ElemType_> class ElementBuffer : public Buffer { static_assert(std::is_same_v<ElemType_, GLubyte> || std::is_same_v<ElemType_, GLushort> || std::is_same_v<ElemType_, GLuint>, "IndexType of ElementBuffer must be one of { GLubyte, GLushort, GLuint }"); uint32_t elemCount_; public: using ElemType = ElemType_; /** * @param initHandle 是否立即创建一个GL Buffer Name */ explicit ElementBuffer(bool initHandle = false) noexcept : Buffer(initHandle), elemCount_(0) { } /** * @brief 立刻创建一个Buffer Name并用给定的数据初始化其内容 * @param data 用于初始化的数据指针 * @param elemCount element数量 * @param usage 如GL_STATIC_DRAW */ ElementBuffer(const ElemType *data, uint32_t elemCount, GLenum usage) noexcept : ElementBuffer(true) { ReinitializeData(data, elemCount, usage); } ElementBuffer(ElementBuffer<ElemType> &&moveFrom) noexcept : Buffer(std::move(static_cast<Buffer&>(moveFrom))), elemCount_(moveFrom.elemCount_) { moveFrom.elemCount_ = 0; } ElementBuffer<ElemType> &operator=(ElementBuffer<ElemType> &&moveFrom) noexcept { static_cast<Buffer&>(*this) = std::move(static_cast<Buffer&>(moveFrom)); elemCount_ = moveFrom.elemCount_; moveFrom.elemCount_ = 0; return *this; } /** * @brief 创建一个GL Buffer Name * @note 若已创建一个Name且未经删除,则调用该函数的结果是未定义的 */ void InitializeHandle() noexcept { Buffer::InitializeHandle(); } /** * @brief 若含有Buffer Object,将该Buffer标记为删除 */ void Destroy() noexcept { Buffer::Destroy(); elemCount_ = 0; } /** * @brief 初始化该Buffer内部的数据。若已有数据,则释放并重新申请存储空间并初始化。 * @param data 初始化数据指针 * @param elemCount element数量 * @param usage 如GL_STATIC_DRAW */ void ReinitializeData(const ElemType *data, uint32_t elemCount, GLenum usage) noexcept { Buffer::ReinitializeData(data, sizeof(ElemType) * elemCount, usage); elemCount_ = elemCount; } /** * @brief 设置Buffer的部分内容 * @param data 待写入buffer的数据 * @param elemOffset 要设置的内容距buffer开头有多少个element * @param elemCount 要设置的element的数量 */ void SetData(const ElemType *data, uint32_t elemOffset, uint32_t elemCount) const noexcept { AGZ_ASSERT(elemCount && elemOffset + elemCount <= elemCount_); Buffer::SetData(data, elemOffset * sizeof(ElemType), elemCount * sizeof(ElemType)); } /** * @brief 取得element数量 */ uint32_t GetElemCount() const noexcept { return elemCount_; } /** * @brief 取得element对应的GL类型 */ constexpr GLenum GetElemType() const noexcept { if constexpr(std::is_same_v<ElemType, GLubyte>) return GL_UNSIGNED_BYTE; else if constexpr(std::is_same_v<ElemType, GLushort>) return GL_UNSIGNED_SHORT; else return GL_UNSIGNED_INT; } }; } // namespace AGZ::GraphicsAPI::GL
24.568238
129
0.63539
a017b26245856994c2a535c3e473c4c8be1ebff5
7,256
h
C
B2G/gecko/layout/generic/nsCanvasFrame.h
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/gecko/layout/generic/nsCanvasFrame.h
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/gecko/layout/generic/nsCanvasFrame.h
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* rendering object that goes directly inside the document's scrollbars */ #ifndef nsCanvasFrame_h___ #define nsCanvasFrame_h___ #include "mozilla/Attributes.h" #include "nsContainerFrame.h" #include "nsIScrollPositionListener.h" #include "nsDisplayList.h" #include "nsGkAtoms.h" class nsPresContext; class nsRenderingContext; class nsEvent; /** * Root frame class. * * The root frame is the parent frame for the document element's frame. * It only supports having a single child frame which must be an area * frame */ class nsCanvasFrame : public nsContainerFrame, public nsIScrollPositionListener { public: nsCanvasFrame(nsStyleContext* aContext) : nsContainerFrame(aContext), mDoPaintFocus(false), mAddedScrollPositionListener(false) {} NS_DECL_QUERYFRAME_TARGET(nsCanvasFrame) NS_DECL_QUERYFRAME NS_DECL_FRAMEARENA_HELPERS virtual void DestroyFrom(nsIFrame* aDestructRoot); NS_IMETHOD SetInitialChildList(ChildListID aListID, nsFrameList& aChildList) MOZ_OVERRIDE; NS_IMETHOD AppendFrames(ChildListID aListID, nsFrameList& aFrameList) MOZ_OVERRIDE; NS_IMETHOD InsertFrames(ChildListID aListID, nsIFrame* aPrevFrame, nsFrameList& aFrameList) MOZ_OVERRIDE; NS_IMETHOD RemoveFrame(ChildListID aListID, nsIFrame* aOldFrame) MOZ_OVERRIDE; virtual nscoord GetMinWidth(nsRenderingContext *aRenderingContext) MOZ_OVERRIDE; virtual nscoord GetPrefWidth(nsRenderingContext *aRenderingContext) MOZ_OVERRIDE; NS_IMETHOD Reflow(nsPresContext* aPresContext, nsHTMLReflowMetrics& aDesiredSize, const nsHTMLReflowState& aReflowState, nsReflowStatus& aStatus) MOZ_OVERRIDE; virtual bool IsFrameOfType(uint32_t aFlags) const { return nsContainerFrame::IsFrameOfType(aFlags & ~(nsIFrame::eCanContainOverflowContainers)); } /** SetHasFocus tells the CanvasFrame to draw with focus ring * @param aHasFocus true to show focus ring, false to hide it */ NS_IMETHOD SetHasFocus(bool aHasFocus); NS_IMETHOD BuildDisplayList(nsDisplayListBuilder* aBuilder, const nsRect& aDirtyRect, const nsDisplayListSet& aLists) MOZ_OVERRIDE; void PaintFocus(nsRenderingContext& aRenderingContext, nsPoint aPt); // nsIScrollPositionListener virtual void ScrollPositionWillChange(nscoord aX, nscoord aY); virtual void ScrollPositionDidChange(nscoord aX, nscoord aY) {} /** * Get the "type" of the frame * * @see nsGkAtoms::canvasFrame */ virtual nsIAtom* GetType() const MOZ_OVERRIDE; virtual nsresult StealFrame(nsPresContext* aPresContext, nsIFrame* aChild, bool aForceNormal) MOZ_OVERRIDE { NS_ASSERTION(!aForceNormal, "No-one should be passing this in here"); // nsCanvasFrame keeps overflow container continuations of its child // frame in main child list nsresult rv = nsContainerFrame::StealFrame(aPresContext, aChild, true); if (NS_FAILED(rv)) { rv = nsContainerFrame::StealFrame(aPresContext, aChild); } return rv; } #ifdef DEBUG NS_IMETHOD GetFrameName(nsAString& aResult) const MOZ_OVERRIDE; #endif NS_IMETHOD GetContentForEvent(nsEvent* aEvent, nsIContent** aContent) MOZ_OVERRIDE; nsRect CanvasArea() const; protected: virtual int GetSkipSides() const; // Data members bool mDoPaintFocus; bool mAddedScrollPositionListener; }; /** * Override nsDisplayBackground methods so that we pass aBGClipRect to * PaintBackground, covering the whole overflow area. * We can also paint an "extra background color" behind the normal * background. */ class nsDisplayCanvasBackground : public nsDisplayBackgroundImage { public: nsDisplayCanvasBackground(nsDisplayListBuilder* aBuilder, nsIFrame *aFrame, uint32_t aLayer, bool aIsThemed, const nsStyleBackground* aBackgroundStyle) : nsDisplayBackgroundImage(aBuilder, aFrame, aLayer, aIsThemed, aBackgroundStyle), mExtraBackgroundColor(NS_RGBA(0,0,0,0)) { } virtual bool ComputeVisibility(nsDisplayListBuilder* aBuilder, nsRegion* aVisibleRegion, const nsRect& aAllowVisibleRegionExpansion) MOZ_OVERRIDE { return NS_GET_A(mExtraBackgroundColor) > 0 || nsDisplayBackgroundImage::ComputeVisibility(aBuilder, aVisibleRegion, aAllowVisibleRegionExpansion); } virtual nsRegion GetOpaqueRegion(nsDisplayListBuilder* aBuilder, bool* aSnap) MOZ_OVERRIDE { if (NS_GET_A(mExtraBackgroundColor) == 255) { return nsRegion(GetBounds(aBuilder, aSnap)); } return nsDisplayBackgroundImage::GetOpaqueRegion(aBuilder, aSnap); } virtual bool IsUniform(nsDisplayListBuilder* aBuilder, nscolor* aColor) MOZ_OVERRIDE { nscolor background; if (!nsDisplayBackgroundImage::IsUniform(aBuilder, &background)) return false; NS_ASSERTION(background == NS_RGBA(0,0,0,0), "The nsDisplayBackground for a canvas frame doesn't paint " "its background color normally"); *aColor = mExtraBackgroundColor; return true; } virtual nsRect GetBounds(nsDisplayListBuilder* aBuilder, bool* aSnap) MOZ_OVERRIDE { nsCanvasFrame* frame = static_cast<nsCanvasFrame*>(mFrame); *aSnap = true; return frame->CanvasArea() + ToReferenceFrame(); } virtual void HitTest(nsDisplayListBuilder* aBuilder, const nsRect& aRect, HitTestState* aState, nsTArray<nsIFrame*> *aOutFrames) MOZ_OVERRIDE { // We need to override so we don't consider border-radius. aOutFrames->AppendElement(mFrame); } virtual bool ShouldFixToViewport(nsDisplayListBuilder* aBuilder) MOZ_OVERRIDE { // Put background-attachment:fixed canvas background images in their own // compositing layer. Since we know their background painting area can't // change (unless the viewport size itself changes), async scrolling // will work well. return mBackgroundStyle && mBackgroundStyle->mLayers[mLayer].mAttachment == NS_STYLE_BG_ATTACHMENT_FIXED && !mBackgroundStyle->mLayers[mLayer].mImage.IsEmpty(); } virtual void Paint(nsDisplayListBuilder* aBuilder, nsRenderingContext* aCtx) MOZ_OVERRIDE; void SetExtraBackgroundColor(nscolor aColor) { mExtraBackgroundColor = aColor; } NS_DISPLAY_DECL_NAME("CanvasBackground", TYPE_CANVAS_BACKGROUND) private: nscolor mExtraBackgroundColor; }; #endif /* nsCanvasFrame_h___ */
36.28
90
0.685226
99122d28d1286dab72c5753ff1c31bfc797add68
51,821
c
C
Assignment3/valgrind-3.12.0/coregrind/m_gdbserver/m_gdbserver.c
atreyhazelhispanic/TCSS333
292be200ff659200a0e06a8325ff1bb0cfaf5791
[ "CC0-1.0" ]
null
null
null
Assignment3/valgrind-3.12.0/coregrind/m_gdbserver/m_gdbserver.c
atreyhazelhispanic/TCSS333
292be200ff659200a0e06a8325ff1bb0cfaf5791
[ "CC0-1.0" ]
null
null
null
Assignment3/valgrind-3.12.0/coregrind/m_gdbserver/m_gdbserver.c
atreyhazelhispanic/TCSS333
292be200ff659200a0e06a8325ff1bb0cfaf5791
[ "CC0-1.0" ]
null
null
null
/*--------------------------------------------------------------------*/ /*--- Handle remote gdb protocol. m_gdbserver.c ---*/ /*--------------------------------------------------------------------*/ /* This file is part of Valgrind, a dynamic binary instrumentation framework. Copyright (C) 2011-2015 Philippe Waroquiers 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 the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. The GNU General Public License is contained in the file COPYING. */ #include "pub_core_basics.h" #include "pub_core_vki.h" #include "pub_core_debuglog.h" #include "pub_core_libcproc.h" #include "pub_core_libcprint.h" #include "pub_core_mallocfree.h" #include "pub_core_threadstate.h" #include "pub_core_gdbserver.h" #include "pub_core_options.h" #include "pub_core_transtab.h" #include "pub_core_hashtable.h" #include "pub_core_xarray.h" #include "pub_core_libcassert.h" #include "pub_core_libcbase.h" #include "pub_core_libcsignal.h" #include "pub_core_signals.h" #include "pub_core_machine.h" // VG_(fnptr_to_fnentry) #include "pub_core_debuginfo.h" #include "pub_core_scheduler.h" #include "pub_core_syswrap.h" #include "server.h" Int VG_(dyn_vgdb_error); /* forward declarations */ VG_REGPARM(1) void VG_(helperc_CallDebugger) ( HWord iaddr ); VG_REGPARM(1) void VG_(helperc_invalidate_if_not_gdbserved) ( Addr addr ); static void invalidate_current_ip (ThreadId tid, const HChar *who); /* reasons of call to call_gdbserver. */ typedef enum { init_reason, // initialises gdbserver resources vgdb_reason, // gdbserver invocation by vgdb doing ptrace core_reason, // gdbserver invocation by core (e.g. error encountered) break_reason, // break encountered watch_reason, // watchpoint detected by tool signal_reason, // signal encountered exit_reason} // process terminated CallReason; static const HChar* ppCallReason(CallReason reason) { switch (reason) { case init_reason: return "init_reason"; case vgdb_reason: return "vgdb_reason"; case core_reason: return "core_reason"; case break_reason: return "break_reason"; case watch_reason: return "watch_reason"; case signal_reason: return "signal_reason"; case exit_reason: return "exit_reason"; default: vg_assert (0); } } /* An instruction instrumented for gdbserver looks like this: 1. Ist_Mark (0x1234) 2. Put (IP, 0x1234) 3. helperc_CallDebugger (0x1234) This will give control to gdb if there is a break at 0x1234 or if we are single stepping 4. ... here the real IR for the instruction at 0x1234 When there is a break at 0x1234: if user does "continue" or "step" or similar, then - the call to debugger returns - valgrind executes at 3. the real IR(s) for 0x1234 if as part of helperc_CallDebugger, the user calls some code in gdb e.g print hello_world() then - gdb prepares a dummy stack frame with a specific return address (typically it uses _start) and inserts a break at this address - gdb then puts in EIP the address of hello_world() - gdb then continues (so the helperc_CallDebugger returns) - call_gdbserver() function will then return the control to the scheduler (using VG_MINIMAL_LONGJMP) to allow the block of the new EIP to be executed. - hello_world code is executed. - when hello_world() returns, it returns to _start and encounters the break at _start. - gdb then removes this break, put 0x1234 in EIP and does a "step". This causes to jump from _start to 0x1234, where the call to helperc_CallDebugger is redone. - This is all ok, the user can then give new gdb commands. However, when continue is given, address 0x1234 is to be executed: gdb gives a single step, which must not report again the break at 0x1234. To avoid a 2nd report of the same break, the below tells that the next helperc_CallDebugger call must ignore a break/stop at this address. */ static Addr ignore_this_break_once = 0; static void call_gdbserver ( ThreadId tid , CallReason reason); /* Describes the address addr (for debugging/printing purposes). Last two results are kept. A third call will replace the oldest result. */ static HChar* sym (Addr addr, Bool is_code) { static HChar *buf[2]; static int w = 0; PtrdiffT offset; if (w == 2) w = 0; if (is_code) { const HChar *name; name = VG_(describe_IP) (addr, NULL); if (buf[w]) VG_(free)(buf[w]); buf[w] = VG_(strdup)("gdbserver sym", name); } else { const HChar *name; VG_(get_datasym_and_offset) (addr, &name, &offset); if (buf[w]) VG_(free)(buf[w]); buf[w] = VG_(strdup)("gdbserver sym", name); } return buf[w++]; } /* Each time gdbserver is called, gdbserver_called is incremented gdbserver_exited is incremented when gdbserver is asked to exit */ static int gdbserver_called = 0; static int gdbserver_exited = 0; /* alloc and free functions for xarray and similar. */ static void* gs_alloc (const HChar* cc, SizeT sz) { return VG_(malloc)(cc, sz); } static void gs_free (void* ptr) { VG_(free)(ptr); } typedef enum { GS_break, GS_jump } GS_Kind; typedef struct _GS_Address { struct _GS_Address* next; Addr addr; GS_Kind kind; } GS_Address; /* gs_addresses contains a list of all addresses that have been invalidated because they have been (or must be) instrumented for gdbserver. An entry is added in this table when there is a break at this address (kind == GS_break) or if this address is the jump target of an exit of a block that has been instrumented for gdbserver while single stepping (kind == GS_jump). When gdbserver is not single stepping anymore, all GS_jump entries are removed, their translations are invalidated. Note for ARM: addr in GS_Address is the value without the thumb bit set. */ static VgHashTable *gs_addresses = NULL; // Transform addr in the form stored in the list of addresses. // For the ARM architecture, we store it with the thumb bit set to 0. static Addr HT_addr ( Addr addr ) { #if defined(VGA_arm) return addr & ~(Addr)1; #else return addr; #endif } static void add_gs_address (Addr addr, GS_Kind kind, const HChar* from) { GS_Address *p; p = VG_(malloc)(from, sizeof(GS_Address)); p->addr = HT_addr (addr); p->kind = kind; VG_(HT_add_node)(gs_addresses, p); /* It should be sufficient to discard a range of 1. We use 2 to ensure the below is not sensitive to the presence of thumb bit in the range of addresses to discard. No need to discard translations for Vg_VgdbFull as all instructions are in any case vgdb-instrumented. */ if (VG_(clo_vgdb) != Vg_VgdbFull) VG_(discard_translations) (addr, 2, from); } static void remove_gs_address (GS_Address* g, const HChar* from) { VG_(HT_remove) (gs_addresses, g->addr); // See add_gs_address for the explanation for condition and the range 2 below. if (VG_(clo_vgdb) != Vg_VgdbFull) VG_(discard_translations) (g->addr, 2, from); VG_(free) (g); } const HChar* VG_(ppPointKind) (PointKind kind) { switch(kind) { case software_breakpoint: return "software_breakpoint"; case hardware_breakpoint: return "hardware_breakpoint"; case write_watchpoint: return "write_watchpoint"; case read_watchpoint: return "read_watchpoint"; case access_watchpoint: return "access_watchpoint"; default: return "???wrong PointKind"; } } typedef struct _GS_Watch { Addr addr; SizeT len; PointKind kind; } GS_Watch; /* gs_watches contains a list of all addresses+len+kind that are being watched. */ static XArray* gs_watches = NULL; static inline GS_Watch* index_gs_watches(Word i) { return *(GS_Watch **) VG_(indexXA) (gs_watches, i); } /* Returns the GS_Watch matching addr/len/kind and sets *g_ix to its position in gs_watches. If no matching GS_Watch is found, returns NULL and sets g_ix to -1. */ static GS_Watch* lookup_gs_watch (Addr addr, SizeT len, PointKind kind, Word* g_ix) { const Word n_elems = VG_(sizeXA) (gs_watches); Word i; GS_Watch *g; /* Linear search. If we have many watches, this might be optimised by having the array sorted and using VG_(lookupXA) */ for (i = 0; i < n_elems; i++) { g = index_gs_watches(i); if (g->addr == addr && g->len == len && g->kind == kind) { // Found. *g_ix = i; return g; } } // Not found. *g_ix = -1; return NULL; } /* protocol spec tells the below must be idempotent. */ static void breakpoint (Bool insert, CORE_ADDR addr) { GS_Address *g; g = VG_(HT_lookup) (gs_addresses, (UWord)HT_addr(addr)); if (insert) { /* insert a breakpoint at addr or upgrade its kind */ if (g == NULL) { add_gs_address (addr, GS_break, "m_gdbserver breakpoint insert"); } else { /* already gdbserved. Normally, it must be because of a jump. However, due to idempotent or if connection with gdb was lost (kept breaks from the previous gdb), if already existing, we just upgrade its kind. */ g->kind = GS_break; } } else { /* delete a breakpoint at addr or downgrade its kind */ if (g != NULL && g->kind == GS_break) { if (valgrind_single_stepping()) { /* keep gdbserved instrumentation while single stepping */ g->kind = GS_jump; } else { remove_gs_address (g, "m_gdbserver breakpoint remove"); } } else { dlog (1, "remove break addr %p %s\n", C2v(addr), (g == NULL ? "NULL" : (g->kind == GS_jump ? "GS_jump" : "GS_break"))); } } } static Bool (*tool_watchpoint) (PointKind kind, Bool insert, Addr addr, SizeT len) = NULL; void VG_(needs_watchpoint) (Bool (*watchpoint) (PointKind kind, Bool insert, Addr addr, SizeT len)) { tool_watchpoint = watchpoint; } Bool VG_(gdbserver_point) (PointKind kind, Bool insert, CORE_ADDR addr, int len) { Bool res; GS_Watch *g; Word g_ix; Bool is_code = kind == software_breakpoint || kind == hardware_breakpoint; dlog(1, "%s %s at addr %p %s\n", (insert ? "insert" : "remove"), VG_(ppPointKind) (kind), C2v(addr), sym(addr, is_code)); if (is_code) { breakpoint (insert, addr); return True; } vg_assert (kind == access_watchpoint || kind == read_watchpoint || kind == write_watchpoint); if (tool_watchpoint == NULL) return False; res = (*tool_watchpoint) (kind, insert, addr, len); if (!res) return False; /* error or unsupported */ // Protocol says insert/remove must be idempotent. // So, we just ignore double insert or (supposed) double delete. g = lookup_gs_watch (addr, len, kind, &g_ix); if (insert) { if (g == NULL) { g = VG_(malloc)("gdbserver_point watchpoint", sizeof(GS_Watch)); g->addr = addr; g->len = len; g->kind = kind; VG_(addToXA)(gs_watches, &g); } else { dlog(1, "VG_(gdbserver_point) addr %p len %d kind %s already inserted\n", C2v(addr), len, VG_(ppPointKind) (kind)); } } else { if (g != NULL) { VG_(removeIndexXA) (gs_watches, g_ix); VG_(free) (g); } else { dlog(1, "VG_(gdbserver_point) addr %p len %d kind %s already deleted?\n", C2v(addr), len, VG_(ppPointKind) (kind)); } } return True; } Bool VG_(has_gdbserver_breakpoint) (Addr addr) { GS_Address *g; if (!gdbserver_called) return False; g = VG_(HT_lookup) (gs_addresses, (UWord)HT_addr(addr)); return (g != NULL && g->kind == GS_break); } Bool VG_(is_watched)(PointKind kind, Addr addr, Int szB) { Word n_elems; GS_Watch* g; Word i; Bool watched = False; const ThreadId tid = VG_(running_tid); if (!gdbserver_called) return False; n_elems = VG_(sizeXA) (gs_watches); Addr to = addr + szB; // semi-open interval [addr, to[ vg_assert (kind == access_watchpoint || kind == read_watchpoint || kind == write_watchpoint); dlog(1, "tid %u VG_(is_watched) %s addr %p szB %d\n", tid, VG_(ppPointKind) (kind), C2v(addr), szB); for (i = 0; i < n_elems; i++) { g = index_gs_watches(i); switch (g->kind) { case software_breakpoint: case hardware_breakpoint: break; case access_watchpoint: case read_watchpoint: case write_watchpoint: if (to <= g->addr || addr >= (g->addr + g->len)) /* If no overlap, examine next watchpoint: */ continue; watched = True; /* We have an overlap */ /* call gdbserver if access kind reported by the tool matches the watchpoint kind. */ if (kind == access_watchpoint || g->kind == access_watchpoint || g->kind == kind) { /* Watchpoint encountered. If this is a read watchpoint, we directly call gdbserver to report it to gdb. Otherwise, for a write watchpoint, we have to finish the instruction so as to modify the value. If we do not finish the instruction, then gdb sees no value change and continues. For a read watchpoint, we better call gdbserver directly: in case the current block is not gdbserved, Valgrind will execute instructions till the next block. */ /* set the watchpoint stop address to the first read or written. */ if (g->addr <= addr) { VG_(set_watchpoint_stop_address) (addr); } else { VG_(set_watchpoint_stop_address) (g->addr); } if (kind == write_watchpoint) { /* Let Valgrind stop as early as possible after this instruction by switching to Single Stepping mode. */ valgrind_set_single_stepping (True); invalidate_current_ip (tid, "m_gdbserver write watchpoint"); } else { call_gdbserver (tid, watch_reason); VG_(set_watchpoint_stop_address) ((Addr) 0); } return True; // we are watched here. } break; default: vg_assert (0); } } return watched; } /* Returns the reason for which gdbserver instrumentation is needed */ static VgVgdb VG_(gdbserver_instrumentation_needed) (const VexGuestExtents* vge) { GS_Address* g; int e; if (!gdbserver_called) return Vg_VgdbNo; if (valgrind_single_stepping()) { dlog(2, "gdbserver_instrumentation_needed due to single stepping\n"); return Vg_VgdbYes; } if (VG_(clo_vgdb) == Vg_VgdbYes && VG_(HT_count_nodes) (gs_addresses) == 0) return Vg_VgdbNo; /* We assume we do not have a huge nr of breakpoints. Otherwise, we need something more efficient e.g. a sorted list of breakpoints or associate extents to it or ... */ VG_(HT_ResetIter) (gs_addresses); while ((g = VG_(HT_Next) (gs_addresses))) { for (e = 0; e < vge->n_used; e++) { if (g->addr >= HT_addr(vge->base[e]) && g->addr < HT_addr(vge->base[e]) + vge->len[e]) { dlog(2, "gdbserver_instrumentation_needed %p %s reason %s\n", C2v(g->addr), sym(g->addr, /* is_code */ True), (g->kind == GS_jump ? "GS_jump" : "GS_break")); return Vg_VgdbYes; } } } if (VG_(clo_vgdb) == Vg_VgdbFull) { dlog(4, "gdbserver_instrumentation_needed" " due to VG_(clo_vgdb) == Vg_VgdbFull\n"); return Vg_VgdbFull; } return Vg_VgdbNo; } // Clear gdbserved_addresses in gs_addresses. // If clear_only_jumps, clears only the addresses that are served // for jump reasons. // Otherwise, clear all the addresses. // Cleared addresses are invalidated so as to have them re-translated. static void clear_gdbserved_addresses(Bool clear_only_jumps) { GS_Address** ag; UInt n_elems; int i; dlog(1, "clear_gdbserved_addresses: scanning hash table nodes %u\n", VG_(HT_count_nodes) (gs_addresses)); ag = (GS_Address**) VG_(HT_to_array) (gs_addresses, &n_elems); for (i = 0; i < n_elems; i++) if (!clear_only_jumps || ag[i]->kind == GS_jump) remove_gs_address (ag[i], "clear_gdbserved_addresses"); VG_(free) (ag); } // Clear watched addressed in gs_watches, delete gs_watches. static void clear_watched_addresses(void) { GS_Watch* g; const Word n_elems = VG_(sizeXA) (gs_watches); Word i; dlog(1, "clear_watched_addresses: %ld elements\n", n_elems); for (i = 0; i < n_elems; i++) { g = index_gs_watches(i); if (!VG_(gdbserver_point) (g->kind, /* insert */ False, g->addr, g->len)) { vg_assert (0); } } VG_(deleteXA) (gs_watches); gs_watches = NULL; } static void invalidate_if_jump_not_yet_gdbserved (Addr addr, const HChar* from) { if (VG_(HT_lookup) (gs_addresses, (UWord)HT_addr(addr))) return; add_gs_address (addr, GS_jump, from); } static void invalidate_current_ip (ThreadId tid, const HChar *who) { invalidate_if_jump_not_yet_gdbserved (VG_(get_IP) (tid), who); } Bool VG_(gdbserver_init_done) (void) { return gdbserver_called > 0; } Bool VG_(gdbserver_stop_at) (VgdbStopAt stopat) { return gdbserver_called > 0 && VgdbStopAtiS(stopat, VG_(clo_vgdb_stop_at)); } void VG_(gdbserver_prerun_action) (ThreadId tid) { // Using VG_(dyn_vgdb_error) allows the user to control if gdbserver // stops after a fork. if (VG_(dyn_vgdb_error) == 0 || VgdbStopAtiS(VgdbStopAt_Startup, VG_(clo_vgdb_stop_at))) { /* The below call allows gdb to attach at startup before the first guest instruction is executed. */ VG_(umsg)("(action at startup) vgdb me ... \n"); VG_(gdbserver)(tid); } else { /* User has activated gdbserver => initialize now the FIFOs to let vgdb/gdb contact us either via the scheduler poll mechanism or via vgdb ptrace-ing valgrind. */ if (VG_(gdbserver_activity) (tid)) VG_(gdbserver) (tid); } } /* when fork is done, various cleanup is needed in the child process. In particular, child must have its own connection to avoid stealing data from its parent */ static void gdbserver_cleanup_in_child_after_fork(ThreadId me) { dlog(1, "thread %u gdbserver_cleanup_in_child_after_fork pid %d\n", me, VG_(getpid) ()); /* finish connection inheritated from parent */ remote_finish(reset_after_fork); /* ensure next call to gdbserver will be considered as a brand new call that will initialize a fresh gdbserver. */ if (gdbserver_called) { gdbserver_called = 0; vg_assert (gs_addresses != NULL); vg_assert (gs_watches != NULL); clear_gdbserved_addresses(/* clear only jumps */ False); VG_(HT_destruct) (gs_addresses, VG_(free)); gs_addresses = NULL; clear_watched_addresses(); } else { vg_assert (gs_addresses == NULL); vg_assert (gs_watches == NULL); } if (VG_(clo_trace_children)) { VG_(gdbserver_prerun_action) (me); } } /* If reason is init_reason, creates the connection resources (e.g. the FIFOs) to allow a gdb connection to be detected by polling using remote_desc_activity. Otherwise (other reasons): If connection with gdb not yet opened, opens the connection with gdb. reads gdb remote protocol packets and executes the requested commands. */ static void call_gdbserver ( ThreadId tid , CallReason reason) { ThreadState* tst = VG_(get_ThreadState)(tid); int stepping; Addr saved_pc; dlog(1, "entering call_gdbserver %s ... pid %d tid %u status %s " "sched_jmpbuf_valid %d\n", ppCallReason (reason), VG_(getpid) (), tid, VG_(name_of_ThreadStatus)(tst->status), tst->sched_jmpbuf_valid); /* If we are about to die, then just run server_main() once to get the resume reply out and return immediately because most of the state of this tid and process is about to be torn down. */ if (reason == exit_reason) { server_main(); return; } vg_assert(VG_(is_valid_tid)(tid)); saved_pc = VG_(get_IP) (tid); if (gdbserver_exited) { dlog(0, "call_gdbserver called when gdbserver_exited %d\n", gdbserver_exited); return; } if (gdbserver_called == 0) { vg_assert (gs_addresses == NULL); vg_assert (gs_watches == NULL); gs_addresses = VG_(HT_construct)( "gdbserved_addresses" ); gs_watches = VG_(newXA)(gs_alloc, "gdbserved_watches", gs_free, sizeof(GS_Watch*)); VG_(atfork)(NULL, NULL, gdbserver_cleanup_in_child_after_fork); } vg_assert (gs_addresses != NULL); vg_assert (gs_watches != NULL); gdbserver_called++; /* call gdbserver_init if this is the first call to gdbserver. */ if (gdbserver_called == 1) gdbserver_init(); if (reason == init_reason || gdbserver_called == 1) remote_open(VG_(clo_vgdb_prefix)); /* if the call reason is to initialize, then return control to valgrind. After this initialization, gdbserver will be called again either if there is an error detected by valgrind or if vgdb sends data to the valgrind process. */ if (reason == init_reason) { return; } stepping = valgrind_single_stepping(); server_main(); ignore_this_break_once = valgrind_get_ignore_break_once(); if (ignore_this_break_once) dlog(1, "!!! will ignore_this_break_once %s\n", sym(ignore_this_break_once, /* is_code */ True)); if (valgrind_single_stepping()) { /* we are single stepping. If we were not stepping on entry, then invalidate the current program counter so as to properly do single step. In case the program counter was changed by gdb, this will also invalidate the target address we will jump to. */ if (!stepping && tid != 0) { invalidate_current_ip (tid, "m_gdbserver single step"); } } else { /* We are not single stepping. If we were stepping on entry, then clear the gdbserved addresses. This will cause all these gdbserved blocks to be invalidated so that they can be re-translated without being gdbserved. */ if (stepping) clear_gdbserved_addresses(/* clear only jumps */ True); } /* can't do sanity check at beginning. At least the stack check is not yet possible. */ if (gdbserver_called > 1) VG_(sanity_check_general) (/* force_expensive */ False); /* If the PC has been changed by gdb, then we VG_MINIMAL_LONGJMP to the scheduler to execute the block of the new PC. Otherwise we just return to continue executing the current block. */ if (VG_(get_IP) (tid) != saved_pc) { dlog(1, "tid %u %s PC changed from %s to %s\n", tid, VG_(name_of_ThreadStatus) (tst->status), sym(saved_pc, /* is_code */ True), sym(VG_(get_IP) (tid), /* is_code */ True)); if (tst->status == VgTs_Yielding) { SysRes sres; VG_(memset)(&sres, 0, sizeof(SysRes)); VG_(acquire_BigLock)(tid, "gdbsrv VG_MINIMAL_LONGJMP"); } if (tst->sched_jmpbuf_valid) { /* resume scheduler */ VG_MINIMAL_LONGJMP(tst->sched_jmpbuf); } /* else continue to run */ } /* continue to run */ } /* busy > 0 when gdbserver is currently being called. busy is used to avoid vgdb invoking gdbserver while gdbserver by Valgrind. */ static volatile int busy = 0; void VG_(gdbserver) ( ThreadId tid ) { busy++; /* called by the rest of valgrind for --vgdb-error=0 reason or by scheduler "poll/debug/interrupt" reason or to terminate. */ if (tid != 0) { call_gdbserver (tid, core_reason); } else { if (gdbserver_called == 0) { dlog(1, "VG_(gdbserver) called to terminate, nothing to terminate\n"); } else if (gdbserver_exited) { dlog(1, "VG_(gdbserver) called to terminate again %d\n", gdbserver_exited); } else { gdbserver_terminate(); gdbserver_exited++; } } busy--; } // nr of invoke_gdbserver while gdbserver is already executing. static int interrupts_while_busy = 0; // nr of invoke_gdbserver while gdbserver is not executing. static int interrupts_non_busy = 0; // nr of invoke_gdbserver when some threads are not interruptible. static int interrupts_non_interruptible = 0; /* When all threads are blocked in a system call, the Valgrind scheduler cannot poll the shared memory for gdbserver activity. In such a case, vgdb will force the invokation of gdbserver using ptrace. To do that, vgdb 'pushes' a call to invoke_gdbserver on the stack using ptrace. invoke_gdbserver must not return. Instead, it must call give_control_back_to_vgdb. vgdb expects to receive a SIGSTOP, which this function generates. When vgdb gets this SIGSTOP, it knows invoke_gdbserver call is finished and can reset the Valgrind process in the state prior to the 'pushed call' (using ptrace again). This all works well. However, the user must avoid 'kill-9ing' vgdb during such a pushed call, otherwise the SIGSTOP generated below will be seen by the Valgrind core, instead of being handled by vgdb. The OS will then handle the SIGSTOP by stopping the Valgrind process. We use SIGSTOP as this process cannot be masked. */ static void give_control_back_to_vgdb(void) { #if !defined(VGO_solaris) /* cause a SIGSTOP to be sent to ourself, so that vgdb takes control. vgdb will then restore the stack so as to resume the activity before the ptrace (typically do_syscall_WRK). */ if (VG_(kill)(VG_(getpid)(), VKI_SIGSTOP) != 0) vg_assert2(0, "SIGSTOP for vgdb could not be generated\n"); /* If we arrive here, it means a call was pushed on the stack by vgdb, but during this call, vgdb and/or connection died. Alternatively, it is a bug in the vgdb<=>Valgrind gdbserver ptrace handling. */ vg_assert2(0, "vgdb did not took control. Did you kill vgdb ?\n" "busy %d vgdb_interrupted_tid %u\n", busy, vgdb_interrupted_tid); #else /* defined(VGO_solaris) */ /* On Solaris, this code is run within the context of an agent thread (see vgdb-invoker-solaris.c and "PCAGENT" control message in proc(4)). Exit the agent thread now. */ SysRes sres = VG_(do_syscall0)(SYS_lwp_exit); if (sr_isError(sres)) vg_assert2(0, "The agent thread could not be exited\n"); #endif /* !defined(VGO_solaris) */ } /* Using ptrace calls, vgdb will force an invocation of gdbserver. VG_(invoke_gdbserver) is the entry point called through the vgdb ptrace technique. */ void VG_(invoke_gdbserver) ( int check ) { /* ******* Avoid non-reentrant function call from here ..... till the ".... till here" below. */ /* We need to determine the state of the various threads to decide if we directly invoke gdbserver or if we rather indicate to the scheduler to invoke the gdbserver. To decide that, it is critical to avoid any "coregrind" function call as the ptrace might have stopped the process in the middle of this (possibly) non-rentrant function. So, it is only when all threads are in an "interruptible" state that we can safely invoke gdbserver. Otherwise, we let the valgrind scheduler invoke gdbserver at the next poll. This poll will be made very soon thanks to a call to VG_(force_vgdb_poll). */ int n_tid; vg_assert (check == 0x8BADF00D); if (busy) { interrupts_while_busy++; give_control_back_to_vgdb(); } interrupts_non_busy++; /* check if all threads are in an "interruptible" state. If yes, we invoke gdbserver. Otherwise, we tell the scheduler to wake up asap. */ for (n_tid = 1; n_tid < VG_N_THREADS; n_tid++) { switch (VG_(threads)[n_tid].status) { /* interruptible states. */ case VgTs_WaitSys: case VgTs_Yielding: if (vgdb_interrupted_tid == 0) vgdb_interrupted_tid = n_tid; break; case VgTs_Empty: case VgTs_Zombie: break; /* non interruptible states. */ case VgTs_Init: case VgTs_Runnable: interrupts_non_interruptible++; VG_(force_vgdb_poll) (); give_control_back_to_vgdb(); default: vg_assert(0); } } /* .... till here. From here onwards, function calls are ok: it is safe to call valgrind core functions: all threads are blocked in a system call or are yielding or ... */ dlog(1, "invoke_gdbserver running_tid %u vgdb_interrupted_tid %u\n", VG_(running_tid), vgdb_interrupted_tid); call_gdbserver (vgdb_interrupted_tid, vgdb_reason); vgdb_interrupted_tid = 0; dlog(1, "exit invoke_gdbserver running_tid %u\n", VG_(running_tid)); give_control_back_to_vgdb(); vg_assert2(0, "end of invoke_gdbserver reached"); } Bool VG_(gdbserver_activity) (ThreadId tid) { Bool ret; busy++; if (!gdbserver_called) call_gdbserver (tid, init_reason); switch (remote_desc_activity("VG_(gdbserver_activity)")) { case 0: ret = False; break; case 1: ret = True; break; case 2: remote_finish(reset_after_error); call_gdbserver (tid, init_reason); ret = False; break; default: vg_assert (0); } busy--; return ret; } static void dlog_signal (const HChar *who, const vki_siginfo_t *info, ThreadId tid) { dlog(1, "VG core calling %s " "vki_nr %d %s gdb_nr %u %s tid %u\n", who, info->si_signo, VG_(signame)(info->si_signo), target_signal_from_host (info->si_signo), target_signal_to_name(target_signal_from_host (info->si_signo)), tid); } void VG_(gdbserver_report_fatal_signal) (const vki_siginfo_t *info, ThreadId tid) { dlog_signal("VG_(gdbserver_report_fatal_signal)", info, tid); if (remote_connected()) { dlog(1, "already connected, assuming already reported\n"); return; } VG_(umsg)("(action on fatal signal) vgdb me ... \n"); /* indicate to gdbserver that there is a signal */ gdbserver_signal_encountered (info); /* let gdbserver do some work, e.g. show the signal to the user */ call_gdbserver (tid, signal_reason); } Bool VG_(gdbserver_report_signal) (vki_siginfo_t *info, ThreadId tid) { dlog_signal("VG_(gdbserver_report_signal)", info, tid); /* if gdbserver is currently not connected, then signal is to be given to the process */ if (!remote_connected()) { dlog(1, "not connected => pass\n"); return True; } /* if gdb has informed gdbserver that this signal can be passed directly without informing gdb, then signal is to be given to the process. */ if (pass_signals[target_signal_from_host(info->si_signo)]) { dlog(1, "pass_signals => pass\n"); return True; } /* indicate to gdbserver that there is a signal */ gdbserver_signal_encountered (info); /* let gdbserver do some work, e.g. show the signal to the user. User can also decide to ignore the signal or change the signal. */ call_gdbserver (tid, signal_reason); /* ask gdbserver what is the final decision */ if (gdbserver_deliver_signal (info)) { dlog(1, "gdbserver deliver signal\n"); return True; } else { dlog(1, "gdbserver ignore signal\n"); return False; } } Bool catching_syscalls = False; // True if catching all or some syscalls. /* If catching_syscalls is True, then syscalls_to_catch_size == 0 means to catch all syscalls. Otherwise, it is the size of the syscalls_to_catch array. */ Int syscalls_to_catch_size = 0; Int *syscalls_to_catch; static Bool catch_this_syscall (Int sysno) { Int i; if (syscalls_to_catch_size == 0) return True; for (i = 0; i < syscalls_to_catch_size; i++) if (syscalls_to_catch[i] == sysno) return True; return False; } void VG_(gdbserver_report_syscall) (Bool before, UWord sysno, ThreadId tid) { dlog(4, "VG_(gdbserver_report_syscall) before %d sysno %lu tid %d\n", before, sysno, tid); if (UNLIKELY(catching_syscalls)) { if (!remote_connected()) { dlog(2, "not connected => no report\n"); } if (catch_this_syscall ((Int)sysno)) { /* let gdbserver do some work */ gdbserver_syscall_encountered (before, (Int)sysno); call_gdbserver (tid, signal_reason); } } } void VG_(gdbserver_exit) (ThreadId tid, VgSchedReturnCode tids_schedretcode) { dlog(1, "VG core calling VG_(gdbserver_exit) tid %u will exit\n", tid); if (remote_connected()) { /* Make sure vgdb knows we are about to die and why. */ switch(tids_schedretcode) { case VgSrc_None: vg_assert (0); case VgSrc_ExitThread: case VgSrc_ExitProcess: gdbserver_process_exit_encountered ('W', VG_(threads)[tid].os_state.exitcode); call_gdbserver (tid, exit_reason); break; case VgSrc_FatalSig: gdbserver_process_exit_encountered ('X', VG_(threads)[tid].os_state.fatalsig); call_gdbserver (tid, exit_reason); break; default: vg_assert(0); } } else { dlog(1, "not connected\n"); } /* Tear down the connection if it still exists. */ VG_(gdbserver) (0); } // Check if single_stepping or if there is a break requested at iaddr. // If yes, call debugger VG_REGPARM(1) void VG_(helperc_CallDebugger) ( HWord iaddr ) { GS_Address* g; // For Vg_VgdbFull, after a fork, we might have calls to this helper // while gdbserver is not yet initialized. if (!gdbserver_called) return; if (valgrind_single_stepping() || ((g = VG_(HT_lookup) (gs_addresses, (UWord)HT_addr(iaddr))) && (g->kind == GS_break))) { if (iaddr == HT_addr(ignore_this_break_once)) { dlog(1, "ignoring ignore_this_break_once %s\n", sym(ignore_this_break_once, /* is_code */ True)); ignore_this_break_once = 0; } else { call_gdbserver (VG_(get_running_tid)(), break_reason); } } } /* software_breakpoint support --------------------------------------*/ /* When a block is instrumented for gdbserver, single step and breaks will be obeyed in this block. However, if a jump to another block is executed while single_stepping is active, we must ensure that this block is also instrumented. For this, when a block is instrumented for gdbserver while single_stepping, the target of all the Jump instructions in this block will be checked to verify if the block is already instrumented for gdbserver. The below will ensure that if not already instrumented for gdbserver, the target block translation containing addr will be invalidated. The list of gdbserved Addr will also be kept so that translations can be dropped automatically by gdbserver when going out of single step mode. Call the below at translation time if the jump target is a constant. Otherwise, rather use VG_(add_stmt_call_invalidate_if_not_gdbserved). To instrument the target exit statement, you can call VG_(add_stmt_call_invalidate_exit_target_if_not_gdbserved) rather than check the kind of target exit. */ static void VG_(invalidate_if_not_gdbserved) (Addr addr) { if (valgrind_single_stepping()) invalidate_if_jump_not_yet_gdbserved (addr, "gdbserver target jump (instrument)"); } // same as VG_(invalidate_if_not_gdbserved) but is intended to be called // at runtime (only difference is the invalidate reason which traces // it is at runtime) VG_REGPARM(1) void VG_(helperc_invalidate_if_not_gdbserved) ( Addr addr ) { if (valgrind_single_stepping()) invalidate_if_jump_not_yet_gdbserved (addr, "gdbserver target jump (runtime)"); } static void VG_(add_stmt_call_invalidate_if_not_gdbserved) ( IRSB* sb_in, const VexGuestLayout* layout, const VexGuestExtents* vge, IRTemp jmp, IRSB* irsb) { void* fn; const HChar* nm; IRExpr** args; Int nargs; IRDirty* di; fn = &VG_(helperc_invalidate_if_not_gdbserved); nm = "VG_(helperc_invalidate_if_not_gdbserved)"; args = mkIRExprVec_1(IRExpr_RdTmp (jmp)); nargs = 1; di = unsafeIRDirty_0_N( nargs/*regparms*/, nm, VG_(fnptr_to_fnentry)( fn ), args ); di->nFxState = 0; addStmtToIRSB(irsb, IRStmt_Dirty(di)); } /* software_breakpoint support --------------------------------------*/ /* If a tool wants to allow gdbserver to do something at Addr, then VG_(add_stmt_call_gdbserver) will add in IRSB a call to a helper function. This helper function will check if the process must be stopped at the instruction Addr: either there is a break at Addr or the process is being single-stepped. Typical usage of the below is to instrument an Ist_IMark to allow the debugger to interact at any instruction being executed. As soon as there is one break in a block, then to allow single stepping in this block (and possible insertions of other breaks in the same sb_in while the process is stopped), a debugger statement will be inserted for all instructions of a block. */ static void VG_(add_stmt_call_gdbserver) (IRSB* sb_in, /* block being translated */ const VexGuestLayout* layout, const VexGuestExtents* vge, IRType gWordTy, IRType hWordTy, Addr iaddr, /* Addr of instruction being instrumented */ UChar delta, /* delta to add to iaddr to obtain IP */ IRSB* irsb) /* irsb block to which call is added */ { void* fn; const HChar* nm; IRExpr** args; Int nargs; IRDirty* di; /* first store the address in the program counter so that the check done by VG_(helperc_CallDebugger) will be based on the correct program counter. We might make this more efficient by rather searching for assignement to program counter and instrumenting that but the below is easier and I guess that the optimiser will remove the redundant store. And in any case, when debugging a piece of code, the efficiency requirement is not critical: very few blocks will be instrumented for debugging. */ /* For platforms on which the IP can differ from the addr of the instruction being executed, we need to add the delta to obtain the IP. This IP will be given to gdb (e.g. if a breakpoint is put at iaddr). For ARM, this delta will ensure that the thumb bit is set in the IP when executing thumb code. gdb uses this thumb bit a.o. to properly guess the next IP for the 'step' and 'stepi' commands. */ vg_assert(delta <= 1); addStmtToIRSB(irsb, IRStmt_Put(layout->offset_IP , mkIRExpr_HWord(iaddr + (Addr)delta))); fn = &VG_(helperc_CallDebugger); nm = "VG_(helperc_CallDebugger)"; args = mkIRExprVec_1(mkIRExpr_HWord (iaddr)); nargs = 1; di = unsafeIRDirty_0_N( nargs/*regparms*/, nm, VG_(fnptr_to_fnentry)( fn ), args ); /* Note: in fact, a debugger call can read whatever register or memory. It can also write whatever register or memory. So, in theory, we have to indicate the whole universe can be read and modified. It is however not critical to indicate precisely what is being read/written as such indications are needed for tool error detection and we do not want to have errors being detected for gdb interactions. */ di->nFxState = 2; di->fxState[0].fx = Ifx_Read; di->fxState[0].offset = layout->offset_SP; di->fxState[0].size = layout->sizeof_SP; di->fxState[0].nRepeats = 0; di->fxState[0].repeatLen = 0; di->fxState[1].fx = Ifx_Modify; di->fxState[1].offset = layout->offset_IP; di->fxState[1].size = layout->sizeof_IP; di->fxState[1].nRepeats = 0; di->fxState[1].repeatLen = 0; addStmtToIRSB(irsb, IRStmt_Dirty(di)); } /* Invalidate the target of the exit if needed: If target is constant, it is invalidated at translation time. Otherwise, a call to a helper function is generated to invalidate the translation at run time. The below is thus calling either VG_(invalidate_if_not_gdbserved) or VG_(add_stmt_call_invalidate_if_not_gdbserved). */ static void VG_(add_stmt_call_invalidate_exit_target_if_not_gdbserved) (IRSB* sb_in, const VexGuestLayout* layout, const VexGuestExtents* vge, IRType gWordTy, IRSB* irsb) { if (sb_in->next->tag == Iex_Const) { VG_(invalidate_if_not_gdbserved) (gWordTy == Ity_I64 ? sb_in->next->Iex.Const.con->Ico.U64 : sb_in->next->Iex.Const.con->Ico.U32); } else if (sb_in->next->tag == Iex_RdTmp) { VG_(add_stmt_call_invalidate_if_not_gdbserved) (sb_in, layout, vge, sb_in->next->Iex.RdTmp.tmp, irsb); } else { vg_assert (0); /* unexpected expression tag in exit. */ } } IRSB* VG_(instrument_for_gdbserver_if_needed) (IRSB* sb_in, const VexGuestLayout* layout, const VexGuestExtents* vge, IRType gWordTy, IRType hWordTy) { IRSB* sb_out; Int i; const VgVgdb instr_needed = VG_(gdbserver_instrumentation_needed) (vge); if (instr_needed == Vg_VgdbNo) return sb_in; /* here, we need to instrument for gdbserver */ sb_out = deepCopyIRSBExceptStmts(sb_in); for (i = 0; i < sb_in->stmts_used; i++) { IRStmt* st = sb_in->stmts[i]; if (!st || st->tag == Ist_NoOp) continue; if (st->tag == Ist_Exit && instr_needed == Vg_VgdbYes) { VG_(invalidate_if_not_gdbserved) (hWordTy == Ity_I64 ? st->Ist.Exit.dst->Ico.U64 : st->Ist.Exit.dst->Ico.U32); } addStmtToIRSB( sb_out, st ); if (st->tag == Ist_IMark) { /* For an Ist_Mark, add a call to debugger. */ switch (instr_needed) { case Vg_VgdbNo: vg_assert (0); case Vg_VgdbYes: case Vg_VgdbFull: VG_(add_stmt_call_gdbserver) ( sb_in, layout, vge, gWordTy, hWordTy, st->Ist.IMark.addr, st->Ist.IMark.delta, sb_out); /* There is an optimisation possible here for Vg_VgdbFull: Put a guard ensuring we only call gdbserver if 'FullCallNeeded'. FullCallNeeded would be set to 1 we have just switched on Single Stepping or have just encountered a watchpoint or have just inserted a breakpoint. (as gdb by default removes and re-insert breakpoints), we would need to also implement the notion of 'breakpoint pending removal' to remove at the next 'continue/step' packet. */ break; default: vg_assert (0); } } } if (instr_needed == Vg_VgdbYes) { VG_(add_stmt_call_invalidate_exit_target_if_not_gdbserved) (sb_in, layout, vge, gWordTy, sb_out); } return sb_out; } struct mon_out_buf { HChar buf[DATASIZ+1]; int next; UInt ret; }; static void mon_out (HChar c, void *opaque) { struct mon_out_buf *b = (struct mon_out_buf *) opaque; b->ret++; b->buf[b->next] = c; b->next++; if (b->next == DATASIZ) { b->buf[b->next] = '\0'; monitor_output(b->buf); b->next = 0; } } UInt VG_(gdb_printf) ( const HChar *format, ... ) { struct mon_out_buf b; b.next = 0; b.ret = 0; va_list vargs; va_start(vargs, format); VG_(vcbprintf) (mon_out, &b, format, vargs); va_end(vargs); if (b.next > 0) { b.buf[b.next] = '\0'; monitor_output(b.buf); } return b.ret; } Int VG_(keyword_id) (const HChar* keywords, const HChar* input_word, kwd_report_error report) { const Int il = (input_word == NULL ? 0 : VG_(strlen) (input_word)); HChar iw[il+1]; HChar kwds[VG_(strlen)(keywords)+1]; HChar *kwdssaveptr; HChar* kw; /* current keyword, its length, its position */ Int kwl; Int kpos = -1; Int pass; /* pass 0 = search, optional pass 1 = output message multiple matches */ Int pass1needed = 0; Int partial_match = -1; Int full_match = -1; if (input_word == NULL) { iw[0] = 0; partial_match = 0; /* to force an empty string to cause an error */ } else { VG_(strcpy) (iw, input_word); } for (pass = 0; pass < 2; pass++) { VG_(strcpy) (kwds, keywords); if (pass == 1) VG_(gdb_printf) ("%s can match", (il == 0 ? "<empty string>" : iw)); for (kw = VG_(strtok_r) (kwds, " ", &kwdssaveptr); kw != NULL; kw = VG_(strtok_r) (NULL, " ", &kwdssaveptr)) { kwl = VG_(strlen) (kw); kpos++; if (il > kwl) { ; /* ishtar !~ is */ } else if (il == kwl) { if (VG_(strcmp) (kw, iw) == 0) { /* exact match */ if (pass == 1) VG_(gdb_printf) (" %s", kw); if (full_match != -1) pass1needed++; full_match = kpos; } } else { /* il < kwl */ if (VG_(strncmp) (iw, kw, il) == 0) { /* partial match */ if (pass == 1) VG_(gdb_printf) (" %s", kw); if (partial_match != -1) pass1needed++; partial_match = kpos; } } } /* check for success or for no match at all */ if (pass1needed == 0) { if (full_match != -1) { return full_match; } else { if (report == kwd_report_all && partial_match == -1) { VG_(gdb_printf) ("%s does not match any of '%s'\n", iw, keywords); } return partial_match; } } /* here we have duplicated match error */ if (pass == 1 || report == kwd_report_none) { if (report != kwd_report_none) { VG_(gdb_printf) ("\n"); } if (partial_match != -1 || full_match != -1) return -2; else return -1; } } /* UNREACHED */ vg_assert (0); } /* True if string can be a 0x number */ static Bool is_zero_x (const HChar *s) { if (strlen (s) >= 3 && s[0] == '0' && s[1] == 'x') return True; else return False; } /* True if string can be a 0b number */ static Bool is_zero_b (const HChar *s) { if (strlen (s) >= 3 && s[0] == '0' && s[1] == 'b') return True; else return False; } Bool VG_(strtok_get_address_and_size) (Addr* address, SizeT* szB, HChar **ssaveptr) { HChar* wa; HChar* ws; HChar* endptr; const HChar *ppc; wa = VG_(strtok_r) (NULL, " ", ssaveptr); ppc = wa; if (ppc == NULL || !VG_(parse_Addr) (&ppc, address)) { VG_(gdb_printf) ("missing or malformed address\n"); *address = (Addr) 0; *szB = 0; return False; } ws = VG_(strtok_r) (NULL, " ", ssaveptr); if (ws == NULL) { /* Do nothing, i.e. keep current value of szB. */ ; } else if (is_zero_x (ws)) { *szB = VG_(strtoull16) (ws, &endptr); } else if (is_zero_b (ws)) { Int j; HChar *parsews = ws; Int n_bits = VG_(strlen) (ws) - 2; *szB = 0; ws = NULL; // assume the below loop gives a correct nr. for (j = 0; j < n_bits; j++) { if ('0' == parsews[j+2]) { /* do nothing */ } else if ('1' == parsews[j+2]) *szB |= (1 << (n_bits-j-1)); else { /* report malformed binary integer */ ws = parsews; endptr = ws + j + 2; break; } } } else { *szB = VG_(strtoull10) (ws, &endptr); } if (ws != NULL && *endptr != '\0') { VG_(gdb_printf) ("malformed integer, expecting " "hex 0x..... or dec ...... or binary .....b\n"); *address = (Addr) 0; *szB = 0; return False; } return True; } void VG_(gdbserver_status_output)(void) { const int nr_gdbserved_addresses = (gs_addresses == NULL ? -1 : VG_(HT_count_nodes) (gs_addresses)); const int nr_watchpoints = (gs_watches == NULL ? -1 : (int) VG_(sizeXA) (gs_watches)); remote_utils_output_status(); VG_(umsg) ("nr of calls to gdbserver: %d\n" "single stepping %d\n" "interrupts intr_tid %u gs_non_busy %d gs_busy %d tid_non_intr %d\n" "gdbserved addresses %d (-1 = not initialized)\n" "watchpoints %d (-1 = not initialized)\n" "vgdb-error %d\n" "hostvisibility %s\n", gdbserver_called, valgrind_single_stepping(), vgdb_interrupted_tid, interrupts_non_busy, interrupts_while_busy, interrupts_non_interruptible, nr_gdbserved_addresses, nr_watchpoints, VG_(dyn_vgdb_error), hostvisibility ? "yes" : "no"); }
33.091315
81
0.61807
993c17da183aea53fd048a8cee2f11167abc92a3
2,581
c
C
src/fdevent_libev.c
julek-wolfssl/lighttpd1.4
bac34c1a668d329313a9ac0a8fc58ff410f8d62d
[ "BSD-3-Clause" ]
458
2015-01-24T04:01:23.000Z
2022-03-27T07:58:12.000Z
src/fdevent_libev.c
julek-wolfssl/lighttpd1.4
bac34c1a668d329313a9ac0a8fc58ff410f8d62d
[ "BSD-3-Clause" ]
95
2015-02-07T11:50:07.000Z
2021-11-05T11:00:35.000Z
src/fdevent_libev.c
julek-wolfssl/lighttpd1.4
bac34c1a668d329313a9ac0a8fc58ff410f8d62d
[ "BSD-3-Clause" ]
265
2015-03-10T16:01:26.000Z
2022-03-15T01:57:39.000Z
#include "first.h" #include <string.h> #include <stdlib.h> #include "fdevent_impl.h" #include "fdevent.h" #include "buffer.h" #ifdef FDEVENT_USE_LIBEV # include <ev.h> static void io_watcher_cb(struct ev_loop *loop, ev_io *w, int revents) { fdevents *ev = w->data; fdnode *fdn = ev->fdarray[w->fd]; int rv = 0; UNUSED(loop); if (revents & EV_READ) rv |= FDEVENT_IN; if (revents & EV_WRITE) rv |= FDEVENT_OUT; if (revents & EV_ERROR) rv |= FDEVENT_ERR; if (0 == ((uintptr_t)fdn & 0x3)) { (*fdn->handler)(fdn->ctx, rv); } } __attribute_cold__ static void fdevent_libev_free(fdevents *ev) { UNUSED(ev); } static int fdevent_libev_event_del(fdevents *ev, fdnode *fdn) { ev_io *watcher = fdn->handler_ctx; if (!watcher) return 0; fdn->handler_ctx = NULL; ev_io_stop(ev->libev_loop, watcher); free(watcher); return 0; } static int fdevent_libev_event_set(fdevents *ev, fdnode *fdn, int events) { ev_io *watcher = fdn->handler_ctx; int ev_events = 0; if (events & FDEVENT_IN) ev_events |= EV_READ; if (events & FDEVENT_OUT) ev_events |= EV_WRITE; if (!watcher) { fdn->handler_ctx = watcher = calloc(1, sizeof(ev_io)); force_assert(watcher); fdn->fde_ndx = fdn->fd; ev_io_init(watcher, io_watcher_cb, fdn->fd, ev_events); watcher->data = ev; ev_io_start(ev->libev_loop, watcher); } else { if ((watcher->events & (EV_READ | EV_WRITE)) != ev_events) { ev_io_stop(ev->libev_loop, watcher); ev_io_set(watcher, watcher->fd, ev_events); ev_io_start(ev->libev_loop, watcher); } } return 0; } static void timeout_watcher_cb(struct ev_loop *loop, ev_timer *w, int revents) { UNUSED(loop); UNUSED(w); UNUSED(revents); } static ev_timer timeout_watcher; static int fdevent_libev_poll(fdevents *ev, int timeout_ms) { timeout_watcher.repeat = (timeout_ms > 0) ? timeout_ms/1000.0 : 0.001; ev_timer_again(ev->libev_loop, &timeout_watcher); ev_run(ev->libev_loop, EVRUN_ONCE); return 0; } __attribute_cold__ static int fdevent_libev_reset(fdevents *ev) { UNUSED(ev); ev_default_fork(); return 0; } __attribute_cold__ int fdevent_libev_init(fdevents *ev) { struct ev_timer * const timer = &timeout_watcher; memset(timer, 0, sizeof(*timer)); ev->type = FDEVENT_HANDLER_LIBEV; ev->event_set = fdevent_libev_event_set; ev->event_del = fdevent_libev_event_del; ev->poll = fdevent_libev_poll; ev->reset = fdevent_libev_reset; ev->free = fdevent_libev_free; if (NULL == (ev->libev_loop = ev_default_loop(0))) return -1; ev_timer_init(timer, timeout_watcher_cb, 0.0, 1.0); return 0; } #endif
22.443478
80
0.703603
48f743ea5b5fce57d53e3c75d61cc2a715ece656
45
h
C
apo/ios/Final version/Snap/PeerCell.h
bitmaus/utopia
178bfcc76fe1e8b31868aa9d4c1bbdc6a0283ca9
[ "MIT" ]
2
2019-11-08T21:22:16.000Z
2020-07-08T23:06:14.000Z
apo/ios/Final version/Snap/PeerCell.h
bitmaus/utopia
178bfcc76fe1e8b31868aa9d4c1bbdc6a0283ca9
[ "MIT" ]
null
null
null
apo/ios/Final version/Snap/PeerCell.h
bitmaus/utopia
178bfcc76fe1e8b31868aa9d4c1bbdc6a0283ca9
[ "MIT" ]
null
null
null
@interface PeerCell : UITableViewCell @end
9
37
0.777778
85a4263327ac20d619d08fef3cb10646b8f3a3d1
2,062
h
C
PrivateFrameworks/CloudKitDaemon/CKDPPulseData.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
17
2018-11-13T04:02:58.000Z
2022-01-20T09:27:13.000Z
PrivateFrameworks/CloudKitDaemon/CKDPPulseData.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
3
2018-04-06T02:02:27.000Z
2018-10-02T01:12:10.000Z
PrivateFrameworks/CloudKitDaemon/CKDPPulseData.h
phatblat/macOSPrivateFrameworks
9047371eb80f925642c8a7c4f1e00095aec66044
[ "MIT" ]
1
2018-09-28T13:54:23.000Z
2018-09-28T13:54:23.000Z
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "PBCodable.h" #import "NSCopying.h" @class CKDPDate, CKDPIdentifier; __attribute__((visibility("hidden"))) @interface CKDPPulseData : PBCodable <NSCopying> { long long _customState; long long _stateTTLMillis; CKDPDate *_lastCustom; CKDPDate *_lastEdited; CKDPDate *_lastInvisible; CKDPDate *_lastViewed; int _state; CKDPIdentifier *_user; struct { unsigned int customState:1; unsigned int stateTTLMillis:1; unsigned int state:1; } _has; } @property(retain, nonatomic) CKDPDate *lastInvisible; // @synthesize lastInvisible=_lastInvisible; @property(retain, nonatomic) CKDPDate *lastCustom; // @synthesize lastCustom=_lastCustom; @property(retain, nonatomic) CKDPDate *lastEdited; // @synthesize lastEdited=_lastEdited; @property(retain, nonatomic) CKDPDate *lastViewed; // @synthesize lastViewed=_lastViewed; @property(retain, nonatomic) CKDPIdentifier *user; // @synthesize user=_user; - (void).cxx_destruct; - (void)mergeFrom:(id)arg1; - (unsigned long long)hash; - (BOOL)isEqual:(id)arg1; - (id)copyWithZone:(struct _NSZone *)arg1; - (void)copyTo:(id)arg1; - (void)writeTo:(id)arg1; - (BOOL)readFrom:(id)arg1; - (id)dictionaryRepresentation; - (id)description; @property(readonly, nonatomic) BOOL hasLastInvisible; @property(readonly, nonatomic) BOOL hasLastCustom; @property(readonly, nonatomic) BOOL hasLastEdited; @property(readonly, nonatomic) BOOL hasLastViewed; @property(nonatomic) BOOL hasStateTTLMillis; @property(nonatomic) long long stateTTLMillis; // @synthesize stateTTLMillis=_stateTTLMillis; @property(nonatomic) BOOL hasCustomState; @property(nonatomic) long long customState; // @synthesize customState=_customState; - (int)StringAsState:(id)arg1; - (id)stateAsString:(int)arg1; @property(nonatomic) BOOL hasState; @property(nonatomic) int state; // @synthesize state=_state; @property(readonly, nonatomic) BOOL hasUser; @end
33.258065
98
0.745878
e24b5c700a319ab2aae007a0117837f94aab9291
274
h
C
ChatKit-OC/Example/Class/Module/Redpacket/cocoapods-redpacket-ui-2.0.0/RedPacketAliAuthUI/SendRedPacketViewController/Views/RPSendRedPacketCountTableViewCell.h
YunzhanghuOpen/leanChat-yunzhanghu
dfbdc4ef0fff754405f71c5c80f6af90bedd781c
[ "MIT" ]
1
2020-12-23T06:38:33.000Z
2020-12-23T06:38:33.000Z
ChatKit-OC/Example/Class/Module/Redpacket/cocoapods-redpacket-ui-2.0.0/RedPacketAliAuthUI/SendRedPacketViewController/Views/RPSendRedPacketCountTableViewCell.h
YunzhanghuOpen/leanChat-yunzhanghu
dfbdc4ef0fff754405f71c5c80f6af90bedd781c
[ "MIT" ]
null
null
null
ChatKit-OC/Example/Class/Module/Redpacket/cocoapods-redpacket-ui-2.0.0/RedPacketAliAuthUI/SendRedPacketViewController/Views/RPSendRedPacketCountTableViewCell.h
YunzhanghuOpen/leanChat-yunzhanghu
dfbdc4ef0fff754405f71c5c80f6af90bedd781c
[ "MIT" ]
1
2020-12-23T06:38:43.000Z
2020-12-23T06:38:43.000Z
// // RPSendRedPacketChangeTableViewCell.h // RedpacketLib // // Created by 都基鹏 on 16/8/1. // Copyright © 2016年 Mr.Yang. All rights reserved. // #import "RPSendRedPacketTableViewCell.h" @interface RPSendRedPacketCountTableViewCell : RPSendRedPacketTableViewCell @end
19.571429
75
0.766423
f5e2071736911ad68d3c282464f6a5672d09c697
263
h
C
POD_HYCanlendar/Classes/CalendarWeekDayView.h
ITHanYong/POD_HYCanlendar
227489f19dd4f2d8bb3d8aff27c8332ff16e1af0
[ "MIT" ]
1
2020-06-29T08:04:41.000Z
2020-06-29T08:04:41.000Z
POD_HYCanlendar/Classes/CalendarWeekDayView.h
ITHanYong/POD_HYCanlendar
227489f19dd4f2d8bb3d8aff27c8332ff16e1af0
[ "MIT" ]
null
null
null
POD_HYCanlendar/Classes/CalendarWeekDayView.h
ITHanYong/POD_HYCanlendar
227489f19dd4f2d8bb3d8aff27c8332ff16e1af0
[ "MIT" ]
null
null
null
// // CalendarWeekDayView.h // scrollTest // // Created by Mac on 16/5/27. // Copyright © 2016年 macbook. All rights reserved. // #import <UIKit/UIKit.h> @interface CalendarWeekDayView : UIView + (void)beforeReloadAppearance; - (void)reloadAppearance; @end
16.4375
51
0.711027
3a76149e5c181dabf648422ac28ecca3f1f6721f
3,186
h
C
ecmascript/mem/semi_space_collector.h
openharmony-gitee-mirror/ark_js_runtime
b5ac878349b00b337c45f4702332c23aa82e1e28
[ "Apache-2.0" ]
3
2021-09-08T09:16:18.000Z
2021-12-28T21:14:06.000Z
ecmascript/mem/semi_space_collector.h
openharmony-gitee-mirror/ark_js_runtime
b5ac878349b00b337c45f4702332c23aa82e1e28
[ "Apache-2.0" ]
null
null
null
ecmascript/mem/semi_space_collector.h
openharmony-gitee-mirror/ark_js_runtime
b5ac878349b00b337c45f4702332c23aa82e1e28
[ "Apache-2.0" ]
1
2021-09-13T11:21:59.000Z
2021-09-13T11:21:59.000Z
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef ECMASCRIPT_MEM_SEMI_SAPACE_COLLECTOR_H #define ECMASCRIPT_MEM_SEMI_SAPACE_COLLECTOR_H #include "ecmascript/mem/clock_scope.h" #include "ecmascript/mem/mem.h" #include "ecmascript/mem/heap.h" #include "ecmascript/mem/allocator.h" #include "ecmascript/mem/mark_stack-inl.h" #include "ecmascript/mem/mark_word.h" #include "ecmascript/mem/slots.h" #include "ecmascript/mem/heap_roots.h" #include "ecmascript/mem/remembered_set.h" #include "ecmascript/mem/chunk_containers.h" #include "ecmascript/mem/tlab_allocator.h" #include "ecmascript/thread/thread_pool.h" #include "ecmascript/mem/semi_space_marker.h" #include "os/mutex.h" namespace panda { namespace ecmascript { class Heap; class JSHClass; class SemiSpaceWorker; class GarbageCollector { public: GarbageCollector() = default; virtual ~GarbageCollector() = default; DEFAULT_COPY_SEMANTIC(GarbageCollector); DEFAULT_MOVE_SEMANTIC(GarbageCollector); }; class SemiSpaceCollector : public GarbageCollector { public: explicit SemiSpaceCollector(Heap *heap, bool parallelGc); ~SemiSpaceCollector() override; NO_COPY_SEMANTIC(SemiSpaceCollector); NO_MOVE_SEMANTIC(SemiSpaceCollector); void RunPhases(); Heap *GetHeap() const { return heap_; } private: bool ParallelHandleOldToNew(uint32_t threadId, Region *region); bool ParallelHandleThreadRoots(uint32_t threadId); bool ParallelHandleSnapShot(uint32_t threadId); bool ParallelHandleGlobalPool(uint32_t threadId); void InitializePhase(); void ParallelMarkingPhase(); void SweepPhases(); void FinishPhase(); void ProcessMarkStack(uint64_t threadId); inline uintptr_t AllocateYoung(size_t size); inline uintptr_t AllocateOld(size_t size); inline void UpdatePromotedSlot(TaggedObject *object, ObjectSlot slot); inline void RecordWeakReference(uint32_t threadId, JSTaggedType *ref); inline bool BlowAgeMark(uintptr_t address); Heap *heap_; HeapRootManager rootManager_; os::memory::Mutex allocatorLock_; BumpPointerAllocator fromSpaceAllocator_{}; FreeListAllocator oldSpaceAllocator_{}; bool paralledGC_{false}; SemiSpaceWorker *workList_{nullptr}; SemiSpaceMarker markObject_; size_t promotedSize_{0}; size_t semiCopiedSize_{0}; size_t commitSize_ = 0; uintptr_t ageMark_{0}; friend class TlabAllocator; friend class SemiSpaceWorker; friend class SemiSpaceMarker; friend class Heap; }; } // namespace ecmascript } // namespace panda #endif // ECMASCRIPT_MEM_SEMI_SAPACE_COLLECTOR_H
30.932039
75
0.758004
5f9c4776a689a932292f916c66d78de04650bd0a
5,494
h
C
include/tapas/hot/partitioner.h
keisukefukuda/tapas
341fad9ecd97607771db4c4c966b76d30b5bfc89
[ "MIT" ]
null
null
null
include/tapas/hot/partitioner.h
keisukefukuda/tapas
341fad9ecd97607771db4c4c966b76d30b5bfc89
[ "MIT" ]
13
2015-04-22T10:32:01.000Z
2016-01-21T10:24:32.000Z
include/tapas/hot/partitioner.h
keisukefukuda/tapas
341fad9ecd97607771db4c4c966b76d30b5bfc89
[ "MIT" ]
null
null
null
#ifndef TAPAS_HOT_PARTITIONER__ #define TAPAS_HOT_PARTITIONER__ namespace tapas { namespace hot { template <class TSP> // Tapas static params class Partitioner { private: const index_t max_nb_; using BodyType = typename TSP::Body; using BodyAttr = typename TSP::BodyAttr; using KeyType = typename Cell<TSP>::KeyType; using CellAttr = typename Cell<TSP>::CellAttr; using CellHashTable = typename Cell<TSP>::CellHashTable; using KeySet = typename Cell<TSP>::SFC::KeySet; using SFC = typename TSP::SFC; using HT = typename Cell<TSP>::CellHashTable; using Data = typename Cell<TSP>::Data; public: Partitioner(unsigned max_nb): max_nb_(max_nb) {} /** * @brief Partition the space and build the tree */ Cell<TSP> *Partition(Data *data, const BodyType *b, const BodyAttr *a, const double *w, index_t nb, MPI_Comm comm); public: //--------------------- // Supporting functions //--------------------- /** * @brief Find owner process from a head-key list. * The argument head_list contains SFC keys that are the first keys of processes. * head_list[P] is the first SFC key belonging to process P. * Because the first element is always 0 (by definition of space filling curve), * the result must be always >= 0. * */ static int FindOwnerProcess(const std::vector<KeyType> &head_list, KeyType key) { TAPAS_ASSERT(Cell<TSP>::SFC::RemoveDepth(head_list[0]) == 0); auto comp = [](KeyType a, KeyType b) { return Cell<TSP>::SFC::RemoveDepth(a) < Cell<TSP>::SFC::RemoveDepth(b); }; return std::upper_bound(head_list.begin(), head_list.end(), key, comp) - head_list.begin() - 1; } static std::vector<int> FindOwnerProcess(const std::vector<KeyType> &head_key_list, const std::vector<KeyType> &keys) { std::vector<int> owners(keys.size()); for (size_t i = 0; i < keys.size(); i++) { owners[i] = FindOwnerProcess(head_key_list, keys[i]); } return owners; } static void KeysToAttrs(const std::vector<KeyType> &keys, std::vector<CellAttr> &attrs, const HT& hash) { // functor auto key_to_attr = [&hash](KeyType k) -> CellAttr& { return hash.at(k)->attr(); }; attrs.resize(keys.size()); std::transform(keys.begin(), keys.end(), attrs.begin(), key_to_attr); } static void KeysToBodies(const std::vector<KeyType> &keys, std::vector<index_t> &nb, std::vector<BodyType> &bodies, const HT& hash) { nb.resize(keys.size()); bodies.clear(); // In BH, each leaf has 0 or 1 body (while every cell has attribute) for (size_t i = 0; i < keys.size(); i++) { KeyType k = keys[i]; auto *c = hash.at(k); nb[i] = c->IsLeaf() ? c->nb() : 0; for (size_t bi = 0; bi < nb[i]; bi++) { bodies.push_back(c->body(bi)); } } } }; // class Partitioner /** * @brief Partition the simulation space and build SFC key based octree * @tparam TSP Tapas static params * @param b Array of particles * @param numBodies Length of b (NOT the total number of bodies over all processes) * @param r Geometry of the target space * @return The root cell of the constructed tree * @todo In this function keys are exchanged using alltoall communication, as well as bodies. * In extremely large scale systems, calculating keys locally again after communication * might be faster. */ template <class TSP> // TSP : Tapas Static Params Cell<TSP>* Partitioner<TSP>::Partition(typename Cell<TSP>::Data *data, const typename TSP::Body *b, const typename TSP::BodyAttr *a, const double *w, index_t num_bodies, MPI_Comm comm) { using SFC = typename TSP::SFC; using CellType = Cell<TSP>; using Data = typename CellType::Data; if (data == nullptr) { // First timestep data = new Data(comm); data->ncrit_ = max_nb_; data->sample_rate_ = SamplingOctree<TSP, SFC>::SamplingRate(); } else { // if `data` is not NULL, // This is re-partitioning. Increase time step counter // for reporting. data->timestep_++; } // Build local trees SamplingOctree<TSP, SFC> stree(b, a, w, num_bodies, data, max_nb_); stree.Build(); // Build Global trees GlobalTree<TSP>::Build(*data); #if defined(TAPAS_TREE_STAT) || 1 stree.ShowTreeStat(); #endif #ifdef TAPAS_DEBUG_DUMP { tapas::debug::DebugStream e("cells"); for (auto&& iter : data->ht_) { KeyType k = iter.first; Cell<TSP> *c = iter.second; e.out() << SFC::Simplify(k) << " " << "d=" << SFC::GetDepth(k) << " " << "leaf=" << c->IsLeaf() << " " //<< "owners=" << std::setw(2) << std::right << 0 << " " << "nb=" << std::setw(3) << (c->IsLeaf() ? (int)c->nb() : -1) << " " << "center=[" << c->center() << "] " //<< "next_key=" << SFC::Simplify(SFC::GetNext(k)) << " " //<< "parent=" << SFC::Simplify(SFC::Parent(k)) << " " << std::endl; } } #endif stree.ListShallowLeaves(); // Initialize the mapper class (mainly for GPU) data->mapper_.Setup(); // return the root cell (root key is always 0) return data->ht_[0]; } } // ns hot } // ns tapas #endif // TAPAS_HOT_PARTITIONER__
30.353591
117
0.590644
75a5462d7a0e6e7178dc80d7b9cec155b09de7cd
2,459
h
C
networkit/cpp/community/PLP.h
cndolo/networkit
eb52ec5e62a13f4a259fc2e7cf116b2fd2acfbee
[ "MIT" ]
1
2019-02-26T14:59:50.000Z
2019-02-26T14:59:50.000Z
networkit/cpp/community/PLP.h
cndolo/networkit
eb52ec5e62a13f4a259fc2e7cf116b2fd2acfbee
[ "MIT" ]
null
null
null
networkit/cpp/community/PLP.h
cndolo/networkit
eb52ec5e62a13f4a259fc2e7cf116b2fd2acfbee
[ "MIT" ]
null
null
null
/* * PLP.h * * Created on: 07.12.2012 * Author: Christian Staudt (christian.staudt@kit.edu) */ #ifndef PLP_H_ #define PLP_H_ #include "CommunityDetectionAlgorithm.h" #include "../structures/Partition.h" namespace NetworKit { /** * @ingroup community * As described in Ovelgoenne et al: An Ensemble Learning Strategy for Graph Clustering * Raghavan et al. proposed a label propagation algorithm for graph clustering. * This algorithm initializes every vertex of a graph with a unique label. Then, in iterative * sweeps over the set of vertices the vertex labels are updated. A vertex gets the label * that the maximum number of its neighbors have. The procedure is stopped when every vertex * has the label that at least half of its neighbors have. * */ class PLP: public CommunityDetectionAlgorithm { protected: count updateThreshold = 0; count maxIterations; count nIterations = 0; //!< number of iterations in last run std::vector<count> timing; //!< running times for each iteration public: /** * Constructor to the label propagation community detection algorithm. * * @param[in] G input graph * @param[in] theta updateThreshold: number of nodes that have to be changed in each iteration so that a new iteration starts. */ PLP(const Graph& G, count theta = none, count maxIterations=none); /** * Constructor to the label propagation community detection algorithm. * * @param[in] G input graph * @param[in] baseClustering optional; the algorithm will start from the given clustering. * @param[in] theta updateThreshold: number of nodes that have to be changed in each iteration so that a new iteration starts. */ PLP(const Graph& G, const Partition baseClustering, count theta = none); /** * Run the label propagation clustering algorithm. */ virtual void run(); /** * @return String representation of algorithm and parameters. */ virtual std::string toString() const; /** * The algorithm runs until a number of nodes less than * the threshold is updated. * * @param th The threshold. */ virtual void setUpdateThreshold(count th); /** * Get number of iterations in last run. * * @return The number of iterations. */ virtual count numberOfIterations(); /** * Get list of running times for each iteration. * * @return The list of running times in milliseconds */ virtual std::vector<count> getTiming(); }; } /* namespace NetworKit */ #endif /* PLP_H_ */
26.159574
127
0.721431
ced28147df670f958a26b41e7dc7daa1135c4d88
11,602
c
C
src/lcd.c
tractiming/trac-emb
f2dfdac8c83f83ed2bb3dc1a76faa6bfb3794a50
[ "MIT" ]
null
null
null
src/lcd.c
tractiming/trac-emb
f2dfdac8c83f83ed2bb3dc1a76faa6bfb3794a50
[ "MIT" ]
null
null
null
src/lcd.c
tractiming/trac-emb
f2dfdac8c83f83ed2bb3dc1a76faa6bfb3794a50
[ "MIT" ]
null
null
null
#include <string.h> #include <plib.h> #include "comm.h" #include "picsetup.h" #include "lcd.h" #define A0 LATBbits.LATB13 #define RST LATAbits.LATA1 #define SPI_CHANNEL SPI_CHANNEL1 #define LCD_NUM_PAGES (4) #define LCD_NUM_COLS (128) #define SET_PAGE_ADDRESS(page) (0xB0 | (page)) #define SET_COL_ADDRESS_MSB(col) (0x10 | (col >> 4)) #define SET_COL_ADDRESS_LSB(col) (0x00 | (col & 0x0F)) #define SET_START_LINE(line) (0x40 | (line)) #define LCD_DISPLAY_OFF (0xAE) #define LCD_DISPLAY_ON (0xAF) typedef enum { CMD_MODE = 0, DATA_MODE = 1 } LCDCommandMode; unsigned char characters[][7] = { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, // ' '0 { 0x00,0x06,0x5F,0x5F,0x06,0x00,0x00 }, // '!'1 { 0x00,0x07,0x07,0x00,0x07,0x07,0x00 }, // '"'2 { 0x14,0x7F,0x7F,0x14,0x7F,0x7F,0x14 }, // '#'3 { 0x24,0x2E,0x6B,0x6B,0x3A,0x12,0x00 }, // '$'4 { 0x46,0x66,0x30,0x18,0x0C,0x66,0x62 }, // '%'5 { 0x30,0x7A,0x4F,0x5D,0x37,0x7A,0x48 }, // '&'6 { 0x04,0x07,0x03,0x00,0x00,0x00,0x00 }, // '''7 { 0x00,0x1C,0x3E,0x63,0x41,0x00,0x00 }, // '('8 { 0x00,0x41,0x63,0x3E,0x1C,0x00,0x00 }, // ')'9 { 0x08,0x2A,0x3E,0x1C,0x1C,0x3E,0x2A }, // '*'10 { 0x08,0x08,0x3E,0x3E,0x08,0x08,0x00 }, // '+'11 { 0x00,0x80,0xE0,0x60,0x00,0x00,0x00 }, // ','12 { 0x08,0x08,0x08,0x08,0x08,0x08,0x00 }, // '-'13 { 0x00,0x00,0x60,0x60,0x00,0x00,0x00 }, // '.'14 { 0x60,0x30,0x18,0x0C,0x06,0x03,0x01 }, // '/'15 { 0x3E,0x7F,0x71,0x59,0x4D,0x7F,0x3E }, // '0'16 { 0x40,0x42,0x7F,0x7F,0x40,0x40,0x00 }, // '1'17 { 0x62,0x73,0x59,0x49,0x6F,0x66,0x00 }, // '2'18 { 0x22,0x63,0x49,0x49,0x7F,0x36,0x00 }, // '3'19 { 0x18,0x1C,0x16,0x53,0x7F,0x7F,0x50 }, // '4'20 { 0x27,0x67,0x45,0x45,0x7D,0x39,0x00 }, // '5'21 { 0x3C,0x7E,0x4B,0x49,0x79,0x30,0x00 }, // '6'22 { 0x03,0x03,0x71,0x79,0x0F,0x07,0x00 }, // '7'23 { 0x36,0x7F,0x49,0x49,0x7F,0x36,0x00 }, // '8'24 { 0x06,0x4F,0x49,0x69,0x3F,0x1E,0x00 }, // '9'25 { 0x00,0x00,0x66,0x66,0x00,0x00,0x00 }, // ':'26 { 0x00,0x80,0xE6,0x66,0x00,0x00,0x00 }, // ';'27 { 0x08,0x1C,0x36,0x63,0x41,0x00,0x00 }, // '<'28 { 0x24,0x24,0x24,0x24,0x24,0x24,0x00 }, // '='29 { 0x00,0x41,0x63,0x36,0x1C,0x08,0x00 }, // '>'30 { 0x02,0x03,0x51,0x59,0x0F,0x06,0x00 }, // '?'31 { 0x3E,0x7F,0x41,0x5D,0x5D,0x1F,0x1E }, // '@'32 { 0x7C,0x7E,0x13,0x13,0x7E,0x7C,0x00 }, // 'A'33 { 0x41,0x7F,0x7F,0x49,0x49,0x7F,0x36 }, // 'B'34 { 0x1C,0x3E,0x63,0x41,0x41,0x63,0x22 }, // 'C'35 { 0x41,0x7F,0x7F,0x41,0x63,0x3E,0x1C }, // 'D'36 { 0x41,0x7F,0x7F,0x49,0x5D,0x41,0x63 }, // 'E'37 { 0x41,0x7F,0x7F,0x49,0x1D,0x01,0x03 }, // 'F'38 { 0x1C,0x3E,0x63,0x41,0x51,0x73,0x72 }, // 'G'39 { 0x7F,0x7F,0x08,0x08,0x7F,0x7F,0x00 }, // 'H'40 { 0x00,0x41,0x7F,0x7F,0x41,0x00,0x00 }, // 'I'41 { 0x30,0x70,0x40,0x41,0x7F,0x3F,0x01 }, // 'J'42 { 0x41,0x7F,0x7F,0x08,0x1C,0x77,0x63 }, // 'K'43 { 0x41,0x7F,0x7F,0x41,0x40,0x60,0x70 }, // 'L'44 { 0x7F,0x7F,0x0E,0x1C,0x0E,0x7F,0x7F }, // 'M'45 { 0x7F,0x7F,0x06,0x0C,0x18,0x7F,0x7F }, // 'N'46 { 0x1C,0x3E,0x63,0x41,0x63,0x3E,0x1C }, // 'O'47 { 0x41,0x7F,0x7F,0x49,0x09,0x0F,0x06 }, // 'P'48 { 0x1E,0x3F,0x21,0x71,0x7F,0x5E,0x00 }, // 'Q'49 { 0x41,0x7F,0x7F,0x09,0x19,0x7F,0x66 }, // 'R'50 { 0x26,0x6F,0x4D,0x59,0x73,0x32,0x00 }, // 'S'51 { 0x03,0x41,0x7F,0x7F,0x41,0x03,0x00 }, // 'T'52 { 0x7F,0x7F,0x40,0x40,0x7F,0x7F,0x00 }, // 'U'53 { 0x1F,0x3F,0x60,0x60,0x3F,0x1F,0x00 }, // 'V'54 { 0x7F,0x7F,0x30,0x18,0x30,0x7F,0x7F }, // 'W'55 { 0x43,0x67,0x3C,0x18,0x3C,0x67,0x43 }, // 'X'56 { 0x07,0x4F,0x78,0x78,0x4F,0x07,0x00 }, // 'Y'57 { 0x47,0x63,0x71,0x59,0x4D,0x67,0x73 }, // 'Z'58 { 0x00,0x7F,0x7F,0x41,0x41,0x00,0x00 }, // '['59 { 0x01,0x03,0x06,0x0C,0x18,0x30,0x60 }, // '\'60 { 0x00,0x41,0x41,0x7F,0x7F,0x00,0x00 }, // ']'61 { 0x08,0x0C,0x06,0x03,0x06,0x0C,0x08 }, // '^'62 { 0x80,0x80,0x80,0x80,0x80,0x80,0x80 }, // '_'63 { 0x00,0x00,0x03,0x07,0x04,0x00,0x00 }, // '`'64 { 0x20,0x74,0x54,0x54,0x3C,0x78,0x40 }, // 'a'65 { 0x41,0x7F,0x3F,0x48,0x48,0x78,0x30 }, // 'b'66 { 0x38,0x7C,0x44,0x44,0x6C,0x28,0x00 }, // 'c'67 { 0x30,0x78,0x48,0x49,0x3F,0x7F,0x40 }, // 'd'68 { 0x38,0x7C,0x54,0x54,0x5C,0x18,0x00 }, // 'e'69 { 0x48,0x7E,0x7F,0x49,0x03,0x02,0x00 }, // 'f'70 { 0x38,0xBC,0xA4,0xA4,0xFC,0x78,0x00 }, // 'g'71 { 0x41,0x7F,0x7F,0x08,0x04,0x7C,0x78 }, // 'h'72 { 0x00,0x44,0x7D,0x7D,0x40,0x00,0x00 }, // 'i'73 { 0x60,0xE0,0x80,0x80,0xFD,0x7D,0x00 }, // 'j'74 { 0x41,0x7F,0x7F,0x10,0x38,0x6C,0x44 }, // 'k'75 { 0x00,0x41,0x7F,0x7F,0x40,0x00,0x00 }, // 'l'76 { 0x78,0x7C,0x1C,0x38,0x1C,0x7C,0x78 }, // 'm'77 { 0x7C,0x7C,0x04,0x04,0x7C,0x78,0x00 }, // 'n'78 { 0x38,0x7C,0x44,0x44,0x7C,0x38,0x00 }, // 'o'79 { 0x00,0xFC,0xFC,0xA4,0x24,0x3C,0x18 }, // 'p'80 { 0x18,0x3C,0x24,0xA4,0xF8,0xFC,0x84 }, // 'q'81 { 0x44,0x7C,0x78,0x4C,0x04,0x1C,0x18 }, // 'r'82 { 0x48,0x5C,0x54,0x54,0x74,0x24,0x00 }, // 's'83 { 0x00,0x04,0x3E,0x7F,0x44,0x24,0x00 }, // 't'84 { 0x3C,0x7C,0x40,0x40,0x3C,0x7C,0x40 }, // 'u'85 { 0x1C,0x3C,0x60,0x60,0x3C,0x1C,0x00 }, // 'v'86 { 0x3C,0x7C,0x70,0x38,0x70,0x7C,0x3C }, // 'w'87 { 0x44,0x6C,0x38,0x10,0x38,0x6C,0x44 }, // 'x'88 { 0x3C,0xBC,0xA0,0xA0,0xFC,0x7C,0x00 }, // 'y'89 { 0x4C,0x64,0x74,0x5C,0x4C,0x64,0x00 }, // 'z'90 { 0x08,0x08,0x3E,0x77,0x41,0x41,0x00 }, // '{'91 { 0x00,0x00,0x00,0x77,0x77,0x00,0x00 }, // '|'92 { 0x41,0x41,0x77,0x3E,0x08,0x08,0x00 }, // '}'93 { 0x02,0x03,0x01,0x03,0x02,0x03,0x01 }, // '~'94 { 0xFF,0x81,0x81,0x81,0x81,0x81,0xFF }, // ''95 { 0x0E,0x9F,0x91,0xB1,0xFB,0x4A,0x00 }, // '255 }; /* Reverse bits. Used to flip characters. */ static unsigned char reverse(unsigned char b) { b = (b & 0xF0) >> 4 | (b & 0x0F) << 4; b = (b & 0xCC) >> 2 | (b & 0x33) << 2; b = (b & 0xAA) >> 1 | (b & 0x55) << 1; return b; } /* Send a command to the LCD. Mode indicates data or instructional command. */ static void send_cmd(unsigned char data, LCDCommandMode mode) { A0 = (int) mode; delay_ms(1); SpiChnPutC(SPI_CHANNEL, data); delay_ms(2); } /* Write a string of characters starting at a given page and column. */ void lcd_write_string(char *data, unsigned char page, unsigned char col) { #ifdef USE_LCD int i, c; send_cmd(SET_PAGE_ADDRESS(page), CMD_MODE); send_cmd(SET_COL_ADDRESS_MSB(col), CMD_MODE); send_cmd(SET_COL_ADDRESS_LSB(col), CMD_MODE); while (*data != '\0') { for(i=0; i<7; i++) { // Character set is flipped - reverse the bits. c = *data - 32; send_cmd(reverse(characters[c][i]), DATA_MODE); } data++; } #endif } /* Write a full bitmap to the screen. */ void lcd_write_bitmap(unsigned char * lcd_string) { #ifdef USE_LCD unsigned int i, j; unsigned char page = 0xB0; send_cmd(LCD_DISPLAY_OFF, CMD_MODE); send_cmd(SET_START_LINE(0), CMD_MODE); for (i=0; i<LCD_NUM_PAGES; i++) { send_cmd(SET_PAGE_ADDRESS(page), CMD_MODE); send_cmd(SET_COL_ADDRESS_MSB(0), CMD_MODE); send_cmd(SET_COL_ADDRESS_LSB(0), CMD_MODE); for (j=0; j<LCD_NUM_COLS; j++) { send_cmd(*lcd_string, DATA_MODE); lcd_string++; } page++; } send_cmd(LCD_DISPLAY_ON, CMD_MODE); #endif } /* Clear the screen by writing a space to every character slot. */ void lcd_clear(void) { #ifdef USE_LCD int i; char blnk[] = " "; // 128 pxls/7 pxls per char ~ 19 send_cmd(LCD_DISPLAY_OFF, CMD_MODE); for (i=0; i<LCD_NUM_PAGES; i++) lcd_write_string(blnk, i, 0); send_cmd(LCD_DISPLAY_ON, CMD_MODE); #endif } /* Turn on and initialize the LCD screen. */ void lcd_init(void) { #ifdef USE_LCD RST = 0; delay_ms(5); RST = 1; delay_ms(5); send_cmd(0xA0, CMD_MODE); //RAM->SEG output = normal send_cmd(0xAE, CMD_MODE); //Display OFF send_cmd(0xC0, CMD_MODE); //COM scan direction = normal send_cmd(0xA2, CMD_MODE); //1/9 bias send_cmd(0x2F, CMD_MODE); //power control set send_cmd(0x21, CMD_MODE); //resistor ratio set send_cmd(0x81, CMD_MODE); //Electronic volume command (set contrast) send_cmd(0x2F, CMD_MODE); //Electronic volume value (contrast value) #endif } /* Turn on display with battery, cellular, and tag read information. */ void lcd_init_display(void) { #ifdef USE_LCD lcd_clear(); send_cmd(LCD_DISPLAY_OFF, CMD_MODE); lcd_write_string("battery: ", 3, 0); lcd_write_string("tags read: ", 2, 0); lcd_write_string("cellular: ", 1, 0); lcd_write_string("status: ", 0, 0); send_cmd(LCD_DISPLAY_ON, CMD_MODE); #endif } /* Configure SPI communication on the PIC. */ void lcd_init_spi(void) { #ifdef USE_LCD SpiChnOpen(SPI_CHANNEL, SPI_OPEN_MSTEN | SPI_OPEN_DISSDI, 4); #endif } /* Set the battery status message. */ void lcd_set_battery(BatteryMessage msg) { #ifdef USE_LCD char s[4]; switch(msg) { case BATTERY_OK: strcpy(s, "OK "); break; case BATTERY_LOW: strcpy(s, "LOW"); break; default: strcpy(s, " "); } lcd_write_string(s, 3, 63); #endif } /* Set the cell reception message. */ void lcd_set_cellular(CellularMessage msg) { #ifdef USE_LCD char s[5]; switch(msg) { case CELLULAR_OK: strcpy(s, "OK "); break; case CELLULAR_FAILED: strcpy(s, "FAIL"); break; case CELLULAR_PENDING: strcpy(s, "PEND"); break; case CELLULAR_LOW: strcpy(s, "LOW "); break; default: strcpy(s, " "); } lcd_write_string(s, 1, 70); #endif } /* Set the number of tags read message. */ void lcd_set_tags(int n) { #ifdef USE_LCD char s[6]; sprintf(s, "%5d", n); lcd_write_string(s, 2, 77); #endif } /* Set the overall status of the reader. */ void lcd_set_status(StatusMessage msg) { #ifdef USE_LCD char s[9]; switch(msg) { case STAT_BOOTING: strcpy(s, "BOOTING "); break; case STAT_READY: strcpy(s, "READY "); break; case STAT_SHUTDOWN: strcpy(s, "SHUTDOWN"); break; case STAT_READER_ERROR: strcpy(s, "RFID ERR"); break; default: strcpy(s, " "); } lcd_write_string(s, 0, 56); #endif }
38.54485
78
0.539217
a86ad5f2cbeb39cd050bc7672a232ec8bc1fc3a4
2,208
h
C
System/Library/PrivateFrameworks/ManagedConfiguration.framework/MCJobQueue.h
lechium/tvOS10Headers
f0c99993da6cc502d36fdc5cb4ff90d94b12bf67
[ "MIT" ]
4
2017-03-23T00:01:54.000Z
2018-08-04T20:16:32.000Z
System/Library/PrivateFrameworks/ManagedConfiguration.framework/MCJobQueue.h
lechium/tvOS10Headers
f0c99993da6cc502d36fdc5cb4ff90d94b12bf67
[ "MIT" ]
null
null
null
System/Library/PrivateFrameworks/ManagedConfiguration.framework/MCJobQueue.h
lechium/tvOS10Headers
f0c99993da6cc502d36fdc5cb4ff90d94b12bf67
[ "MIT" ]
4
2017-05-14T16:23:26.000Z
2019-12-21T15:07:59.000Z
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:01:36 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. */ @protocol OS_dispatch_queue, MCJobQueueObserver, OS_dispatch_group; @class NSObject; @interface MCJobQueue : NSObject { NSObject*<OS_dispatch_queue> _executionQueue; id<MCJobQueueObserver> _observer; NSObject*<OS_dispatch_queue> _jobQueue; NSObject*<OS_dispatch_group> _jobGroup; /*^block*/id _executionQueueAbortCompletionBlock; } @property (nonatomic,retain) NSObject*<OS_dispatch_queue> jobQueue; //@synthesize jobQueue=_jobQueue - In the implementation block @property (nonatomic,retain) NSObject*<OS_dispatch_group> jobGroup; //@synthesize jobGroup=_jobGroup - In the implementation block @property (nonatomic,copy) id executionQueueAbortCompletionBlock; //@synthesize executionQueueAbortCompletionBlock=_executionQueueAbortCompletionBlock - In the implementation block @property (nonatomic,retain) NSObject*<OS_dispatch_queue> executionQueue; //@synthesize executionQueue=_executionQueue - In the implementation block @property (assign,nonatomic,__weak) id<MCJobQueueObserver> observer; //@synthesize observer=_observer - In the implementation block -(NSObject*<OS_dispatch_group>)jobGroup; -(NSObject*<OS_dispatch_queue>)jobQueue; -(id)executionQueueAbortCompletionBlock; -(void)setExecutionQueueAbortCompletionBlock:(id)arg1 ; -(void)jobDidFinish; -(void)waitForEnqueuedJobsToCompleteCompletionBlock:(/*^block*/id)arg1 ; -(void)abortEnqueuedJobsCompletionBlock:(/*^block*/id)arg1 ; -(void)setExecutionQueue:(NSObject*<OS_dispatch_queue>)arg1 ; -(void)setJobQueue:(NSObject*<OS_dispatch_queue>)arg1 ; -(void)setJobGroup:(NSObject*<OS_dispatch_group>)arg1 ; -(id)init; -(NSObject*<OS_dispatch_queue>)executionQueue; -(void)setObserver:(id<MCJobQueueObserver>)arg1 ; -(id<MCJobQueueObserver>)observer; -(void)enqueueJob:(/*^block*/id)arg1 ; @end
49.066667
201
0.776268
a8072fb963e83dde922165f5ba2afea6d991be94
977
h
C
million_rows.h
qrealka/elesta_test
a4321145b48aff885dd8dc20ad6132478c182145
[ "MIT" ]
null
null
null
million_rows.h
qrealka/elesta_test
a4321145b48aff885dd8dc20ad6132478c182145
[ "MIT" ]
null
null
null
million_rows.h
qrealka/elesta_test
a4321145b48aff885dd8dc20ad6132478c182145
[ "MIT" ]
null
null
null
#ifndef MILLIONROWS_H #define MILLIONROWS_H #include <QAbstractItemModel> /* * Use QAbstractItemModel bcause model can be used in defferent Views */ class MillionRows : public QAbstractItemModel { Q_OBJECT public: explicit MillionRows(QObject *parent); static const int RowCount = 100000; private: virtual QModelIndex parent(const QModelIndex& index) const Q_DECL_OVERRIDE; virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const Q_DECL_OVERRIDE; virtual int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; virtual int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; private: const QModelIndex m_emptyIndex; const QVariant m_emptyVariant; mutable QVariant m_data; // just hack to reduce amount QVariant }; #endif // MILLIONROWS_H
32.566667
116
0.770727
4be0a567dfbe16d36e4f9b5c145eef484115e213
210
h
C
TestiOS/FPR/RACViewController.h
WeMadeCode/TestiOS
f9f1f171d7e9a16be785d8764dd9e0f2e817368b
[ "MIT" ]
null
null
null
TestiOS/FPR/RACViewController.h
WeMadeCode/TestiOS
f9f1f171d7e9a16be785d8764dd9e0f2e817368b
[ "MIT" ]
null
null
null
TestiOS/FPR/RACViewController.h
WeMadeCode/TestiOS
f9f1f171d7e9a16be785d8764dd9e0f2e817368b
[ "MIT" ]
null
null
null
// // Test2ObjCViewController.h // TestiOS // // Created by 周翔 on 2021/6/9. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface RACViewController : UIViewController @end NS_ASSUME_NONNULL_END
12.352941
47
0.742857
359298669dd7210d8b5e2f44745f7ab288137285
599
h
C
SHARE/homeTableViewCell.h
Su-Mang/SummerJob---Share-demo
ab0b6dc7b064a929005db395cfd283d7d1201914
[ "Apache-2.0" ]
null
null
null
SHARE/homeTableViewCell.h
Su-Mang/SummerJob---Share-demo
ab0b6dc7b064a929005db395cfd283d7d1201914
[ "Apache-2.0" ]
null
null
null
SHARE/homeTableViewCell.h
Su-Mang/SummerJob---Share-demo
ab0b6dc7b064a929005db395cfd283d7d1201914
[ "Apache-2.0" ]
null
null
null
// // homeTableViewCell.h // SHARE // // Created by 岳靖翔 on 2019/7/31. // Copyright © 2019 岳靖翔. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface homeTableViewCell : UITableViewCell @property (nonatomic,strong) UIImageView *pic; @property(nonatomic,weak)UILabel *titlelable; @property(nonatomic,weak)UILabel *writerlable; @property(nonatomic,weak)UILabel *detaillable; @property(nonatomic,weak)UILabel *plable; @property(nonatomic,weak)UIButton *bt1; @property(nonatomic,weak)UIButton *bt2; @property(nonatomic,weak)UIButton *bt3; @end NS_ASSUME_NONNULL_END
24.958333
46
0.776294
3597d21c481c436c8dfda5f3999c5413a521e0aa
840
h
C
B2G/gecko/content/media/plugins/nsMediaPluginDecoder.h
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/gecko/content/media/plugins/nsMediaPluginDecoder.h
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/gecko/content/media/plugins/nsMediaPluginDecoder.h
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim:set ts=2 sw=2 sts=2 et cindent: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ #if !defined(nsMediaPluginDecoder_h_) #define nsMediaPluginDecoder_h_ #include "nsBuiltinDecoder.h" #include "nsMediaPluginDecoder.h" class nsMediaPluginDecoder : public nsBuiltinDecoder { nsCString mType; public: nsMediaPluginDecoder(const nsACString& aType); const nsresult GetContentType(nsACString& aType) const { aType = mType; return NS_OK; } virtual nsMediaDecoder* Clone() { return new nsMediaPluginDecoder(mType); } virtual nsDecoderStateMachine* CreateStateMachine(); }; #endif
30
79
0.729762
8fe2b05528ac6d6978a6e414bca4f056d6a2cdfe
8,497
h
C
Applications/AdSheetTV/ADSAdSpaceController.h
lechium/tvOS10Headers
f0c99993da6cc502d36fdc5cb4ff90d94b12bf67
[ "MIT" ]
4
2017-03-23T00:01:54.000Z
2018-08-04T20:16:32.000Z
Applications/AdSheetTV/ADSAdSpaceController.h
lechium/tvOS10Headers
f0c99993da6cc502d36fdc5cb4ff90d94b12bf67
[ "MIT" ]
null
null
null
Applications/AdSheetTV/ADSAdSpaceController.h
lechium/tvOS10Headers
f0c99993da6cc502d36fdc5cb4ff90d94b12bf67
[ "MIT" ]
4
2017-05-14T16:23:26.000Z
2019-12-21T15:07:59.000Z
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" #import "ADSCreativeContainerViewDelegate.h" #import "ADSCreativeControllerMRAIDDelegate.h" #import "ADSCreativeViewNavigationActionDelegate.h" @class ADSAdImpressionController, ADSAdSpace, ADSCreativeController, ADSSession, NSString, NSTimer, NSURL, UIViewController<ADSActionViewControllerInterface>; @interface ADSAdSpaceController : NSObject <ADSCreativeContainerViewDelegate, ADSCreativeControllerMRAIDDelegate, ADSCreativeViewNavigationActionDelegate> { ADSSession *_session; // 8 = 0x8 ADSAdSpace *_adSpace; // 16 = 0x10 _Bool _actionInProgress; // 24 = 0x18 _Bool _isOpen; // 25 = 0x19 _Bool _holdingAssertion; // 26 = 0x1a _Bool _hasSentWillLoad; // 27 = 0x1b _Bool _devBackoffScheduled; // 28 = 0x1c _Bool _nativeAdContentVisible; // 29 = 0x1d int _adType; // 32 = 0x20 NSString *_section; // 40 = 0x28 ADSAdImpressionController *_adImpressionController; // 48 = 0x30 NSString *_controllerIdentifier; // 56 = 0x38 NSURL *_serverURL; // 64 = 0x40 ADSCreativeController *_currentCreativeController; // 72 = 0x48 UIViewController<ADSActionViewControllerInterface> *_currentActionViewController; // 80 = 0x50 double _actionViewControllerRequestTime; // 88 = 0x58 long long _adRequestToken; // 96 = 0x60 NSTimer *_processVisibilityTimer; // 104 = 0x68 ADSAdImpressionController *_loadingAdImpressionController; // 112 = 0x70 double _actionViewControllerAppearanceTime; // 120 = 0x78 double _createdAt; // 128 = 0x80 NSTimer *_loadActionViewControllerTimer; // 136 = 0x88 CDUnknownBlockType _beginActionCompletionHandler; // 144 = 0x90 struct CGRect _nativeAdFrame; // 152 = 0x98 } @property(copy, nonatomic) CDUnknownBlockType beginActionCompletionHandler; // @synthesize beginActionCompletionHandler=_beginActionCompletionHandler; @property(retain, nonatomic) NSTimer *loadActionViewControllerTimer; // @synthesize loadActionViewControllerTimer=_loadActionViewControllerTimer; @property(nonatomic) _Bool nativeAdContentVisible; // @synthesize nativeAdContentVisible=_nativeAdContentVisible; @property(nonatomic) double createdAt; // @synthesize createdAt=_createdAt; @property(nonatomic) _Bool devBackoffScheduled; // @synthesize devBackoffScheduled=_devBackoffScheduled; @property(nonatomic) _Bool hasSentWillLoad; // @synthesize hasSentWillLoad=_hasSentWillLoad; @property(nonatomic) double actionViewControllerAppearanceTime; // @synthesize actionViewControllerAppearanceTime=_actionViewControllerAppearanceTime; @property(nonatomic) _Bool holdingAssertion; // @synthesize holdingAssertion=_holdingAssertion; @property(retain, nonatomic) ADSAdImpressionController *loadingAdImpressionController; // @synthesize loadingAdImpressionController=_loadingAdImpressionController; @property(retain, nonatomic) NSTimer *processVisibilityTimer; // @synthesize processVisibilityTimer=_processVisibilityTimer; @property(readonly, nonatomic) _Bool isOpen; // @synthesize isOpen=_isOpen; @property(nonatomic) long long adRequestToken; // @synthesize adRequestToken=_adRequestToken; @property(nonatomic) struct CGRect nativeAdFrame; // @synthesize nativeAdFrame=_nativeAdFrame; @property(nonatomic) _Bool actionInProgress; // @synthesize actionInProgress=_actionInProgress; @property(nonatomic) double actionViewControllerRequestTime; // @synthesize actionViewControllerRequestTime=_actionViewControllerRequestTime; @property(retain, nonatomic) UIViewController<ADSActionViewControllerInterface> *currentActionViewController; // @synthesize currentActionViewController=_currentActionViewController; @property(retain, nonatomic) ADSCreativeController *currentCreativeController; // @synthesize currentCreativeController=_currentCreativeController; @property(copy, nonatomic) NSURL *serverURL; // @synthesize serverURL=_serverURL; @property(nonatomic) int adType; // @synthesize adType=_adType; @property(readonly, nonatomic) NSString *controllerIdentifier; // @synthesize controllerIdentifier=_controllerIdentifier; @property(retain, nonatomic) ADSAdImpressionController *adImpressionController; // @synthesize adImpressionController=_adImpressionController; - (void)creativeView:(id)arg1 didRequestNavigationWithURL:(id)arg2; // IMP=0x0000000100010400 - (void)creativeControllerRequestsPresentationForMRAIDOpenEvent:(id)arg1; // IMP=0x00000001000103dc @property(readonly, copy) NSString *description; - (void)storyboardRequestsOpenURL:(id)arg1; // IMP=0x00000001000101cc - (void)storyboardFinishedFirstLoad; // IMP=0x0000000100010104 - (void)reportSystemEvent:(int)arg1; // IMP=0x00000001000100d0 - (void)actionCompletedWithSystemEvent:(int)arg1 completionHandler:(CDUnknownBlockType)arg2; // IMP=0x000000010000fde8 - (void)actionCompletedWithSystemEvent:(int)arg1; // IMP=0x000000010000fdd8 - (void)dismissPortraitOnlyModalViewControllerAnimated:(_Bool)arg1 completionHandler:(CDUnknownBlockType)arg2; // IMP=0x000000010000fd80 - (void)presentPortraitOnlyModalViewControllerAnimated:(_Bool)arg1; // IMP=0x000000010000fd50 - (void)reportNativeClickEvent; // IMP=0x000000010000fcd0 - (void)cancelAction; // IMP=0x000000010000fc38 - (void)refuseAction; // IMP=0x000000010000fb9c - (void)actionViewControllerReadyForPresentation; // IMP=0x000000010000fa28 - (void)requestForActionViewControllerTimedOut; // IMP=0x000000010000f94c - (void)beginActionFromFrame:(struct CGRect)arg1 tapLocation:(struct CGPoint)arg2 completionHandler:(CDUnknownBlockType)arg3; // IMP=0x000000010000f50c - (void)determineActionForTapAtLocation:(struct CGPoint)arg1 inFrame:(struct CGRect)arg2 completionHandler:(CDUnknownBlockType)arg3; // IMP=0x000000010000f1a4 - (void)beginActionViewControllerPresentationWithCompletionHandler:(CDUnknownBlockType)arg1; // IMP=0x000000010000f100 - (void)privacyAdTransparencyDidLinkOut; // IMP=0x000000010000f0d8 - (void)privacyAdTransparencyDidDisappear; // IMP=0x000000010000f0b0 - (void)privacyAdTransparencyDidRenderTransparency; // IMP=0x000000010000f088 - (void)privacyAdTransparencyDidAppear; // IMP=0x000000010000f060 - (void)privacyAdMarkWasTapped; // IMP=0x000000010000f038 - (void)userDidSkipPreRoll; // IMP=0x000000010000f010 - (void)preRollDidStop; // IMP=0x000000010000efb0 - (void)preRollDidStart; // IMP=0x000000010000ef8c - (void)playbackResumed; // IMP=0x000000010000ef68 - (void)playbackPaused; // IMP=0x000000010000ef44 - (void)playbackStartedForImpressionSource:(int)arg1; // IMP=0x000000010000ef10 - (void)playbackFailedForURL:(id)arg1; // IMP=0x000000010000eeb8 - (void)playbackFinishedForContentHash:(id)arg1; // IMP=0x000000010000ee84 - (void)creativeContainerViewLayoutDidBecomeInvalid:(id)arg1; // IMP=0x000000010000ee50 - (void)interstitialCreativeWasDismissed; // IMP=0x000000010000ecc4 - (void)interstitialRemovedFromSuperview; // IMP=0x000000010000ec9c - (void)processAdSpaceVisibility:(long long)arg1; // IMP=0x000000010000e898 - (void)_scheduledProcessAdSpaceVisibility:(id)arg1; // IMP=0x000000010000e854 - (double)_cyclingInterval; // IMP=0x000000010000e790 @property(readonly, nonatomic) _Bool hasAd; - (void)_resetAdRequest; // IMP=0x000000010000e688 - (void)_requestAd; // IMP=0x000000010000dcf4 - (void)_cancelCurrentAdRequest; // IMP=0x000000010000db98 - (void)_unloadCurrentAd; // IMP=0x000000010000d8b4 - (void)willLoadAd; // IMP=0x000000010000d830 - (void)_test_clearCurrentAd; // IMP=0x000000010000d7f0 - (void)_handleAdError:(id)arg1 forAdData:(id)arg2; // IMP=0x000000010000d41c - (void)_handleAdLoad; // IMP=0x000000010000d20c - (_Bool)_shouldAnimateTransitionToCreativeView; // IMP=0x000000010000d1e0 - (void)loadAdData:(id)arg1 error:(id)arg2; // IMP=0x000000010000cc24 - (id)_sanitizeRequestFailure:(id)arg1; // IMP=0x000000010000cac8 - (void)clientApplicationWillEnterForeground; // IMP=0x000000010000ca34 - (void)clientApplicationDidEnterBackground; // IMP=0x000000010000c960 @property(copy, nonatomic) NSString *section; // @synthesize section=_section; - (void)close; // IMP=0x000000010000c56c @property(nonatomic) __weak ADSAdSpace *adSpace; @property(nonatomic) __weak ADSSession *session; - (id)initForAdSpace:(id)arg1 session:(id)arg2; // IMP=0x000000010000c01c - (void)dealloc; // IMP=0x000000010000bec0 // Remaining properties @property(readonly, copy) NSString *debugDescription; @property(readonly) unsigned long long hash; @property(readonly) Class superclass; @end
65.868217
182
0.813111
89789aa0070f39c575bd5442ed9e4ce93049e38c
791
h
C
DigitalSynthVRA8M/audio-out.h
risgk/DigitalSynthVRA8M
1cb4d3cbcac90c02a6f9a96769e86386d09f4bcd
[ "CC0-1.0" ]
7
2015-08-28T16:32:27.000Z
2020-05-10T15:06:11.000Z
DigitalSynthVRA8M/audio-out.h
risgk/DigitalSynthVRA8M
1cb4d3cbcac90c02a6f9a96769e86386d09f4bcd
[ "CC0-1.0" ]
1
2017-01-30T23:43:22.000Z
2017-01-30T23:43:22.000Z
DigitalSynthVRA8M/audio-out.h
risgk/DigitalSynthVRA8M
1cb4d3cbcac90c02a6f9a96769e86386d09f4bcd
[ "CC0-1.0" ]
2
2017-02-14T09:04:34.000Z
2018-08-25T09:56:17.000Z
// refs http://playground.arduino.cc/Code/PCMAudio #pragma once #include "common.h" template <uint8_t T> class AudioOut { static const int SPEAKER_PIN = 6; // PD6 (OC0A) static const int LED_PIN = 13; // PB5 public: INLINE static void open() { pinMode(SPEAKER_PIN, OUTPUT); pinMode(LED_PIN, OUTPUT); // Timer/Counter0 (8-bit Fast PWM, Inverting, 62500 Hz) TCCR0A = 0xC3; TCCR0B = 0x01; OCR0A = 0x80; // Timer/Counter1 (10-bit Fast PWM, 15625 Hz) TCCR1A = 0x03; TCCR1B = 0x09; } INLINE static void write(int8_t level) { if (TIFR1 & _BV(TOV1)) { // overload PORTB |= _BV(5); } else { PORTB &= ~_BV(5); } while ((TIFR1 & _BV(TOV1)) == 0); TIFR1 = _BV(TOV1); OCR0A = 0x80 - level; } };
20.282051
59
0.584071
8e5d321402c75f47dbb2fb954e04609b23c8e780
1,761
c
C
vendor/samsung/external/ims_voice_engine/codec/evs/float_c/lib_dec/FEC_lsf_estim.c
cesarmo759/android_kernel_samsung_msm8916
f19717ef6c984b64a75ea600a735dc937b127c25
[ "Apache-2.0" ]
1
2020-06-28T00:49:21.000Z
2020-06-28T00:49:21.000Z
vendor/samsung/external/ims_voice_engine/codec/evs/float_c/lib_dec/FEC_lsf_estim.c
cesarmo759/android_kernel_samsung_msm8916
f19717ef6c984b64a75ea600a735dc937b127c25
[ "Apache-2.0" ]
null
null
null
vendor/samsung/external/ims_voice_engine/codec/evs/float_c/lib_dec/FEC_lsf_estim.c
cesarmo759/android_kernel_samsung_msm8916
f19717ef6c984b64a75ea600a735dc937b127c25
[ "Apache-2.0" ]
1
2021-03-05T16:54:52.000Z
2021-03-05T16:54:52.000Z
/*==================================================================================== EVS Codec 3GPP TS26.443 Oct 20, 2015. Version 12.4.0 ====================================================================================*/ #include "options.h" #include "cnst.h" #include "rom_com.h" #include "prot.h" /*-------------------------------------------------------------------* * FEC_lsf_estim() * * - LSP calculation * - A(z) calculation *-------------------------------------------------------------------*/ void FEC_lsf2lsp_interp( Decoder_State *st, /* i/o: Decoder static memory */ const short L_frame, /* i : length of the frame */ float *Aq, /* o : calculated A(z) for 4 subframes */ float *lsf, /* o : estimated LSF vector */ float *lsp /* o : estimated LSP vector */ ) { /* convert LSFs to LSPs */ if ( st->Opt_AMR_WB ) { isf2isp( lsf, lsp, M, INT_FS_12k8 ); } else { if( L_frame == L_FRAME ) { lsf2lsp( lsf, lsp, M, INT_FS_12k8 ); } else /* L_frame == L_FRAME16k */ { lsf2lsp( lsf, lsp, M, INT_FS_16k ); } } /*----------------------------------------------------------------------* * Interpolate LSP vector and find A(z) *----------------------------------------------------------------------*/ if ( st->Opt_AMR_WB ) { int_lsp( L_frame, st->lsp_old, lsp, Aq, M, interpol_isp_amr_wb, 1 ); } else { int_lsp( L_frame, st->lsp_old, lsp, Aq, M, interpol_frac_12k8, 0 ); } return; }
30.894737
91
0.345258
60fef70699a685a6db5e74010d55291fe7929e49
525
h
C
SHPollfish/SHPolish.h
saeidha/SHPollfish
3283ae0b29a642df6408fd8bd3d0b0d695f3f820
[ "MIT" ]
null
null
null
SHPollfish/SHPolish.h
saeidha/SHPollfish
3283ae0b29a642df6408fd8bd3d0b0d695f3f820
[ "MIT" ]
null
null
null
SHPollfish/SHPolish.h
saeidha/SHPollfish
3283ae0b29a642df6408fd8bd3d0b0d695f3f820
[ "MIT" ]
null
null
null
// // SHPollfish.h // SHPollfish // // Created by Saeid Hosseinabadi on 2/7/20. // Copyright © 2020 Saeid Hosseinabadi. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for SHPollfish. FOUNDATION_EXPORT double SHPollfishVersionNumber; //! Project version string for SHPollfish. FOUNDATION_EXPORT const unsigned char SHPollfishVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <SHPollfish/PublicHeader.h>
26.25
135
0.771429
69687c7c0b02f2f407d52d423d8c32eb60d468e4
857
h
C
source/data/seed_packet_flattened.h
Manolomon/blind-jump-portable
6149d8b639bc9c50533b7eb5fc26884addf563fd
[ "MIT" ]
140
2019-08-31T02:52:17.000Z
2022-03-25T12:38:23.000Z
source/data/seed_packet_flattened.h
Manolomon/blind-jump-portable
6149d8b639bc9c50533b7eb5fc26884addf563fd
[ "MIT" ]
8
2020-11-30T11:29:56.000Z
2021-08-08T16:39:17.000Z
source/data/seed_packet_flattened.h
Manolomon/blind-jump-portable
6149d8b639bc9c50533b7eb5fc26884addf563fd
[ "MIT" ]
5
2020-07-08T23:44:32.000Z
2021-11-04T21:17:52.000Z
//{{BLOCK(seed_packet_flattened) //====================================================================== // // seed_packet_flattened, 3816x8@4, // Transparent color : FF,00,FF // + palette 256 entries, not compressed // + 477 tiles not compressed // Total size: 512 + 15264 = 15776 // // Time-stamp: 2021-04-06, 09:05:26 // Exported by Cearn's GBA Image Transmogrifier, v0.8.16 // ( http://www.coranac.com/projects/#grit ) // //====================================================================== #ifndef GRIT_SEED_PACKET_FLATTENED_H #define GRIT_SEED_PACKET_FLATTENED_H #define seed_packet_flattenedTilesLen 15264 extern const unsigned int seed_packet_flattenedTiles[3816]; #define seed_packet_flattenedPalLen 512 extern const unsigned short seed_packet_flattenedPal[256]; #endif // GRIT_SEED_PACKET_FLATTENED_H //}}BLOCK(seed_packet_flattened)
28.566667
72
0.641774
f9ea6190085aba0c1ad34f82202c3c93c30db61a
2,396
h
C
cvfilter.h
bunistack/object-detection-opencv-tensorflow
1ddab7e6e33e10068fcce14c492101b9d419b004
[ "MIT" ]
2
2020-09-30T13:56:22.000Z
2021-05-13T10:12:56.000Z
cvfilter.h
bunistack/object-detection-opencv-tensorflow
1ddab7e6e33e10068fcce14c492101b9d419b004
[ "MIT" ]
null
null
null
cvfilter.h
bunistack/object-detection-opencv-tensorflow
1ddab7e6e33e10068fcce14c492101b9d419b004
[ "MIT" ]
null
null
null
#ifndef MYFILTER_H #define MYFILTER_H #include <QVideoFilterRunnable> #include <QDebug> #include <QQmlEngine> #include <QFuture> #include <QtConcurrent/QtConcurrent> #include <QJsonObject> #include <QJsonArray> #include <QJsonDocument> #include <QOpenGLFunctions> #include <QOpenGLContext> #include <private/qvideoframe_p.h> #include "opencv2/opencv.hpp" using namespace cv; using namespace dnn; using namespace std; class CVFilter : public QAbstractVideoFilter { Q_OBJECT friend class CVFilterRunnable; public: explicit CVFilter(QObject *parent = nullptr); virtual ~CVFilter(); QVideoFilterRunnable *createFilterRunnable(); void static registerQMLType(); signals: void objectsDetected(QString rects); private: QFuture<void> processThread; bool isProcessing = false; // see the following for more on this parameters // https://www.tensorflow.org/tutorials/image_retraining const int inWidth = 320; const int inHeight = 320; const float meanVal = 0.0;//127.5; // 255 divided by 2 const float inScaleFactor = 1.0f; const float confidenceThreshold = 0.8f; //model and class names files const QString modelName = "frozen_inference_graph.pb"; const QString configName = "frozen_inference_graph.pbtxt"; const QString appDataPath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); const QString qrcModelFilename = ":/assets/tensorflow/frozen_inference_graph.pb"; const QString qrcConfigFilename = ":/assets/tensorflow/frozen_inference_graph.pbtxt"; const QString qrcClassesFilename = ":/assets/tensorflow/class_names.txt"; const QString modelFilename = appDataPath + "/" + modelName; const QString configFilename = appDataPath + "/" + configName; //class names QMap<int,QString> classNames; //dn network Net tfNetwork; QImage videoFrameToImage(QVideoFrame *frame); void initNetwork(); bool copyModelFilesIfNotExists(); bool loadClassNames(); }; class CVFilterRunnable : public QObject, public QVideoFilterRunnable { public: explicit CVFilterRunnable(CVFilter *filter); virtual ~CVFilterRunnable(); QVideoFrame run(QVideoFrame *input, const QVideoSurfaceFormat &surfaceFormat, RunFlags flags); void processImage(QImage &image); void detect(QImage image); private: CVFilter *filter; }; #endif // MYFILTER_H
26.043478
98
0.739983
f743f2f70d4af5844149ed0f2645d888368259ea
3,516
c
C
lib/tmatrix_vec.c
mikhel1984/tmatrix
4c7b3d273724b1934005d1debfd633af47773577
[ "MIT" ]
null
null
null
lib/tmatrix_vec.c
mikhel1984/tmatrix
4c7b3d273724b1934005d1debfd633af47773577
[ "MIT" ]
null
null
null
lib/tmatrix_vec.c
mikhel1984/tmatrix
4c7b3d273724b1934005d1debfd633af47773577
[ "MIT" ]
null
null
null
/** * @file tmatrix_vec.c * @author Stanislav Mikhel * @date 2020 * @brief Vector specific operations. */ #include <stdlib.h> #include <math.h> #include "tmatrix_vec.h" #include "tmatrix_priv.h" tmSize vec_len(tMat *m) { if(m) { if(m->cols == 1) { return m->rows; } else if(m->rows == 1) { return m->cols; } } return 0; } tmVal vec_get(tMat *m, tmSize k, int *err) { int e = 0; tmVal res = 0; TM_ASSERT_ARGS(m, e, end_get); if(m->cols == 1) { /* column vector */ TM_ASSERT_INDEX(k < m->rows, e, end_get); res = *tm_at(m,k,0); } else if(m->rows == 1) { /* row vector */ TM_ASSERT_INDEX(k < m->cols, e, end_get); res = *tm_at(m,0,k); } else e = TM_ERR_NOT_VEC; end_get: if(err) *err = e; return res; } void vec_set(tMat *m, tmSize k, tmVal v, int *err) { int e = 0; TM_ASSERT_ARGS(m, e, end_set); if(m->cols == 1) { /* column vector */ TM_ASSERT_INDEX(k < m->rows, e, end_set); *tm_at(m,k,0) = v; } else if(m->rows == 1) { /* row vector */ TM_ASSERT_INDEX(k < m->cols, e, end_set); *tm_at(m,0,k) = v; } else e = TM_ERR_NOT_VEC; end_set: if(err) *err = e; } tmVal vec_dot(tMat *a, tMat *b, int *err) { int e = 0,i,N1; tmVal sum = 0; N1 = vec_len(a); i = vec_len(b); if(N1 && i) { if(N1 == i) { if(IS_PRIM(a) && IS_PRIM(b)) { for(i = 0; i < N1; i++) sum += a->data[i] * b->data[i]; } else { for(i = 0; i < N1 && !e; i++) sum += vec_get(a,i,&e) * vec_get(b,i,&e); } } else e = TM_ERR_NOT_COMPAT; } else e = TM_ERR_NOT_VEC; if(err) *err = e; return sum; } int vec_cross(tMat *res, tMat *a, tMat *b, int *err) { int e = 0; tmVal a0,a1,a2,b0,b1,b2; TM_ASSERT_ARGS(res && a && b, e, end_cross); if(vec_len(a) == 3 && vec_len(b) == 3) { if(tm_relevant(res,3,1,&e) || (e == TM_ERR_NOT_MAIN && tm_relevant(res,1,3,&e))) { a0 = vec_get(a,0,0); a1 = vec_get(a,1,0); a2 = vec_get(a,2,0); b0 = vec_get(b,0,0); b1 = vec_get(b,1,0); b2 = vec_get(b,2,0); vec_set(res,0, a1*b2 - b1*a2, 0); vec_set(res,1, a2*b0 - a0*b2, 0); vec_set(res,2, a0*b1 - b0*a1, 0); } } else e = TM_ERR_NOT_DEF; end_cross: if(err) *err = e; return !e; } tmVal vec_norm2(tMat *m, int *err) { int e = 0, i; tmVal sum = 0, v; TM_ASSERT_ARGS(m, e, end_norm2); if(m->cols == 1) { /* column vector */ for(i = 0; i < m->rows; i++) { v = *tm_at(m,i,0); sum += v * v; } } else if(m->rows == 1) { /* row vector */ for(i = 0; i < m->cols; i++) { v = *tm_at(m,0,i); sum += v * v; } } else e = TM_ERR_NOT_VEC; end_norm2: if(err) *err = e; return sum; } int vec_normalize(tMat *m, int *err) { int e = 0, i; tmVal sum = 0, v; TM_ASSERT_ARGS(m, e, end_normalize); if(m->cols == 1) { /* column vector */ for(i = 0; i < m->rows; i++) { v = *tm_at(m,i,0); sum += v * v; } if(sum > 0) { sum = sqrt(sum); for(i = 0; i < m->rows; i++) *tm_at(m,i,0) /= sum; } } else if(m->rows == 1) { /* row vector */ for(i = 0; i < m->cols; i++) { v = *tm_at(m,0,i); sum += v * v; } if(sum > 0) { sum = sqrt(sum); for(i = 0; i < m->cols; i++) *tm_at(m,0,i) /= sum; } } else e = TM_ERR_NOT_VEC; end_normalize: if(err) *err = e; return !e; }
19.533333
87
0.482935
fb5a8b23eee9dfd4ad2a383bfc143ffeb1627a9d
6,650
c
C
src/object.c
asandroq/sly
c46f94dfd6955f5923a5bcf59990395c3764fb9a
[ "MIT" ]
6
2015-02-13T06:09:40.000Z
2019-08-05T15:11:15.000Z
src/object.c
asandroq/sly
c46f94dfd6955f5923a5bcf59990395c3764fb9a
[ "MIT" ]
null
null
null
src/object.c
asandroq/sly
c46f94dfd6955f5923a5bcf59990395c3764fb9a
[ "MIT" ]
2
2020-06-04T08:42:23.000Z
2021-05-15T07:41:03.000Z
/* * The Sly Scheme System * Copyright (c) 2009 Alex Queiroz <asandroq@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #include <stdlib.h> #include <string.h> #include "sly.h" #include "object.h" #include "state.h" static int string_equal_p(sly_string_t *s1, sly_string_t *s2) { if(s1->size != s2->size) { return 0; } return memcmp(s1->chars, s2->chars, s1->size * sizeof(sly_char_t)) == 0; } static sly_string_t* string_copy_extern(sly_string_t* s) { uint32_t size; sly_string_t *ret; size = SLY_SIZE_OF_STRING(s->size); ret = (sly_string_t*)malloc(size); /* TODO: test and throw error */ memcpy(ret, s, size); return ret; } sly_gcobject_t *sly_create_box(sly_state_t *S) { sly_box_t *ret; ret = (sly_box_t*)sly_gc_alloc(&S->store, SLY_SIZE_OF_BOX); if(ret) { SLY_GCOBJECT(ret)->type = SLY_TYPE_BOX; } return SLY_GCOBJECT(ret); } sly_gcobject_t *sly_create_sclosure(sly_state_t *S, uint32_t entry, uint32_t nr_vars) { sly_closure_t *ret; ret = (sly_closure_t*)sly_gc_alloc(&S->store, SLY_SIZE_OF_CLOSURE(nr_vars)); if(ret) { SLY_GCOBJECT(ret)->type = SLY_TYPE_CLOSURE; ret->is_c = 0; ret->nr_free = nr_vars; ret->entry_point.scm = entry; } return SLY_GCOBJECT(ret); } sly_gcobject_t *sly_create_cclosure(sly_state_t *S, sly_cfunction_t func, uint32_t nr_vars) { sly_closure_t *ret; ret = (sly_closure_t*)sly_gc_alloc(&S->store, SLY_SIZE_OF_CLOSURE(nr_vars)); if(ret) { SLY_GCOBJECT(ret)->type = SLY_TYPE_CLOSURE; ret->is_c = 1; ret->nr_free = nr_vars; ret->entry_point.c = func; } return SLY_GCOBJECT(ret); } sly_gcobject_t *sly_create_pair(sly_state_t *S) { sly_pair_t *ret; ret = (sly_pair_t*)sly_gc_alloc(&S->store, SLY_SIZE_OF_PAIR); if(ret) { SLY_GCOBJECT(ret)->type = SLY_TYPE_PAIR; } return SLY_GCOBJECT(ret); } sly_gcobject_t *sly_create_conti(sly_state_t *S, uint32_t stack_size) { sly_conti_t *ret; ret = (sly_conti_t*)sly_gc_alloc(&S->store, SLY_SIZE_OF_CONTI(stack_size)); if(ret) { SLY_GCOBJECT(ret)->type = SLY_TYPE_CONTI; ret->size = stack_size; } return SLY_GCOBJECT(ret); } sly_gcobject_t *sly_create_string(sly_state_t *S, const sly_char_t* str, uint32_t size) { sly_string_t *ret; ret = (sly_string_t*)sly_gc_alloc(&S->store, SLY_SIZE_OF_STRING(size)); if(ret) { uint32_t i; SLY_GCOBJECT(ret)->type = SLY_TYPE_STRING; ret->size = size; if(str) { for(i = 0; i < size; i++) { ret->chars[i] = str[i]; } } else { for(i = 0; i < size; i++) { ret->chars[i] = (sly_char_t)' '; } } } return SLY_GCOBJECT(ret); } sly_gcobject_t *sly_create_string_from_ascii(sly_state_t *S, const char* str) { int len; sly_string_t *ret; len = strlen(str); ret = (sly_string_t*)sly_gc_alloc(&S->store, SLY_SIZE_OF_STRING(len)); if(ret) { int i; SLY_GCOBJECT(ret)->type = SLY_TYPE_STRING; ret->size = len; for(i = 0; i < len; i++) { ret->chars[i] = (sly_char_t)str[i]; } } return SLY_GCOBJECT(ret); } sly_gcobject_t *sly_create_vector(sly_state_t *S, uint32_t size) { sly_vector_t* ret; ret = (sly_vector_t*)sly_gc_alloc(&S->store, SLY_SIZE_OF_VECTOR(size)); if(ret) { uint32_t i; SLY_GCOBJECT(ret)->type = SLY_TYPE_VECTOR; ret->size = size; for(i = 0; i < size; i++) { ret->data[i].type = SLY_TYPE_UNDEF; } } return SLY_GCOBJECT(ret); } sly_gcobject_t *sly_create_dyn_bind(sly_state_t *S) { sly_dyn_bind_t *ret; ret = (sly_dyn_bind_t*)sly_gc_alloc(&S->store, SLY_SIZE_OF_DYN_BIND); if(ret) { SLY_GCOBJECT(ret)->type = SLY_TYPE_DYN_BIND; } return SLY_GCOBJECT(ret); } sly_gcobject_t *sly_create_syn_closure(sly_state_t *S) { sly_syn_closure_t *ret; ret = (sly_syn_closure_t*)sly_gc_alloc(&S->store, SLY_SIZE_OF_SYNCLO); if(ret) { SLY_GCOBJECT(ret)->type = SLY_TYPE_SYNCLO; } return SLY_GCOBJECT(ret); } sly_gcobject_t *sly_create_iport(sly_state_t *S) { sly_iport_t* ret; ret = (sly_iport_t*)sly_gc_alloc(&S->store, SLY_SIZE_OF_IPORT); if(ret) { SLY_GCOBJECT(ret)->type = SLY_TYPE_INPUT_PORT; SLY_PORT(ret)->char_enc = SLY_CHAR_ENC_LATIN1; SLY_PORT(ret)->finish = NULL; SLY_PORT(ret)->private = NULL; /* register port to be finalised when collected */ sly_gc_add_port(&S->store, SLY_PORT(ret)); } return SLY_GCOBJECT(ret); } sly_gcobject_t *sly_create_oport(sly_state_t *S) { sly_oport_t* ret; ret = (sly_oport_t*)sly_gc_alloc(&S->store, SLY_SIZE_OF_OPORT); if(ret) { SLY_GCOBJECT(ret)->type = SLY_TYPE_OUTPUT_PORT; SLY_PORT(ret)->char_enc = SLY_CHAR_ENC_LATIN1; SLY_PORT(ret)->finish = NULL; SLY_PORT(ret)->private = NULL; /* register port to be finalised when collected */ sly_gc_add_port(&S->store, SLY_PORT(ret)); } return SLY_GCOBJECT(ret); } sly_object_t sly_create_symbol(sly_state_t* S, sly_string_t *str) { sly_object_t obj; sly_symbol_t *tmp; /* is the symbol already there? */ for(tmp = S->symbol_table; tmp != NULL; tmp = tmp->next) { if(string_equal_p(tmp->str, str)) { break; } } if(tmp == NULL) { /* adding new symbol */ tmp = (sly_symbol_t*)malloc(sizeof(sly_symbol_t)); tmp->str = string_copy_extern(str); tmp->next = S->symbol_table; S->symbol_table = tmp; } obj.type = SLY_TYPE_SYMBOL; obj.value.symbol = tmp; return obj; } sly_object_t sly_create_symbol_from_ascii(sly_state_t* S, const char* name) { sly_gcobject_t *str; str = sly_create_string_from_ascii(S, name); return sly_create_symbol(S, SLY_STRING(str)); }
23.415493
91
0.688571
dae576f3705b6851700147697f8eb10677cdee47
799
h
C
ffscript/ScopedCompilingScope.h
VincentPT/xscript
cea6ee9e8c5af87af75188695ffa89080dce49b8
[ "MIT" ]
null
null
null
ffscript/ScopedCompilingScope.h
VincentPT/xscript
cea6ee9e8c5af87af75188695ffa89080dce49b8
[ "MIT" ]
null
null
null
ffscript/ScopedCompilingScope.h
VincentPT/xscript
cea6ee9e8c5af87af75188695ffa89080dce49b8
[ "MIT" ]
1
2019-12-24T22:24:01.000Z
2019-12-24T22:24:01.000Z
/****************************************************************** * File: ScopedCompilingScope.h * Description: declare ScopedCompilingScope class. This class is * guarantee that the current scope is backup at * the beginning of its life time and restore at the * end of its life time. * Author: Vincent Pham * * Copyright (c) 2018 VincentPT. ** Distributed under the MIT License (http://opensource.org/licenses/MIT) ** * **********************************************************************/ #pragma once namespace ffscript { class ScriptCompiler; class ScriptScope; class ScopedCompilingScope { ScriptCompiler* _compiler; public: ScopedCompilingScope(ScriptCompiler* compiler, ScriptScope* scope); ~ScopedCompilingScope(); }; }
27.551724
73
0.580726
de5ec8be8358935912948c6beb3b29db4ffc585e
678
h
C
src/qt/txfeemodifier.h
bitcoinnewyork/lava
a093be68e5b75e340ed257b5ce5cef97f7fb5207
[ "MIT" ]
33
2019-10-16T03:26:16.000Z
2022-01-04T06:59:10.000Z
src/qt/txfeemodifier.h
bitcoinnewyork/lava
a093be68e5b75e340ed257b5ce5cef97f7fb5207
[ "MIT" ]
12
2019-10-21T00:36:41.000Z
2020-09-10T15:01:56.000Z
src/qt/txfeemodifier.h
bitcoinnewyork/lava
a093be68e5b75e340ed257b5ce5cef97f7fb5207
[ "MIT" ]
15
2019-10-16T04:46:09.000Z
2021-09-25T06:11:31.000Z
#ifndef TXFEEMODIFIER_H #define TXFEEMODIFIER_H #include <interfaces/wallet.h> #include <policy/feerate.h> // // create transaction fails if there is no min-tx fee set // we use a small tx fee to make sure the binding transaction success class TxFeeModifer { interfaces::Wallet& _wallet; CFeeRate _walletFee; public: TxFeeModifer (interfaces::Wallet& wallet): _wallet(wallet) { _walletFee = wallet.getPayTxFee(); if(_walletFee <= CFeeRate()) { CAmount nAmount(1); wallet.setPayTxFee(CFeeRate(nAmount, 1000)); } } ~TxFeeModifer() { _wallet.setPayTxFee(_walletFee); } }; #endif // TXFEEMODIFIER_H
24.214286
69
0.669617
1cb88223fa09f48e73ee13f6ef1c93b1fd46d413
7,685
c
C
Contiki/GccApplication1/contiki/cpu/avr/dev/usb/storage/storage_task.c
Mfrielink/Project-Domotica-PowerModule
e311e8f4a5c1e3ca4e2377c27c789ace4ee92710
[ "MIT" ]
9
2017-10-25T12:41:50.000Z
2020-09-01T19:54:15.000Z
Contiki/GccApplication1/contiki/cpu/avr/dev/usb/storage/storage_task.c
Mfrielink/Project-Domotica-PowerModule
e311e8f4a5c1e3ca4e2377c27c789ace4ee92710
[ "MIT" ]
6
2016-02-18T22:29:26.000Z
2016-02-18T22:31:54.000Z
Contiki/GccApplication1/contiki/cpu/avr/dev/usb/storage/storage_task.c
Mfrielink/Project-Domotica-PowerModule
e311e8f4a5c1e3ca4e2377c27c789ace4ee92710
[ "MIT" ]
7
2015-11-24T23:09:12.000Z
2022-02-18T07:56:02.000Z
/* This file has been prepared for Doxygen automatic documentation generation.*/ /*! \file usb_task.c ********************************************************************* * * \brief * This file manages the USB storage. * * \addtogroup usbstick * * \author * Atmel Corporation: http://www.atmel.com \n * Support email: avr@atmel.com ******************************************************************************/ /* Copyright (c) 2004 ATMEL Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /** \addtogroup usbstorage @{ */ //_____ I N C L U D E S ___________________________________________________ #include "contiki.h" #include "usb_drv.h" #include "storage/storage_task.h" #include "usb_descriptors.h" #include "usb_standard_request.h" #include "usb_specific_request.h" #include "storage/scsi_decoder.h" #include "storage/ctrl_access.h" //_____ M A C R O S ________________________________________________________ //_____ D E F I N I T I O N S ______________________________________________ //_____ D E C L A R A T I O N S ____________________________________________ extern U8 usb_configuration_nb; static bit ms_data_direction; static U8 dCBWTag[4]; extern U8 g_scsi_status; extern U32 g_scsi_data_remaining; extern bit ms_multiple_drive; extern U8 g_scsi_command[16]; U8 usb_LUN; void usb_mass_storage_cbw (void); void usb_mass_storage_csw (void); #define Usb_set_ms_data_direction_in() (ms_data_direction = 1) #define Usb_set_ms_data_direction_out() (ms_data_direction = 0) #define Is_usb_ms_data_direction_in() (ms_data_direction == 1) static struct etimer et; PROCESS(storage_process, "Storage process"); /** * \brief USB Mass Storage Class Process * * This is the link between USB and the "good stuff". In this routine data * is received and processed by USB Storage Class */ PROCESS_THREAD(storage_process, ev, data_proc) { PROCESS_BEGIN(); while(1) { if (usb_mode == mass_storage) { if (Is_device_enumerated()) { Usb_select_endpoint(MS_OUT_EP); if (Is_usb_receive_out()) { usb_mass_storage_cbw(); usb_mass_storage_csw(); } } } if (usb_mode == mass_storage) { etimer_set(&et, CLOCK_SECOND/250 + 1); } else { etimer_set(&et, CLOCK_SECOND); } PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et)); } //while(1) PROCESS_END(); } //! @brief USB Command Block Wrapper (CBW) management //! //! This function decodes the CBW command and stores the SCSI command //! //! @warning Code:?? bytes (function code length) //! void usb_mass_storage_cbw (void) { bit cbw_error; uint8_t c; uint8_t dummy; cbw_error = FALSE; Usb_select_endpoint(MS_OUT_EP); //! check if dCBWSignature is correct if (0x55 != Usb_read_byte()) { cbw_error = TRUE; } //! 'U' if (0x53 != Usb_read_byte()) { cbw_error = TRUE; } //! 'S' if (0x42 != Usb_read_byte()) { cbw_error = TRUE; } //! 'B' if (0x43 != Usb_read_byte()) { cbw_error = TRUE; } //! 'C' dCBWTag[0] = Usb_read_byte(); //! Store CBW Tag to be repeated in CSW dCBWTag[1] = Usb_read_byte(); dCBWTag[2] = Usb_read_byte(); dCBWTag[3] = Usb_read_byte(); LSB0(g_scsi_data_remaining) = Usb_read_byte(); LSB1(g_scsi_data_remaining) = Usb_read_byte(); LSB2(g_scsi_data_remaining) = Usb_read_byte(); LSB3(g_scsi_data_remaining) = Usb_read_byte(); if (Usb_read_byte() != 0x00) //! if (bmCBWFlags.bit7 == 1) {direction = IN} { Usb_set_ms_data_direction_in(); if (cbw_error) { Usb_ack_receive_out(); Usb_select_endpoint(MS_IN_EP); Usb_enable_stall_handshake(); return; } } else { Usb_set_ms_data_direction_out(); if (cbw_error) { Usb_enable_stall_handshake(); Usb_ack_receive_out(); return; } } usb_LUN = Usb_read_byte(); if (!ms_multiple_drive) { usb_LUN = get_cur_lun(); } dummy = Usb_read_byte(); //! dummy CBWCBLength read for (c=0; c<16; c++) // store scsi_command { g_scsi_command[c] = Usb_read_byte(); } Usb_ack_receive_out(); if (Is_usb_ms_data_direction_in()) { Usb_select_endpoint(MS_IN_EP); } if (TRUE != scsi_decode_command()) { if (g_scsi_data_remaining != 0) { Usb_enable_stall_handshake(); } } } //! @brief USB Command Status Wrapper (CSW) management //! //! This function sends the status in relation with the last CBW //! void usb_mass_storage_csw (void) { Usb_select_endpoint(MS_IN_EP); while (Is_usb_endpoint_stall_requested()) { Usb_select_endpoint(EP_CONTROL); if (Is_usb_receive_setup()) { usb_process_request(); } Usb_select_endpoint(MS_IN_EP); } Usb_select_endpoint(MS_OUT_EP); while (Is_usb_endpoint_stall_requested()) { Usb_select_endpoint(EP_CONTROL); if (Is_usb_receive_setup()) { usb_process_request(); } Usb_select_endpoint(MS_OUT_EP); } Usb_select_endpoint(MS_IN_EP); while(!Is_usb_write_enabled()); //! write CSW Signature Usb_write_byte(0x55); //! 'U' Usb_write_byte(0x53); //! 'S' Usb_write_byte(0x42); //! 'B' Usb_write_byte(0x53); //! 'S' //! write stored CBW Tag Usb_write_byte(dCBWTag[0]); Usb_write_byte(dCBWTag[1]); Usb_write_byte(dCBWTag[2]); Usb_write_byte(dCBWTag[3]); //! write data residue value Usb_write_byte( ((Byte*)&g_scsi_data_remaining)[3] ); Usb_write_byte( ((Byte*)&g_scsi_data_remaining)[2] ); Usb_write_byte( ((Byte*)&g_scsi_data_remaining)[1] ); Usb_write_byte( ((Byte*)&g_scsi_data_remaining)[0] ); //! write command status Usb_write_byte(g_scsi_status); //! 0 -> PASS, 1 -> FAIL Usb_send_in(); } /** @} */
27.743682
91
0.639558
c1d8af559fa8c9f44aed4327017e33327fb94eb3
3,056
c
C
libc/libgloss/mips/cfe.c
The0x539/wasp
5f83aab7bf0c0915b1d3491034d35b091c7aebdf
[ "MIT" ]
453
2016-07-29T23:26:30.000Z
2022-02-21T01:09:13.000Z
libc/libgloss/mips/cfe.c
The0x539/wasp
5f83aab7bf0c0915b1d3491034d35b091c7aebdf
[ "MIT" ]
175
2018-05-30T03:06:15.000Z
2019-02-06T23:54:24.000Z
libc/libgloss/mips/cfe.c
The0x539/wasp
5f83aab7bf0c0915b1d3491034d35b091c7aebdf
[ "MIT" ]
57
2016-07-29T23:34:09.000Z
2021-07-13T18:17:02.000Z
/* cfe.c -- I/O code for the MIPS boards running CFE. */ /* * Copyright 2001, 2002, 2003 * Broadcom Corporation. All rights reserved. * * This software is furnished under license and may be used and copied only * in accordance with the following terms and conditions. Subject to these * conditions, you may download, copy, install, use, modify and distribute * modified or unmodified copies of this software in source and/or binary * form. No title or ownership is transferred hereby. * * 1) Any source code used, modified or distributed must reproduce and * retain this copyright notice and list of conditions as they appear in * the source file. * * 2) No right is granted to use any trade name, trademark, or logo of * Broadcom Corporation. The "Broadcom Corporation" name may not be * used to endorse or promote products derived from this software * without the prior written permission of Broadcom Corporation. * * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE * FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE * LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, */ #include "cfe_api.h" void *__libcfe_init (long handle, long a1, long cfe_entrypoint, long a3); void __libcfe_exit (long status); char inbyte (void); int outbyte (char c); /* Echo input characters? */ int __libcfe_echo_input = 0; /* CFE handle used to access console device. */ static int cfe_conshandle; /* Initialize firmware callbacks. Called from crt0_cfe. Returns desired stack pointer. */ void * __libcfe_init (long handle, long a1, long entrypoint, long a3) { cfe_init (handle, entrypoint); cfe_conshandle = cfe_getstdhandle (CFE_STDHANDLE_CONSOLE); __libcfe_meminit (); return __libcfe_stack_top (); } /* Exit back to monitor, with the given status code. */ void __libcfe_exit (long status) { outbyte ('\r'); outbyte ('\n'); cfe_exit (CFE_FLG_WARMSTART, status); } char inbyte (void) { unsigned char c; int rv; while (cfe_read (cfe_conshandle, &c, 1) != 1) ; if (c == '\r') c = '\n'; if (__libcfe_echo_input) outbyte (c); return c; } int outbyte (char c) { int res; do { res = cfe_write (cfe_conshandle, &c, 1); } while (res == 0); if (c == '\n') outbyte ('\r'); return 0; } /* This is the MIPS cache flush function call. No defines are provided by libgloss for 'cache', and CFE doesn't let you flush ranges, so we just flush all I & D for every call. */ int _flush_cache (char *addr, int nbytes, int cache) { cfe_flushcache (0); return 0; }
28.296296
75
0.700589
e374bb7fd3675d35b2e0b2d113766f7c33365b72
1,093
c
C
GUI_in_C_lol/libft/ft_wcharlen.c
iiasceri/AcademyPlus
3a48cbfe82c1d1e859d5d9300c2b811715c0b042
[ "MIT" ]
null
null
null
GUI_in_C_lol/libft/ft_wcharlen.c
iiasceri/AcademyPlus
3a48cbfe82c1d1e859d5d9300c2b811715c0b042
[ "MIT" ]
null
null
null
GUI_in_C_lol/libft/ft_wcharlen.c
iiasceri/AcademyPlus
3a48cbfe82c1d1e859d5d9300c2b811715c0b042
[ "MIT" ]
null
null
null
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_wcharlen.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: iiasceri <iiasceri@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2018/06/15 18:09:46 by iiasceri #+# #+# */ /* Updated: 2018/06/15 18:09:47 by iiasceri ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" int ft_wcharlen(wchar_t s) { int j; j = 0; if ((int)s < 0x80) j += 1; else if ((int)s < 0x800) j += 2; else if ((int)s < 0x10000) j += 3; else j += 4; return (j); }
36.433333
80
0.189387
877e39ac198032b8094e4a7553a4ebfc34b596f2
1,673
h
C
src/mapleall/maple_ipa/include/do_ipa_escape_analysis.h
openmaple/MapleCompiler
1648e63144766563f1ec44a25e0b618415648627
[ "MulanPSL-1.0" ]
5
2019-09-02T04:44:52.000Z
2021-11-08T12:23:51.000Z
src/mapleall/maple_ipa/include/old/do_ipa_escape_analysis.h
venshine/OpenArkCompiler
264cd4463834356658154f0d254672ef559f245f
[ "MulanPSL-1.0" ]
2
2020-07-21T01:22:01.000Z
2021-12-06T08:07:16.000Z
src/mapleall/maple_ipa/include/old/do_ipa_escape_analysis.h
venshine/OpenArkCompiler
264cd4463834356658154f0d254672ef559f245f
[ "MulanPSL-1.0" ]
4
2019-09-02T04:46:52.000Z
2020-09-10T11:30:03.000Z
/* * Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR * FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ #ifndef INCLUDE_MAPLEIPA_INCLUDE_IPAESCAPEANALYSIS_H #define INCLUDE_MAPLEIPA_INCLUDE_IPAESCAPEANALYSIS_H #include "mir_parser.h" #include "mir_function.h" #include "me_function.h" #include "opcode_info.h" #include "mir_builder.h" #include "mempool.h" #include "mempool_allocator.h" #include "call_graph.h" #include "mir_nodes.h" #include "me_ir.h" #include "me_irmap.h" #include "ipa_escape_analysis.h" #include "me_loop_analysis.h" namespace maple { #ifdef NOT_USED class DoIpaEA : public MeFuncPhase { public: explicit DoIpaEA(MePhaseID id) : MeFuncPhase(id) {} ~DoIpaEA() = default; AnalysisResult *Run(MeFunction*, MeFuncResultMgr*, ModuleResultMgr*) override; std::string PhaseName() const override { return "ipaea"; } }; class DoIpaEAOpt : public MeFuncPhase { public: explicit DoIpaEAOpt(MePhaseID id) : MeFuncPhase(id) {} ~DoIpaEAOpt() = default; AnalysisResult *Run(MeFunction*, MeFuncResultMgr*, ModuleResultMgr*) override; std::string PhaseName() const override { return "ipaeaopt"; } }; #endif } #endif // INCLUDE_MAPLEIPA_INCLUDE_IPAESCAPEANALYSIS_H
30.418182
88
0.748954
e12d27608b19cec43649a9ec56f4551d4e4bf08f
696
h
C
fbpcf/mpc_framework/engine/tuple_generator/ITupleGeneratorFactory.h
wuman/fbpcf
741e87b16a9714a59677d9009fb29741a817ce04
[ "MIT" ]
1
2022-03-17T19:36:00.000Z
2022-03-17T19:36:00.000Z
fbpcf/mpc_framework/engine/tuple_generator/ITupleGeneratorFactory.h
wuman/fbpcf
741e87b16a9714a59677d9009fb29741a817ce04
[ "MIT" ]
null
null
null
fbpcf/mpc_framework/engine/tuple_generator/ITupleGeneratorFactory.h
wuman/fbpcf
741e87b16a9714a59677d9009fb29741a817ce04
[ "MIT" ]
null
null
null
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <memory> #include "fbpcf/mpc_framework/engine/tuple_generator/ITupleGenerator.h" namespace fbpcf::mpc_framework::engine::tuple_generator { /** * This is the API for a tuple generator that generates tuples. */ class ITupleGeneratorFactory { public: virtual ~ITupleGeneratorFactory() = default; /** * Create a tuple generator with all party. */ virtual std::unique_ptr<ITupleGenerator> create() = 0; }; } // namespace fbpcf::mpc_framework::engine::tuple_generator
23.2
71
0.732759
4c0ef47bea495c98fba33f086b1ee723a0d67d04
557
h
C
OGLUI/Size.h
pfederl/FEM2D-cracks
f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf
[ "MIT" ]
null
null
null
OGLUI/Size.h
pfederl/FEM2D-cracks
f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf
[ "MIT" ]
null
null
null
OGLUI/Size.h
pfederl/FEM2D-cracks
f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf
[ "MIT" ]
1
2020-04-14T07:34:33.000Z
2020-04-14T07:34:33.000Z
#ifndef __OGLUI_SIZE_H__ #define __OGLUI_SIZE_H__ #include <OGLUInamespace.h> namespace OGLUI { #ifdef INDENTATION_HACK } // to fool emacs into not indenting the rest of the file #endif class Size { public: double width, height; Size () : width (0), height (0) {;} Size (double w, double h) : width (w), height (h) {;} }; bool operator == (const Size & s1, const Size & s2); bool operator != (const Size & s1, const Size & s2); #ifdef INDENTATION_HACK { // to fool emacs into not indenting the rest of the file #endif } // namespace OGLUI #endif
19.206897
58
0.691203
87ac92b82a4c1fa5e32ef41b02c50161f058ab21
4,093
c
C
lib/odp-util.c
nwxufo/ovs_ofamp
1ed684fda19dac897eba76e83b0f5c020099622c
[ "Apache-2.0" ]
null
null
null
lib/odp-util.c
nwxufo/ovs_ofamp
1ed684fda19dac897eba76e83b0f5c020099622c
[ "Apache-2.0" ]
null
null
null
lib/odp-util.c
nwxufo/ovs_ofamp
1ed684fda19dac897eba76e83b0f5c020099622c
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2009 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <config.h> #include "odp-util.h" #include <inttypes.h> #include <stdlib.h> #include <string.h> #include "coverage.h" #include "dynamic-string.h" #include "flow.h" #include "packets.h" #include "timeval.h" #include "util.h" union odp_action * odp_actions_add(struct odp_actions *actions, uint16_t type) { union odp_action *a; if (actions->n_actions < MAX_ODP_ACTIONS) { a = &actions->actions[actions->n_actions++]; } else { COVERAGE_INC(odp_overflow); actions->n_actions = MAX_ODP_ACTIONS + 1; a = &actions->actions[MAX_ODP_ACTIONS - 1]; } memset(a, 0, sizeof *a); a->type = type; return a; } void format_odp_action(struct ds *ds, const union odp_action *a) { switch (a->type) { case ODPAT_OUTPUT: ds_put_format(ds, "%"PRIu16, a->output.port); break; case ODPAT_OUTPUT_GROUP: ds_put_format(ds, "g%"PRIu16, a->output_group.group); break; case ODPAT_CONTROLLER: ds_put_format(ds, "ctl(%"PRIu32")", a->controller.arg); break; case ODPAT_SET_VLAN_VID: ds_put_format(ds, "set_vlan(%"PRIu16")", ntohs(a->vlan_vid.vlan_vid)); break; case ODPAT_SET_VLAN_PCP: ds_put_format(ds, "set_vlan_pcp(%"PRIu8")", a->vlan_pcp.vlan_pcp); break; case ODPAT_STRIP_VLAN: ds_put_format(ds, "strip_vlan"); break; case ODPAT_SET_DL_SRC: ds_put_format(ds, "set_dl_src("ETH_ADDR_FMT")", ETH_ADDR_ARGS(a->dl_addr.dl_addr)); break; case ODPAT_SET_DL_DST: ds_put_format(ds, "set_dl_dst("ETH_ADDR_FMT")", ETH_ADDR_ARGS(a->dl_addr.dl_addr)); break; case ODPAT_SET_NW_SRC: ds_put_format(ds, "set_nw_src("IP_FMT")", IP_ARGS(&a->nw_addr.nw_addr)); break; case ODPAT_SET_NW_DST: ds_put_format(ds, "set_nw_dst("IP_FMT")", IP_ARGS(&a->nw_addr.nw_addr)); break; case ODPAT_SET_NW_TOS: ds_put_format(ds, "set_nw_tos(%"PRIu8")", a->nw_tos.nw_tos); break; case ODPAT_SET_TP_SRC: ds_put_format(ds, "set_tp_src(%"PRIu16")", ntohs(a->tp_port.tp_port)); break; case ODPAT_SET_TP_DST: ds_put_format(ds, "set_tp_dst(%"PRIu16")", ntohs(a->tp_port.tp_port)); break; default: ds_put_format(ds, "***bad action %"PRIu16"***", a->type); break; } } void format_odp_actions(struct ds *ds, const union odp_action *actions, size_t n_actions) { size_t i; for (i = 0; i < n_actions; i++) { if (i) { ds_put_char(ds, ','); } format_odp_action(ds, &actions[i]); } if (!n_actions) { ds_put_cstr(ds, "drop"); } } void format_odp_flow_stats(struct ds *ds, const struct odp_flow_stats *s) { ds_put_format(ds, "packets:%llu, bytes:%llu, used:", (unsigned long long int) s->n_packets, (unsigned long long int) s->n_bytes); if (s->used_sec) { long long int used = s->used_sec * 1000 + s->used_nsec / 1000000; ds_put_format(ds, "%.3fs", (time_msec() - used) / 1000.0); } else { ds_put_format(ds, "never"); } } void format_odp_flow(struct ds *ds, const struct odp_flow *f) { flow_format(ds, &f->key); ds_put_cstr(ds, ", "); format_odp_flow_stats(ds, &f->stats); ds_put_cstr(ds, ", actions:"); format_odp_actions(ds, f->actions, f->n_actions); }
29.65942
78
0.618861
7bfaf2b773dca35fd7ca706bca1428c87d83e88d
1,181
h
C
ActivityTracker/ColorConstants.h
aarons2222/Neofit
0acf17c3840809d17091d7d3baf3403a77c77d58
[ "Apache-2.0" ]
null
null
null
ActivityTracker/ColorConstants.h
aarons2222/Neofit
0acf17c3840809d17091d7d3baf3403a77c77d58
[ "Apache-2.0" ]
null
null
null
ActivityTracker/ColorConstants.h
aarons2222/Neofit
0acf17c3840809d17091d7d3baf3403a77c77d58
[ "Apache-2.0" ]
null
null
null
// // ColorConstants.h // ActivityTracker // // Created by Nexttech on 21/1/15. // Copyright (c) 2015 Nexttech. All rights reserved. // #ifndef ActivityTracker_ColorConstants_h #define ActivityTracker_ColorConstants_h #endif #define UIColorFromHex(hex) [UIColor colorWithRed:((float)((hex & 0xFF0000) >> 16))/255.0 green:((float)((hex & 0xFF00) >> 8))/255.0 blue:((float)(hex & 0xFF))/255.0 alpha:1.0] #pragma mark - Navigation #define ColorNavigationBarTint UIColorFromHex(0x0D0D0D) #define ColorNavigationTint UIColorFromHex(0xFF7500) #define ColorNavigationTitle UIColorFromHex(0xFF7500) #pragma mark - Bar Chart #define ColorBarChartControllerBackground UIColorFromHex(0x313131) #define ColorBarChartBackground UIColorFromHex(0x1F1F1F) #define ColorBarChartBarGreen UIColorFromHex(0x52EDC7) #define ColorBarChartBarBlue UIColorFromHex(0x5AC8FB) #define ColorBarChartBarRed UIColorFromHex(0xFF4B30) #define ColorBarChartBarOrange UIColorFromHex(0xFF9500) #define ColorBarChartHeaderSeparatorColor UIColorFromHex(0x686868) #pragma mark - Tooltips #define ColorTooltipColor [UIColor colorWithWhite:1.0 alpha:0.9] #define ColorTooltipTextColor UIColorFromHex(0xFF7500)
33.742857
176
0.812024
0b1ede3edfe97857ec612e70a3619dbcd3e44bc6
3,345
h
C
native/cocos/base/Log.h
SteveLau-GameDeveloper/engine
159e5acd0f5115a878d59ed59f924ce7627a5466
[ "Apache-2.0", "MIT" ]
null
null
null
native/cocos/base/Log.h
SteveLau-GameDeveloper/engine
159e5acd0f5115a878d59ed59f924ce7627a5466
[ "Apache-2.0", "MIT" ]
null
null
null
native/cocos/base/Log.h
SteveLau-GameDeveloper/engine
159e5acd0f5115a878d59ed59f924ce7627a5466
[ "Apache-2.0", "MIT" ]
null
null
null
/**************************************************************************** Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license to use Cocos Creator solely to develop games on your target platforms. You shall not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ #pragma once #include "Macros.h" #include "base/std/container/string.h" namespace cc { enum class LogType { KERNEL, SCRIPT, COUNT, }; enum class LogLevel { FATAL, ERR, WARN, INFO, LEVEL_DEBUG, // DEBUG is a macro on windows, so use LEVEL_DEBUG instead. COUNT, }; class CC_DLL Log { public: static LogLevel slogLevel; // for read only static inline void setLogLevel(LogLevel level) { slogLevel = level; } static inline FILE *getLogFile() { return slogFile; } static void setLogFile(const ccstd::string &filename); static void close(); static void logMessage(LogType type, LogLevel level, const char *formats, ...); private: static FILE *slogFile; }; } // namespace cc #define CC_LOG_DEBUG(formats, ...) \ if (cc::Log::slogLevel >= cc::LogLevel::LEVEL_DEBUG) cc::Log::logMessage(cc::LogType::KERNEL, cc::LogLevel::LEVEL_DEBUG, formats, ##__VA_ARGS__) #define CC_LOG_INFO(formats, ...) \ if (cc::Log::slogLevel >= cc::LogLevel::INFO) cc::Log::logMessage(cc::LogType::KERNEL, cc::LogLevel::INFO, formats, ##__VA_ARGS__) #define CC_LOG_WARNING(formats, ...) \ if (cc::Log::slogLevel >= cc::LogLevel::WARN) cc::Log::logMessage(cc::LogType::KERNEL, cc::LogLevel::WARN, formats, ##__VA_ARGS__) #define DO_CC_LOG_ERROR(formats, ...) \ if (cc::Log::slogLevel >= cc::LogLevel::ERR) cc::Log::logMessage(cc::LogType::KERNEL, cc::LogLevel::ERR, formats, ##__VA_ARGS__) #define CC_LOG_FATAL(formats, ...) \ if (cc::Log::slogLevel >= cc::LogLevel::FATAL) cc::Log::logMessage(cc::LogType::KERNEL, cc::LogLevel::FATAL, formats, ##__VA_ARGS__) #define CC_LOG_ERROR(formats, ...) \ do { \ DO_CC_LOG_ERROR("[ERROR] file %s: line %d ", __FILE__, __LINE__); \ DO_CC_LOG_ERROR(formats, ##__VA_ARGS__); \ } while (0)
41.8125
148
0.649925
29762fe50af0d102b9828ef3f33b85ed5d820793
2,640
c
C
src/CROP/sys_sdl.c
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
119
2015-01-10T15:13:50.000Z
2022-01-24T04:54:34.000Z
src/CROP/sys_sdl.c
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
6
2015-10-22T20:14:59.000Z
2021-07-10T03:25:21.000Z
src/CROP/sys_sdl.c
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
27
2015-04-24T22:55:30.000Z
2022-01-21T13:54:00.000Z
/* sys_sdl.c */ #include <SDL/SDL.h> #include "init.str" #include "io_.h" #include "io_sdl.h" #include "sys.h" /*--------------------------------------------------------------*/ /* Init */ /*--------------------------------------------------------------*/ int init_system(void) { SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO); if (!set_vmode()) { puts(init_102); return 0; } SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); SDL_EnableUNICODE(SDL_ENABLE); SDL_ShowCursor(SDL_DISABLE); return 1; } void cleanup(void) { SDL_Quit(); } /*--------------------------------------------------------------*/ /* Input */ /*--------------------------------------------------------------*/ static WORD mscale = 1; static WORD umouse_x, umouse_y; /* unscaled mousexy */ extern char reuse; static int translate_sdl_keysym(SDL_keysym *key) { if (key->sym == SDLK_PAGEUP) return PAGEUP; if (key->sym == SDLK_PAGEDOWN) return PAGEDN; if (key->sym == SDLK_END) return ENDKEY; if (key->sym == SDLK_HOME) return HOMEKEY; if (key->sym == SDLK_DELETE) return DELKEY; if (key->sym == SDLK_LEFT) return LARROW; if (key->sym == SDLK_RIGHT) return RARROW; if (key->sym == SDLK_UP) return UARROW; if (key->sym == SDLK_DOWN) return DARROW; if ((key->unicode & 0xFF80) == 0) return key->unicode; return 0; } void c_input(void) { SDL_Event ev; int got_event; if (reuse) { reuse = 0; return; } lastx = uzx; lasty = uzy; omouse_button = mouse_button; key_hit = 0; got_event = SDL_PollEvent(&ev); if (got_event) { int key = 0; int mb; switch (ev.type) { case SDL_KEYDOWN: key = translate_sdl_keysym(&ev.key.keysym); if (key != 0) { key_hit = 1; key_in = key; } break; case SDL_MOUSEMOTION: umouse_x = ev.motion.x; umouse_y = ev.motion.y; break; case SDL_MOUSEBUTTONDOWN: case SDL_MOUSEBUTTONUP: umouse_x = ev.button.x; umouse_y = ev.button.y; mb = (ev.button.button == SDL_BUTTON_LEFT) ? 0x1 : (ev.button.button == SDL_BUTTON_RIGHT) ? 0x2 : 0; if (ev.type == SDL_MOUSEBUTTONDOWN) { mouse_button |= mb; } else if (ev.type == SDL_MOUSEBUTTONUP) { mouse_button &= ~mb; } break; default: break; } } uzx = (umouse_x/mscale); uzy = (umouse_y/mscale); mouse_moved = 0; if (mouse_on && !(uzx == lastx && uzy == lasty)) { mouse_moved = 1; ucursor(); scursor(); ccursor(); flip_video(); } if (mouse_button != omouse_button) { mouse_moved = 1; } }
19.130435
76
0.546591
73edaf4ea406fc38203018a1ca99d7de80f5a624
1,384
h
C
projects/InjectDLL/pickups/shops/general.h
Mawex/wotw-client
19cd13a5cfab0b504d5f1aa3da6eb11e631bd9ca
[ "MIT" ]
null
null
null
projects/InjectDLL/pickups/shops/general.h
Mawex/wotw-client
19cd13a5cfab0b504d5f1aa3da6eb11e631bd9ca
[ "MIT" ]
null
null
null
projects/InjectDLL/pickups/shops/general.h
Mawex/wotw-client
19cd13a5cfab0b504d5f1aa3da6eb11e631bd9ca
[ "MIT" ]
null
null
null
#pragma once #include <system/textures.h> namespace shops { enum class ShopType { None, Lupo, Grom, Opher, Twillen, Tuley, TOTAL }; struct ShopItem { uint32_t name = 0; uint32_t description = 0; uint32_t locked = 0; std::shared_ptr<textures::TextureData> texture_data; bool uses_energy = false; }; bool is_in_shop(ShopType type); ShopType get_open_shop(); void set_providers(ShopType type, app::ShopkeeperItem* shop_item, app::MessageProvider*& name_provider, app::MessageProvider*& description_provider, app::MessageProvider*& locked_provider); void set_opher_providers(app::ShopkeeperItem* shop_item, app::MessageProvider*& name_provider, app::MessageProvider*& description_provider, app::MessageProvider*& locked_provider); std::shared_ptr<textures::TextureData> get_icon(ShopType type, void* shop_item); std::shared_ptr<textures::TextureData> get_opher_icon(app::WeaponmasterItem* shop_item); std::shared_ptr<textures::TextureData> get_twillen_icon(app::UpgradableShardItem* shop_item); std::shared_ptr<textures::TextureData> get_lupo_icon(app::MapmakerItem* shop_item); void set_item(ShopItem& item, const wchar_t* name, const wchar_t* description, const wchar_t* texture, const wchar_t* locked, bool uses_energy); }
35.487179
193
0.708092
aded201423edd13621770979c432086d4d485a34
879
h
C
src/geometry/Sphere.h
nekoffski/raytracer
947642add2ebd486695b7e4611b6cc3ed648b88d
[ "MIT" ]
1
2021-08-20T09:30:45.000Z
2021-08-20T09:30:45.000Z
src/geometry/Sphere.h
nekoffski/raytracer
947642add2ebd486695b7e4611b6cc3ed648b88d
[ "MIT" ]
null
null
null
src/geometry/Sphere.h
nekoffski/raytracer
947642add2ebd486695b7e4611b6cc3ed648b88d
[ "MIT" ]
null
null
null
#pragma once #include <cmath> #include "Intersectable.h" #include "materials/Material.h" namespace rt { class Sphere : public Intersectable { public: Sphere() = default; Sphere(glm::vec3 center, float radius, Material* material); bool intersect(const Ray& ray, float t_min, float t_max, HitRecord& rec) const override; bool boundingBox(float time0, float time1, AABB& output) const override { glm::vec3 r { m_radius, m_radius, m_radius }; output = AABB { m_center - r, m_center + r }; } std::pair<float, float> getUV(const glm::vec3& p) const { auto theta = std::acos(-p.y); auto phi = std::atan2(-p.z, p.x) + std::numbers::pi; return { phi / (2 * std::numbers::pi), theta / std::numbers::pi }; } private: glm::vec3 m_center; float m_radius; Material* m_material; }; }
23.131579
92
0.61661
09819e025e37a4e2e15d08e9d08e39b23aec8959
1,212
h
C
bin/windows/cpp/obj/include/flash/events/UncaughtErrorEvents.h
DrSkipper/twogames
916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b
[ "MIT" ]
null
null
null
bin/windows/cpp/obj/include/flash/events/UncaughtErrorEvents.h
DrSkipper/twogames
916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b
[ "MIT" ]
null
null
null
bin/windows/cpp/obj/include/flash/events/UncaughtErrorEvents.h
DrSkipper/twogames
916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b
[ "MIT" ]
null
null
null
#ifndef INCLUDED_flash_events_UncaughtErrorEvents #define INCLUDED_flash_events_UncaughtErrorEvents #ifndef HXCPP_H #include <hxcpp.h> #endif #include <flash/events/EventDispatcher.h> HX_DECLARE_CLASS2(flash,events,EventDispatcher) HX_DECLARE_CLASS2(flash,events,IEventDispatcher) HX_DECLARE_CLASS2(flash,events,UncaughtErrorEvents) namespace flash{ namespace events{ class HXCPP_CLASS_ATTRIBUTES UncaughtErrorEvents_obj : public ::flash::events::EventDispatcher_obj{ public: typedef ::flash::events::EventDispatcher_obj super; typedef UncaughtErrorEvents_obj OBJ_; UncaughtErrorEvents_obj(); Void __construct(::flash::events::IEventDispatcher target); public: static hx::ObjectPtr< UncaughtErrorEvents_obj > __new(::flash::events::IEventDispatcher target); static Dynamic __CreateEmpty(); static Dynamic __Create(hx::DynamicArray inArgs); ~UncaughtErrorEvents_obj(); HX_DO_RTTI; static void __boot(); static void __register(); void __Mark(HX_MARK_PARAMS); void __Visit(HX_VISIT_PARAMS); ::String __ToString() const { return HX_CSTRING("UncaughtErrorEvents"); } }; } // end namespace flash } // end namespace events #endif /* INCLUDED_flash_events_UncaughtErrorEvents */
28.857143
100
0.79868
f661a28fee83266b01836efebf22cdd2e1fafb8d
2,990
c
C
platform/bluepill-f103c8/platform.c
romainreignier/can-bootloader
c6063fd8945168c9c17873ec813edaac2b1a75c9
[ "BSD-2-Clause" ]
1
2021-01-31T17:44:23.000Z
2021-01-31T17:44:23.000Z
platform/bluepill-f103c8/platform.c
romainreignier/can-bootloader
c6063fd8945168c9c17873ec813edaac2b1a75c9
[ "BSD-2-Clause" ]
null
null
null
platform/bluepill-f103c8/platform.c
romainreignier/can-bootloader
c6063fd8945168c9c17873ec813edaac2b1a75c9
[ "BSD-2-Clause" ]
null
null
null
#include <libopencm3/stm32/rcc.h> #include <libopencm3/stm32/flash.h> #include <libopencm3/stm32/gpio.h> #include <libopencm3/stm32/can.h> #include <stddef.h> #include <bootloader.h> #include <boot_arg.h> #include <platform/mcu/armv7-m/timeout_timer.h> #include "platform.h" // page buffer used by config commands. uint8_t config_page_buffer[CONFIG_PAGE_SIZE]; void can_interface_init(void) { rcc_periph_clock_enable(RCC_CAN1); /* STM32F1 CAN1 on 36MHz configured APB1 peripheral clock 36MHz / 2 -> 18MHz 18MHz / (1tq + 10tq + 7tq) = 1MHz => 1Mbit */ can_init(CAN1, // Interface false, // Time triggered communication mode. true, // Automatic bus-off management. false, // Automatic wakeup mode. false, // No automatic retransmission. false, // Receive FIFO locked mode. true, // Transmit FIFO priority. CAN_BTR_SJW_1TQ, // Resynchronization time quanta jump width CAN_BTR_TS1_10TQ,// Time segment 1 time quanta width CAN_BTR_TS2_7TQ, // Time segment 2 time quanta width 2, // Prescaler false, // Loopback false); // Silent // filter to match any standard id // mask bits: 0 = Don't care, 1 = mute match corresponding id bit can_filter_id_mask_32bit_init( CAN1, 0, // filter nr 0, // id: only std id, no rtr 6 | (7<<29), // mask: match only std id[10:8] = 0 (bootloader frames) 0, // assign to fifo0 true // enable ); } void fault_handler(void) { // while(1); // debug reboot_system(BOOT_ARG_START_BOOTLOADER_NO_TIMEOUT); } void platform_main(int arg) { rcc_clock_setup_in_hse_8mhz_out_72mhz(); //Activate PORTA rcc_periph_clock_enable(RCC_GPIOB); rcc_periph_clock_enable(RCC_GPIOC); rcc_periph_clock_enable(RCC_AFIO); // CAN pin /* init B9 (TX) to Alternativ function output */ gpio_set_mode(GPIOB,GPIO_MODE_OUTPUT_50_MHZ,GPIO_CNF_OUTPUT_ALTFN_PUSHPULL,GPIO_CAN_PB_TX);//TX output /* init B8 (RX) to input pull up */ gpio_set_mode(GPIOB,GPIO_MODE_INPUT,GPIO_CNF_INPUT_PULL_UPDOWN,GPIO_CAN_PB_RX); //RX input pull up/down gpio_set(GPIOB,GPIO_CAN_PB_RX);//pull up /* Remap the can to pin PB9 and PB8 , sould already be by default */ gpio_primary_remap(AFIO_MAPR_SWJ_CFG_FULL_SWJ,AFIO_MAPR_CAN1_REMAP_PORTB);//Can sur port B pin 8/9 // LED on /*init the PC13 port to output in PushPull mode at maxspeed */ gpio_set_mode(PORT_LED,GPIO_MODE_OUTPUT_50_MHZ,GPIO_CNF_OUTPUT_PUSHPULL,PIN_LED);//led output gpio_clear(PORT_LED, PIN_LED); // configure timeout of 10000 milliseconds on a 72Mhz timeout_timer_init(72000000, 10000); can_interface_init(); bootloader_main(arg); reboot_system(BOOT_ARG_START_BOOTLOADER); }
33.977273
107
0.649833
553c9cfa6e353b9241e387fe663b007ab830ea88
3,409
h
C
framework/filter/IVideoFilter.h
aliyun/CicadaPlayer
9d2b515a52403034a6e764e30fd0c9508edec889
[ "MIT" ]
38
2019-12-16T14:31:00.000Z
2020-01-11T03:01:26.000Z
framework/filter/IVideoFilter.h
aliyun/CicadaPlayer
9d2b515a52403034a6e764e30fd0c9508edec889
[ "MIT" ]
11
2020-01-07T06:32:11.000Z
2020-01-13T03:52:37.000Z
framework/filter/IVideoFilter.h
aliyun/CicadaPlayer
9d2b515a52403034a6e764e30fd0c9508edec889
[ "MIT" ]
14
2019-12-30T01:19:04.000Z
2020-01-11T02:12:35.000Z
// // Created by moqi on 2020/5/28. // #ifndef CICADAMEDIA_IVIDEOFILTER_H #define CICADAMEDIA_IVIDEOFILTER_H #include <base/media/IAFPacket.h> #include <functional> #include <memory> #include <string> #include <utils/AFMediaType.h> namespace Cicada { const static std::string FILTER_INVALID_PERFORMANCE = "filter stop due to poor device performance"; const static std::string FILTER_INVALID_OVER_FPS = "filter stop due to fps is too big"; const static std::string FILTER_VALID_RECOVERY = "filter recovery"; const static std::string FILTER_OPTION = "options"; const static std::string USEFEATURE_OPTION = "useFeature"; const static std::string VIDEO_FPS_OPTION = "video_fps"; const static std::string PLAYER_SPEED_OPTION = "player_speed"; class CICADA_CPLUS_EXTERN IVideoFilter { public: enum Feature { None, PassThrough = 1, // support do not do filter Buffer = 1 << 1, //buffer after decode Texture = 1 << 2,// texture before render HDR = 1 << 3 , // HDR viedeo buffer }; public: IVideoFilter(const IAFFrame::videoInfo &srcFormat, const IAFFrame::videoInfo &dstFormat, bool active) : mSrcFormat(srcFormat), mDstFormat(dstFormat), mActive(active){}; IVideoFilter(){}; virtual ~IVideoFilter() = default; // virtual bool beSupported(const char* capacity) = 0; virtual bool setOption(const std::string &key, const std::string &value, const std::string &capacity) = 0; /** * init filter. * @param type TEXTURE_YUV: 0, TEXTURE_RGBA:1. * @return */ virtual bool init(int type) = 0; /** * * @param frame * @param timeOut * @return * Success: >=0 * Fail: < 0 */ virtual int push(std::unique_ptr<IAFFrame> &frame, uint64_t timeOut) = 0; /** * * @param frame * @param timeOut * @return * Success: >=0 * Fail: < 0 */ virtual int pull(std::unique_ptr<IAFFrame> &frame, uint64_t timeOut) = 0; virtual void flush() = 0; virtual std::string getName() = 0; virtual bool is_supported(const std::string &target, int width, int height, int format) = 0; virtual Cicada::IVideoFilter *clone(IAFFrame::videoInfo srcFormat, IAFFrame::videoInfo dstFormat, bool active) = 0; virtual bool isFeatureSupported(Feature feature) = 0; virtual void setInvalid(bool invalid) { mInvalid = invalid; } virtual bool isInvalid() { return mInvalid; } virtual void setDCA(const std::function<void(int level, const std::string &content)> &sendEvent) { mSendEvent = sendEvent; } virtual void setCurrentTarget(const std::string &target) { currentTarget = target; } protected: IAFFrame::videoInfo mSrcFormat{}; IAFFrame::videoInfo mDstFormat{}; bool mInvalid{false}; bool mActive{false}; float mSpeed = 1.0; double mVideoFps{25}; std::string currentTarget; std::function<void(int level, const std::string &content)> mSendEvent; }; }// namespace Cicada #endif//CICADAMEDIA_IVIDEOFILTER_H
29.387931
123
0.600469
56cf8aba2b31e39a6be51456405b845abbc7af43
322
h
C
baseline/Deepset-SAC/my_swig/example.h
rxlqn/Reinforcement-Learning-Based-Parcel-Singulation-with-Variable-State-Space-Dimension
22b0ded9807dbc50d2da9852e80cda55fdc1d04c
[ "MIT" ]
2
2021-04-02T10:54:00.000Z
2021-08-07T07:59:33.000Z
baseline/Zero-padding-SAC/my_swig/example.h
rxlqn/Reinforcement-Learning-Based-Parcel-Singulation-with-Variable-State-Space-Dimension
22b0ded9807dbc50d2da9852e80cda55fdc1d04c
[ "MIT" ]
1
2021-07-15T06:03:00.000Z
2021-07-15T12:12:47.000Z
simulation_env/my_swig/example.h
rxlqn/Reinforcement-Learning-Based-Parcel-Singulation-with-Variable-State-Space-Dimension
22b0ded9807dbc50d2da9852e80cda55fdc1d04c
[ "MIT" ]
null
null
null
#ifndef EXAMPLE_H #define EXAMPLE_H extern double My_variable; extern int fact(int n); extern int my_mod(int x, int y); extern char *get_time(); extern float cal_force(int act_speed, float r_x, float r_y, float r_cm_x, float r_cm_y, float V_cm_X, float V_cm_y,float omega, float mu, float k, int flag); #endif
29.272727
158
0.73913