Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for Android

ScImageDescription.h File Reference

Go to the source code of this file.

Typedefs

typedef struct ScOpaqueImageDescription ScImageDescription
 

Enumerations

enum  ScImageLayout {
  SC_IMAGE_LAYOUT_UNKNOWN = 0x0000, SC_IMAGE_LAYOUT_GRAY_8U = 0x0001, SC_IMAGE_LAYOUT_RGB_8U = 0x0002, SC_IMAGE_LAYOUT_RGBA_8U = 0x0004,
  SC_IMAGE_LAYOUT_ARGB_8U = 0x0100, SC_IMAGE_LAYOUT_YPCBCR_8U = 0x0008, SC_IMAGE_LAYOUT_YPCRCB_8U = 0x0010, SC_IMAGE_LAYOUT_YUYV_8U = 0x0020,
  SC_IMAGE_LAYOUT_UYVY_8U = 0x0040, SC_IMAGE_LAYOUT_I420_8U = 0x0080
}
 

Detailed Description

Image Description interface.

Enumeration Type Documentation

Specifies the format of the pixel data.

Since
4.6.0
Enumerator
SC_IMAGE_LAYOUT_UNKNOWN 

Image layout is unknown.

SC_IMAGE_LAYOUT_GRAY_8U 

Single-channel 8-bit gray scale image.

When using this pixel layout the width/height and memory size properties of the ScImageDescription must be set.

SC_IMAGE_LAYOUT_RGB_8U 

RGB image with 8bit per color channel.

When using this pixel layout the width/height and memory size properties of the ScImageDescription must be set.

SC_IMAGE_LAYOUT_RGBA_8U 

RGBA image with 8bit per color channel.

When using this pixel layout the width/height and memory size properties of the ScImageDescription must be set.

SC_IMAGE_LAYOUT_ARGB_8U 

ARGB image with 8bit per color channel.

When using this pixel layout the width/height and memory size properties of the ScImageDescription must be set.

SC_IMAGE_LAYOUT_YPCBCR_8U 

YpCbCr 4:2:0 image format.

A bi-planar format with separate Y and CbCr planes.

When using this pixel layout the width, height, memory size as well as the number of bytes per row and the offsets of both data planes must be set.

SC_IMAGE_LAYOUT_YPCRCB_8U 

YpCrCb 4:2:0 image format.

A bi-planar format with separate Y and CrCb planes.

When using this pixel layout the width, height, memory size as well as the number of bytes per row and the offsets of both data planes must be set.

SC_IMAGE_LAYOUT_YUYV_8U 

8-bit YUYV 4:2:2 image format.

The Y, U and V samples are packed together in one image plane. UV are shared between two adjacent pixels in a row.

When using this pixel layout the width/height and memory size properties of the ScImageDescription must be set.

SC_IMAGE_LAYOUT_UYVY_8U 

8-bit UYVY 4:2:2 image format.

The Y, U and V samples are packed together in one image plane. UV are shared between two adjacent pixels in a row.

When using this pixel layout the width/height and memory size properties of the ScImageDescription must be set.

SC_IMAGE_LAYOUT_I420_8U 

I420 format with separate Y, U and V planes.

The Y, U and V image planes are adjacent to each other. U and V are down-sampled by 2x2, e.g. the U and V are shared for a 2x2 macro-block.

When using this pixel layout the width/height and memory size properties of the ScImageDescription must be set.