2 * Copyright 2008 ZXing authors
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
16 namespace com.google.zxing
\r
21 /// <summary> A class which wraps a 2D array of bytes. The default usage is signed. If you want to use it as a
\r
22 /// unsigned container, it's up to you to do byteValue & 0xff at each location.
\r
24 /// JAVAPORT: I'm not happy about the argument ordering throughout the file, as I always like to have
\r
25 /// the horizontal component first, but this is for compatibility with the C++ code. The original
\r
26 /// code was a 2D array of ints, but since it only ever gets assigned -1, 0, and 1, I'm going to use
\r
27 /// less memory and go with bytes.
\r
30 /// <author> dswitkin@google.com (Daniel Switkin)
\r
33 public sealed class DecodeHintType
\r
35 // No, we can't use an enum here. J2ME doesn't support it.
\r
37 * Unspecified, application-specific hint. Maps to an unspecified {@link Object}.
\r
39 public static DecodeHintType OTHER = new DecodeHintType();
\r
42 * Image is a pure monochrome image of a barcode. Doesn't matter what it maps to;
\r
43 * use {@link Boolean#TRUE}.
\r
45 public static DecodeHintType PURE_BARCODE = new DecodeHintType();
\r
48 * Image is known to be of one of a few possible formats.
\r
49 * Maps to a {@link java.util.Vector} of {@link BarcodeFormat}s.
\r
51 public static DecodeHintType POSSIBLE_FORMATS = new DecodeHintType();
\r
54 * Spend more time to try to find a barcode; optimize for accuracy, not speed.
\r
55 * Doesn't matter what it maps to; use {@link Boolean#TRUE}.
\r
57 public static DecodeHintType TRY_HARDER = new DecodeHintType();
\r
59 private DecodeHintType() {
\r