muPP API Reference
1 Introduction
The Moore Threads® MUSA® Performance Primitives( muPP ) is a library that provides highly optimized functions for two-dimensional (2D) image, signal processing. The image processing library MUPPI is a set of low-overhead, high-performance operations performed on 2D arrays of pixels. In the future, muPP will cover more of the compute- heavy tasks in a variety of problem domains. The muPP library is created to ensure excellent performance while maximizing flexibility.
To use the muPP library, you can choose either way as follows:
- A stand-alone library for adding GPU acceleration to an application with minimal effort.
- A cooperative library for interoperating with a developer's GPU code efficiently. Both ways allow programmers to develop faster while taking advantage of the powerful processing capabilities of Moore Threads GPUs.
This manual explains the concepts, as well as specific data type definitions, and provides detailed descriptions of the image processing functions. For details, including calling syntax, see the Module Documentation.
1.1 What's new
First release with the following capabilities.
- Arithmetic Operations, including:
- SubC, DivC, and AddC for 1/3 channel 32-bit float images, both inplace and not inplace are supported.
- Alpha compose for 1/4 channel 32-bit float images.
- Color Conversion Operations, including:
- Conversion between RGB and Grayscale for 32-bit float images.
- Conversion between RGB and RGBA for both 8-bit unsigned integer and 32-bit float images.
- Conversion between RGB/BGR and YUV for 32-bit float images.
- Duplicates channel for 1 channel 32-bit float images.
- Adjust brightness, hue, and saturation for 1/3 channel 32-bit float images.
- Data Exchange and Initialization Operations, including:
- Copies and crops for 1/3 channel 32-bit float images.
- Swaps channels for 8-bit unsigned integer and 32-bit float images.
- Sets and masked sets for 1/3 channel 8-bit unsigned integer and 32-bit float images.
- Geometry Operations, including:
- Resizes and rotates for 1/3 channel 32-bit float images.
- Mirrors for 1/3 channel 32-bit float images, both inplace and not inplace are supported.
- Warps affine and warps perspective for 1/3 channel 32-bit float images.
- Scales up and down between 3 channels 8-bit unsigned integer and 32-bit float images.
- Statistical Operations, including:
- MinMax and Norm calculation for 1/3 channel 32-bit float images.
- Normalizes for 1/3 channel 32-bit float images.
- Filter Operations, including:
- Median Filter for 1/3 channel 32-bit float images.
- Gaussian Filter for 1/3 channel 32-bit float images.
2 General API conventions
2.1 Memory management
The design of all the muPP functions follows the same guidelines as other MT MUSA libraries like muFFT and muBLAS. In those APIs, all pointer arguments are device pointers.
This convention enables the individual developer to make smart choices about memory management that minimize the number of memory transfers. It also allows the user the maximum flexibility regarding which of the various memory transfer mechanisms offered by the MUSA runtime is used, such as synchronous or asynchronous memory transfers, pinned memory, etc.
The most basic steps to process data using muPP are as below:
- Transfers input data from the host to the device using musaMemCpy(...)
- Processes data using one or several muPP functions or custom MUSA kernels.
- Transfers the result data from the device to the host using musaMemCpy(...)
2.1.1 Scratch buffer and host pointer
Scratch buffers are used for computations in some muPP functions. It is the user's duty to allocate and delete temporary buffers to maximize control regarding memory allocations and performance. For one this has the ben- efit that the library will not allocate memory unbeknownst to the user. It also allows developers who invoke the same primitive repeatedly to allocate the scratch only once, improving performance and potential device-memory fragmentation.
Scratch-buffer memory is unstructured and may be passed to the primitive in uninitialized form. This allows for the reuse of the same scratch buffers with any primitive require scratch memory, as long as it is sufficiently sized.
The minimum scratch buffer size for a given primitive can be obtained by a companion function. The buffer size is returned via a host pointer as allocation of the scratch buffer is performed via MUSA runtime host code.
2.2 Rounding modes
Many muPP routines need to convert floating-point values to integers. The MUppRoundMode type lists the rounding mode that supports in muPP function. Not all primitives in muPP that perform rounding as part of their functionality allow developers to specify the round mode used. Instead, they use muPP's MUPP_RND_FINANCIAL default rounding mode.
3 Image-Processing API conventions
3.1 Suffix
Image processing functions accept a name followed by a number of suffixes, which describe additional details of the operation. The following abbreviations are used for the suffixes:
API suffixes Description
”A” If the image is a 4-channel image this indicates the alpha channel is not processed.
”Cn” The image consists of n channel-packed pixels, where n can be 1, 2, 3, or 4.
”Pn” The image consists of n separate image planes, where n can be 1, 2, 3, or 4.
”C” The operation is performed only on the “channel-of-interest”.
”I” The operation is performed "in-place". In this case, the image-data pointer is usually named
pSrcDstto indicate that the image data is both source and destination.
”M” A masked operation. These primitives have an additional "mask image" as input. Each pixel in
the destination image corresponds to a pixel in the mask image. Only pixels with a correspond-
ing non-zero mask pixel are being processed.
”R” The primitive operates only on a rectangular region_of_interest or “ROI”.
”Sfs” The primitive operates with fixed scaling and saturation.
The suffixes above always appear in alphabetical order. For example, the function "muppiNV12ToBGR_8u_P2C3R" means 2-channel 8-bit unsigned planar NV12 to 3-channel 8-bit unsigned packed BGR color conversion.
3.2 Parameter names for image data
This section describes three common cases of image data passing throughout muPP.
3.2.1 Passing Source-Image data
Those are images consumed by the algorithm.
3.2.1.1 Source-Image pointer
The source image data is usually passed via a pointer namedpSrc. Usually, the source image pointer is generally defined as constant. Enforcing that the primitive does not change any image data pointed to by that pointer.
If the primitive consumes multiple images as inputs the source pointers are numbered like this: pSrc1, pScr2, ...
3.2.1.2 Source-Image line steps
The source image line step is the number of bytes between successive rows in the image. The source image line step parameter isnSrcStep, or in the case of multiple source images nSrcStep1, nSrcStep2, ...
3.2.1.3 Source-Planar-Image pointer
The multiple plane source image data is passed via a set of pointers named pSrc1, pScr2, ...
3.2.1.4 Source-Planar-Image line step array
The source planar image line step array is an array where each element of the array contains the number of bytes between successive rows for a particular plane in the input image. The source planar image line step array parameter isrSrcStep[].
3.2.2 Passing Destination-Image data
Those are images produced by the algorithm.
3.2.2.1 Destination-Image pointer
The destination image data is usually passed via a pointer namedpDst. If the primitive generates multiple images as outputs the destination pointers are numbered like this: pDst1, pDst2, ...
3.2.2.2 Destination-Image line step
The destination image line step parameter isnDstStep, or in the case of multiple destination images nDstStep1, nDstStep2, ...
3.2.2.3 Destination-Planar-Image pointer array
The planar destination image data pointers are generally passed via an array of pointers namedpDst[]. Each pointer in the array points to a different image plane.
3.2.2.4 Destination-Planar-Image line step array
The destination planar image line step array is an array where each element of the array contains the number of bytes between successive rows for a particular plane in the output image. The destination planar image line step array parameter isrDstStep[].
3.2.3 Passing In-Place image data
3.2.3.1 In-Place image pointer
In the case of in-place processing, the source and destination are served by the same pointer and thus pointers to in-place image data are named:pSrcDst.
3.2.3.2 In-Place-Image line step
The in-place line step parameter isnSrcDstStep.
3.2.4 Passing Mask-Image data
Some image processing primitives have variants that support Masked Operation.
3.2.4.1 Mask-Image pointer
The mask-image data is generally passed via a pointer namedpMask.
3.2.4.2 Mask-Image line step
The mask-image line step parameter isnMaskStep.
3.2.5 Passing Channel-of-Interest data
Some image processing primitives support Channel-of-Interest API.
3.2.5.1 Channel_of_Interest number
The channel-of-interest data is usually an integer(either 1, 2, or 3 ):nCOI.
3.2.6 Image data related error codes
All MUPPI primitives operating on image data validate the image-data pointer for proper alignment and test that the point is not null. Additionally, they check the line stride for proper alignment and guard against the steps that are less than or equal to 0. If failed validation, it will return one of the following error codes and not execute the primitive:
- MUPP_STEP_ERROR is returned if the data step is 0 or negative.
- MUPP_NOT_EVEN_STEP_ERROR is returned if the line step is not a multiple of the pixel size for 2 and 4 channel images.
- MUPP_NULL_POINTER_ERROR is returned if the image-data pointer is 0 (NULL).
- MUPP_ALIGNMENT_ERROR if the image-data pointer address is not a multiple of the pixel size for 2 and 4 channel images.
3.3 Region-of-Interest (ROI)
In practice processing, processing a rectangular sub-region of an image is more common than processing the entire image. The vast majority of muPP's image processing primitives allow the processing of such subregions, also known as regions of interest or ROIs.
All primitives supporting ROI processing are marked by an "R" in their name suffix. In most cases, the ROI is passed as a single MuppiSize struct, which provides the width and height of the ROI. This raises the question of how the primitive knows where in the image this rectangle of (width, height) is located. The "start pixel" of the ROI is implicitly given by the image-data pointer. That is instead of explicitly passing a pixel coordinate for the upper-left corner (lowest memory address), the user simply offsets the image-data pointers to point to the first pixel of the ROI.
In practice, this means that for an image (pSrc,nSrcStep) and the start-pixel of the ROI is at location (x, y), one would pass: pSrcOffset = pSrc + ynSrcStep + xPixelSize;
as the image-data source to the primitive.PixelSizeis typically computed as: PixelSize = NumberOfColorChannels*sizeof(PixelDataType).
3.3.1 ROI related error codes
All MUPPI primitives operating on ROIs of image data validate the ROI size and the image's step size. If failed validation, it will return one of the following error codes and not execute the primitive:
- MUPP_SIZE_ERROR is returned if either the ROI width or ROI height is negative.
- MUPP_STEP_ERROR is returned if the ROI width exceeds the image's line step. In mathematical terms (widthROI∗PixelSize)>nLinStep indicates an error.
Chapter 4
Signal-Processing API conventions
4.1 Signal data
Signal data is passed to and from MUPPS primitives using a pointer to the signal's data type. This simple method of passing signal data is designed with ease of integration into existing software applications.
- Passing the data pointer rather than a higher-level signal struct enables easy adoption by not requiring a specific signal representation (which may contain total signal size offset or other additional information). This prevents problematic signal data packing and unpacking from the host application to a signal format particular to a MUPP.
4.1.1 Parameter names for image data
This section describes three common cases of signal data passing throughout muPP.
4.1.1.1 Source signal pointer
The source signal data is usually passed through a pointer namedpSrc. The source signal pointer is defined as constant, note that the primitive does not change any signal data pointed to by that pointer. For example: MUPPsPrimitive_32s(const MUPP32s*pSrc, ...)
If the primitive consumes multiple signals as inputs the source pointers are numbered like this: pSrc1, pScr2, ...
4.1.1.2 Destination signal pointer
The destination signal data is usually passed through a pointer namedpDst. If the primitive consumes multiple signals as outputs the destination pointers are numbered like this: pDst1, pDst2, ...
4.1.1.3 In-Place signal pointer
In the case of in-place processing, the source and destination are served by the same pointer and thus pointers to in-place signal data are namedpSrcDst.
4.1.2 Signal data alignment requirements
The signal sample data of MUPP needs to be naturally aligned, that is any pointer MUppType*p;
to a sample in a signal should satisfy: assert(p % sizeof(p) == 0);
4.1.3 Signal data related error codes
All MUPPS primitives operating on signal data validate the signal-data pointer for proper alignment and test that the point is not null.
The primitive is not run if validation is failed and the following errors are returned:
- MUPP_NULL_POINTER_ERROR is returned if the signal-data pointer is 0 (NULL).
- MUPP_ALIGNMENT_ERROR is returned if the signal-data pointer address is not a multiple of the signal’s data-type size.
4.2 Signal length
The MUPPS functions accept anLengthparameter, which instructs the primitive how many samples of the signal starting from the given data pointer are to be processed.
4.2.1 Signal length related error codes
All MUPPS primitives that use a length parameter validate this input. The primitive is not run if validation is failed and the following error code is returned:
- MUPP_SIZE_ERROR is returned if the length is negative.
Module Index
5.1 Modules
Class Index
6.1 Class List
- Chapter
- MUPP Core Functions Here is a list of all modules:
- Type Definitions and Constants
- Basic MUPP Data Types
- Image Arithmetic and Logical Operations
- Arithmetic Operations
- AddC
- SubC
- DivC
- Mul
- Logical Operations
- AndC
- OrC
- XorC
- RShiftC
- LShiftC
- And
- Or
- Xor
- Not
- Alpha Composition
- AlphaComp
- Arithmetic Operations
- Color and Sampling Conversion
- Color Model Conversion
- RGBToRGBA
- RGBAToRGB
- RGBToYUV
- BGRToYUV
- YUVToRGB
- YUVToRGBBatch
- YUVToRGBBatchAdvanced
- YUVToBGR
- YUVToBGRBatch
- YUVToBGRBatchAdvanced
- RGBToYUV422
- Color Model Conversion
- YUV422ToRGB
- YUV422ToRGBBatch
- YUV422ToRGBBatchAdvanced
- YUV422ToBGRBatch
- YUV422ToBGRBatchAdvanced
- RGBToYUV420
- YUV420ToRGB
- YUV420ToRGBBatch
- YUV420ToRGBBatchAdvanced
- NV12ToRGB
- RGBToNV12
- NV21ToRGB
- BGRToYUV420
- YUV420ToBGR
- YUV420ToBGRBatch
- YUV420ToBGRBatchAdvanced
- NV12ToBGR
- BGRToNV12
- NV21ToBGR
- RGBToYCbCr
- YCbCrToRGB
- YCbCrToRGBBatch
- YCbCrToRGBBatchAdvanced
- YCbCrToBGR
- YCbCrToBGRBatch
- YCbCrToBGRBatchAdvanced
- YCbCrToBGR_709CSC
- RGBToYCbCr422
- YCbCr422ToRGB
- YCbCr422ToRGBBatch
- YCbCr422ToRGBBatchAdvanced
- RGBToYCrCb422
- YCrCb422ToRGB
- BGRToYCbCr422
- YCbCr422ToBGR
- YCbCr422ToBGRBatch
- YCbCr422ToBGRBatchAdvanced
- RGBToCbYCr422
- CbYCr422ToRGB
- BGRToCbYCr422
- BGRToCbYCr422_709HDTV
- CbYCr422ToBGR
- CbYCr422ToBGR_709HDTV
- RGBToYCbCr420
- YCbCr420ToRGB
- YCbCr420ToRGBBatch
- YCbCr420ToRGBBatchAdvanced
- RGBToYCrCb420
- YCrCb420ToRGB
- BGRToYCbCr420
- BGRToYCbCr420_709CSC
- BGRToYCbCr420_709HDTV
- BGRToYCrCb420_709CSC
- YCbCr420ToBGR
- YCbCr420ToBGRBatch
- YCbCr420ToBGRBatchAdvanced
- YCbCr420ToBGR_709CSC
- YCbCr420ToBGR_709HDTV
- BGRToYCrCb420
- BGRToYCbCr411
- RGBToYCbCr411
- BGRToYCbCr
- YCbCr411ToBGR
- YCbCr411ToRGB
- RGBToXYZ
- XYZToRGB
- RGBToLUV
- LUVToRGB
- BGRToLab
- LabToBGR
- RGBToYCC
- YCCToRGB
- YCCKToCMYK_JPEG
- CMYK_OR_YCCK_JPEG_TO_RGB
- CMYK_OR_YCCK_JPEG_TO_BGR
- RGBToHLS
- HLSToRGB
- BGRToHLS
- HLSToBGR
- RGBToHSV
- HSVToRGB
- JPEG Color Conversion
- ColorToGray Conversion
- ColorDebayer
- Color Sampling Format
- Color Gamma Correction
- Complement Color Key
- Color Processing
- ColorTwist
- ColorTwistBatch
- ColorLUT
- ColorLUTLinear
- ColorLUTCubic
- ColorLUTTrilinear
- ColorLUTPalette
- Adjust Brightness
- Adjust Hue
- Adjust Saturation
- Image Data Exchange and Initialization
- Image Set Operations
- Set
- Masked Set
- Image Copy Operations
- Crop
- Copy
- Copy Constant Border
- Copy Replicate Border
- Copy Wrap Border
- Scale Bit Depth
- Scale To Higher Bit Depth
- Scale To Lower Bit Depth
- Duplicate Channel
- Transpose
- Swap Channels
- Image Set Operations
- Image Filtering Functions
- 2D Fixed Linear Filters
- FilterBox
- Rank Filters
- FilterMedian
- Fixed Filters
- FilterGauss
- FilterLaplace
- 2D Fixed Linear Filters
- Image Geometry Transforms
- Resize
- ResizeBatch
- Remap
- Rotate
- Rotate Utility Functions
- Rotate
- Mirror
- Affine Transforms
- Affine Transform Utility Functions
- Affine Transform
- Perspective Transform
- Perspective Transform Utility Functions
- Perspective Transform
- Image Linear Transforms
- Fourier Transforms
- Image Morphological Operations
- Dilation
- Erode
- Statistical Operations
- Sum
- Min
- MinIndx
- Max
- MaxIndx
- MinMax
- MinMaxIndx
- Mean
- Mean_StdDev
- Image Norms
- Norm_Inf
- Norm_L1
- Norm_L2
- NormDiff_Inf
- NormDiff_L1
- NormDiff_L2
- NormRel_Inf
- NormRel_L1
- NormRel_L2
- Normalize
- DotProd
- CountInRange.
- MaxEvery
- MinEvery
- Integral
- SqrIntegral
- RectStdDev
- HistogramEven
- HistogramRange
- Image Proximity
- SqrDistanceFull_Norm
- SqrDistanceSame_Norm
- SqrDistanceValid_Norm
- CrossCorrFull_Norm
- CrossCorrSame_Norm
- CrossCorrValid_Norm
- CrossCorrValid
- CrossCorrFull_NormLevel
- CrossCorrSame_NormLevel
- CrossCorrValid_NormLevel.
- Image Quality Index.
- MaximumError.
- AverageError.
- MaximumRelativeError.
- AverageRelativeError.
- IQA.
- IQABatch.
- IQABatchAdvanced.
- Image Threshold and Compare
- Thresholding Operations.
- Threshold Operations.
- Thresholding Operations.
- Signal Arithmetic and Logical
- Arithmetic Operations.
- AddProduct.
- MulC.
- Mul.
- Sub.
- Div.
- Abs.
- Sqr.
- Sqrt.
- Exp.
- Ln.
- Arithmetic Operations.
- Signal Conversion Functions
- Convert.
- Signal Initialization
- Zero.
- Copy.
- Chapter
- MUpp16f Here are the classes, structs, unions and interfaces with brief descriptions:
- MUpp16f_2
- MUPP_ALIGN_16
- MUPP_ALIGN_8
- MUppiBufferDescriptor
- MUppiColorTwistBatchCXR
- MUppiCompressedMarkerLabelsInfo
- MUppiConnectedRegion
- MUppiContourPixelDirectionInfo
- MUppiContourPixelGeometryInfo
- MUppiContourTotalsInfo
- MUppiHaarBuffer
- MUppiHaarClassifier_32f
- MUppiHOGConfig
- MUppiImageDescriptor
- MUppiPoint
- MUppiRect
- MUppiResizeBatchCXR
- MUppiResizeBatchROI_Advanced
- MUppiSize
- MUppLibraryVersion
- MUppPointPolar
- MUppStreamContext
Chapter 7
Module Documentation
7.1 MUPP Core Functions
Functions
- musaStream_t muppGetStream (void) Gets the MUPP MUSA stream.
- MUppStatus muppSetStream (musaStream_t hStream) Sets the MUPP MUSA stream.
7.1.1 Detailed Description
Basic functions for library management, in particular library version and device property query functions.
7.1.2 Function Documentation
7.1.2.1 muppGetStream()
musaStream_t muppGetStream ( void )
Gets the MUPP MUSA stream.
MUPP enables concurrent device tasks via a global stream state variable. The default setting for the MUPP stream is stream 0, i.e. non-concurrent mode. Any valid MUSA stream can be chosen as the MUPP stream. The MUPP stream is then used for any MUSA commands sent by MUPP (e.g. kernels launched by the MUPP library).
7.1.2.2 muppSetStream()
MUppStatus muppSetStream ( musaStream_t hStream)
Sets the MUPP MUSA stream.
If MUSA stream management is not working properly, this function now returns an error. Since unnecessarily flushing the current stream have a major negative impact on performance, this function should only be called if a call to muppGetStream() returns a stream number that is different from the desired stream.
7.2 Type Definitions and Constants
Modules
- Basic MUPP Data Types
Classes
- struct MUppLibraryVersion
Enumerations
- enum MUppiInterpolationMode {
**MUPPI_INTER_UNDEFINED** = 0 ,
MUPPI_INTER_NN = 1 ,
MUPPI_INTER_LINEAR = 2 ,
MUPPI_INTER_CUBIC = 4 ,
MUPPI_INTER_CUBIC2P_BSPLINE ,
MUPPI_INTER_CUBIC2P_CATMULLROM ,
MUPPI_INTER_CUBIC2P_B05C03 ,
MUPPI_INTER_SUPER = 8 ,
MUPPI_INTER_LANCZOS = 16 ,
MUPPI_INTER_LANCZOS3_ADVANCED = 17 ,
MUPPI_SMOOTH_EDGE = reinterpret_cast<int>(0x8000000) }
- enum MUppiCopyPaddingMode {
NONE ,
CONSTANT ,
REPLICATE ,
WRAP }
- enum MUppiBayerGridPosition {
MUPPI_BAYER_BGGR = 0 ,
**MUPPI_BAYER_RGGB** = 1 ,
**MUPPI_BAYER_GBRG** = 2 ,
**MUPPI_BAYER_GRBG** = 3 }
- enum MUppiMaskSize {
**MUPP_MASK_SIZE_1_X_3** ,
**MUPP_MASK_SIZE_1_X_5** ,
MUPP_MASK_SIZE_3_X_1 = 100 ,
**MUPP_MASK_SIZE_5_X_1** ,
MUPP_MASK_SIZE_3_X_3 = 200 ,
**MUPP_MASK_SIZE_5_X_5** ,
**MUPP_MASK_SIZE_7_X_7** = 400 ,
**MUPP_MASK_SIZE_9_X_9** = 500 ,
**MUPP_MASK_SIZE_11_X_11** = 600 ,
**MUPP_MASK_SIZE_13_X_13** = 700 ,
**MUPP_MASK_SIZE_15_X_15** = 800 }
- enum MUppiDifferentialKernel {
**MUPP_FILTER_SOBEL** ,
**MUPP_FILTER_SCHARR** }
- enum MUppStatus {
**MUPP_NOT_SUPPORTED_MODE_ERROR** = -9999 ,
**MUPP_INVALID_HOST_POINTER_ERROR** = -1032 ,
**MUPP_INVALID_DEVICE_POINTER_ERROR** = -1031 ,
**MUPP_LUT_PALETTE_BITSIZE_ERROR** = -1030 ,
MUPP_ZC_MODE_NOT_SUPPORTED_ERROR = -1028 ,
**MUPP_NOT_SUFFICIENT_COMPUTE_CAPABILITY** = -1027 ,
**MUPP_TEXTURE_BIND_ERROR** = -1024 ,
**MUPP_WRONG_INTERSECTION_ROI_ERROR** = -1020 ,
**MUPP_HAAR_CLASSIFIER_PIXEL_MATCH_ERROR** = -1006 ,
**MUPP_MEMFREE_ERROR** = -1005 ,
**MUPP_MEMSET_ERROR** = -1004 ,
**MUPP_MEMCPY_ERROR** = -1003 ,
**MUPP_ALIGNMENT_ERROR** = -1002 ,
**MUPP_MUSA_KERNEL_EXECUTION_ERROR** = -1000 ,
MUPP_ROUND_MODE_NOT_SUPPORTED_ERROR = -213 ,
MUPP_QUALITY_INDEX_ERROR = -210 ,
MUPP_RESIZE_NO_OPERATION_ERROR = -201 ,
MUPP_OVERFLOW_ERROR = -109 ,
MUPP_NOT_EVEN_STEP_ERROR = -108 ,
MUPP_HISTOGRAM_NUMBER_OF_LEVELS_ERROR = -107 ,
MUPP_LUT_NUMBER_OF_LEVELS_ERROR = -106 ,
MUPP_CORRUPTED_DATA_ERROR = -61 ,
MUPP_CHANNEL_ORDER_ERROR = -60 ,
MUPP_ZERO_MASK_VALUE_ERROR = -59 ,
MUPP_QUADRANGLE_ERROR = -58 ,
MUPP_RECTANGLE_ERROR = -57 ,
MUPP_COEFFICIENT_ERROR = -56 ,
MUPP_NUMBER_OF_CHANNELS_ERROR = -53 ,
MUPP_COI_ERROR = -52 ,
MUPP_DIVISOR_ERROR = -51 ,
MUPP_CHANNEL_ERROR = -47 ,
MUPP_STRIDE_ERROR = -37 ,
MUPP_ANCHOR_ERROR = -34 ,
MUPP_MASK_SIZE_ERROR = -33 ,
**MUPP_RESIZE_FACTOR_ERROR** = -23 ,
**MUPP_INTERPOLATION_ERROR** = -22 ,
**MUPP_MIRROR_FLIP_ERROR** = -21 ,
**MUPP_MOMENT_00_ZERO_ERROR** = -20 ,
**MUPP_THRESHOLD_NEGATIVE_LEVEL_ERROR** = -19 ,
**MUPP_THRESHOLD_ERROR** = -18 ,
**MUPP_CONTEXT_MATCH_ERROR** = -17 ,
**MUPP_FFT_FLAG_ERROR** = -16 ,
MUPP_FFT_ORDER_ERROR = -15 ,
MUPP_STEP_ERROR = -14 ,
MUPP_SCALE_RANGE_ERROR = -13 ,
MUPP_DATA_TYPE_ERROR = -12 ,
MUPP_OUT_OFF_RANGE_ERROR = -11 ,
MUPP_DIVIDE_BY_ZERO_ERROR = -10 ,
MUPP_MEMORY_ALLOCATION_ERR = -9 ,
MUPP_NULL_POINTER_ERROR = -8 ,
MUPP_RANGE_ERROR = -7 ,
MUPP_SIZE_ERROR = -6 ,
MUPP_BAD_ARGUMENT_ERROR = -5 ,
MUPP_NO_MEMORY_ERROR = -4 ,
MUPP_NOT_IMPLEMENTED_ERROR = -3 ,
MUPP_ERROR = -2 ,
MUPP_ERROR_RESERVED = -1 ,
MUPP_NO_ERROR = 0 ,
MUPP_SUCCESS = MUPP_NO_ERROR ,
MUPP_NO_OPERATION_WARNING = 1 ,
MUPP_DIVIDE_BY_ZERO_WARNING = 6 ,
MUPP_AFFINE_QUAD_INCORRECT_WARNING = 28 ,
MUPP_WRONG_INTERSECTION_ROI_WARNING = 29 ,
MUPP_WRONG_INTERSECTION_QUAD_WARNING = 30 ,
MUPP_DOUBLE_SIZE_WARNING = 35 ,
MUPP_MISALIGNED_DST_ROI_WARNING = 10000 }
Variables
-
short MUpp16f::fp
-
short MUpp16f_2::fp16_
-
short MUpp16f_2::fp16_
-
int MUppLibraryVersion::major
-
int MUppLibraryVersion::minor
-
int MUppLibraryVersion::build
-
MUpp32u MUPP_ALIGN_8::re
-
MUpp32u MUPP_ALIGN_8::im
-
MUpp32s MUPP_ALIGN_8::re
-
MUpp32s MUPP_ALIGN_8::im
-
MUpp32f MUPP_ALIGN_8::re
-
MUpp32f MUPP_ALIGN_8::im
-
MUpp64s MUPP_ALIGN_16::re
-
MUpp64s MUPP_ALIGN_16::im
-
MUpp64f MUPP_ALIGN_16::re
-
MUpp64f MUPP_ALIGN_16::im
-
int MUppiPoint::x
-
int MUppiPoint::y
-
MUpp32f MUppPointPolar::rho
-
MUpp32f MUppPointPolar::theta
-
int MUppiSize::width
-
int MUppiSize::height
-
int MUppiRect::x
-
int MUppiRect::y
-
int MUppiRect::width
-
int MUppiRect::height
-
int MUppiHOGConfig::cellSize
-
int MUppiHOGConfig::histogramBlockSize
-
int MUppiHOGConfig::nHistogramBins
-
MUppiSize MUppiHOGConfig::detectionWindowSize
-
int MUppiHaarClassifier_32f::numClassifiers
-
MUpp32s∗MUppiHaarClassifier_32f::classifiers
-
size_t MUppiHaarClassifier_32f::classifierStep
-
MUppiSize MUppiHaarClassifier_32f::classifierSize
-
MUpp32s∗ MUppiHaarClassifier_32f::counterDevice
-
int MUppiHaarBuffer::haarBufferSize
-
MUpp32s∗MUppiHaarBuffer::haarBuffer
-
MUppiRect MUppiConnectedRegion::oBoundingBox
-
MUpp32u MUppiConnectedRegion::nConnectedPixelCount
-
MUpp32u MUppiConnectedRegion::aSeedPixelValue [3]
-
void∗MUppiImageDescriptor::pData
-
int MUppiImageDescriptor::nStep
-
MUppiSize MUppiImageDescriptor::oSize
-
void∗MUppiBufferDescriptor::pData
-
int MUppiBufferDescriptor::nBufferSize
-
MUpp32u MUppiCompressedMarkerLabelsInfo::nMarkerLabelPixelCount
-
MUpp32u MUppiCompressedMarkerLabelsInfo::nContourPixelCount
-
MUpp32u MUppiCompressedMarkerLabelsInfo::nContourPixelsFound
-
MUppiPoint MUppiCompressedMarkerLabelsInfo::oContourFirstPixelLocation
-
MUppiRect MUppiCompressedMarkerLabelsInfo::oMarkerLabelBoundingBox
-
MUppiPoint MUppiContourPixelGeometryInfo::oContourOrderedGeometryLocation
-
MUppiPoint MUppiContourPixelGeometryInfo::oContourPrevPixelLocation
-
MUppiPoint MUppiContourPixelGeometryInfo::oContourCenterPixelLocation
-
MUppiPoint MUppiContourPixelGeometryInfo::oContourNextPixelLocation
-
MUpp32s MUppiContourPixelGeometryInfo::nOrderIndex
-
MUpp32s MUppiContourPixelGeometryInfo::nReverseOrderIndex
-
MUpp32u MUppiContourPixelGeometryInfo::nFirstIndex
-
MUpp32u MUppiContourPixelGeometryInfo::nLastIndex
-
MUpp32u MUppiContourPixelGeometryInfo::nNextContourPixelIndex
-
MUpp32u MUppiContourPixelGeometryInfo::nPrevContourPixelIndex
-
MUpp8u MUppiContourPixelGeometryInfo::nPixelAlreadyUsed
-
MUpp8u MUppiContourPixelGeometryInfo::nAlreadyLinked
-
MUpp8u MUppiContourPixelGeometryInfo::nAlreadyOutput
-
MUpp8u MUppiContourPixelGeometryInfo::nContourInteriorDirection
-
MUpp32u MUppiContourPixelDirectionInfo::nMarkerLabelID
-
MUpp8u MUppiContourPixelDirectionInfo::nContourDirectionCenterPixel
-
MUpp8u MUppiContourPixelDirectionInfo::nContourInteriorDirectionCenterPixel
-
MUpp8u MUppiContourPixelDirectionInfo::nConnected
-
MUpp8u MUppiContourPixelDirectionInfo::nGeometryInfoIsValid
-
MUppiContourPixelGeometryInfo MUppiContourPixelDirectionInfo::oContourPixelGeometryInfo
-
MUppiPoint MUppiContourPixelDirectionInfo::nEast1
-
MUppiPoint MUppiContourPixelDirectionInfo::nNorthEast1
-
MUppiPoint MUppiContourPixelDirectionInfo::nNorth1
-
MUppiPoint MUppiContourPixelDirectionInfo::nNorthWest1
-
MUppiPoint MUppiContourPixelDirectionInfo::nWest1
-
MUppiPoint MUppiContourPixelDirectionInfo::nSouthWest1
-
MUppiPoint MUppiContourPixelDirectionInfo::nSouth1
-
MUppiPoint MUppiContourPixelDirectionInfo::nSouthEast1
-
MUpp8u MUppiContourPixelDirectionInfo::aContourInteriorDirection1 [4]
-
MUpp8u MUppiContourPixelDirectionInfo::nTest1EastConnected
-
MUpp8u MUppiContourPixelDirectionInfo::nTest1NorthEastConnected
-
MUpp8u MUppiContourPixelDirectionInfo::nTest1NorthConnected
-
MUpp8u MUppiContourPixelDirectionInfo::nTest1NorthWestConnected
-
MUpp8u MUppiContourPixelDirectionInfo::nTest1WestConnected
-
MUpp8u MUppiContourPixelDirectionInfo::nTest1SouthWestConnected
-
MUpp8u MUppiContourPixelDirectionInfo::nTest1SouthConnected
-
MUpp8u MUppiContourPixelDirectionInfo::nTest1SouthEastConnected
-
MUpp32u MUppiContourTotalsInfo::nTotalImagePixelContourCount
-
MUpp32u MUppiContourTotalsInfo::nLongestImageContourPixelCount
-
musaStream_t MUppStreamContext::hStream
-
int MUppStreamContext::nMusaDeviceId
-
int MUppStreamContext::nMultiProcessorCount
-
int MUppStreamContext::nMaxThreadsPerMultiProcessor
-
int MUppStreamContext::nMaxThreadsPerBlock
-
size_t MUppStreamContext::nSharedMemPerBlock
-
int MUppStreamContext::nMusaDevAttrComputeCapabilityMajor
-
int MUppStreamContext::nMusaDevAttrComputeCapabilityMinor
-
unsigned int MUppStreamContext::nStreamFlags
-
int MUppStreamContext::nReserved0
7.2.1 Detailed Description
This section covers data types, structures, enumerations, and constants used by MUPP API.
7.2.2 Enumeration Type Documentation
7.2.2.1 MUppiBayerGridPosition
enum MUppiBayerGridPosition
Indicates the position registration of Bayer Grid.
Enumerator
MUPPI_BAYER_BGGR Default registration position.
7.2.2.2 MUppiCopyPaddingMode
enum MUppiCopyPaddingMode
Padding Mode used for Crop functions.
Enumerator
NONE No Padding.
CONSTANT Constant Padding, which will be used in CopyConstBorder.
REPLICATE Replicate Padding, which will be used in CopyReplicateBorder.
muPP API v 1.4.0WRAP Wrap Padding, which will be used in CopyWrapBorder. 21
7.2.2.3 MUppiDifferentialKernel
enum MUppiDifferentialKernel
Indicates Differential Filter types.
7.2.2.4 MUppiInterpolationMode
enum MUppiInterpolationMode
Indicates available interpolation mode.
Enumerator
MUPPI_INTER_NN Nearest neighbor filtering.
MUPPI_INTER_LINEAR Linear interpolation.
MUPPI_INTER_CUBIC Cubic interpolation.
MUPPI_INTER_CUBIC2P_BSPLINE Two-parameter cubic filter with fixed coefficients (B=1, C=0).
MUPPI_INTER_CUBIC2P_CATMULLROM Two-parameter cubic filter with fixed coefficients (B=0, C=1/2).
MUPPI_INTER_CUBIC2P_B05C03 Two-parameter cubic filter with fixed coefficients (B=1/2, C=3/10).
MUPPI_INTER_SUPER Super sampling.
MUPPI_INTER_LANCZOS Lanczos filtering.
MUPPI_INTER_LANCZOS3_ADVANCED Generic Lanczos filtering with order 3.
MUPPI_SMOOTH_EDGE Smooth edge filtering.
7.2.2.5 MUppiMaskSize
enum MUppiMaskSize
Fixed filter-kernel sizes.
Enumerator
MUPP_MASK_SIZE_3_X←-
_1
Leaving space for more 1 X N type enum values.
MUPP_MASK_SIZE_3_X←-
_3
Leaving space for more N X 1 type enum values.
7.2.2.6 MUppStatus
enum MUppStatus
Returns status codes.
Almost all MUPP functions use these return codes to provide error-status information. Negative return codes indicate errors, positive return codes indicate warnings, whereas a return value of 0 signifies success.
Enumerator
MUPP_ZC_MODE_NOT_SUPPORTED_ERROR Unsupported ZeroCrossing mode.
MUPP_ROUND_MODE_NOT_SUPPORTED_←-
ERROR
Unsupported round mode.
MUPP_QUALITY_INDEX_ERROR Image pixels are constant for the quality index.
MUPP_RESIZE_NO_OPERATION_ERROR One of the output image dimensions is less than 1
pixel.
MUPP_OVERFLOW_ERROR The number exceeds the data type's upper or lower
bound.
MUPP_NOT_EVEN_STEP_ERROR The step value is not pixel multiple.
MUPP_HISTOGRAM_NUMBER_OF_LEVELS_←-
ERROR
The number of levels for the histogram is less than 2
MUPP_LUT_NUMBER_OF_LEVELS_ERROR The number of levels for LUT is less than 2.
MUPP_CORRUPTED_DATA_ERROR Processed data is corrupted.
MUPP_CHANNEL_ORDER_ERROR The destination channels' wrong order.
MUPP_ZERO_MASK_VALUE_ERROR All values of the mask are zero.
MUPP_QUADRANGLE_ERROR The quadrangle is nonconvex or degenerates a into
triangle, line, or point.
MUPP_RECTANGLE_ERROR The size of the rectangle region is less than or equal
to 1.
MUPP_COEFFICIENT_ERROR Not allowed values for transformation coefficients.
MUPP_NUMBER_OF_CHANNELS_ERROR Bad or unsupported number of channels.
MUPP_COI_ERROR Channel of interest is not 1, 2, or 3.
MUPP_DIVISOR_ERROR Divisor is equal to zero.
MUPP_CHANNEL_ERROR Illegal channel index.
MUPP_STRIDE_ERROR The stride is less than the row length.
MUPP_ANCHOR_ERROR Anchor point is outside mask.
MUPP_MASK_SIZE_ERROR The lower bound is larger than the upper bound.
MUPP_STEP_ERROR The step is less than or equal to zero.
MUPP_NO_ERROR Error-free operation.
MUPP_SUCCESS Successful operation (same as MUPP_NO_ERROR).
MUPP_NO_OPERATION_WARNING Indicates that no operation was performed.
MUPP_DIVIDE_BY_ZERO_WARNING Divisor is zero yet does not terminate the execution.
MUPP_AFFINE_QUAD_INCORRECT_WARNING Indicates that the quadrangle passed to one of the
affine warping functions is missing the necessary
properties. The first 3 vertices are used, and the
fourth vertex is discarded.
MUPP_WRONG_INTERSECTION_ROI_WARNING The given ROI has no interestion with either the
source or destination ROI. So no operation was
performed.
MUPP_WRONG_INTERSECTION_QUAD_←-
WARNING
The given quadrangle has no intersection with either
the source or destination ROI. Thus no operation was
performed.
MUPP_DOUBLE_SIZE_WARNING The image size isn't multiple of two. Indicates that the
ROI width/height was modified for proper processing
in case of 422/411/420 sampling.
Enumerator
MUPP_MISALIGNED_DST_ROI_WARNING Speed reduction due to uncoalesced memory
accesses warning.
7.2.3 Variable Documentation
7.2.3.1 aSeedPixelValue
MUpp32u MUppiConnectedRegion::aSeedPixelValue[3]
The original pixel value of the seed pixel, 1 or 3 channel.
7.2.3.2 build
int MUppLibraryVersion::build
Build number. Indicates the nightly build this release was made from.
7.2.3.3 cellSize
int MUppiHOGConfig::cellSize
Square cell size (pixels).
7.2.3.4 classifiers
MUpp32s∗MUppiHaarClassifier_32f::classifiers
Packed classifier data 40 bytes each.
7.2.3.5 detectionWindowSize
MUppiSize MUppiHOGConfig::detectionWindowSize
Detection window size (pixels).
7.2.3.6 haarBuffer
MUpp32s∗MUppiHaarBuffer::haarBuffer
Buffer.
7.2.3.7 haarBufferSize
int MUppiHaarBuffer::haarBufferSize
Size of the buffer.
7.2.3.8 height[1/2]
int MUppiSize::height
Rectangle height.
7.2.3.9 height[2/2]
int MUppiRect::height
Rectangle height.
7.2.3.10 histogramBlockSize
int MUppiHOGConfig::histogramBlockSize
Square histogram block size (pixels).
7.2.3.11 hStream
musaStream_t MUppStreamContext::hStream
MUSA stream.
7.2.3.12 im[1/5]
MUpp32u MUPP_ALIGN_8::im
Imaginary part of the complex number.
7.2.3.13 im[2/5]
MUpp32s MUPP_ALIGN_8::im
Imaginary part of the complex number.
7.2.3.14 im[3/5]
MUpp32f MUPP_ALIGN_8::im
Imaginary part of the complex number.
7.2.3.15 im[4/5]
MUpp64s MUPP_ALIGN_16::im
Imaginary part of the complex number.
7.2.3.16 im[5/5]
MUpp64f MUPP_ALIGN_16::im
Imaginary part of the complex number.
7.2.3.17 major
int MUppLibraryVersion::major
Major version number.
7.2.3.18 minor
int MUppLibraryVersion::minor
Minor version number.
7.2.3.19 nAlreadyLinked
MUpp8u MUppiContourPixelGeometryInfo::nAlreadyLinked
This test pixel is already linked to the center pixel.
7.2.3.20 nAlreadyOutput
MUpp8u MUppiContourPixelGeometryInfo::nAlreadyOutput
This pixel has already been output in the geometry list.
7.2.3.21 nBufferSize
int MUppiBufferDescriptor::nBufferSize
Allocated buffer size.
7.2.3.22 nConnectedPixelCount
MUpp32u MUppiConnectedRegion::nConnectedPixelCount
Total number of pixels in the connected region.
7.2.3.23 nContourDirectionCenterPixel
MUpp8u MUppiContourPixelDirectionInfo::nContourDirectionCenterPixel
Displays details of current center contour pixel region interior direction.
7.2.3.24 nContourInteriorDirection
MUpp8u MUppiContourPixelGeometryInfo::nContourInteriorDirection
The direction of the contour region interior.
7.2.3.25 nContourInteriorDirectionCenterPixel
MUpp8u MUppiContourPixelDirectionInfo::nContourInteriorDirectionCenterPixel
Direction to directly connected contour pixels, or 0 if not connected.
7.2.3.26 nContourPixelCount
MUpp32u MUppiCompressedMarkerLabelsInfo::nContourPixelCount
Total number of pixels in this connected pixel region contour found during geometry search.
7.2.3.27 nContourPixelsFound
MUpp32u MUppiCompressedMarkerLabelsInfo::nContourPixelsFound
Image geometric x and y location of the first pixel in the contour.
7.2.3.28 nFirstIndex
MUpp32u MUppiContourPixelGeometryInfo::nFirstIndex
Index of the first ordered contour pixel in this subgroup.
7.2.3.29 nHistogramBins
int MUppiHOGConfig::nHistogramBins
Required number of histogram bins.
7.2.3.30 nLastIndex
MUpp32u MUppiContourPixelGeometryInfo::nLastIndex
Index of the last ordered contour pixel in this subgroup.
7.2.3.31 nMarkerLabelID
MUpp32u MUppiContourPixelDirectionInfo::nMarkerLabelID
MarkerLabelID of contour interior connected region. Displays details of current center contour pixel input and output direction.
7.2.3.32 nMarkerLabelPixelCount
MUpp32u MUppiCompressedMarkerLabelsInfo::nMarkerLabelPixelCount
Total number of pixels in this connected pixel region. Total number of pixels in this connected pixel region contour.
7.2.3.33 nMaxThreadsPerBlock
int MUppStreamContext::nMaxThreadsPerBlock
The maximum number of threads per block from musaGetDeviceProperties().
7.2.3.34 nMaxThreadsPerMultiProcessor
int MUppStreamContext::nMaxThreadsPerMultiProcessor
The maximum number of resident threads per multiprocessor from musaGetDeviceProperties().
7.2.3.35 nMultiProcessorCount
int MUppStreamContext::nMultiProcessorCount
The device's number of multiprocessors from musaGetDeviceProperties().
7.2.3.36 nMusaDevAttrComputeCapabilityMajor
int MUppStreamContext::nMusaDevAttrComputeCapabilityMajor
The major compute capability version number from musaDeviceGetAttribute().
7.2.3.37 nMusaDevAttrComputeCapabilityMinor
int MUppStreamContext::nMusaDevAttrComputeCapabilityMinor
The minor compute capability version number from musaDeviceGetAttribute().
7.2.3.38 nMusaDeviceId
int MUppStreamContext::nMusaDeviceId
Current device id from musaGetDevice().
7.2.3.39 nNextContourPixelIndex
MUpp32u MUppiContourPixelGeometryInfo::nNextContourPixelIndex
Index of next ordered contour pixel in MUppiContourPixelGeometryInfo list.
7.2.3.40 nOrderIndex
MUpp32s MUppiContourPixelGeometryInfo::nOrderIndex
Contour pixel counterclockwise order index in geometry list.
7.2.3.41 nPixelAlreadyUsed
MUpp8u MUppiContourPixelGeometryInfo::nPixelAlreadyUsed
This test pixel has already been used.
7.2.3.42 nPrevContourPixelIndex
MUpp32u MUppiContourPixelGeometryInfo::nPrevContourPixelIndex
Index of previous ordered contour pixel in MUppiContourPixelGeometryInfo list.
7.2.3.43 nReverseOrderIndex
MUpp32s MUppiContourPixelGeometryInfo::nReverseOrderIndex
Contour pixel clockwise order index in geometry list.
7.2.3.44 nSharedMemPerBlock
size_t MUppStreamContext::nSharedMemPerBlock
The maximum number of shared memory is available to a thread block in bytes from musaGetDeviceProperties().
7.2.3.45 nStep
int MUppiImageDescriptor::nStep
Step size.
7.2.3.46 nStreamFlags
unsigned int MUppStreamContext::nStreamFlags
The flags of a stream from musaStreamGetFlags().
7.2.3.47 nTotalImagePixelContourCount
MUpp32u MUppiContourTotalsInfo::nTotalImagePixelContourCount
Total number of contour pixels in the image. Longest per contour pixel count in the image.
7.2.3.48 numClassifiers
int MUppiHaarClassifier_32f::numClassifiers
The number of classifiers.
7.2.3.49 oBoundingBox
MUppiRect MUppiConnectedRegion::oBoundingBox
x, y, width, height == left, top, right, and bottom pixel coordinates.
7.2.3.50 oContourCenterPixelLocation
MUppiPoint MUppiContourPixelGeometryInfo::oContourCenterPixelLocation
Image geometry X and Y location of center contour pixel.
7.2.3.51 oContourFirstPixelLocation
MUppiPoint MUppiCompressedMarkerLabelsInfo::oContourFirstPixelLocation
The bounding box of this connected pixel region.
7.2.3.52 oContourNextPixelLocation
MUppiPoint MUppiContourPixelGeometryInfo::oContourNextPixelLocation
Image geometry X and Y location of next contour pixel.
7.2.3.53 oContourOrderedGeometryLocation
MUppiPoint MUppiContourPixelGeometryInfo::oContourOrderedGeometryLocation
Image geometry X and Y location in requested output order.
7.2.3.54 oContourPrevPixelLocation
MUppiPoint MUppiContourPixelGeometryInfo::oContourPrevPixelLocation
Image geometry X and Y location of previous contour pixel.
7.2.3.55 oSize
MUppiSize MUppiImageDescriptor::oSize
Width and height of the image.
7.2.3.56 pData[1/2]
void∗MUppiImageDescriptor::pData
Device memory pointer to the image.
7.2.3.57 pData[2/2]
void∗MUppiBufferDescriptor::pData
The memory pointer for each image device points to the corresponding buffer.
7.2.3.58 re[1/5]
MUpp32u MUPP_ALIGN_8::re
Real part of the complex number.
7.2.3.59 re[2/5]
MUpp32s MUPP_ALIGN_8::re
Real part of the complex number.
7.2.3.60 re[3/5]
MUpp32f MUPP_ALIGN_8::re
Real part of the complex number.
7.2.3.61 re[4/5]
MUpp64s MUPP_ALIGN_16::re
Real part of the complex number.
7.2.3.62 re[5/5]
MUpp64f MUPP_ALIGN_16::re
Real part of the complex number.
7.2.3.63 width[1/2]
int MUppiSize::width
Rectangle width.
7.2.3.64 width[2/2]
int MUppiRect::width
Rectangle width.
7.2.3.65 x[1/2]
int MUppiPoint::x
x-coordinate.
7.2.3.66 x[2/2]
int MUppiRect::x
x-coordinate of upper left corner (lowest memory address).
7.2.3.67 y[1/2]
int MUppiPoint::y
y-coordinate.
7.2.3.68 y[2/2]
int MUppiRect::y
y-coordinate of upper left corner (lowest memory address).
7.3 Basic MUPP Data Types
Classes
- struct MUPP_ALIGN_8
- struct MUPP_ALIGN_16
- struct MUppiPoint
- struct MUppPointPolar
- struct MUppiSize
- struct MUppiRect
- struct MUppiHOGConfig
- struct MUppiHaarClassifier_32f
- struct MUppiHaarBuffer
- struct MUppiConnectedRegion
- struct MUppiImageDescriptor
- struct MUppiBufferDescriptor
- struct MUppiCompressedMarkerLabelsInfo
- struct MUppiContourPixelGeometryInfo
- struct MUppiContourPixelDirectionInfo
- struct MUppiContourTotalsInfo
- struct MUppStreamContext
Macros
-
#define MUPP_MIN_8U (0)
-
#define MUPP_MAX_8U (255)
-
#define MUPP_MIN_16U (0)
-
#define MUPP_MAX_16U (65535)
-
#define MUPP_MIN_32U (0)
-
#define MUPP_MAX_32U (4294967295U)
-
#define MUPP_MIN_64U (0)
-
#define MUPP_MAX_64U (18446744073709551615ULL)
-
#define MUPP_MIN_8S (-127 - 1)
-
#define MUPP_MAX_8S (127)
-
#define MUPP_MIN_16S (-32767 - 1)
-
#define MUPP_MAX_16S (32767)
-
#define MUPP_MIN_32S (-2147483647 - 1)
-
#define MUPP_MAX_32S (2147483647)
-
#define MUPP_MAX_64S (9223372036854775807LL)
-
#define MUPP_MIN_64S (-9223372036854775807LL - 1)
-
#define MUPP_MINABS_32F (1.175494351e-38f)
-
#define MUPP_MAXABS_32F (3.402823466e+38f)
-
#define MUPP_MINABS_64F (2.2250738585072014e-308)
-
#define MUPP_MAXABS_64F (1.7976931348623158e+308)
-
#define MUPP_HOG_MAX_CELL_SIZE (16)
-
#define MUPP_HOG_MAX_BLOCK_SIZE (64)
-
#define MUPP_HOG_MAX_BINS_PER_CELL (16)
-
#define MUPP_HOG_MAX_CELLS_PER_DESCRIPTOR (256)
-
#define MUPP_HOG_MAX_OVERLAPPING_BLOCKS_PER_DESCRIPTOR (256)
-
#define MUPP_HOG_MAX_DESCRIPTOR_LOCATIONS_PER_CALL (128)
-
#define MUPP_CONTOUR_DIRECTION_SOUTH_EAST 1
-
#define MUPP_CONTOUR_DIRECTION_SOUTH 2
-
#define MUPP_CONTOUR_DIRECTION_SOUTH_WEST 4
-
#define MUPP_CONTOUR_DIRECTION_WEST 8
-
#define MUPP_CONTOUR_DIRECTION_EAST 16
-
#define MUPP_CONTOUR_DIRECTION_NORTH_EAST 32
-
#define MUPP_CONTOUR_DIRECTION_NORTH 64
-
#define MUPP_CONTOUR_DIRECTION_NORTH_WEST 128
-
#define MUPP_CONTOUR_DIRECTION_ANY_NORTH
-
#define MUPP_CONTOUR_DIRECTION_ANY_WEST
-
#define MUPP_CONTOUR_DIRECTION_ANY_SOUTH
-
#define MUPP_CONTOUR_DIRECTION_ANY_EAST
Typedefs
- typedef unsigned char MUpp8u
- typedef signed char MUpp8s
- typedef unsigned short MUpp16u
- typedef short MUpp16s
- typedef unsigned int MUpp32u
- typedef int MUpp32s
- typedef unsigned long long MUpp64u
- typedef long long MUpp64s
- typedef float MUpp32f
- typedef double MUpp64f
- typedef struct MUPP_ALIGN_8 MUpp32uc
- typedef struct MUPP_ALIGN_8 MUpp32sc
- typedef struct MUPP_ALIGN_8 MUpp32fc
- typedef struct MUPP_ALIGN_16 MUpp64sc
- typedef struct MUPP_ALIGN_16 MUpp64fc
Enumerations
- enum **MUppiAxis** {
**MUPP_HORIZONTAL_AXIS** ,
**MUPP_VERTICAL_AXIS** ,
**MUPP_BOTH_AXIS** }
- enum **MUppCmpOp** {
**MUPP_CMP_LESS** ,
**MUPP_CMP_LESS_EQ** ,
**MUPP_CMP_EQ** ,
**MUPP_CMP_GREATER_EQ** ,
**MUPP_CMP_GREATER** }
- enum MUppRoundMode {
MUPP_RND_NEAR ,
MUPP_ROUND_NEAREST_TIES_TO_EVEN ,
MUPP_RND_FINANCIAL ,
MUPP_ROUND_NEAREST_TIES_AWAY_FROM_ZERO ,
MUPP_RND_ZERO ,
MUPP_ROUND_TOWARD_ZERO = MUPP_RND_ZERO }
- enum **MUppiBorderType** {
**MUPP_BORDER_UNDEFINED** = 0 ,
**MUPP_BORDER_NONE** = MUPP_BORDER_UNDEFINED ,
**MUPP_BORDER_CONSTANT** = 1 ,
**MUPP_BORDER_REPLICATE** = 2 ,
**MUPP_BORDER_WRAP** = 3 ,
**MUPP_BORDER_MIRROR** = 4 }
- enum **MUppHintAlgorithm** {
**MUPP_ALG_HINT_NONE** ,
**MUPP_ALG_HINT_FAST** ,
**MUPP_ALG_HINT_ACCURATE** }
- enum MUppiAlphaOp {
**MUPPI_OP_ALPHA_OVER** ,
**MUPPI_OP_ALPHA_IN** ,
**MUPPI_OP_ALPHA_OUT** ,
**MUPPI_OP_ALPHA_ATOP** ,
**MUPPI_OP_ALPHA_XOR** ,
**MUPPI_OP_ALPHA_PLUS** ,
**MUPPI_OP_ALPHA_OVER_PREMUL** ,
**MUPPI_OP_ALPHA_IN_PREMUL** ,
**MUPPI_OP_ALPHA_OUT_PREMUL** ,
**MUPPI_OP_ALPHA_ATOP_PREMUL** ,
**MUPPI_OP_ALPHA_XOR_PREMUL** ,
**MUPPI_OP_ALPHA_PLUS_PREMUL** ,
**MUPPI_OP_ALPHA_PREMUL** }
- enum MUppsZCType {
muppZCR ,
muppZCXor ,
muppZCC }
- enum MUppiHuffmanTableType {
muppiDCTable ,
muppiACTable }
- enum MUppiNorm {
muppiNormMinMax = -1 ,
muppiNormInf = 0 ,
muppiNormL1 = 1 ,
muppiNormL2 = 2 }
- enum MUppiWatershedSegmentBoundaryType {
**MUPP_WATERSHED_SEGMENT_BOUNDARIES_NONE** ,
**MUPP_WATERSHED_SEGMENT_BOUNDARIES_BLACK** ,
**MUPP_WATERSHED_SEGMENT_BOUNDARIES_WHITE** ,
**MUPP_WATERSHED_SEGMENT_BOUNDARIES_CONTRAST** ,
**MUPP_WATERSHED_SEGMENT_BOUNDARIES_ONLY** }
Functions
- struct align (2)
- struct align (4)
Variables
- MUpp8uc
- MUpp16uc
- MUpp16sc
7.3.1 Detailed Description
Definitions of basic types available in the library.
7.3.2 Macro Definition Documentation
7.3.2.1 MUPP_CONTOUR_DIRECTION_ANY_EAST
#define MUPP_CONTOUR_DIRECTION_ANY_EAST
Value:
MUPP_CONTOUR_DIRECTION_NORTH_EAST | MUPP_CONTOUR_DIRECTION_EAST |
MUPP_CONTOUR_DIRECTION_SOUTH_EAST
7.3.2.2 MUPP_CONTOUR_DIRECTION_ANY_NORTH
#define MUPP_CONTOUR_DIRECTION_ANY_NORTH
Value:
MUPP_CONTOUR_DIRECTION_NORTH_EAST | MUPP_CONTOUR_DIRECTION_NORTH |
MUPP_CONTOUR_DIRECTION_NORTH_WEST
7.3.2.3 MUPP_CONTOUR_DIRECTION_ANY_SOUTH
#define MUPP_CONTOUR_DIRECTION_ANY_SOUTH
Value:
MUPP_CONTOUR_DIRECTION_SOUTH_EAST | MUPP_CONTOUR_DIRECTION_SOUTH |
MUPP_CONTOUR_DIRECTION_SOUTH_WEST
7.3.2.4 MUPP_CONTOUR_DIRECTION_ANY_WEST
#define MUPP_CONTOUR_DIRECTION_ANY_WEST
Value:
MUPP_CONTOUR_DIRECTION_NORTH_WEST | MUPP_CONTOUR_DIRECTION_WEST |
MUPP_CONTOUR_DIRECTION_SOUTH_WEST
7.3.2.5 MUPP_CONTOUR_DIRECTION_SOUTH_EAST
#define MUPP_CONTOUR_DIRECTION_SOUTH_EAST 1
Returns contour (boundary) direction information of uniquely labeled pixel regions.
7.3.2.6 MUPP_HOG_MAX_BINS_PER_CELL
#define MUPP_HOG_MAX_BINS_PER_CELL (16)
Max number of histogram bins.
7.3.2.7 MUPP_HOG_MAX_BLOCK_SIZE
#define MUPP_HOG_MAX_BLOCK_SIZE (64)
Max horizontal/vertical pixel size of block.
7.3.2.8 MUPP_HOG_MAX_CELL_SIZE
#define MUPP_HOG_MAX_CELL_SIZE (16)
Max horizontal/vertical pixel size of cell.
7.3.2.9 MUPP_HOG_MAX_CELLS_PER_DESCRIPTOR
#define MUPP_HOG_MAX_CELLS_PER_DESCRIPTOR (256)
Max number of cells in a descriptor window.
7.3.2.10 MUPP_HOG_MAX_DESCRIPTOR_LOCATIONS_PER_CALL
#define MUPP_HOG_MAX_DESCRIPTOR_LOCATIONS_PER_CALL (128)
Max number of descriptor window locations per function call.
7.3.2.11 MUPP_HOG_MAX_OVERLAPPING_BLOCKS_PER_DESCRIPTOR
#define MUPP_HOG_MAX_OVERLAPPING_BLOCKS_PER_DESCRIPTOR (256)
Max number of overlapping blocks in a descriptor window.
7.3.2.12 MUPP_MAX_16S
#define MUPP_MAX_16S (32767)
Maximum 16-bit signed integer.
7.3.2.13 MUPP_MAX_16U
#define MUPP_MAX_16U (65535)
Maximum 16-bit unsigned integer.
7.3.2.14 MUPP_MAX_32S
#define MUPP_MAX_32S (2147483647)
Maximum 32-bit signed integer.
7.3.2.15 MUPP_MAX_32U
#define MUPP_MAX_32U (4294967295U)
Maximum 32-bit unsigned integer.
7.3.2.16 MUPP_MAX_64S
#define MUPP_MAX_64S (9223372036854775807LL)
Maximum 64-bit signed integer.
7.3.2.17 MUPP_MAX_64U
#define MUPP_MAX_64U (18446744073709551615ULL)
Maximum 64-bit unsigned integer.
7.3.2.18 MUPP_MAX_8S
#define MUPP_MAX_8S (127)
Maximum 8-bit signed integer.
7.3.2.19 MUPP_MAX_8U
#define MUPP_MAX_8U (255)
Maximum 8-bit unsigned integer.
7.3.2.20 MUPP_MAXABS_32F
#define MUPP_MAXABS_32F (3.402823466e+38f)
Largest positive 32-bit floating point value.
7.3.2.21 MUPP_MAXABS_64F
#define MUPP_MAXABS_64F (1.7976931348623158e+308)
Largest positive 64-bit floating point value.
7.3.2.22 MUPP_MIN_16S
#define MUPP_MIN_16S (-32767 - 1)
Minimum 16-bit signed integer.
7.3.2.23 MUPP_MIN_16U
#define MUPP_MIN_16U (0)
Minimum 16-bit unsigned integer.
7.3.2.24 MUPP_MIN_32S
#define MUPP_MIN_32S (-2147483647 - 1)
Minimum 32-bit signed integer.
7.3.2.25 MUPP_MIN_32U
#define MUPP_MIN_32U (0)
Minimum 32-bit unsigned integer.
7.3.2.26 MUPP_MIN_64S
#define MUPP_MIN_64S (-9223372036854775807LL - 1)
Minimum 64-bit signed integer.
7.3.2.27 MUPP_MIN_64U
#define MUPP_MIN_64U (0)
Minimum 64-bit unsigned integer.
7.3.2.28 MUPP_MIN_8S
#define MUPP_MIN_8S (-127 - 1)
Minimum 8-bit signed integer.
7.3.2.29 MUPP_MIN_8U
#define MUPP_MIN_8U (0)
Minimum 8-bit unsigned integer.
7.3.2.30 MUPP_MINABS_32F
#define MUPP_MINABS_32F (1.175494351e-38f)
Smallest positive 32-bit floating point value.
7.3.2.31 MUPP_MINABS_64F
#define MUPP_MINABS_64F (2.2250738585072014e-308)
Smallest positive 64-bit floating point value.
7.3.3 Typedef Documentation
7.3.3.1 MUpp16s
typedef short MUpp16s
16-bit signed integers.
7.3.3.2 MUpp16u
typedef unsigned short MUpp16u
16-bit unsigned integers.
7.3.3.3 MUpp32f
typedef float MUpp32f
32-bit (IEEE) floating-point numbers.
7.3.3.4 MUpp32fc
typedef struct MUPP_ALIGN_8 MUpp32fc
This struct represents a single floating-point complex number.
7.3.3.5 MUpp32s
typedef int MUpp32s
32-bit signed integers.
7.3.3.6 MUpp32sc
typedef struct MUPP_ALIGN_8 MUpp32sc
This struct represents a signed int complex number.
7.3.3.7 MUpp32u
typedef unsigned int MUpp32u
32-bit unsigned integers.
7.3.3.8 MUpp32uc
typedef struct MUPP_ALIGN_8 MUpp32uc
This struct represents an unsigned int complex number.
7.3.3.9 MUpp64f
typedef double MUpp64f
64-bit floating-point numbers.
7.3.3.10 MUpp64fc
typedef struct MUPP_ALIGN_16 MUpp64fc
This struct represents a double floating-point complex number.
7.3.3.11 MUpp64s
typedef long long MUpp64s
64-bit signed integers.
7.3.3.12 MUpp64sc
typedef struct MUPP_ALIGN_16 MUpp64sc
This struct represents a long long complex number.
7.3.3.13 MUpp64u
typedef unsigned long long MUpp64u
64-bit unsigned integers.
7.3.3.14 MUpp8s
typedef signed char MUpp8s
8-bit signed chars.
7.3.3.15 MUpp8u
typedef unsigned char MUpp8u
8-bit unsigned chars.
7.3.4 Enumeration Type Documentation
7.3.4.1 MUppiAlphaOp
enum MUppiAlphaOp
Alpha composition controls.
7.3.4.2 MUppiHuffmanTableType
enum MUppiHuffmanTableType
Enumerator
muppiDCTable DC Table.
muppiACTable AC Table.
7.3.4.3 MUppiNorm
enum MUppiNorm
Currently only used by Normalize functions.
Enumerator
muppiNormMinMax MinMax.
muppiNormInf Maximum.
muppiNormL1 Sum.
muppiNormL2 The square root of the sum of squares.
7.3.4.4 MUppiWatershedSegmentBoundaryType
enum MUppiWatershedSegmentBoundaryType
Provides control of the type of segment boundaries, if any, added to the image generated by the watershed seg- mentation function.
7.3.4.5 MUppRoundMode
enum MUppRoundMode
Indicates rounding modes.
A large number of MUPP primitives use enumerated rounding modes to enable developers to specify how fractional values are converted to integer values. See also Rounding modes.
For MUPP version 1.0, new names for the three rounding modes are introduced that are based on the IEEE-754 floating-point standard's naming standards for rounding modes. The old names will be deprecated in the subsequent MUPP versions, therefore you should adopt the new, lengthier names to ensure your code is future-proof.
Enumerator
MUPP_RND_NEAR Round to the nearest integer. All fractional numbers
are rounded to their nearest integer. The ambiguous
cases (i.e.<integer>.5) are rounded to the closest
even integer. Such as:
- roundNear(0.5) = 0
- roundNear(0.6) = 1
- roundNear(1.5) = 2
- roundNear(-1.5) = -2
MUPP_ROUND_NEAREST_TIES_TO_EVEN Alias name for MUPP_RND_NEAR.
MUPP_RND_FINANCIAL Round according to financial rule. All fractional
numbers are rounded to their nearest integer. The
ambiguous cases (i.e.<integer>.5) are rounded
away from zero. Such as:
- roundFinancial(0.4) = 0
- roundFinancial(0.5) = 1
- roundFinancial(-1.5) = -2
Enumerator
MUPP_ROUND_NEAREST_TIES_AWAY_FROM_←-
ZERO
Alias name for MUPP_RND_FINANCIAL.
MUPP_RND_ZERO Round towards zero (truncation). All fractional
numbers of the form<integer>.<decimals>are
truncated to<integer>. Such as:
- roundZero(1.5) = 1
- roundZero(1.9) = 1
- roundZero(-2.5) = -2
MUPP_ROUND_TOWARD_ZERO Alias name for MUPP_RND_ZERO.
7.3.4.6 MUppsZCType
enum MUppsZCType
Enumerator
muppZCR Sign change.
muppZCXor Sign change XOR.
muppZCC Sign change
count_0.
7.3.5 Function Documentation
7.3.5.1 align()[1/2]
struct __align__ (
2 )
This struct represents an unsigned char complex number. Real part of the complex number.
Imaginary part of the complex number.
7.3.5.2 align()[2/2]
struct __align__ (
4 )
This struct represents an unsigned short complex number.
This struct represents a short complex number. Real part of the complex number.
Imaginary part of the complex number.
Real part of the complex number.
Imaginary part of the complex number.
7.4 Image Arithmetic and Logical Operations
Modules
- Arithmetic Operations
- Logical Operations
- Alpha Composition
7.4.1 Detailed Description
Arithmetic and logical functions can be found in the muppial library. Linking to only the sub-libraries that contain functions that your application uses can improve load time and MUSA runtime startup performance.
7.5 Arithmetic Operations
Modules
- AddC
- SubC
- DivC
- Mul
7.5.1 Detailed Description
Arithmetic operations for image processing in the library.
7.6 AddC
Functions
- MUppStatus muppiAddC_32f_C1R (const MUpp32f∗pSrc1, int nSrc1Step, const MUpp32f nConstant, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiAddC_32f_C3R (const MUpp32f∗pSrc1, int nSrc1Step, const MUpp32f aConstants[3], MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiAddC_32f_C1IR (const MUpp32f nConstant, MUpp32f ∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
- MUppStatus muppiAddC_32f_C3IR (const MUpp32f aConstants[3], MUpp32f∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
7.6.1 Detailed Description
Adds a constant value to each pixel of an image.
7.6.2 Function Documentation
7.6.2.1 muppiAddC_32f_C1IR()
MUppStatus muppiAddC_32f_C1IR ( const MUpp32fnConstant, MUpp32f ∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI)
Adds a constant value to one 32-bit floating point channel inplace image.
Parameters
nConstant A constant.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.6.2.2 muppiAddC_32f_C1R()
MUppStatus muppiAddC_32f_C1R ( const MUpp32f∗pSrc1, intnSrc1Step, const MUpp32fnConstant, MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Adds a constant value to a one 32-bit floating point channel image.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant A constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.6.2.3 muppiAddC_32f_C3IR()
MUppStatus muppiAddC_32f_C3IR ( const MUpp32faConstants[3], MUpp32f ∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI)
Adds a constant value to three 32-bit floating point channel inplace image.
Parameters
aConstants A fixed-size array of constant values, one for each channel.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.6.2.4 muppiAddC_32f_C3R()
MUppStatus muppiAddC_32f_C3R ( const MUpp32f∗pSrc1, intnSrc1Step, const MUpp32faConstants[3], MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Adds a constant value to a three 32-bit floating point channel image.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.7 SubC
Functions
- MUppStatus muppiSubC_32f_C1R (const MUpp32f∗pSrc1, int nSrc1Step, const MUpp32f nConstant, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiSubC_32f_C1IR (const MUpp32f nConstant, MUpp32f ∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
- MUppStatus muppiSubC_32f_C3R (const MUpp32f∗pSrc1, int nSrc1Step, const MUpp32f aConstants[3], MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiSubC_32f_C3IR (const MUpp32f aConstants[3], MUpp32f∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
7.7.1 Detailed Description
Subtracts a constant value from each pixel of an image.
7.7.2 Function Documentation
7.7.2.1 muppiSubC_32f_C1IR()
MUppStatus muppiSubC_32f_C1IR ( const MUpp32fnConstant, MUpp32f ∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI)
Subtracts a constant value from one 32-bit floating point channel inplace image.
Parameters
nConstant A constant.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.7.2.2 muppiSubC_32f_C1R()
MUppStatus muppiSubC_32f_C1R ( const MUpp32f∗pSrc1, intnSrc1Step, const MUpp32fnConstant, MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Subtracts a constant value from one 32-bit floating point channel image.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant A constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.7.2.3 muppiSubC_32f_C3IR()
MUppStatus muppiSubC_32f_C3IR ( const MUpp32faConstants[3], MUpp32f ∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI)
Subtracts a constant value from three 32-bit floating point channel inplace image.
Parameters
aConstants A fixed-size array of constant values, one for each channel.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.7.2.4 muppiSubC_32f_C3R()
MUppStatus muppiSubC_32f_C3R ( const MUpp32f∗pSrc1, intnSrc1Step, const MUpp32faConstants[3], MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Subtracts a constant value from three 32-bit floating point channel image.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.8 DivC
Functions
- MUppStatus muppiDivC_32f_C1R (const MUpp32f∗pSrc1, int nSrc1Step, const MUpp32f nConstant, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiDivC_32f_C1IR (const MUpp32f nConstant, MUpp32f ∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
- MUppStatus muppiDivC_32f_C3R (const MUpp32f∗pSrc1, int nSrc1Step, const MUpp32f aConstants[3], MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiDivC_32f_C3IR (const MUpp32f aConstants[3], MUpp32f∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
7.8.1 Detailed Description
Divides each pixel of an image by a constant value.
7.8.2 Function Documentation
7.8.2.1 muppiDivC_32f_C1IR()
MUppStatus muppiDivC_32f_C1IR ( const MUpp32fnConstant, MUpp32f ∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI)
One 32-bit floating point channel inplace image divided by a constant.
Parameters
nConstant A constant.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.8.2.2 muppiDivC_32f_C1R()
MUppStatus muppiDivC_32f_C1R ( const MUpp32f∗pSrc1, intnSrc1Step, const MUpp32fnConstant, MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI)
One 32-bit floating point channel image divided by a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant A constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.8.2.3 muppiDivC_32f_C3IR()
MUppStatus muppiDivC_32f_C3IR ( const MUpp32faConstants[3], MUpp32f ∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI)
Three 32-bit floating point channel inplace image divided by a constant.
Parameters
aConstants A fixed-size array of constant values, one for each channel.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.8.2.4 muppiDivC_32f_C3R()
MUppStatus muppiDivC_32f_C3R ( const MUpp32f∗pSrc1, intnSrc1Step, const MUpp32faConstants[3], MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Three 32-bit floating point channel image divided by a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.9 Mul
Functions
- MUppStatus muppiMul_32fc_C1R_Ctx (const MUpp32fc∗pSrc1, int nSrc1Step, const MUpp32fc∗pSrc2, int nSrc2Step, MUpp32fc∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiMul_32fc_C1R (const MUpp32fc∗pSrc1, int nSrc1Step, const MUpp32fc∗pSrc2, int nSrc2Step, MUpp32fc∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiMul_32fc_C1IR_Ctx (const MUpp32fc∗pSrc, int nSrcStep, MUpp32fc∗pSrcDst, int n←- SrcDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiMul_32fc_C1IR (const MUpp32fc∗pSrc, int nSrcStep, MUpp32fc∗pSrcDst, int nSrc←- DstStep, MUppiSize oSizeROI)
- MUppStatus muppiMul_32fc_C3R_Ctx (const MUpp32fc∗pSrc1, int nSrc1Step, const MUpp32fc∗pSrc2, int nSrc2Step, MUpp32fc∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiMul_32fc_C3R (const MUpp32fc∗pSrc1, int nSrc1Step, const MUpp32fc∗pSrc2, int nSrc2Step, MUpp32fc∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiMul_32fc_C3IR_Ctx (const MUpp32fc∗pSrc, int nSrcStep, MUpp32fc∗pSrcDst, int n←- SrcDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiMul_32fc_C3IR (const MUpp32fc∗pSrc, int nSrcStep, MUpp32fc∗pSrcDst, int nSrc←- DstStep, MUppiSize oSizeROI)
- MUppStatus muppiMul_32fc_C4R_Ctx (const MUpp32fc∗pSrc1, int nSrc1Step, const MUpp32fc∗pSrc2, int nSrc2Step, MUpp32fc∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiMul_32fc_C4R (const MUpp32fc∗pSrc1, int nSrc1Step, const MUpp32fc∗pSrc2, int nSrc2Step, MUpp32fc∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiMul_32fc_C4IR_Ctx (const MUpp32fc∗pSrc, int nSrcStep, MUpp32fc∗pSrcDst, int n←- SrcDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiMul_32fc_C4IR (const MUpp32fc∗pSrc, int nSrcStep, MUpp32fc∗pSrcDst, int nSrc←- DstStep, MUppiSize oSizeROI)
7.9.1 Detailed Description
Multiplies two images by pixel.
7.9.2 Function Documentation
7.9.2.1 muppiMul_32fc_C1IR_Ctx()
MUppStatus muppiMul_32fc_C1IR_Ctx ( const MUpp32fc∗pSrc, intnSrcStep, MUpp32fc∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 32-bit floating point complex number (32-bit real, 32-bit imaginary) channel in place image multiplication.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.9.2.2 muppiMul_32fc_C1R_Ctx()
MUppStatus muppiMul_32fc_C1R_Ctx ( const MUpp32fc∗pSrc1, intnSrc1Step, const MUpp32fc∗pSrc2, intnSrc2Step, MUpp32fc∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 32-bit floating point complex number (32-bit real, 32-bit imaginary) channel image multiplication.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.9.2.3 muppiMul_32fc_C3IR_Ctx()
MUppStatus muppiMul_32fc_C3IR_Ctx ( const MUpp32fc∗pSrc,
intnSrcStep,
MUpp32fc∗pSrcDst,
intnSrcDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
Three 32-bit floating point complex number (32-bit real, 32-bit imaginary) channels in place image multiplication.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.9.2.4 muppiMul_32fc_C3R_Ctx()
MUppStatus muppiMul_32fc_C3R_Ctx ( const MUpp32fc∗pSrc1, intnSrc1Step, const MUpp32fc∗pSrc2, intnSrc2Step, MUpp32fc∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 32-bit floating point complex number (32-bit real, 32-bit imaginary) channels image multiplication.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.9.2.5 muppiMul_32fc_C4IR_Ctx()
MUppStatus muppiMul_32fc_C4IR_Ctx ( const MUpp32fc∗pSrc, intnSrcStep, MUpp32fc∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 32-bit floating point complex number (32-bit real, 32-bit imaginary) channels in place image multiplication.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.9.2.6 muppiMul_32fc_C4R_Ctx()
MUppStatus muppiMul_32fc_C4R_Ctx ( const MUpp32fc∗pSrc1, intnSrc1Step, const MUpp32fc∗pSrc2, intnSrc2Step, MUpp32fc∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 32-bit floating point complex number (32-bit real, 32-bit imaginary) channels image multiplication.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
Parameters
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.10 Logical Operations
Modules
- AndC
- OrC
- XorC
- RShiftC
- LShiftC
- And
- Or
- Xor
- Not
7.10.1 Detailed Description
Logical operations for image processing in the library.
7.11 AndC
Functions
-
MUppStatus muppiAndC_8u_C1R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u nConstant, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiAndC_8u_C1R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u nConstant, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiAndC_8u_C3R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiAndC_8u_C3R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiAndC_8u_AC4R_Ctx (const MUpp8u ∗pSrc1, int nSrc1Step, const MUpp8u a←- Constants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiAndC_8u_AC4R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiAndC_8u_C4R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[4], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiAndC_8u_C4R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[4], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiAndC_16u_C1R_Ctx (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u nConstant, MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiAndC_16u_C1R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u nConstant, MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiAndC_16u_C3R_Ctx (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u a←- Constants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiAndC_16u_C3R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u aConstants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiAndC_16u_AC4R_Ctx (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u a←- Constants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiAndC_16u_AC4R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u a←- Constants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiAndC_16u_C4R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u aConstants[4], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiAndC_32s_C1R_Ctx (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s nConstant, MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiAndC_32s_C1R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s nConstant, MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiAndC_32s_C3R_Ctx (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s a←- Constants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiAndC_32s_C3R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s aConstants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiAndC_32s_AC4R_Ctx (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s a←- Constants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiAndC_32s_AC4R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s a←- Constants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiAndC_32s_C4R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s aConstants[4], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
7.11.1 Detailed Description
Performs pixel-by-pixel logical AND operation of an image with a constant.
7.11.2 Function Documentation
7.11.2.1 muppiAndC_16u_AC4R_Ctx()
MUppStatus muppiAndC_16u_AC4R_Ctx ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp16uaConstants[3], MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 16-bit unsigned short channel image logical AND with constant with alpha.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.11.2.2 muppiAndC_16u_C1R_Ctx()
MUppStatus muppiAndC_16u_C1R_Ctx ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp16unConstant, MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 16-bit unsigned short channel image logical AND with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.11.2.3 muppiAndC_16u_C3R_Ctx()
MUppStatus muppiAndC_16u_C3R_Ctx ( const MUpp16u∗pSrc1,
intnSrc1Step,
const MUpp16uaConstants[3],
MUpp16u ∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
Three 16-bit unsigned short channel image logical AND with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.11.2.4 muppiAndC_16u_C4R()
MUppStatus muppiAndC_16u_C4R ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp16uaConstants[4], MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 16-bit unsigned short channel image logical AND with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.11.2.5 muppiAndC_32s_AC4R_Ctx()
MUppStatus muppiAndC_32s_AC4R_Ctx ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32saConstants[3], MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 32-bit signed integer channel image logical AND with a constant with alpha.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.11.2.6 muppiAndC_32s_C1R_Ctx()
MUppStatus muppiAndC_32s_C1R_Ctx ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32snConstant, MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 32-bit signed integer channel image logical AND with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.11.2.7 muppiAndC_32s_C3R_Ctx()
MUppStatus muppiAndC_32s_C3R_Ctx ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32saConstants[3], MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 32-bit signed integer channel image logical AND with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.11.2.8 muppiAndC_32s_C4R()
MUppStatus muppiAndC_32s_C4R ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32saConstants[4], MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 32-bit signed integer channel image logical AND with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
Parameters
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.11.2.9 muppiAndC_8u_AC4R_Ctx()
MUppStatus muppiAndC_8u_AC4R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channel image logical AND with a constant with alpha.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.11.2.10 muppiAndC_8u_C1R_Ctx()
MUppStatus muppiAndC_8u_C1R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u nConstant,
MUpp8u∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
One 8-bit unsigned char channel image logical AND with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.11.2.11 muppiAndC_8u_C3R_Ctx()
MUppStatus muppiAndC_8u_C3R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 8-bit unsigned char channel image logical AND with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.11.2.12 muppiAndC_8u_C4R_Ctx()
MUppStatus muppiAndC_8u_C4R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u aConstants[4], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channel image logical AND with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.12 OrC
Functions
-
MUppStatus muppiOrC_8u_C1R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u nConstant, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiOrC_8u_C1R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u nConstant, MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiOrC_8u_C3R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiOrC_8u_C3R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiOrC_8u_AC4R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiOrC_8u_AC4R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiOrC_8u_C4R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[4], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiOrC_8u_C4R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[4], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiOrC_16u_C1R_Ctx (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u nConstant, MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiOrC_16u_C1R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u nConstant, MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiOrC_16u_C3R_Ctx (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u a←- Constants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiOrC_16u_C3R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u aConstants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiOrC_16u_AC4R_Ctx (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u a←- Constants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiOrC_16u_AC4R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u aConstants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiOrC_16u_C4R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u aConstants[4], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiOrC_32s_C1R_Ctx (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s nConstant, MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiOrC_32s_C1R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s nConstant, MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiOrC_32s_C3R_Ctx (const MUpp32s ∗pSrc1, int nSrc1Step, const MUpp32s a←- Constants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiOrC_32s_C3R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s aConstants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiOrC_32s_AC4R_Ctx (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s a←- Constants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiOrC_32s_AC4R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s aConstants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiOrC_32s_C4R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s aConstants[4], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
7.12.1 Detailed Description
Performs pixel-by-pixel logical OR operation of an image with a constant.
7.12.2 Function Documentation
7.12.2.1 muppiOrC_16u_AC4R_Ctx()
MUppStatus muppiOrC_16u_AC4R_Ctx ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp16uaConstants[3], MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 16-bit unsigned short channel image logical OR with a constant with alpha.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
muPP API v 1.4.0 66
Returns
Image data related error codes, ROI related error codes
7.12.2.2 muppiOrC_16u_C1R_Ctx()
MUppStatus muppiOrC_16u_C1R_Ctx ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp16unConstant, MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 16-bit unsigned short channel image logical OR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.12.2.3 muppiOrC_16u_C3R_Ctx()
MUppStatus muppiOrC_16u_C3R_Ctx ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp16uaConstants[3], MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 16-bit unsigned short channel image logical OR with a constant.
Parameters
pSrc1 Source-Image pointer.
Parameters
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.12.2.4 muppiOrC_16u_C4R()
MUppStatus muppiOrC_16u_C4R ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp16uaConstants[4], MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 16-bit unsigned short channel image logical OR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.12.2.5 muppiOrC_32s_AC4R_Ctx()
MUppStatus muppiOrC_32s_AC4R_Ctx ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32saConstants[3],
MUpp32s ∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
Four 32-bit signed integer channel image logical OR with a constant with alpha.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.12.2.6 muppiOrC_32s_C1R_Ctx()
MUppStatus muppiOrC_32s_C1R_Ctx ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32snConstant, MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 32-bit signed integer channel image logical OR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.12.2.7 muppiOrC_32s_C3R_Ctx()
MUppStatus muppiOrC_32s_C3R_Ctx ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32saConstants[3], MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 32-bit signed integer channel image logical OR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.12.2.8 muppiOrC_32s_C4R()
MUppStatus muppiOrC_32s_C4R ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32saConstants[4], MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 32-bit signed integer channel image logical OR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.12.2.9 muppiOrC_8u_AC4R_Ctx()
MUppStatus muppiOrC_8u_AC4R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channel image logical OR with a constant with alpha.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.12.2.10 muppiOrC_8u_C1R_Ctx()
MUppStatus muppiOrC_8u_C1R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u nConstant, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 8-bit unsigned char channel image logical OR with a constant.
Parameters
pSrc1 Source-Image pointer.
Parameters
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.12.2.11 muppiOrC_8u_C3R_Ctx()
MUppStatus muppiOrC_8u_C3R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 8-bit unsigned char channel image logical OR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.12.2.12 muppiOrC_8u_C4R_Ctx()
MUppStatus muppiOrC_8u_C4R_Ctx ( const MUpp8u ∗pSrc1,
intnSrc1Step,
const MUpp8u aConstants[4],
MUpp8u∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channel image logical OR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.13 XorC
Functions
-
MUppStatus muppiXorC_8u_C1R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u nConstant, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiXorC_8u_C1R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u nConstant, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiXorC_8u_C3R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiXorC_8u_C3R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiXorC_8u_AC4R_Ctx (const MUpp8u ∗pSrc1, int nSrc1Step, const MUpp8u a←- Constants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiXorC_8u_AC4R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiXorC_8u_C4R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[4], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiXorC_8u_C4R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u aConstants[4], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiXorC_16u_C1R_Ctx (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u nConstant, MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiXorC_16u_C1R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u nConstant, MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiXorC_16u_C3R_Ctx (const MUpp16u ∗pSrc1, int nSrc1Step, const MUpp16u a←- Constants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiXorC_16u_C3R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u aConstants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiXorC_16u_AC4R_Ctx (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u a←- Constants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiXorC_16u_AC4R (const MUpp16u ∗pSrc1, int nSrc1Step, const MUpp16u a←- Constants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiXorC_16u_C4R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp16u aConstants[4], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiXorC_32s_C1R_Ctx (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s nConstant, MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiXorC_32s_C1R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s nConstant, MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiXorC_32s_C3R_Ctx (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s a←- Constants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiXorC_32s_C3R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s aConstants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiXorC_32s_AC4R_Ctx (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s a←- Constants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiXorC_32s_AC4R (const MUpp32s ∗pSrc1, int nSrc1Step, const MUpp32s a←- Constants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiXorC_32s_C4R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32s aConstants[4], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
7.13.1 Detailed Description
Performs pixel-by-pixel logical XOR operation of an image with a constant.
7.13.2 Function Documentation
7.13.2.1 muppiXorC_16u_AC4R_Ctx()
MUppStatus muppiXorC_16u_AC4R_Ctx ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp16uaConstants[3], MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 16-bit unsigned short channel image logical XOR with a constant with alpha.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.13.2.2 muppiXorC_16u_C1R_Ctx()
MUppStatus muppiXorC_16u_C1R_Ctx ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp16unConstant, MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 16-bit unsigned short channel image logical XOR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.13.2.3 muppiXorC_16u_C3R_Ctx()
MUppStatus muppiXorC_16u_C3R_Ctx ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp16uaConstants[3], MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 16-bit unsigned short channel image logical XOR with a constant.
Parameters
pSrc1 Source-Image pointer.
Parameters
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.13.2.4 muppiXorC_16u_C4R()
MUppStatus muppiXorC_16u_C4R ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp16uaConstants[4], MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 16-bit unsigned short channel image logical XOR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.13.2.5 muppiXorC_32s_AC4R_Ctx()
MUppStatus muppiXorC_32s_AC4R_Ctx ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32saConstants[3],
MUpp32s ∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
Four 32-bit signed integer channel image logical XOR with a constant with alpha.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.13.2.6 muppiXorC_32s_C1R_Ctx()
MUppStatus muppiXorC_32s_C1R_Ctx ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32snConstant, MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 32-bit signed integer channel image logical XOR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.13.2.7 muppiXorC_32s_C3R_Ctx()
MUppStatus muppiXorC_32s_C3R_Ctx ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32saConstants[3], MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 32-bit signed integer channel image logical XOR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.13.2.8 muppiXorC_32s_C4R()
MUppStatus muppiXorC_32s_C4R ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32saConstants[4], MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 32-bit signed integer channel image logical XOR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.13.2.9 muppiXorC_8u_AC4R_Ctx()
MUppStatus muppiXorC_8u_AC4R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channel image logical XOR with a constant with alpha.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.13.2.10 muppiXorC_8u_C1R_Ctx()
MUppStatus muppiXorC_8u_C1R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u nConstant, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 8-bit unsigned char channel image logical XOR with a constant.
Parameters
pSrc1 Source-Image pointer.
Parameters
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.13.2.11 muppiXorC_8u_C3R_Ctx()
MUppStatus muppiXorC_8u_C3R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u aConstants[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 8-bit unsigned char channel image logical XOR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.13.2.12 muppiXorC_8u_C4R_Ctx()
MUppStatus muppiXorC_8u_C4R_Ctx ( const MUpp8u ∗pSrc1,
intnSrc1Step,
const MUpp8u aConstants[4],
MUpp8u∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channel image logical XOR with a constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.14 RShiftC
Functions
-
MUppStatus muppiRShiftC_8u_C1R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp32u nConstant, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_8u_C3R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp32u aConstants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_8u_C4R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp32u aConstants[4], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_8s_C1R (const MUpp8s∗pSrc1, int nSrc1Step, const MUpp32u nConstant, MUpp8s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_8s_C3R (const MUpp8s∗pSrc1, int nSrc1Step, const MUpp32u aConstants[3], MUpp8s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_8s_C4R (const MUpp8s∗pSrc1, int nSrc1Step, const MUpp32u aConstants[4], MUpp8s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_16u_C1R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp32u nConstant, MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_16u_C3R (const MUpp16u ∗pSrc1, int nSrc1Step, const MUpp32u a←- Constants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_16u_C4R (const MUpp16u ∗pSrc1, int nSrc1Step, const MUpp32u a←- Constants[4], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_16s_C1R (const MUpp16s∗pSrc1, int nSrc1Step, const MUpp32u nConstant, MUpp16s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_16s_C3R (const MUpp16s ∗pSrc1, int nSrc1Step, const MUpp32u a←- Constants[3], MUpp16s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_16s_C4R (const MUpp16s ∗pSrc1, int nSrc1Step, const MUpp32u a←- Constants[4], MUpp16s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_32s_C1R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32u nConstant, MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_32s_C3R (const MUpp32s ∗pSrc1, int nSrc1Step, const MUpp32u a←- Constants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRShiftC_32s_C4R (const MUpp32s ∗pSrc1, int nSrc1Step, const MUpp32u a←- Constants[4], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
7.14.1 Detailed Description
Shifts an image in pixel values to the right.
7.14.2 Function Documentation
7.14.2.1 muppiRShiftC_16s_C1R()
MUppStatus muppiRShiftC_16s_C1R ( const MUpp16s∗pSrc1, intnSrc1Step, const MUpp32unConstant, MUpp16s ∗pDst, intnDstStep, MUppiSizeoSizeROI)
One 16-bit signed short channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.14.2.2 muppiRShiftC_16s_C3R()
MUppStatus muppiRShiftC_16s_C3R ( const MUpp16s∗pSrc1, intnSrc1Step,
const MUpp32uaConstants[3],
MUpp16s ∗pDst,
intnDstStep,
MUppiSizeoSizeROI)
Three 16-bit signed short channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.14.2.3 muppiRShiftC_16s_C4R()
MUppStatus muppiRShiftC_16s_C4R ( const MUpp16s∗pSrc1, intnSrc1Step, const MUpp32uaConstants[4], MUpp16s ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 16-bit signed short channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.14.2.4 muppiRShiftC_16u_C1R()
MUppStatus muppiRShiftC_16u_C1R ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp32unConstant, MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI)
One 16-bit unsigned short channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.14.2.5 muppiRShiftC_16u_C3R()
MUppStatus muppiRShiftC_16u_C3R ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp32uaConstants[3], MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Three 16-bit unsigned short channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.14.2.6 muppiRShiftC_16u_C4R()
MUppStatus muppiRShiftC_16u_C4R ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp32uaConstants[4], MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 16-bit unsigned short channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.14.2.7 muppiRShiftC_32s_C1R()
MUppStatus muppiRShiftC_32s_C1R ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32unConstant, MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI)
One 32-bit signed integer channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
muPP API v 1.4.0oSizeROI Region-of-Interest (ROI). 85
Returns
Image data related error codes, ROI related error codes
7.14.2.8 muppiRShiftC_32s_C3R()
MUppStatus muppiRShiftC_32s_C3R ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32uaConstants[3], MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Three 32-bit signed integer channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.14.2.9 muppiRShiftC_32s_C4R()
MUppStatus muppiRShiftC_32s_C4R ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32uaConstants[4], MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 32-bit signed integer channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muPP API v 1.4.0 86
Returns
Image data related error codes, ROI related error codes
7.14.2.10 muppiRShiftC_8s_C1R()
MUppStatus muppiRShiftC_8s_C1R ( const MUpp8s ∗pSrc1, intnSrc1Step, const MUpp32unConstant, MUpp8s∗pDst, intnDstStep, MUppiSizeoSizeROI)
One 8-bit signed char channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.14.2.11 muppiRShiftC_8s_C3R()
MUppStatus muppiRShiftC_8s_C3R ( const MUpp8s ∗pSrc1, intnSrc1Step, const MUpp32uaConstants[3], MUpp8s∗pDst, intnDstStep, MUppiSizeoSizeROI)
Three 8-bit signed char channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
muPP API v 1.4.0oSizeROI Region-of-Interest (ROI). 87
Returns
Image data related error codes, ROI related error codes
7.14.2.12 muppiRShiftC_8s_C4R()
MUppStatus muppiRShiftC_8s_C4R ( const MUpp8s ∗pSrc1, intnSrc1Step, const MUpp32uaConstants[4], MUpp8s∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 8-bit signed char channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.14.2.13 muppiRShiftC_8u_C1R()
MUppStatus muppiRShiftC_8u_C1R ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp32unConstant, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI)
One 8-bit unsigned char channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
muPP API v 1.4.0oSizeROI Region-of-Interest (ROI). 88
Returns
Image data related error codes, ROI related error codes
7.14.2.14 muppiRShiftC_8u_C3R()
MUppStatus muppiRShiftC_8u_C3R ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp32uaConstants[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI)
Three 8-bit unsigned char channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.14.2.15 muppiRShiftC_8u_C4R()
MUppStatus muppiRShiftC_8u_C4R ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp32uaConstants[4], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 8-bit unsigned char channel image right shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muPP API v 1.4.0 89
Returns
Image data related error codes, ROI related error codes
7.15 LShiftC
Functions
- MUppStatus muppiLShiftC_8u_C1R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp32u nConstant, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiLShiftC_8u_C3R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp32u aConstants[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiLShiftC_8u_C4R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp32u aConstants[4], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiLShiftC_16u_C1R (const MUpp16u∗pSrc1, int nSrc1Step, const MUpp32u nConstant, MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiLShiftC_16u_C3R (const MUpp16u ∗pSrc1, int nSrc1Step, const MUpp32u a←- Constants[3], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiLShiftC_16u_C4R (const MUpp16u ∗pSrc1, int nSrc1Step, const MUpp32u a←- Constants[4], MUpp16u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiLShiftC_32s_C1R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32u nConstant, MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiLShiftC_32s_C3R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32u aConstants[3], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiLShiftC_32s_C4R (const MUpp32s∗pSrc1, int nSrc1Step, const MUpp32u aConstants[4], MUpp32s∗pDst, int nDstStep, MUppiSize oSizeROI)
7.15.1 Detailed Description
Shifts an image in pixel values to the left.
7.15.2 Function Documentation
7.15.2.1 muppiLShiftC_16u_C1R()
MUppStatus muppiLShiftC_16u_C1R ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp32unConstant, MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI)
One 16-bit unsigned short channel image left shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muPP API v 1.4.0 90
Returns
Image data related error codes, ROI related error codes
7.15.2.2 muppiLShiftC_16u_C3R()
MUppStatus muppiLShiftC_16u_C3R ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp32uaConstants[3], MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Three 16-bit unsigned short channel image left shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.15.2.3 muppiLShiftC_16u_C4R()
MUppStatus muppiLShiftC_16u_C4R ( const MUpp16u∗pSrc1, intnSrc1Step, const MUpp32uaConstants[4], MUpp16u ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 16-bit unsigned short channel image left shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muPP API v 1.4.0 91
Returns
Image data related error codes, ROI related error codes
7.15.2.4 muppiLShiftC_32s_C1R()
MUppStatus muppiLShiftC_32s_C1R ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32unConstant, MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI)
One 32-bit signed integer channel image left shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.15.2.5 muppiLShiftC_32s_C3R()
MUppStatus muppiLShiftC_32s_C3R ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32uaConstants[3], MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Three 32-bit signed integer channel image left shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
muPP API v 1.4.0oSizeROI Region-of-Interest (ROI). 92
Returns
Image data related error codes, ROI related error codes
7.15.2.6 muppiLShiftC_32s_C4R()
MUppStatus muppiLShiftC_32s_C4R ( const MUpp32s∗pSrc1, intnSrc1Step, const MUpp32uaConstants[4], MUpp32s ∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 32-bit signed integer channel image left shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.15.2.7 muppiLShiftC_8u_C1R()
MUppStatus muppiLShiftC_8u_C1R ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp32unConstant, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI)
One 8-bit unsigned char channel image left shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
nConstant Constant.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
muPP API v 1.4.0oSizeROI Region-of-Interest (ROI). 93
Returns
Image data related error codes, ROI related error codes
7.15.2.8 muppiLShiftC_8u_C3R()
MUppStatus muppiLShiftC_8u_C3R ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp32uaConstants[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI)
Three 8-bit unsigned char channel image left shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.15.2.9 muppiLShiftC_8u_C4R()
MUppStatus muppiLShiftC_8u_C4R ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp32uaConstants[4], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI)
Four 8-bit unsigned char channel image left shifts by constant.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
aConstants A fixed-size array of constant values, one for each channel.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muPP API v 1.4.0 94
Returns
Image data related error codes, ROI related error codes
7.16 And
Functions
- MUppStatus muppiAnd_8u_C1R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int n←- Src2Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiAnd_8u_C1R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int nSrc2←- Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiAnd_8u_C1IR_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiAnd_8u_C1IR (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
- MUppStatus muppiAnd_8u_C3R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int n←- Src2Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiAnd_8u_C3R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int nSrc2←- Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiAnd_8u_C3IR_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiAnd_8u_C3IR (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
- MUppStatus muppiAnd_8u_C4R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int n←- Src2Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiAnd_8u_C4R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int nSrc2←- Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiAnd_8u_C4IR_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiAnd_8u_C4IR (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
7.16.1 Detailed Description
Logical AND of images by pixel.
7.16.2 Function Documentation
7.16.2.1 muppiAnd_8u_C1IR_Ctx()
MUppStatus muppiAnd_8u_C1IR_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 8-bit unsigned char channel in place image logical AND.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.16.2.2 muppiAnd_8u_C1R_Ctx()
MUppStatus muppiAnd_8u_C1R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u ∗pSrc2, intnSrc2Step, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 8-bit unsigned char channel image logical AND.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.16.2.3 muppiAnd_8u_C3IR_Ctx()
MUppStatus muppiAnd_8u_C3IR_Ctx ( const MUpp8u ∗pSrc,
intnSrcStep,
MUpp8u∗pSrcDst,
intnSrcDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
Three 8-bit unsigned char channels in place image logical AND.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.16.2.4 muppiAnd_8u_C3R_Ctx()
MUppStatus muppiAnd_8u_C3R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u ∗pSrc2, intnSrc2Step, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 8-bit unsigned char channels image logical AND.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.16.2.5 muppiAnd_8u_C4IR_Ctx()
MUppStatus muppiAnd_8u_C4IR_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channels in place image logical AND.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.16.2.6 muppiAnd_8u_C4R_Ctx()
MUppStatus muppiAnd_8u_C4R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u ∗pSrc2, intnSrc2Step, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channels image logical AND.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
Parameters
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.17 Or
Functions
- MUppStatus muppiOr_8u_C1R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int n←- Src2Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiOr_8u_C1R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int nSrc2←- Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiOr_8u_C1IR_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiOr_8u_C1IR (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
- MUppStatus muppiOr_8u_C3R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int n←- Src2Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiOr_8u_C3R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int nSrc2←- Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiOr_8u_C3IR_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiOr_8u_C3IR (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
- MUppStatus muppiOr_8u_C4R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int n←- Src2Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiOr_8u_C4R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int nSrc2←- Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiOr_8u_C4IR_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiOr_8u_C4IR (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
7.17.1 Detailed Description
Logical OR of images by pixel.
7.17.2 Function Documentation
7.17.2.1 muppiOr_8u_C1IR_Ctx()
MUppStatus muppiOr_8u_C1IR_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 8-bit unsigned char channel in place image logical OR.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.17.2.2 muppiOr_8u_C1R_Ctx()
MUppStatus muppiOr_8u_C1R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u ∗pSrc2, intnSrc2Step, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 8-bit unsigned char channel image logical OR.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.17.2.3 muppiOr_8u_C3IR_Ctx()
MUppStatus muppiOr_8u_C3IR_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 8-bit unsigned char channels in place image logical OR.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.17.2.4 muppiOr_8u_C3R_Ctx()
MUppStatus muppiOr_8u_C3R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u ∗pSrc2, intnSrc2Step, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 8-bit unsigned char channels image logical OR.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
Parameters
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.17.2.5 muppiOr_8u_C4IR_Ctx()
MUppStatus muppiOr_8u_C4IR_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channels in place image logical OR.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.17.2.6 muppiOr_8u_C4R_Ctx()
MUppStatus muppiOr_8u_C4R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u ∗pSrc2,
intnSrc2Step,
MUpp8u∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channels image logical OR.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.18 Xor
Functions
- MUppStatus muppiXor_8u_C1R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int n←- Src2Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiXor_8u_C1R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int nSrc2←- Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiXor_8u_C1IR_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiXor_8u_C1IR (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
- MUppStatus muppiXor_8u_C3R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int n←- Src2Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiXor_8u_C3R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int nSrc2←- Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiXor_8u_C3IR_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiXor_8u_C3IR (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
- MUppStatus muppiXor_8u_C4R_Ctx (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int n←- Src2Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiXor_8u_C4R (const MUpp8u∗pSrc1, int nSrc1Step, const MUpp8u∗pSrc2, int nSrc2←- Step, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiXor_8u_C4IR_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiXor_8u_C4IR (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
7.18.1 Detailed Description
Logical XOR(exclusive or) of images by pixel.
7.18.2 Function Documentation
7.18.2.1 muppiXor_8u_C1IR_Ctx()
MUppStatus muppiXor_8u_C1IR_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 8-bit unsigned char channel in place image logical XOR.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.18.2.2 muppiXor_8u_C1R_Ctx()
MUppStatus muppiXor_8u_C1R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u ∗pSrc2, intnSrc2Step, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 8-bit unsigned char channel image logical XOR.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.18.2.3 muppiXor_8u_C3IR_Ctx()
MUppStatus muppiXor_8u_C3IR_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 8-bit unsigned char channels in place image logical XOR.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.18.2.4 muppiXor_8u_C3R_Ctx()
MUppStatus muppiXor_8u_C3R_Ctx ( const MUpp8u ∗pSrc1,
intnSrc1Step,
const MUpp8u ∗pSrc2,
intnSrc2Step,
MUpp8u∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
Three 8-bit unsigned char channels image logical XOR.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.18.2.5 muppiXor_8u_C4IR_Ctx()
MUppStatus muppiXor_8u_C4IR_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channels in place image logical XOR.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.18.2.6 muppiXor_8u_C4R_Ctx()
MUppStatus muppiXor_8u_C4R_Ctx ( const MUpp8u ∗pSrc1, intnSrc1Step, const MUpp8u ∗pSrc2, intnSrc2Step, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channels image logical XOR.
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.19 Not
Functions
-
MUppStatus muppiNot_8u_C1R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiNot_8u_C1R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiNot_8u_C1IR_Ctx (MUpp8u ∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiNot_8u_C1IR (MUpp8u∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiNot_8u_C3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiNot_8u_C3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiNot_8u_C3IR_Ctx (MUpp8u ∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiNot_8u_C3IR (MUpp8u∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiNot_8u_C4R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiNot_8u_C4R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiNot_8u_C4IR_Ctx (MUpp8u ∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiNot_8u_C4IR (MUpp8u∗pSrcDst, int nSrcDstStep, MUppiSize oSizeROI)
7.19.1 Detailed Description
Logical NOT of image by pixel.
7.19.2 Function Documentation
7.19.2.1 muppiNot_8u_C1IR_Ctx()
MUppStatus muppiNot_8u_C1IR_Ctx ( MUpp8u∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
One 8-bit unsigned char channel in place image logical NOT.
Parameters
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.19.2.2 muppiNot_8u_C1R_Ctx()
MUppStatus muppiNot_8u_C1R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep,
MUpp8u∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
One 8-bit unsigned char channel image logical NOT.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.19.2.3 muppiNot_8u_C3IR_Ctx()
MUppStatus muppiNot_8u_C3IR_Ctx ( MUpp8u∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Three 8-bit unsigned char channels in place image logical NOT.
Parameters
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.19.2.4 muppiNot_8u_C3R_Ctx()
MUppStatus muppiNot_8u_C3R_Ctx ( const MUpp8u ∗pSrc,
intnSrcStep,
MUpp8u∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
Three 8-bit unsigned char channels image logical NOT.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.19.2.5 muppiNot_8u_C4IR_Ctx()
MUppStatus muppiNot_8u_C4IR_Ctx ( MUpp8u∗pSrcDst, intnSrcDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channels in place image logical NOT.
Parameters
pSrcDst In-Place image pointer.
nSrcDstStep In-Place-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.19.2.6 muppiNot_8u_C4R_Ctx()
MUppStatus muppiNot_8u_C4R_Ctx ( const MUpp8u ∗pSrc,
intnSrcStep,
MUpp8u ∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
Four 8-bit unsigned char channels image logical NOT.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.20 Alpha Composition
Modules
- AlphaComp
7.20.1 Detailed Description
Alpha composition operations available in the library.
7.21 AlphaComp
Functions
- MUppStatus muppiAlphaComp_32f_AC1R (const MUpp32f∗pSrc1, int nSrc1Step, const MUpp32f∗pSrc2, int nSrc2Step, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI, MUppiAlphaOp eAlphaOp)
- MUppStatus muppiAlphaComp_32f_AC4R (const MUpp32f∗pSrc1, int nSrc1Step, const MUpp32f∗pSrc2, int nSrc2Step, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI, MUppiAlphaOp eAlphaOp)
7.21.1 Detailed Description
Uses the alpha opacity values included in each image to composite two images.
7.21.2 Function Documentation
7.21.2.1 muppiAlphaComp_32f_AC1R()
MUppStatus muppiAlphaComp_32f_AC1R ( const MUpp32f∗pSrc1, intnSrc1Step, const MUpp32f∗pSrc2, intnSrc2Step, MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppiAlphaOp eAlphaOp)
A composition for one 32-bit floating point channel image using image alpha values (0.0 - 1.0).
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
eAlphaOp alpha-blending operation.
Returns
Image data related error codes, ROI related error codes
7.21.2.2 muppiAlphaComp_32f_AC4R()
MUppStatus muppiAlphaComp_32f_AC4R ( const MUpp32f∗pSrc1, intnSrc1Step, const MUpp32f∗pSrc2, intnSrc2Step, MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppiAlphaOp eAlphaOp)
A composition for four 32-bit floating point channel image using image alpha values (0.0 - 1.0).
Parameters
pSrc1 Source-Image pointer.
nSrc1Step Source-Image line steps.
pSrc2 Source-Image pointer.
nSrc2Step Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
eAlphaOp alpha-blending operation..
Returns
Image data related error codes, ROI related error codes
7.22 Color and Sampling Conversion
Modules
- Color Model Conversion
- ColorToGray Conversion
- ColorDebayer
- Color Sampling Format
- Color Gamma Correction
- Complement Color Key
- Color Processing
7.22.1 Detailed Description
Routines manipulating an image's color model and sampling format.
These functions can be found in the muppicc library. Linking to only the sub-libraries that you use can significantly save link time, application load time, and MUSA runtime startup time when using dynamic libraries.
7.23 Color Model Conversion
Modules
-
RGBToRGBA
-
RGBAToRGB
-
RGBToYUV
-
BGRToYUV
-
YUVToRGB
-
YUVToRGBBatch
-
YUVToRGBBatchAdvanced
-
YUVToBGR
-
YUVToBGRBatch
-
YUVToBGRBatchAdvanced
-
RGBToYUV422
-
YUV422ToRGB
-
YUV422ToRGBBatch
-
YUV422ToRGBBatchAdvanced
-
YUV422ToBGRBatch
-
YUV422ToBGRBatchAdvanced
-
RGBToYUV420
-
YUV420ToRGB
-
YUV420ToRGBBatch
-
YUV420ToRGBBatchAdvanced
-
NV12ToRGB
-
RGBToNV12
-
NV21ToRGB
-
BGRToYUV420
-
YUV420ToBGR
-
YUV420ToBGRBatch
-
YUV420ToBGRBatchAdvanced
-
NV12ToBGR
-
BGRToNV12
-
NV21ToBGR
-
RGBToYCbCr
-
YCbCrToRGB
-
YCbCrToRGBBatch
-
YCbCrToRGBBatchAdvanced
-
YCbCrToBGR
-
YCbCrToBGRBatch
-
YCbCrToBGRBatchAdvanced
-
YCbCrToBGR_709CSC
-
RGBToYCbCr422
-
YCbCr422ToRGB
-
YCbCr422ToRGBBatch
-
YCbCr422ToRGBBatchAdvanced
-
RGBToYCrCb422
-
YCrCb422ToRGB
-
BGRToYCbCr422
-
YCbCr422ToBGR
-
YCbCr422ToBGRBatch
-
YCbCr422ToBGRBatchAdvanced
-
RGBToCbYCr422
-
CbYCr422ToRGB
-
BGRToCbYCr422
-
BGRToCbYCr422_709HDTV
-
CbYCr422ToBGR
-
CbYCr422ToBGR_709HDTV
-
RGBToYCbCr420
-
YCbCr420ToRGB
-
YCbCr420ToRGBBatch
-
YCbCr420ToRGBBatchAdvanced
-
RGBToYCrCb420
-
YCrCb420ToRGB
-
BGRToYCbCr420
-
BGRToYCbCr420_709CSC
-
BGRToYCbCr420_709HDTV
-
BGRToYCrCb420_709CSC
-
YCbCr420ToBGR
-
YCbCr420ToBGRBatch
-
YCbCr420ToBGRBatchAdvanced
-
YCbCr420ToBGR_709CSC
-
YCbCr420ToBGR_709HDTV
-
BGRToYCrCb420
-
BGRToYCbCr411
-
RGBToYCbCr411
-
BGRToYCbCr
-
YCbCr411ToBGR
-
YCbCr411ToRGB
-
RGBToXYZ
-
XYZToRGB
-
RGBToLUV
-
LUVToRGB
-
BGRToLab
-
LabToBGR
-
RGBToYCC
-
YCCToRGB
-
YCCKToCMYK_JPEG
-
CMYK_OR_YCCK_JPEG_TO_RGB
-
CMYK_OR_YCCK_JPEG_TO_BGR
-
RGBToHLS
-
HLSToRGB
-
BGRToHLS
-
HLSToBGR
-
RGBToHSV
-
HSVToRGB
-
JPEG Color Conversion
7.23.1 Detailed Description
Routines for converting between various image color models.
7.24 RGBToRGBA
Functions
- MUppStatus muppiRGBToRGBA_8u_C3C4R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDst←- Step, MUppiSize oSizeROI)
- MUppStatus muppiRGBToRGBA_8u_C3C4R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBToRGBA_32f_C3C4R (const MUpp32f∗pSrc, int nSrcStep, MUpp32f∗pDst, int n←- DstStep, MUppiSize oSizeROI)
- MUppStatus muppiRGBToRGBA_32f_C3C4R_Ctx (const MUpp32f∗pSrc, int nSrcStep, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
7.24.1 Detailed Description
RGB to RGBA conversion.
Convert a packed 3 channel RGB image to a packed 4 channel RGBA image. The alpha channel is set with 255 for 8-bit unsigned char or 1.0 for 32-bit float32. The order of RGB keeps unchanged, simply adding an alpha channel, which means this API may be used to convert BGR to BGRA.
7.24.2 Function Documentation
7.24.2.1 muppiRGBToRGBA_32f_C3C4R()
MUppStatus muppiRGBToRGBA_32f_C3C4R ( const MUpp32f∗pSrc, intnSrcStep, MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI)
3 channel 32-bit float packed RGB to 4 channel 32-bit float packed RGBA conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
MUppStatus Image data related error codes, ROI related error codes
7.24.2.2 muppiRGBToRGBA_8u_C3C4R()
MUppStatus muppiRGBToRGBA_8u_C3C4R ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI)
3 channel 8-bit unsigned packed RGB to 4 channel 8-bit unsigned packed RGBA conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
MUppStatus Image data related error codes, ROI related error codes
7.25 RGBAToRGB
Functions
- MUppStatus muppiRGBAToRGB_8u_C4C3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDst←- Step, MUppiSize oSizeROI)
- MUppStatus muppiRGBAToRGB_8u_C4C3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBAToRGB_32f_C4C3R (const MUpp32f∗pSrc, int nSrcStep, MUpp32f∗pDst, int n←- DstStep, MUppiSize oSizeROI)
- MUppStatus muppiRGBAToRGB_32f_C4C3R_Ctx (const MUpp32f∗pSrc, int nSrcStep, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
7.25.1 Detailed Description
Convert a packed 4 channel RGBA image to a packed 3 channel RGB image. The alpha channel is abandoned. The order of RGB keeps unchanged, which means this API may be used to convert BGRA to BGR.
7.25.2 Function Documentation
7.25.2.1 muppiRGBAToRGB_32f_C4C3R()
MUppStatus muppiRGBAToRGB_32f_C4C3R ( const MUpp32f∗pSrc, intnSrcStep, MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI)
4 channel 32-bit float packed RGBA to 3 channel 32-bit float packed RGB conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
MUppStatus Image data related error codes, ROI related error codes
7.25.2.2 muppiRGBAToRGB_8u_C4C3R()
MUppStatus muppiRGBAToRGB_8u_C4C3R ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI)
4 channel 8-bit unsigned packed RGBA to 3 channel 8-bit unsigned packed RGB conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
MUppStatus Image data related error codes, ROI related error codes
7.26 RGBToYUV
Functions
-
MUppStatus muppiRGBToYUV_8u_C3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiRGBToYUV_8u_C3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRGBToYUV_32f_C3R (const MUpp32f∗pSrc, int nSrcStep, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRGBToYUV_32f_C3R_Ctx (const MUpp32f∗pSrc, int nSrcStep, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiRGBToYUV_8u_AC4R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int n←- DstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiRGBToYUV_8u_AC4R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDst←- Step, MUppiSize oSizeROI)
-
MUppStatus muppiRGBToYUV_8u_P3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiRGBToYUV_8u_P3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRGBToYUV_8u_C3P3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiRGBToYUV_8u_C3P3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int n←- DstStep, MUppiSize oSizeROI)
-
MUppStatus muppiRGBToYUV_8u_AC4P4R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[4], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiRGBToYUV_8u_AC4P4R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[4], int nDstStep, MUppiSize oSizeROI)
7.26.1 Detailed Description
RGB to YUV color conversion.
Here is how MUPP converts gamma corrected RGB or BGR to YUV. For digital RGB values in the range [0..255], Y has the range [0..255], U varies in the range [-112..+112], and V in the range [-157..+157]. To fit in the range of [0..255], a constant value of 128 is added to computed U and V values, and V is then saturated. // For MUpp8u data MUpp32f nY = 0.299FR + 0.587FG + 0.114FB; MUpp32f nU = (0.492F((MUpp32f)nB - nY)) + 128.0F; MUpp32f nV = (0.877F*((MUpp32f)nR - nY)) + 128.0F; if (nV > 255.0F) nV = 255.0F; // For MUpp32f data(normalized to [0,1]) MUpp32f nY = 0.299FR + 0.587FG + 0.114FB; MUpp32f nU = (0.492F((MUpp32f)nB - nY)) + 0.5F; MUpp32f nV = (0.877F*((MUpp32f)nR - nY)) + 0.5F; if (nV > 1.0F) nV = 1.0F;
7.26.2 Function Documentation
7.26.2.1 muppiRGBToYUV_32f_C3R()
MUppStatus muppiRGBToYUV_32f_C3R ( const MUpp32f∗pSrc, intnSrcStep, MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI)
3 channel 32-bit float packed RGB to 3 channel 32-bit float packed YUV color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.26.2.2 muppiRGBToYUV_8u_AC4P4R_Ctx()
MUppStatus muppiRGBToYUV_8u_AC4P4R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst[4], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
4 channel 8-bit unsigned packed RGB with alpha to 4 channel 8-bit unsigned planar YUV color conversion with alpha. images.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.26.2.3 muppiRGBToYUV_8u_AC4R_Ctx()
MUppStatus muppiRGBToYUV_8u_AC4R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
4 channel 8-bit unsigned packed RGB with alpha to 4 channel 8-bit unsigned packed YUV color conversion with alpha, not affecting alpha. images.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.26.2.4 muppiRGBToYUV_8u_C3P3R_Ctx()
MUppStatus muppiRGBToYUV_8u_C3P3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst[3], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed RGB to 3 channel 8-bit unsigned planar YUV color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.26.2.5 muppiRGBToYUV_8u_C3R_Ctx()
MUppStatus muppiRGBToYUV_8u_C3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed RGB to 3 channel 8-bit unsigned packed YUV color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.26.2.6 muppiRGBToYUV_8u_P3R_Ctx()
MUppStatus muppiRGBToYUV_8u_P3R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst[3], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar RGB to 3 channel 8-bit unsigned planar YUV color conversion.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.27 BGRToYUV
Functions
- MUppStatus muppiBGRToYUV_8u_C3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiBGRToYUV_8u_C3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiBGRToYUV_32f_C3R (const MUpp32f∗pSrc, int nSrcStep, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiBGRToYUV_32f_C3R_Ctx (const MUpp32f∗pSrc, int nSrcStep, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiBGRToYUV_8u_AC4R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int n←- DstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiBGRToYUV_8u_AC4R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDst←- Step, MUppiSize oSizeROI)
- MUppStatus muppiBGRToYUV_8u_P3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiBGRToYUV_8u_P3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiBGRToYUV_8u_C3P3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiBGRToYUV_8u_C3P3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int n←- DstStep, MUppiSize oSizeROI)
- MUppStatus muppiBGRToYUV_8u_AC4P4R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[4], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiBGRToYUV_8u_AC4P4R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[4], int nDstStep, MUppiSize oSizeROI)
7.27.1 Detailed Description
BGR to YUV color conversion.
Here is how MUPP converts gamma corrected RGB or BGR to YUV. For digital RGB values in the range [0..255], Y has the range [0..255], U varies in the range [-112..+112], and V in the range [-157..+157]. To fit in the range of [0..255], a constant value of 128 is added to computed U and V values, and V is then saturated. // For MUpp8u data MUpp32f nY = 0.299FR + 0.587FG + 0.114FB; MUpp32f nU = (0.492F((MUpp32f)nB - nY)) + 128.0F; MUpp32f nV = (0.877F*((MUpp32f)nR - nY)) + 128.0F; if (nV > 255.0F) nV = 255.0F; // For MUpp32f data(normalized to [0,1]) MUpp32f nY = 0.299FR + 0.587FG + 0.114FB; MUpp32f nU = (0.492F((MUpp32f)nB - nY)) + 0.5F; MUpp32f nV = (0.877F*((MUpp32f)nR - nY)) + 0.5F; if (nV > 1.0F) nV = 1.0F;
7.27.2 Function Documentation
7.27.2.1 muppiBGRToYUV_32f_C3R()
MUppStatus muppiBGRToYUV_32f_C3R ( const MUpp32f∗pSrc, intnSrcStep, MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI)
3 channel 32-bit float packed BGR to 3 channel 32-bit float packed YUV color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.27.2.2 muppiBGRToYUV_8u_AC4P4R_Ctx()
MUppStatus muppiBGRToYUV_8u_AC4P4R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst[4], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
4 channel 8-bit unsigned packed BGR with alpha to 4 channel 8-bit unsigned planar YUV color conversion with alpha. images.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.27.2.3 muppiBGRToYUV_8u_AC4R_Ctx()
MUppStatus muppiBGRToYUV_8u_AC4R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
4 channel 8-bit unsigned packed BGR with alpha to 4 channel 8-bit unsigned packed YUV color conversion with alpha, not affecting alpha. images.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.27.2.4 muppiBGRToYUV_8u_C3P3R_Ctx()
MUppStatus muppiBGRToYUV_8u_C3P3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst[3], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed BGR to 3 channel 8-bit unsigned planar YUV color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.27.2.5 muppiBGRToYUV_8u_C3R_Ctx()
MUppStatus muppiBGRToYUV_8u_C3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed BGR to 3 channel 8-bit unsigned packed YUV color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.27.2.6 muppiBGRToYUV_8u_P3R_Ctx()
MUppStatus muppiBGRToYUV_8u_P3R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst[3], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar BGR to 3 channel 8-bit unsigned planar YUV color conversion.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
muPP API v 1.4.0 126
Returns
Image data related error codes, ROI related error codes
7.28 YUVToRGB
Functions
- MUppStatus muppiYUVToRGB_8u_C3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToRGB_8u_C3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUVToRGB_32f_C3R (const MUpp32f∗pSrc, int nSrcStep, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUVToRGB_32f_C3R_Ctx (const MUpp32f∗pSrc, int nSrcStep, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToRGB_8u_AC4R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int n←- DstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToRGB_8u_AC4R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDst←- Step, MUppiSize oSizeROI)
- MUppStatus muppiYUVToRGB_8u_P3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToRGB_8u_P3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUVToRGB_8u_P3C3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗p←- Dst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToRGB_8u_P3C3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
7.28.1 Detailed Description
YUV to RGB color conversion.
Here is how MUPP converts YUV to gamma corrected RGB or BGR. // For MUpp8u data MUpp32f nY = (MUpp32f)Y; MUpp32f nU = (MUpp32f)U - 128.0F; MUpp32f nV = (MUpp32f)V - 128.0F; MUpp32f nR = nY + 1.140FnV; if (nR < 0.0F) nR = 0.0F; if (nR > 255.0F) nR = 255.0F; MUpp32f nG = nY - 0.394FnU - 0.581FnV; if (nG < 0.0F) nG = 0.0F; if (nG > 255.0F) nG = 255.0F; MUpp32f nB = nY + 2.032FnU; if (nB < 0.0F) nB = 0.0F; if (nB > 255.0F) nB = 255.0F; // For MUpp32f data(normalized to [0,1]) MUpp32f nY = (MUpp32f)Y; MUpp32f nU = (MUpp32f)U - 0.5F; MUpp32f nV = (MUpp32f)V - 0.5F; MUpp32f nR = nY + 1.140FnV; if (nR < 0.0F) nR = 0.0F; if (nR > 1.0F) nR = 1.0F; MUpp32f nG = nY - 0.394FnU - 0.581F*nV; if (nG < 0.0F)
nG = 0.0F; if (nG > 1.0F) nG = 1.0F; MUpp32f nB = nY + 2.032F*nU; if (nB < 0.0F) nB = 0.0F; if (nB > 1.0F) nB = 1.0F;
7.28.2 Function Documentation
7.28.2.1 muppiYUVToRGB_32f_C3R()
MUppStatus muppiYUVToRGB_32f_C3R ( const MUpp32f∗pSrc, intnSrcStep, MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI)
3 channel 32-bit float packed YUV to 3 channel 32-bit float packed RGB color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.28.2.2 muppiYUVToRGB_8u_AC4R_Ctx()
MUppStatus muppiYUVToRGB_8u_AC4R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
4 channel 8-bit packed YUV with alpha to 4 channel 8-bit unsigned packed RGB color conversion with alpha, not affecting alpha. images.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.28.2.3 muppiYUVToRGB_8u_C3R_Ctx()
MUppStatus muppiYUVToRGB_8u_C3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed YUV to 3 channel 8-bit unsigned packed RGB color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.28.2.4 muppiYUVToRGB_8u_P3C3R_Ctx()
MUppStatus muppiYUVToRGB_8u_P3C3R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV to 3 channel 8-bit unsigned packed RGB color conversion.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.28.2.5 muppiYUVToRGB_8u_P3R_Ctx()
MUppStatus muppiYUVToRGB_8u_P3R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst[3], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV to 3 channel 8-bit unsigned planar RGB color conversion.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.29 YUVToRGBBatch
Functions
- MUppStatus muppiYUVToRGBBatch_8u_C3R_Ctx (const MUppiImageDescriptor ∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI, MUppStreamContext mupp←- StreamCtx)
- MUppStatus muppiYUVToRGBBatch_8u_C3R (const MUppiImageDescriptor∗pSrcBatchList, MUppiImageDescriptor ∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI)
- MUppStatus muppiYUVToRGBBatch_8u_P3C3R_Ctx (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToRGBBatch_8u_P3C3R (const MUppiImageDescriptor∗const pSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI)
7.29.1 Detailed Description
YUV to RGB batch color conversion with a single Region-of-Interest (ROI) for all pairs of input/output images pro- vided in batches.
MUPP converts YUV to gamma corrected RGB the same way as in YUVToRGB.
7.29.2 Function Documentation
7.29.2.1 muppiYUVToRGBBatch_8u_C3R_Ctx()
MUppStatus muppiYUVToRGBBatch_8u_C3R_Ctx ( const MUppiImageDescriptor∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed YUV to 3 channel 8-bit unsigned packed RGB batch color conversion for a single ROI. Provided oSizeROI will be used for all pairs of input and output images passed in pSrcBatchList and pSrc←- BatchList arguments. API user must ensure that provided ROI (oSizeROI) does not go beyond the borders of any of provided images.
Parameters
pSrcBatchList source_batch_images_pointer.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oSizeROI roi_specification. muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.29.2.2 muppiYUVToRGBBatch_8u_P3C3R_Ctx()
MUppStatus muppiYUVToRGBBatch_8u_P3C3R_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV to 3 channel 8-bit unsigned packed RGB batch color conversion for a single ROI. Provided oSizeROI will be used for all pairs of input planes making input images and output packed images passed in pSrcBatchList and pSrcBatchList arguments. API user must ensure that provided ROI (oSizeROI) does not go beyond the borders of any of provided images.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents a
batch of U planes. The third element of array (pSrcBatchList[2]) represents a batch of V
planes.
pDstBatchList destination_batch_images_pointer.
nBatchSize A number of MUppiImageDescriptor structures processed in this call (must be>1).
oSizeROI roi_specification. muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.30 YUVToRGBBatchAdvanced
Functions
- MUppStatus muppiYUVToRGBBatch_8u_C3R_Advanced_Ctx (const MUppiImageDescriptor∗pSrcBatch←- List, MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToRGBBatch_8u_C3R_Advanced (const MUppiImageDescriptor∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI)
- MUppStatus muppiYUVToRGBBatch_8u_P3C3R_Advanced_Ctx (const MUppiImageDescriptor ∗const pSrcBatchList[3], MUppiImageDescriptor ∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToRGBBatch_8u_P3C3R_Advanced (const MUppiImageDescriptor∗const pSrc←- BatchList[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI)
7.30.1 Detailed Description
YUV to RGB batch color conversion where each pair of input/output images from provided batches has own Region-of-Interest (ROI).
MUPP converts YUV to gamma corrected RGB the same way as in YUVToRGB.
7.30.2 Function Documentation
7.30.2.1 muppiYUVToRGBBatch_8u_C3R_Advanced_Ctx()
MUppStatus muppiYUVToRGBBatch_8u_C3R_Advanced_Ctx ( const MUppiImageDescriptor∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoMaxSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed YUV to 3 channel 8-bit unsigned packed RGB batch color conversion where each pair of input/output images has own ROI. Provided oMaxSizeROI must contain the maximum width and the maximum height of all ROIs defined in pDstBatchList. API user must ensure that ROI from pDstBatchList for each pair of input and output images does not go beyond the borders of images in each pair.
Parameters
pSrcBatchList source_batch_images_pointer.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oMaxSizeROI Region-of-Interest (ROI), must contain the maximum width and the maximum height from all
destination ROIs used for processing data.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.30.2.2 muppiYUVToRGBBatch_8u_P3C3R_Advanced_Ctx()
MUppStatus muppiYUVToRGBBatch_8u_P3C3R_Advanced_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoMaxSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV to 3 channel 8-bit unsigned packed RGB batch color conversion where each pair of input/output images has own ROI. Provided oMaxSizeROI must contain the maximum width and the maxi- mum height of all ROIs defined in pDstBatchList. API user must ensure that ROI from pDstBatchList for each pair of input and output images does not go beyond the borders of images in each pair.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents
a batch of U planes. The third element of array (pSrcBatchList[2]) represents a batch of V
planes.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oMaxSizeROI Region-of-Interest (ROI), must contain the maximum width and the maximum height from all
destination ROIs used for processing data.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.31 YUVToBGR
Functions
- MUppStatus muppiYUVToBGR_8u_C3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDst←- Step, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToBGR_8u_C3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUVToBGR_32f_C3R (const MUpp32f∗pSrc, int nSrcStep, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUVToBGR_32f_C3R_Ctx (const MUpp32f∗pSrc, int nSrcStep, MUpp32f∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToBGR_8u_AC4R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int n←- DstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToBGR_8u_AC4R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDst←- Step, MUppiSize oSizeROI)
- MUppStatus muppiYUVToBGR_8u_P3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToBGR_8u_P3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUVToBGR_8u_P3C3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗p←- Dst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToBGR_8u_P3C3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
7.31.1 Detailed Description
YUV to BGR color conversion.
Here is how MUPP converts YUV to gamma corrected RGB or BGR. // For MUpp8u data MUpp32f nY = (MUpp32f)Y; MUpp32f nU = (MUpp32f)U - 128.0F; MUpp32f nV = (MUpp32f)V - 128.0F; MUpp32f nR = nY + 1.140F*nV; if (nR < 0.0F)
nR = 0.0F; if (nR > 255.0F) nR = 255.0F; MUpp32f nG = nY - 0.394FnU - 0.581FnV; if (nG < 0.0F) nG = 0.0F; if (nG > 255.0F) nG = 255.0F; MUpp32f nB = nY + 2.032FnU; if (nB < 0.0F) nB = 0.0F; if (nB > 255.0F) nB = 255.0F; // For MUpp32f data(normalized to [0,1]) MUpp32f nY = (MUpp32f)Y; MUpp32f nU = (MUpp32f)U - 0.5F; MUpp32f nV = (MUpp32f)V - 0.5F; MUpp32f nR = nY + 1.140FnV; if (nR < 0.0F) nR = 0.0F; if (nR > 1.0F) nR = 1.0F; MUpp32f nG = nY - 0.394FnU - 0.581FnV; if (nG < 0.0F) nG = 0.0F; if (nG > 1.0F) nG = 1.0F; MUpp32f nB = nY + 2.032F*nU; if (nB < 0.0F) nB = 0.0F; if (nB > 1.0F) nB = 1.0F;
7.31.2 Function Documentation
7.31.2.1 muppiYUVToBGR_32f_C3R()
MUppStatus muppiYUVToBGR_32f_C3R ( const MUpp32f∗pSrc, intnSrcStep, MUpp32f ∗pDst, intnDstStep, MUppiSizeoSizeROI)
3 channel 32-bit float packed YUV to 3 channel 32-bit float packed BGR color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
Returns
Image data related error codes, ROI related error codes
7.31.2.2 muppiYUVToBGR_8u_AC4R_Ctx()
MUppStatus muppiYUVToBGR_8u_AC4R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
4 channel 8-bit packed YUV with alpha to 4 channel 8-bit unsigned packed BGR color conversion with alpha, not affecting alpha. images.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.31.2.3 muppiYUVToBGR_8u_C3R_Ctx()
MUppStatus muppiYUVToBGR_8u_C3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed YUV to 3 channel 8-bit unsigned packed BGR color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.31.2.4 muppiYUVToBGR_8u_P3C3R_Ctx()
MUppStatus muppiYUVToBGR_8u_P3C3R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV to 3 channel 8-bit unsigned packed BGR color conversion.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.31.2.5 muppiYUVToBGR_8u_P3R_Ctx()
MUppStatus muppiYUVToBGR_8u_P3R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst[3], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV to 3 channel 8-bit unsigned planar BGR color conversion.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
muPP API v 1.4.0 138
Returns
Image data related error codes, ROI related error codes
7.32 YUVToBGRBatch
Functions
- MUppStatus muppiYUVToBGRBatch_8u_C3R_Ctx (const MUppiImageDescriptor ∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI, MUppStreamContext mupp←- StreamCtx)
- MUppStatus muppiYUVToBGRBatch_8u_C3R (const MUppiImageDescriptor∗pSrcBatchList, MUppiImageDescriptor ∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI)
- MUppStatus muppiYUVToBGRBatch_8u_P3C3R_Ctx (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToBGRBatch_8u_P3C3R (const MUppiImageDescriptor∗const pSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI)
7.32.1 Detailed Description
YUV to BGR batch color conversion with a single Region-of-Interest (ROI) for all pairs of input/output images pro- vided in batches.
MUPP converts YUV to gamma corrected BGR the same way as in YUVToBGR.
7.32.2 Function Documentation
7.32.2.1 muppiYUVToBGRBatch_8u_C3R_Ctx()
MUppStatus muppiYUVToBGRBatch_8u_C3R_Ctx ( const MUppiImageDescriptor∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed YUV to 3 channel 8-bit unsigned packed BGR batch color conversion for a single ROI. Provided oSizeROI will be used for all pairs of input and output images passed in pSrcBatchList and pSrc←- BatchList arguments. API user must ensure that provided ROI (oSizeROI) does not go beyond the borders of any of provided images.
Parameters
pSrcBatchList source_batch_images_pointer.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oSizeROI roi_specification. muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.32.2.2 muppiYUVToBGRBatch_8u_P3C3R_Ctx()
MUppStatus muppiYUVToBGRBatch_8u_P3C3R_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV to 3 channel 8-bit unsigned packed BGR batch color conversion for a single ROI. Provided oSizeROI will be used for all pairs of input planes making input images and output packed images passed in pSrcBatchList and pSrcBatchList arguments. API user must ensure that provided ROI (oSizeROI) does not go beyond the borders of any of provided images.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents a
batch of U planes. The third element of array (pSrcBatchList[2]) represents a batch of V
planes.
pDstBatchList destination_batch_images_pointer.
nBatchSize A number of MUppiImageDescriptor structures processed in this call (must be>1).
oSizeROI roi_specification. muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.33 YUVToBGRBatchAdvanced
Functions
- MUppStatus muppiYUVToBGRBatch_8u_C3R_Advanced_Ctx (const MUppiImageDescriptor∗pSrcBatch←- List, MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToBGRBatch_8u_C3R_Advanced (const MUppiImageDescriptor∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI)
- MUppStatus muppiYUVToBGRBatch_8u_P3C3R_Advanced_Ctx (const MUppiImageDescriptor ∗const pSrcBatchList[3], MUppiImageDescriptor ∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUVToBGRBatch_8u_P3C3R_Advanced (const MUppiImageDescriptor∗const pSrc←- BatchList[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI)
7.33.1 Detailed Description
YUV to BGR batch color conversion where each pair of input/output images from provided batches has own Region-of-Interest (ROI).
MUPP converts YUV to gamma corrected BGR the same way as in YUVToBGR.
7.33.2 Function Documentation
7.33.2.1 muppiYUVToBGRBatch_8u_C3R_Advanced_Ctx()
MUppStatus muppiYUVToBGRBatch_8u_C3R_Advanced_Ctx ( const MUppiImageDescriptor∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoMaxSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed YUV to 3 channel 8-bit unsigned packed BGR batch color conversion where each pair of input/output images has own ROI. Provided oMaxSizeROI must contain the maximum width and the maximum height of all ROIs defined in pDstBatchList. API user must ensure that ROI from pDstBatchList for each pair of input and output images does not go beyond the borders of images in each pair.
Parameters
pSrcBatchList source_batch_images_pointer.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oMaxSizeROI Region-of-Interest (ROI), must contain the maximum width and the maximum height from all
destination ROIs used for processing data.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.33.2.2 muppiYUVToBGRBatch_8u_P3C3R_Advanced_Ctx()
MUppStatus muppiYUVToBGRBatch_8u_P3C3R_Advanced_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoMaxSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV to 3 channel 8-bit unsigned packed BGR batch color conversion where each pair of input/output images has own ROI. Provided oMaxSizeROI must contain the maximum width and the maxi- mum height of all ROIs defined in pDstBatchList. API user must ensure that ROI from pDstBatchList for each pair of input and output images does not go beyond the borders of images in each pair.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents
a batch of U planes. The third element of array (pSrcBatchList[2]) represents a batch of V
planes.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oMaxSizeROI Region-of-Interest (ROI), must contain the maximum width and the maximum height from all
destination ROIs used for processing data.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.34 RGBToYUV422
Functions
- MUppStatus muppiRGBToYUV422_8u_C3C2R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBToYUV422_8u_C3C2R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiRGBToYUV422_8u_P3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗p←- Dst[3], int rDstStep[3], MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBToYUV422_8u_P3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗p←- Dst[3], int rDstStep[3], MUppiSize oSizeROI)
- MUppStatus muppiRGBToYUV422_8u_C3P3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int rDstStep[3], MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBToYUV422_8u_C3P3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int rDstStep[3], MUppiSize oSizeROI)
7.34.1 Detailed Description
RGB to YUV422 color conversion.
MUPP converts YUV to gamma corrected BGR the same way as in YUVToBGR.
7.34.2 Function Documentation
7.34.2.1 muppiRGBToYUV422_8u_C3C2R_Ctx()
MUppStatus muppiRGBToYUV422_8u_C3C2R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed RGB to 2 channel 8-bit unsigned packed YUV422 color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.34.2.2 muppiRGBToYUV422_8u_C3P3R_Ctx()
MUppStatus muppiRGBToYUV422_8u_C3P3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst[3], intrDstStep[3], MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed RGB to 3 channel 8-bit unsigned planar YUV422 color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
rDstStep Destination-Planar-Image line step array.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.34.2.3 muppiRGBToYUV422_8u_P3R_Ctx()
MUppStatus muppiRGBToYUV422_8u_P3R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst[3],
intrDstStep[3],
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar RGB to 3 channel 8-bit unsigned planar YUV422 color conversion. images.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
rDstStep Destination-Planar-Image line step array.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.35 YUV422ToRGB
Functions
- MUppStatus muppiYUV422ToRGB_8u_C2C3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV422ToRGB_8u_C2C3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUV422ToRGB_8u_P3R_Ctx (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst[3], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV422ToRGB_8u_P3R (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u∗p←- Dst[3], int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUV422ToRGB_8u_P3C3R_Ctx (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV422ToRGB_8u_P3C3R (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUV422ToRGB_8u_P3AC4R_Ctx (const MUpp8u ∗const pSrc[3], int rSrcStep[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV422ToRGB_8u_P3AC4R (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI)
7.35.1 Detailed Description
YUV422 to RGB color conversion.
7.35.2 Function Documentation
7.35.2.1 muppiYUV422ToRGB_8u_C2C3R_Ctx()
MUppStatus muppiYUV422ToRGB_8u_C2C3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
2 channel 8-bit unsigned packed YUV422 to 3 channel 8-bit unsigned packed RGB color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.35.2.2 muppiYUV422ToRGB_8u_P3AC4R_Ctx()
MUppStatus muppiYUV422ToRGB_8u_P3AC4R_Ctx ( const MUpp8u ∗constpSrc[3], intrSrcStep[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV422 to 4 channel 8-bit unsigned packed RGB color conversion with alpha.
Parameters
pSrc Source-Planar-Image pointer.
rSrcStep Source-Planar-Image line step array.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.35.2.3 muppiYUV422ToRGB_8u_P3C3R_Ctx()
MUppStatus muppiYUV422ToRGB_8u_P3C3R_Ctx ( const MUpp8u ∗constpSrc[3], intrSrcStep[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV422 to 3 channel 8-bit unsigned packed RGB color conversion.
Parameters
pSrc Source-Planar-Image pointer.
rSrcStep Source-Planar-Image line step array.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.35.2.4 muppiYUV422ToRGB_8u_P3R_Ctx()
MUppStatus muppiYUV422ToRGB_8u_P3R_Ctx ( const MUpp8u ∗constpSrc[3], intrSrcStep[3], MUpp8u∗pDst[3], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV422 to 3 channel 8-bit unsigned planar RGB color conversion.
Parameters
pSrc Source-Planar-Image pointer.
rSrcStep Source-Planar-Image line step array.
pDst Destination-Planar-Image pointer array.
nDstStep destination_planar_image_line_step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
muPP API v 1.4.0 147
Returns
Image data related error codes, ROI related error codes
7.36 YUV422ToRGBBatch
Functions
- MUppStatus muppiYUV422ToRGBBatch_8u_P3C3R_Ctx (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV422ToRGBBatch_8u_P3C3R (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI)
7.36.1 Detailed Description
Planar YUV422 to packed RGB batch color conversion with a single Region-of-Interest (ROI) for all pairs of in- put/output images provided in batches.
7.36.2 Function Documentation
7.36.2.1 muppiYUV422ToRGBBatch_8u_P3C3R_Ctx()
MUppStatus muppiYUV422ToRGBBatch_8u_P3C3R_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV422 to 3 channel 8-bit unsigned packed RGB batch color conversion for a single ROI. Provided oSizeROI will be used for all pairs of input planes making input images and output packed images passed in pSrcBatchList and pSrcBatchList arguments. API user must ensure that provided ROI (oSizeROI) does not go beyond the borders of any of provided images.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents a
batch of U planes. The third element of array (pSrcBatchList[2]) represents a batch of V
planes.
pDstBatchList destination_batch_images_pointer.
nBatchSize A number of MUppiImageDescriptor structures processed in this call (must be>1).
oSizeROI roi_specification. muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.37 YUV422ToRGBBatchAdvanced
Functions
- MUppStatus muppiYUV422ToRGBBatch_8u_P3C3R_Advanced_Ctx (const MUppiImageDescriptor∗const pSrcBatchList[3], MUppiImageDescriptor ∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV422ToRGBBatch_8u_P3C3R_Advanced (const MUppiImageDescriptor∗const pSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI)
7.37.1 Detailed Description
Planar YUV422 to packed RGB batch color conversion where each pair of input/output images from provided batches has own Region-of-Interest (ROI).
7.37.2 Function Documentation
7.37.2.1 muppiYUV422ToRGBBatch_8u_P3C3R_Advanced_Ctx()
MUppStatus muppiYUV422ToRGBBatch_8u_P3C3R_Advanced_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoMaxSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV422 to 3 channel 8-bit unsigned packed RGB batch color conversion where each pair of input/output images has own ROI. Provided oMaxSizeROI must contain the maximum width and the maximum height of all ROIs defined in pDstBatchList. API user must ensure that ROI from pDstBatchList for each pair of input and output images does not go beyond the borders of images in each pair.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents
a batch of U planes. The third element of array (pSrcBatchList[2]) represents a batch of V
planes.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oMaxSizeROI Region-of-Interest (ROI), must contain the maximum width and the maximum height from all
destination ROIs used for processing data.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.38 YUV422ToBGRBatch
Functions
- MUppStatus muppiYUV422ToBGRBatch_8u_P3C3R_Ctx (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV422ToBGRBatch_8u_P3C3R (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI)
7.38.1 Detailed Description
Planar YUV422 to packed BGR batch color conversion with a single Region-of-Interest (ROI) for all pairs of in- put/output images provided in batches.
7.38.2 Function Documentation
7.38.2.1 muppiYUV422ToBGRBatch_8u_P3C3R_Ctx()
MUppStatus muppiYUV422ToBGRBatch_8u_P3C3R_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV422 to 3 channel 8-bit unsigned packed BGR batch color conversion for a single ROI. Provided oSizeROI will be used for all pairs of input planes making input images and output packed images passed in pSrcBatchList and pSrcBatchList arguments. API user must ensure that provided ROI (oSizeROI) does not go beyond the borders of any of provided images.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents a
batch of U planes. The third element of array (pSrcBatchList[2]) represents a batch of V
planes.
pDstBatchList destination_batch_images_pointer.
nBatchSize A number of MUppiImageDescriptor structures processed in this call (must be>1).
oSizeROI roi_specification. muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.39 YUV422ToBGRBatchAdvanced
Functions
- MUppStatus muppiYUV422ToBGRBatch_8u_P3C3R_Advanced_Ctx (const MUppiImageDescriptor∗const pSrcBatchList[3], MUppiImageDescriptor ∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV422ToBGRBatch_8u_P3C3R_Advanced (const MUppiImageDescriptor∗const pSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI)
7.39.1 Detailed Description
Planar YUV422 to packed BGR batch color conversion where each pair of input/output images from provided batches has own Region-of-Interest (ROI).
7.39.2 Function Documentation
7.39.2.1 muppiYUV422ToBGRBatch_8u_P3C3R_Advanced_Ctx()
MUppStatus muppiYUV422ToBGRBatch_8u_P3C3R_Advanced_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoMaxSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV422 to 3 channel 8-bit unsigned packed BGR batch color conversion where each pair of input/output images has own ROI. Provided oMaxSizeROI must contain the maximum width and the maximum height of all ROIs defined in pDstBatchList. API user must ensure that ROI from pDstBatchList for each pair of input and output images does not go beyond the borders of images in each pair.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents
a batch of U planes. The third element of array (pSrcBatchList[2]) represents a batch of V
planes.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oMaxSizeROI Region-of-Interest (ROI), must contain the maximum width and the maximum height from all
destination ROIs used for processing data.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.40 RGBToYUV420
Functions
- MUppStatus muppiRGBToYUV420_8u_P3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗p←- Dst[3], int rDstStep[3], MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBToYUV420_8u_P3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗p←- Dst[3], int rDstStep[3], MUppiSize oSizeROI)
- MUppStatus muppiRGBToYUV420_8u_C3P3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int rDstStep[3], MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBToYUV420_8u_C3P3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int rDstStep[3], MUppiSize oSizeROI)
7.40.1 Detailed Description
RGB to YUV420 color conversion.
7.40.2 Function Documentation
7.40.2.1 muppiRGBToYUV420_8u_C3P3R_Ctx()
MUppStatus muppiRGBToYUV420_8u_C3P3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst[3], intrDstStep[3], MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed RGB to 3 channel 8-bit unsigned planar YUV420 color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
rDstStep Destination-Planar-Image line step array.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.40.2.2 muppiRGBToYUV420_8u_P3R_Ctx()
MUppStatus muppiRGBToYUV420_8u_P3R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst[3], intrDstStep[3], MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar RGB to 3 channel 8-bit unsigned planar YUV420 color conversion. images.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
rDstStep Destination-Planar-Image line step array.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.41 YUV420ToRGB
Functions
- MUppStatus muppiYUV420ToRGB_8u_P3R_Ctx (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst[3], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV420ToRGB_8u_P3R (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u∗p←- Dst[3], int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUV420ToRGB_8u_P3C3R_Ctx (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV420ToRGB_8u_P3C3R (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUV420ToRGB_8u_P3C4R_Ctx (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV420ToRGB_8u_P3C4R (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUV420ToRGB_8u_P3AC4R_Ctx (const MUpp8u ∗const pSrc[3], int rSrcStep[3], MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV420ToRGB_8u_P3AC4R (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI)
7.41.1 Detailed Description
YUV420 to RGB color conversion.
7.41.2 Function Documentation
7.41.2.1 muppiYUV420ToRGB_8u_P3AC4R_Ctx()
MUppStatus muppiYUV420ToRGB_8u_P3AC4R_Ctx ( const MUpp8u ∗constpSrc[3], intrSrcStep[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV420 to 4 channel 8-bit unsigned packed RGB color conversion with alpha.
Parameters
pSrc Source-Planar-Image pointer.
rSrcStep Source-Planar-Image line step array.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.41.2.2 muppiYUV420ToRGB_8u_P3C3R_Ctx()
MUppStatus muppiYUV420ToRGB_8u_P3C3R_Ctx ( const MUpp8u ∗constpSrc[3], intrSrcStep[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV420 to 3 channel 8-bit unsigned packed RGB color conversion.
Parameters
pSrc Source-Planar-Image pointer.
rSrcStep Source-Planar-Image line step array.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.41.2.3 muppiYUV420ToRGB_8u_P3C4R_Ctx()
MUppStatus muppiYUV420ToRGB_8u_P3C4R_Ctx ( const MUpp8u ∗constpSrc[3], intrSrcStep[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV420 to 4 channel 8-bit unsigned packed RGB color conversion with constant alpha (0xFF).
Parameters
pSrc Source-Planar-Image pointer.
rSrcStep Source-Planar-Image line step array.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.41.2.4 muppiYUV420ToRGB_8u_P3R_Ctx()
MUppStatus muppiYUV420ToRGB_8u_P3R_Ctx ( const MUpp8u ∗constpSrc[3], intrSrcStep[3],
MUpp8u∗pDst[3],
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV420 to 3 channel 8-bit unsigned planar RGB color conversion.
Parameters
pSrc Source-Planar-Image pointer.
rSrcStep Source-Planar-Image line step array.
pDst Destination-Planar-Image pointer array.
nDstStep destination_planar_image_line_step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.42 YUV420ToRGBBatch
Functions
- MUppStatus muppiYUV420ToRGBBatch_8u_P3C3R_Ctx (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV420ToRGBBatch_8u_P3C3R (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI)
7.42.1 Detailed Description
Planar YUV420 to packed RGB batch color conversion with a single Region-of-Interest (ROI) for all pairs of in- put/output images provided in batches.
7.42.2 Function Documentation
7.42.2.1 muppiYUV420ToRGBBatch_8u_P3C3R_Ctx()
MUppStatus muppiYUV420ToRGBBatch_8u_P3C3R_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV420 to 3 channel 8-bit unsigned packed RGB batch color conversion for a single ROI. Provided oSizeROI will be used for all pairs of input planes making input images and output packed images passed in pSrcBatchList and pSrcBatchList arguments. API user must ensure that provided ROI (oSizeROI) does not go beyond the borders of any of provided images.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents Y planes. The second element of array (pSrcBatchList[1]) represents U planes.
The third element of array (pSrcBatchList[2]) represents V planes.
pDstBatchList destination_batch_images_pointer. nBatchSize A number of MUppiImageDescriptor
structures processed in this call (must be>1).
oSizeROI roi_specification. muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.43 YUV420ToRGBBatchAdvanced
Functions
- MUppStatus muppiYUV420ToRGBBatch_8u_P3C3R_Advanced_Ctx (const MUppiImageDescriptor∗const pSrcBatchList[3], MUppiImageDescriptor ∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV420ToRGBBatch_8u_P3C3R_Advanced (const MUppiImageDescriptor∗const pSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI)
7.43.1 Detailed Description
Planar YUV420 to packed RGB batch color conversion where each pair of input/output images from provided batches has own Region-of-Interest (ROI).
7.43.2 Function Documentation
7.43.2.1 muppiYUV420ToRGBBatch_8u_P3C3R_Advanced_Ctx()
MUppStatus muppiYUV420ToRGBBatch_8u_P3C3R_Advanced_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoMaxSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV420 to 3 channel 8-bit unsigned packed RGB batch color conversion where each pair of input/output images has own ROI. Provided oMaxSizeROI must contain the maximum width and the maximum height of all ROIs defined in pDstBatchList. API user must ensure that ROI from pDstBatchList for each pair of input and output images does not go beyond the borders of images in each pair.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents
a batch of U planes. The third element of array (pSrcBatchList[2]) represents a batch of V
planes.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oMaxSizeROI Region-of-Interest (ROI), must contain the maximum width and the maximum height from all
destination ROIs used for processing data.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.44 NV12ToRGB
Functions
- MUppStatus muppiNV12ToRGB_8u_P2C3R_Ctx (const MUpp8u∗const pSrc[2], int rSrcStep, MUpp8u∗p←- Dst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiNV12ToRGB_8u_P2C3R (const MUpp8u∗const pSrc[2], int rSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiNV12ToRGB_709HDTV_8u_P2C3R_Ctx (const MUpp8u∗const pSrc[2], int rSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiNV12ToRGB_709HDTV_8u_P2C3R (const MUpp8u ∗const pSrc[2], int rSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiNV12ToRGB_709CSC_8u_P2C3R_Ctx (const MUpp8u∗const pSrc[2], int rSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiNV12ToRGB_709CSC_8u_P2C3R (const MUpp8u ∗const pSrc[2], int rSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
7.44.1 Detailed Description
NV12 to RGB color conversion.
7.44.2 Function Documentation
7.44.2.1 muppiNV12ToRGB_709CSC_8u_P2C3R_Ctx()
MUppStatus muppiNV12ToRGB_709CSC_8u_P2C3R_Ctx ( const MUpp8u ∗constpSrc[2], intrSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
2 channel 8-bit unsigned planar NV12 to 3 channel 8-bit unsigned packed RGB 709 CSC color conversion. Note that HDTV conversion assumes full color range of 0 - 255, use CSC version for limited range color.
Parameters
pSrc Source-Planar-Image pointer (one for Y plane, one for UV plane).
rSrcStep source_planar_image_line_step. Same value is used for each plane.
pDst destination_image_pointer. nDstStep destination_image_line_step. oSizeROI roi_specification.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.44.2.2 muppiNV12ToRGB_709HDTV_8u_P2C3R_Ctx()
MUppStatus muppiNV12ToRGB_709HDTV_8u_P2C3R_Ctx ( const MUpp8u ∗constpSrc[2], intrSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
2 channel 8-bit unsigned planar NV12 to 3 channel 8-bit unsigned packed RGB 709 HDTV full color conversion. Note that HDTV conversion assumes full color range of 0 - 255, use CSC version for limited range color.
Parameters
pSrc Source-Planar-Image pointer (one for Y plane, one for UV plane).
rSrcStep source_planar_image_line_step. Same value is used for each plane.
pDst destination_image_pointer. nDstStep destination_image_line_step. oSizeROI roi_specification.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.44.2.3 muppiNV12ToRGB_8u_P2C3R_Ctx()
MUppStatus muppiNV12ToRGB_8u_P2C3R_Ctx ( const MUpp8u ∗constpSrc[2], intrSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
2 channel 8-bit unsigned planar NV12 to 3 channel 8-bit unsigned packed RGB color conversion.
Parameters
pSrc Source-Planar-Image pointer (one for Y plane, one for UV plane).
rSrcStep source_planar_image_line_step. Same value is used for each source plane.
pDst destination_image_pointer. nDstStep destination_image_line_step. oSizeROI roi_specification.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.45 RGBToNV12
Functions
- MUppStatus muppiRGBToNV12_8u_C3P2R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[2], int rDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBToNV12_8u_C3P2R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[2], int rDstStep, MUppiSize oSizeROI)
7.45.1 Detailed Description
RGB to NV12 color conversion.
7.45.2 Function Documentation
7.45.2.1 muppiRGBToNV12_8u_C3P2R_Ctx()
MUppStatus muppiRGBToNV12_8u_C3P2R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst[2], intrDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed RGB color conversion to 2 channel 8-bit unsigned planar NV12.
7.46 NV21ToRGB
Functions
- MUppStatus muppiNV21ToRGB_8u_P2C4R_Ctx (const MUpp8u∗const pSrc[2], int rSrcStep, MUpp8u∗p←- Dst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiNV21ToRGB_8u_P2C4R (const MUpp8u∗const pSrc[2], int rSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
7.46.1 Detailed Description
NV21 to RGB color conversion.
7.46.2 Function Documentation
7.46.2.1 muppiNV21ToRGB_8u_P2C4R_Ctx()
MUppStatus muppiNV21ToRGB_8u_P2C4R_Ctx ( const MUpp8u ∗constpSrc[2], intrSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
2 channel 8-bit unsigned planar NV21 to 4 channel 8-bit unsigned packed RGBA color conversion with constant alpha (0xFF).
Parameters
pSrc Source-Planar-Image pointer (one for Y plane, one for VU plane).
rSrcStep source_planar_image_line_step. Same value is used for each plane.
pDst destination_image_pointer. nDstStep destination_image_line_step. oSizeROI roi_specification.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.47 BGRToYUV420
Functions
- MUppStatus muppiBGRToYUV420_8u_AC4P3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int rDstStep[3], MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiBGRToYUV420_8u_AC4P3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int rDstStep[3], MUppiSize oSizeROI)
7.47.1 Detailed Description
BGR to YUV420 color conversion.
7.47.2 Function Documentation
7.47.2.1 muppiBGRToYUV420_8u_AC4P3R_Ctx()
MUppStatus muppiBGRToYUV420_8u_AC4P3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst[3], intrDstStep[3], MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
4 channel 8-bit unsigned pacmed BGR with alpha to 3 channel 8-bit unsigned planar YUV420 color conversion. images.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
rDstStep Destination-Planar-Image line step array.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.48 YUV420ToBGR
Functions
- MUppStatus muppiYUV420ToBGR_8u_P3C3R_Ctx (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV420ToBGR_8u_P3C3R (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYUV420ToBGR_8u_P3C4R_Ctx (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV420ToBGR_8u_P3C4R (const MUpp8u∗const pSrc[3], int rSrcStep[3], MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI)
7.48.1 Detailed Description
YUV420 to BGR color conversion.
7.48.2 Function Documentation
7.48.2.1 muppiYUV420ToBGR_8u_P3C3R_Ctx()
MUppStatus muppiYUV420ToBGR_8u_P3C3R_Ctx ( const MUpp8u ∗constpSrc[3], intrSrcStep[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV420 to 3 channel 8-bit unsigned packed BGR color conversion.
Parameters
pSrc Source-Planar-Image pointer.
rSrcStep Source-Planar-Image line step array.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.48.2.2 muppiYUV420ToBGR_8u_P3C4R_Ctx()
MUppStatus muppiYUV420ToBGR_8u_P3C4R_Ctx ( const MUpp8u ∗constpSrc[3], intrSrcStep[3], MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV420 to 4 channel 8-bit unsigned packed BGR color conversion with constant alpha (0xFF).
Parameters
pSrc Source-Planar-Image pointer.
rSrcStep Source-Planar-Image line step array.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muPP API v 1.4.0muppStreamCtx application_managed_stream_context. 163
Returns
Image data related error codes, ROI related error codes
7.49 YUV420ToBGRBatch
Functions
- MUppStatus muppiYUV420ToBGRBatch_8u_P3C3R_Ctx (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV420ToBGRBatch_8u_P3C3R (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI)
7.49.1 Detailed Description
Planar YUV420 to packed BGR batch color conversion with a single Region-of-Interest (ROI) for all pairs of in- put/output images provided in batches.
7.49.2 Function Documentation
7.49.2.1 muppiYUV420ToBGRBatch_8u_P3C3R_Ctx()
MUppStatus muppiYUV420ToBGRBatch_8u_P3C3R_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV420 to 3 channel 8-bit unsigned packed BGR batch color conversion for a single ROI. Provided oSizeROI will be used for all pairs of input planes making input images and output packed images passed in pSrcBatchList and pSrcBatchList arguments. API user must ensure that provided ROI (oSizeROI) does not go beyond the borders of any of provided images.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents Y planes. The second element of array (pSrcBatchList[1]) represents U planes.
The third element of array (pSrcBatchList[2]) represents V planes.
pDstBatchList destination_batch_images_pointer. nBatchSize A number of MUppiImageDescriptor
structures processed in this call (must be>1).
oSizeROI roi_specification. muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.50 YUV420ToBGRBatchAdvanced
Functions
- MUppStatus muppiYUV420ToBGRBatch_8u_P3C3R_Advanced_Ctx (const MUppiImageDescriptor∗const pSrcBatchList[3], MUppiImageDescriptor ∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYUV420ToBGRBatch_8u_P3C3R_Advanced (const MUppiImageDescriptor∗const pSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI)
7.50.1 Detailed Description
Planar YUV420 to packed BGR batch color conversion where each pair of input/output images from provided batches has own Region-of-Interest (ROI).
7.50.2 Function Documentation
7.50.2.1 muppiYUV420ToBGRBatch_8u_P3C3R_Advanced_Ctx()
MUppStatus muppiYUV420ToBGRBatch_8u_P3C3R_Advanced_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoMaxSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YUV420 to 3 channel 8-bit unsigned packed BGR batch color conversion where each pair of input/output images has own ROI. Provided oMaxSizeROI must contain the maximum width and the maximum height of all ROIs defined in pDstBatchList. API user must ensure that ROI from pDstBatchList for each pair of input and output images does not go beyond the borders of images in each pair.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents
a batch of U planes. The third element of array (pSrcBatchList[2]) represents a batch of V
planes.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oMaxSizeROI Region-of-Interest (ROI), must contain the maximum width and the maximum height from all
destination ROIs used for processing data.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.51 NV12ToBGR
Functions
- MUppStatus muppiNV12ToBGR_8u_P2C3R_Ctx (const MUpp8u∗const pSrc[2], int rSrcStep, MUpp8u∗p←- Dst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiNV12ToBGR_8u_P2C3R (const MUpp8u∗const pSrc[2], int rSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiNV12ToBGR_709HDTV_8u_P2C3R_Ctx (const MUpp8u∗const pSrc[2], int rSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiNV12ToBGR_709HDTV_8u_P2C3R (const MUpp8u ∗const pSrc[2], int rSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiNV12ToBGR_709CSC_8u_P2C3R_Ctx (const MUpp8u∗const pSrc[2], int rSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiNV12ToBGR_709CSC_8u_P2C3R (const MUpp8u ∗const pSrc[2], int rSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
7.51.1 Detailed Description
NV12 to BGR color conversion.
7.51.2 Function Documentation
7.51.2.1 muppiNV12ToBGR_709CSC_8u_P2C3R_Ctx()
MUppStatus muppiNV12ToBGR_709CSC_8u_P2C3R_Ctx ( const MUpp8u ∗constpSrc[2], intrSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
2 channel 8-bit unsigned planar NV12 to 3 channel 8-bit unsigned packed RGB 709 CSC color conversion. Note that HDTV conversion assumes full color range of 0 - 255, use CSC version for limited range color.
Parameters
pSrc Source-Planar-Image pointer (one for Y plane, one for UV plane).
rSrcStep source_planar_image_line_step. Same value is used for each plane.
pDst destination_image_pointer. nDstStep destination_image_line_step. oSizeROI roi_specification.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.51.2.2 muppiNV12ToBGR_709HDTV_8u_P2C3R_Ctx()
MUppStatus muppiNV12ToBGR_709HDTV_8u_P2C3R_Ctx ( const MUpp8u ∗constpSrc[2], intrSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
2 channel 8-bit unsigned planar NV12 to 3 channel 8-bit unsigned packed RGB 709 HDTV full color conversion. Note that HDTV conversion assumes full color range of 0 - 255, use CSC version for limited range color.
Parameters
pSrc Source-Planar-Image pointer (one for Y plane, one for UV plane).
rSrcStep source_planar_image_line_step. Same value is used for each plane.
pDst destination_image_pointer. nDstStep destination_image_line_step. oSizeROI roi_specification.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.51.2.3 muppiNV12ToBGR_8u_P2C3R_Ctx()
MUppStatus muppiNV12ToBGR_8u_P2C3R_Ctx ( const MUpp8u ∗constpSrc[2], intrSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
2 channel 8-bit unsigned planar NV12 to 3 channel 8-bit unsigned packed BGR color conversion.
Parameters
pSrc Source-Planar-Image pointer (one for Y plane, one for UV plane).
rSrcStep source_planar_image_line_step. Same value is used for each plane.
pDst destination_image_pointer. nDstStep destination_image_line_step. oSizeROI roi_specification.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.52 BGRToNV12
Functions
- MUppStatus muppiBGRToNV12_8u_C3P2R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[2], int rDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiBGRToNV12_8u_C3P2R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[2], int rDstStep, MUppiSize oSizeROI)
7.52.1 Detailed Description
BGR to NV12 color conversion.
7.52.2 Function Documentation
7.52.2.1 muppiBGRToNV12_8u_C3P2R_Ctx()
MUppStatus muppiBGRToNV12_8u_C3P2R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst[2], intrDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed BGR color conversion to 2 channel 8-bit unsigned planar NV12.
7.53 NV21ToBGR
Functions
- MUppStatus muppiNV21ToBGR_8u_P2C4R_Ctx (const MUpp8u∗const pSrc[2], int rSrcStep, MUpp8u∗p←- Dst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiNV21ToBGR_8u_P2C4R (const MUpp8u∗const pSrc[2], int rSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
7.53.1 Detailed Description
NV21 to BGR color conversion.
7.53.2 Function Documentation
7.53.2.1 muppiNV21ToBGR_8u_P2C4R_Ctx()
MUppStatus muppiNV21ToBGR_8u_P2C4R_Ctx ( const MUpp8u ∗constpSrc[2], intrSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
2 channel 8-bit unsigned planar NV21 to 4 channel 8-bit unsigned packed BGRA color conversion with constant alpha (0xFF).
Parameters
pSrc Source-Planar-Image pointer (one for Y plane, one for VU plane).
rSrcStep source_planar_image_line_step. Same value is used for each plane.
pDst destination_image_pointer. nDstStep destination_image_line_step. oSizeROI roi_specification.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.54 RGBToYCbCr
Functions
- MUppStatus muppiRGBToYCbCr_8u_C3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int n←- DstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBToYCbCr_8u_C3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDst←- Step, MUppiSize oSizeROI)
- MUppStatus muppiRGBToYCbCr_8u_AC4R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBToYCbCr_8u_AC4R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int n←- DstStep, MUppiSize oSizeROI)
- MUppStatus muppiRGBToYCbCr_8u_P3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗p←- Dst[3], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBToYCbCr_8u_P3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiRGBToYCbCr_8u_C3P3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBToYCbCr_8u_C3P3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiRGBToYCbCr_8u_AC4P3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiRGBToYCbCr_8u_AC4P3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI)
7.54.1 Detailed Description
RGB to YCbCr color conversion.
Here is how MUPP converts gamma corrected RGB or BGR to YCbCr. In the YCbCr model, Y is defined to have a nominal range [16..235], while Cb and Cr are defined to have a range [16..240], with the value of 128 as corresponding to zero. MUpp32f nY = 0.257FR + 0.504FG + 0.098FB + 16.0F; MUpp32f nCb = -0.148FR - 0.291FG + 0.439FB + 128.0F; MUpp32f nCr = 0.439FR - 0.368FG - 0.071F*B + 128.0F;
7.54.2 Function Documentation
7.54.2.1 muppiRGBToYCbCr_8u_AC4P3R_Ctx()
MUppStatus muppiRGBToYCbCr_8u_AC4P3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst[3], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
4 channel 8-bit unsigned packed RGB with alpha to 3 channel 8-bit unsigned planar YCbCr color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.54.2.2 muppiRGBToYCbCr_8u_AC4R_Ctx()
MUppStatus muppiRGBToYCbCr_8u_AC4R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
4 channel 8-bit unsigned packed RGB with alpha to 4 channel unsigned 8-bit packed YCbCr with alpha color conversion, not affecting alpha.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.54.2.3 muppiRGBToYCbCr_8u_C3P3R_Ctx()
MUppStatus muppiRGBToYCbCr_8u_C3P3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst[3], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed RGB to 3 channel unsigned 8-bit planar YCbCr color conversion. images.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.54.2.4 muppiRGBToYCbCr_8u_C3R_Ctx()
MUppStatus muppiRGBToYCbCr_8u_C3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst,
intnDstStep,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed RGB to 3 channel unsigned 8-bit packed YCbCr color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.54.2.5 muppiRGBToYCbCr_8u_P3R_Ctx()
MUppStatus muppiRGBToYCbCr_8u_P3R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst[3], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel planar 8-bit unsigned RGB to 3 channel planar 8-bit YCbCr color conversion.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.55 YCbCrToRGB
Functions
- MUppStatus muppiYCbCrToRGB_8u_C3R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int n←- DstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToRGB_8u_C3R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDst←- Step, MUppiSize oSizeROI)
- MUppStatus muppiYCbCrToRGB_8u_AC4R_Ctx (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToRGB_8u_AC4R (const MUpp8u∗pSrc, int nSrcStep, MUpp8u∗pDst, int n←- DstStep, MUppiSize oSizeROI)
- MUppStatus muppiYCbCrToRGB_8u_P3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗p←- Dst[3], int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToRGB_8u_P3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst[3], int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYCbCrToRGB_8u_P3C3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToRGB_8u_P3C3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYCbCrToRGB_8u_P3C4R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI, MUpp8u nAval, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToRGB_8u_P3C4R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUpp8u nAval)
7.55.1 Detailed Description
YCbCr to RGB color conversion.
Here is how MUPP converts YCbCr to gamma corrected RGB or BGR. The output RGB values are saturated to the range [0..255]. MUpp32f nY = 1.164F*((MUpp32f)Y - 16.0F); MUpp32f nR = ((MUpp32f)Cr - 128.0F); MUpp32f nB = ((MUpp32f)Cb
- 128.0F); MUpp32f nG = nY - 0.813FnR - 0.392FnB; if (nG > 255.0F) nG = 255.0F; nR = nY + 1.596FnR; if (nR > 255.0F) nR = 255.0F; nB = nY + 2.017FnB; if (nB > 255.0F) nB = 255.0F;
7.55.2 Function Documentation
7.55.2.1 muppiYCbCrToRGB_8u_AC4R_Ctx()
MUppStatus muppiYCbCrToRGB_8u_AC4R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
4 channel 8-bit unsigned packed YCbCr with alpha to 4 channel 8-bit unsigned packed RGB with alpha color conversion, not affecting alpha. Alpha channel is the last channel and is not processed.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.55.2.2 muppiYCbCrToRGB_8u_C3R_Ctx()
MUppStatus muppiYCbCrToRGB_8u_C3R_Ctx ( const MUpp8u ∗pSrc, intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed YCbCr to 3 channel 8-bit unsigned packed RGB color conversion.
Parameters
pSrc Source-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.55.2.3 muppiYCbCrToRGB_8u_P3C3R_Ctx()
MUppStatus muppiYCbCrToRGB_8u_P3C3R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YCbCr to 3 channel 8-bit unsigned packed RGB color conversion.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.55.2.4 muppiYCbCrToRGB_8u_P3C4R_Ctx()
MUppStatus muppiYCbCrToRGB_8u_P3C4R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUpp8unAval, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YCbCr to 4 channel 8-bit unsigned packed RGB color conversion with constant alpha.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
Parameters
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
nAval 8-bit unsigned alpha constant.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.55.2.5 muppiYCbCrToRGB_8u_P3R_Ctx()
MUppStatus muppiYCbCrToRGB_8u_P3R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst[3], intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YCbCr to 3 channel 8-bit unsigned planar RGB color conversion.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Planar-Image pointer array.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.56 YCbCrToRGBBatch
Functions
-
MUppStatus muppiYCbCrToRGBBatch_8u_C3R_Ctx (const MUppiImageDescriptor ∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI, MUppStreamContext mupp←- StreamCtx)
-
MUppStatus muppiYCbCrToRGBBatch_8u_C3R (const MUppiImageDescriptor ∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI)
-
MUppStatus muppiYCbCrToRGBBatch_8u_P3C3R_Ctx (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
-
MUppStatus muppiYCbCrToRGBBatch_8u_P3C3R (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI)
7.56.1 Detailed Description
YCbCr to RGB batch color conversion with a single Region-of-Interest (ROI) for all pairs of input/output images provided in batches.
MUPP converts YCbCr to gamma corrected RGB the same way as in YCbCrToRGB.
7.56.2 Function Documentation
7.56.2.1 muppiYCbCrToRGBBatch_8u_C3R_Ctx()
MUppStatus muppiYCbCrToRGBBatch_8u_C3R_Ctx ( const MUppiImageDescriptor∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed YCbCr to 3 channel 8-bit unsigned packed RGB batch color conversion for a single ROI. Provided oSizeROI will be used for all pairs of input and output images passed in pSrcBatchList and pSrc←- BatchList arguments. API user must ensure that provided ROI (oSizeROI) does not go beyond the borders of any of provided images.
Parameters
pSrcBatchList source_batch_images_pointer.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oSizeROI roi_specification. muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.56.2.2 muppiYCbCrToRGBBatch_8u_P3C3R_Ctx()
MUppStatus muppiYCbCrToRGBBatch_8u_P3C3R_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3],
MUppiImageDescriptor∗pDstBatchList,
intnBatchSize,
MUppiSizeoSizeROI,
MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YCbCr to 3 channel 8-bit unsigned packed RGB batch color conversion for a single ROI. Provided oSizeROI will be used for all pairs of input planes making input images and output packed images passed in pSrcBatchList and pSrcBatchList arguments. API user must ensure that provided ROI (oSizeROI) does not go beyond the borders of any of provided images.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents a
batch of Cb planes. The third element of array (pSrcBatchList[2]) represents a batch of Cr
planes.
pDstBatchList destination_batch_images_pointer. nBatchSize A number of MUppiImageDescriptor
structures processed in this call (must be>1).
oSizeROI roi_specification. muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.57 YCbCrToRGBBatchAdvanced
Functions
- MUppStatus muppiYCbCrToRGBBatch_8u_C3R_Advanced_Ctx (const MUppiImageDescriptor ∗p←- SrcBatchList, MUppiImageDescriptor ∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToRGBBatch_8u_C3R_Advanced (const MUppiImageDescriptor∗pSrcBatch←- List, MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI)
- MUppStatus muppiYCbCrToRGBBatch_8u_P3C3R_Advanced_Ctx (const MUppiImageDescriptor∗const pSrcBatchList[3], MUppiImageDescriptor ∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToRGBBatch_8u_P3C3R_Advanced (const MUppiImageDescriptor∗const p←- SrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI)
7.57.1 Detailed Description
YCbCr to RGB batch color conversion where each pair of input/output images from provided batches has own Region-of-Interest (ROI).
MUPP converts YCbCr to gamma corrected RGB the same way as in YCbCrToRGB.
7.57.2 Function Documentation
7.57.2.1 muppiYCbCrToRGBBatch_8u_C3R_Advanced_Ctx()
MUppStatus muppiYCbCrToRGBBatch_8u_C3R_Advanced_Ctx ( const MUppiImageDescriptor∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoMaxSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed YCbCr to 3 channel 8-bit unsigned packed RGB batch color conversion where each pair of input/output images has own ROI. Provided oMaxSizeROI must contain the maximum width and the maximum height of all ROIs defined in pDstBatchList. API user must ensure that ROI from pDstBatchList for each pair of input and output images does not go beyond the borders of images in each pair.
Parameters
pSrcBatchList source_batch_images_pointer.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oMaxSizeROI Region-of-Interest (ROI), must contain the maximum width and the maximum height from all
destination ROIs used for processing data.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.57.2.2 muppiYCbCrToRGBBatch_8u_P3C3R_Advanced_Ctx()
MUppStatus muppiYCbCrToRGBBatch_8u_P3C3R_Advanced_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoMaxSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YCbCr to 3 channel 8-bit unsigned packed RGB batch color conversion where each pair of input/output images has own ROI. Provided oMaxSizeROI must contain the maximum width and the maximum height of all ROIs defined in pDstBatchList. API user must ensure that ROI from pDstBatchList for each pair of input and output images does not go beyond the borders of images in each pair.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents
a batch of Cb planes. The third element of array (pSrcBatchList[2]) represents a batch of Cr
planes.
pDstBatchList destination_batch_images_pointer. nBatchSize Number of MUppiImageDescriptor
structures processed in this call (must be>1).
oMaxSizeROI Region-of-Interest (ROI), must contain the maximum width and the maximum height from all
destination ROIs used for processing data.
muPP API v 1.4.0muppStreamCtx application_managed_stream_context. 180
Returns
Image data related error codes, ROI related error codes
7.58 YCbCrToBGR
Functions
- MUppStatus muppiYCbCrToBGR_8u_P3C3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToBGR_8u_P3C3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYCbCrToBGR_8u_P3C4R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u ∗pDst, int nDstStep, MUppiSize oSizeROI, MUpp8u nAval, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToBGR_8u_P3C4R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUpp8u nAval)
7.58.1 Detailed Description
YCbCr to BGR color conversion.
7.58.2 Function Documentation
7.58.2.1 muppiYCbCrToBGR_8u_P3C3R_Ctx()
MUppStatus muppiYCbCrToBGR_8u_P3C3R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YCbCr to 3 channel 8-bit unsigned packed BGR color conversion.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.58.2.2 muppiYCbCrToBGR_8u_P3C4R_Ctx()
MUppStatus muppiYCbCrToBGR_8u_P3C4R_Ctx ( const MUpp8u ∗constpSrc[3], intnSrcStep, MUpp8u∗pDst, intnDstStep, MUppiSizeoSizeROI, MUpp8unAval, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YCbCr to 4 channel 8-bit unsigned packed BGR color conversion with constant alpha.
Parameters
pSrc Source-Planar-Image pointer.
nSrcStep Source-Image line steps.
pDst Destination-Image pointer.
nDstStep Destination-Image line step.
oSizeROI Region-of-Interest (ROI).
nAval 8-bit unsigned alpha constant.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.59 YCbCrToBGRBatch
Functions
- MUppStatus muppiYCbCrToBGRBatch_8u_C3R_Ctx (const MUppiImageDescriptor ∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI, MUppStreamContext mupp←- StreamCtx)
- MUppStatus muppiYCbCrToBGRBatch_8u_C3R (const MUppiImageDescriptor ∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI)
- MUppStatus muppiYCbCrToBGRBatch_8u_P3C3R_Ctx (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToBGRBatch_8u_P3C3R (const MUppiImageDescriptor∗const pSrcBatch←- List[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oSizeROI)
7.59.1 Detailed Description
YCbCr to BGR batch color conversion with a single Region-of-Interest (ROI) for all pairs of input/output images provided in batches.
MUPP converts YCbCr to gamma corrected BGR the same way as in YCbCrToBGR.
7.59.2 Function Documentation
7.59.2.1 muppiYCbCrToBGRBatch_8u_C3R_Ctx()
MUppStatus muppiYCbCrToBGRBatch_8u_C3R_Ctx ( const MUppiImageDescriptor∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed YCbCr to 3 channel 8-bit unsigned packed BGR batch color conversion for a single ROI. Provided oSizeROI will be used for all pairs of input and output images passed in pSrcBatchList and pSrc←- BatchList arguments. API user must ensure that provided ROI (oSizeROI) does not go beyond the borders of any of provided images.
Parameters
pSrcBatchList source_batch_images_pointer.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oSizeROI roi_specification. muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.59.2.2 muppiYCbCrToBGRBatch_8u_P3C3R_Ctx()
MUppStatus muppiYCbCrToBGRBatch_8u_P3C3R_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YCbCr to 3 channel 8-bit unsigned packed BGR batch color conversion for a single ROI. Provided oSizeROI will be used for all pairs of input planes making input images and output packed images passed in pSrcBatchList and pSrcBatchList arguments. API user must ensure that provided ROI (oSizeROI) does not go beyond the borders of any of provided images.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents a
batch of Cb planes. The third element of array (pSrcBatchList[2]) represents a batch of Cr
planes.
pDstBatchList destination_batch_images_pointer. nBatchSize A number of MUppiImageDescriptor
structures processed in this call (must be>1).
oSizeROI roi_specification. muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.60 YCbCrToBGRBatchAdvanced
Functions
- MUppStatus muppiYCbCrToBGRBatch_8u_C3R_Advanced_Ctx (const MUppiImageDescriptor ∗p←- SrcBatchList, MUppiImageDescriptor ∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToBGRBatch_8u_C3R_Advanced (const MUppiImageDescriptor∗pSrcBatch←- List, MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI)
- MUppStatus muppiYCbCrToBGRBatch_8u_P3C3R_Advanced_Ctx (const MUppiImageDescriptor∗const pSrcBatchList[3], MUppiImageDescriptor ∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToBGRBatch_8u_P3C3R_Advanced (const MUppiImageDescriptor∗const p←- SrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, int nBatchSize, MUppiSize oMaxSizeROI)
7.60.1 Detailed Description
YCbCr to BGR batch color conversion where each pair of input/output images from provided batches has own Region-of-Interest (ROI).
MUPP converts YCbCr to gamma corrected BGR the same way as in YCbCrToBGR.
7.60.2 Function Documentation
7.60.2.1 muppiYCbCrToBGRBatch_8u_C3R_Advanced_Ctx()
MUppStatus muppiYCbCrToBGRBatch_8u_C3R_Advanced_Ctx ( const MUppiImageDescriptor∗pSrcBatchList, MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoMaxSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned packed YCbCr to 3 channel 8-bit unsigned packed BGR batch color conversion where each pair of input/output images has own ROI. Provided oMaxSizeROI must contain the maximum width and the maximum height of all ROIs defined in pDstBatchList. API user must ensure that ROI from pDstBatchList for each pair of input and output images does not go beyond the borders of images in each pair.
Parameters
pSrcBatchList source_batch_images_pointer.
pDstBatchList destination_batch_images_pointer.
nBatchSize Number of MUppiImageDescriptor structures processed in this call (must be>1).
oMaxSizeROI Region-of-Interest (ROI), must contain the maximum width and the maximum height from all
destination ROIs used for processing data.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.60.2.2 muppiYCbCrToBGRBatch_8u_P3C3R_Advanced_Ctx()
MUppStatus muppiYCbCrToBGRBatch_8u_P3C3R_Advanced_Ctx ( const MUppiImageDescriptor∗constpSrcBatchList[3], MUppiImageDescriptor∗pDstBatchList, intnBatchSize, MUppiSizeoMaxSizeROI, MUppStreamContextmuppStreamCtx)
3 channel 8-bit unsigned planar YCbCr to 3 channel 8-bit unsigned packed BGR batch color conversion where each pair of input/output images has own ROI. Provided oMaxSizeROI must contain the maximum width and the maximum height of all ROIs defined in pDstBatchList. API user must ensure that ROI from pDstBatchList for each pair of input and output images does not go beyond the borders of images in each pair.
Parameters
pSrcBatchList An array where each element is a batch of images representing one of planes in planar
images, source_batch_images_pointer. The first element of array (pSrcBatchList[0])
represents a batch of Y planes. The second element of array (pSrcBatchList[1]) represents
a batch of Cb planes. The third element of array (pSrcBatchList[2]) represents a batch of Cr
planes.
pDstBatchList destination_batch_images_pointer. nBatchSize Number of MUppiImageDescriptor
structures processed in this call (must be>1).
oMaxSizeROI Region-of-Interest (ROI), must contain the maximum width and the maximum height from all
destination ROIs used for processing data.
muppStreamCtx application_managed_stream_context.
Returns
Image data related error codes, ROI related error codes
7.61 YCbCrToBGR_709CSC
Functions
- MUppStatus muppiYCbCrToBGR_709CSC_8u_P3C3R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToBGR_709CSC_8u_P3C3R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI)
- MUppStatus muppiYCbCrToBGR_709CSC_8u_P3C4R_Ctx (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUpp8u nAval, MUppStreamContext muppStreamCtx)
- MUppStatus muppiYCbCrToBGR_709CSC_8u_P3C4R (const MUpp8u∗const pSrc[3], int nSrcStep, MUpp8u∗pDst, int nDstStep, MUppiSize oSizeROI, MUpp8u nAval)