Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ZXAbstractRSSReader.h 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright 2012 ZXing authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "ZXOneDReader.h"
  17. @class ZXIntArray;
  18. typedef enum {
  19. ZX_RSS_PATTERNS_RSS14_PATTERNS = 0,
  20. ZX_RSS_PATTERNS_RSS_EXPANDED_PATTERNS
  21. } ZX_RSS_PATTERNS;
  22. @interface ZXAbstractRSSReader : ZXOneDReader
  23. @property (nonatomic, strong, readonly) ZXIntArray *decodeFinderCounters;
  24. @property (nonatomic, strong, readonly) ZXIntArray *dataCharacterCounters;
  25. @property (nonatomic, assign, readonly) float *oddRoundingErrors;
  26. @property (nonatomic, assign, readonly) unsigned int oddRoundingErrorsLen;
  27. @property (nonatomic, assign, readonly) float *evenRoundingErrors;
  28. @property (nonatomic, assign, readonly) unsigned int evenRoundingErrorsLen;
  29. @property (nonatomic, strong, readonly) ZXIntArray *oddCounts;
  30. @property (nonatomic, strong, readonly) ZXIntArray *evenCounts;
  31. + (int)parseFinderValue:(ZXIntArray *)counters finderPatternType:(ZX_RSS_PATTERNS)finderPatternType;
  32. + (int)count:(ZXIntArray *)array;
  33. + (void)increment:(ZXIntArray *)array errors:(float *)errors;
  34. + (void)decrement:(ZXIntArray *)array errors:(float *)errors;
  35. + (BOOL)isFinderPattern:(ZXIntArray *)counters;
  36. @end