You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright 2013 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. extern const int ZX_AZTEC_DEFAULT_EC_PERCENT;
  17. extern const int ZX_AZTEC_DEFAULT_LAYERS;
  18. @class ZXAztecCode, ZXBitArray, ZXByteArray, ZXGenericGF;
  19. /**
  20. * Generates Aztec 2D barcodes.
  21. */
  22. @interface ZXAztecEncoder : NSObject
  23. /**
  24. * Encodes the given binary content as an Aztec symbol
  25. *
  26. * @param data input data string
  27. * @return Aztec symbol matrix with metadata
  28. */
  29. + (ZXAztecCode *)encode:(ZXByteArray *)data;
  30. /**
  31. * Encodes the given binary content as an Aztec symbol
  32. *
  33. * @param data input data string
  34. * @param minECCPercent minimal percentage of error check words (According to ISO/IEC 24778:2008,
  35. * a minimum of 23% + 3 words is recommended)
  36. * @param userSpecifiedLayers if non-zero, a user-specified value for the number of layers
  37. * @return Aztec symbol matrix with metadata
  38. */
  39. + (ZXAztecCode *)encode:(ZXByteArray *)data
  40. minECCPercent:(int)minECCPercent
  41. userSpecifiedLayers:(int)userSpecifiedLayers;
  42. @end