Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839
  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. extern const int ZX_ITF_PATTERNS[][5];
  18. /**
  19. * Implements decoding of the ITF format, or Interleaved Two of Five.
  20. *
  21. * This Reader will scan ITF barcodes of certain lengths only.
  22. * At the moment it reads length 6, 8, 10, 12, 14, 16, 18, 20, 24, and 44 as these have appeared "in the wild". Not all
  23. * lengths are scanned, especially shorter ones, to avoid false positives. This in turn is due to a lack of
  24. * required checksum function.
  25. *
  26. * The checksum is optional and is not applied by this Reader. The consumer of the decoded
  27. * value will have to apply a checksum if required.
  28. *
  29. * http://en.wikipedia.org/wiki/Interleaved_2_of_5 is a great reference for Interleaved 2 of 5 information.
  30. */
  31. @interface ZXITFReader : ZXOneDReader
  32. - (ZXIntArray *)decodeStart:(ZXBitArray *)row;
  33. - (ZXIntArray *)decodeEnd:(ZXBitArray *)row;
  34. @end