linux/drivers/media/video/mxc/opl/opl.h File Reference

The OPL (Open Primitives Library) Image Processing library defines efficient functions for rotation and mirroring. More...

Enumerations

enum  opl_error

Functions

int opl_rotate90_u16 (const u8 *src, int src_line_stride, int width, int height, u8 *dst, int dst_line_stride)
int opl_rotate180_u16 (const u8 *src, int src_line_stride, int width, int height, u8 *dst, int dst_line_stride)
int opl_rotate270_u16 (const u8 *src, int src_line_stride, int width, int height, u8 *dst, int dst_line_stride)
int opl_hmirror_u16 (const u8 *src, int src_line_stride, int width, int height, u8 *dst, int dst_line_stride)
int opl_vmirror_u16 (const u8 *src, int src_line_stride, int width, int height, u8 *dst, int dst_line_stride)
int opl_rotate90_vmirror_u16 (const u8 *src, int src_line_stride, int width, int height, u8 *dst, int dst_line_stride)
int opl_rotate270_vmirror_u16 (const u8 *src, int src_line_stride, int width, int height, u8 *dst, int dst_line_stride)

Detailed Description

The OPL (Open Primitives Library) Image Processing library defines efficient functions for rotation and mirroring.

It includes ARM9-optimized rotation and mirroring functions. It is derived from the original OPL project which is found at sourceforge.freescale.net.


Enumeration Type Documentation

enum opl_error

Enumerations of opl error code


Function Documentation

int opl_hmirror_u16 ( const u8 *  src,
int  src_line_stride,
int  width,
int  height,
u8 *  dst,
int  dst_line_stride 
)

Mirror a 16bpp buffer horizontally.

Parameters:
src Pointer to the input buffer
src_line_stride Length in bytes of a raster line of the input buffer
width Width in pixels of the region in the input buffer
height Height in pixels of the region in the input buffer
dst Pointer to the output buffer
dst_line_stride Length in bytes of a raster line of the output buffer
Returns:
Standard OPL error code. See enumeration for possible result codes.
int opl_rotate180_u16 ( const u8 *  src,
int  src_line_stride,
int  width,
int  height,
u8 *  dst,
int  dst_line_stride 
)

Rotate a 16bbp buffer 180 degrees clockwise.

Parameters:
src Pointer to the input buffer
src_line_stride Length in bytes of a raster line of the input buffer
width Width in pixels of the region in the input buffer
height Height in pixels of the region in the input buffer
dst Pointer to the output buffer
dst_line_stride Length in bytes of a raster line of the output buffer
Returns:
Standard OPL error code. See enumeration for possible result codes.
int opl_rotate270_u16 ( const u8 *  src,
int  src_line_stride,
int  width,
int  height,
u8 *  dst,
int  dst_line_stride 
)

Rotate a 16bbp buffer 270 degrees clockwise.

Parameters:
src Pointer to the input buffer
src_line_stride Length in bytes of a raster line of the input buffer
width Width in pixels of the region in the input buffer
height Height in pixels of the region in the input buffer
dst Pointer to the output buffer
dst_line_stride Length in bytes of a raster line of the output buffer
Returns:
Standard OPL error code. See enumeration for possible result codes.

References opl_rotate270_u16().

Referenced by opl_rotate270_u16().

int opl_rotate270_vmirror_u16 ( const u8 *  src,
int  src_line_stride,
int  width,
int  height,
u8 *  dst,
int  dst_line_stride 
)

Rotate a 16bbp buffer 270 degrees clockwise and mirror vertically It is equivalent to rotate 90 degree and mirror horizontally.

Parameters:
src Pointer to the input buffer
src_line_stride Length in bytes of a raster line of the input buffer
width Width in pixels of the region in the input buffer
height Height in pixels of the region in the input buffer
dst Pointer to the output buffer
dst_line_stride Length in bytes of a raster line of the output buffer
Returns:
Standard OPL error code. See enumeration for possible result codes.

References opl_rotate270_vmirror_u16().

Referenced by opl_rotate270_vmirror_u16().

int opl_rotate90_u16 ( const u8 *  src,
int  src_line_stride,
int  width,
int  height,
u8 *  dst,
int  dst_line_stride 
)

Rotate a 16bbp buffer 90 degrees clockwise.

Parameters:
src Pointer to the input buffer
src_line_stride Length in bytes of a raster line of the input buffer
width Width in pixels of the region in the input buffer
height Height in pixels of the region in the input buffer
dst Pointer to the output buffer
dst_line_stride Length in bytes of a raster line of the output buffer
Returns:
Standard OPL error code. See enumeration for possible result codes.

References opl_rotate90_u16().

Referenced by opl_rotate90_u16().

int opl_rotate90_vmirror_u16 ( const u8 *  src,
int  src_line_stride,
int  width,
int  height,
u8 *  dst,
int  dst_line_stride 
)

Rotate a 16bbp buffer 90 degrees clockwise and mirror vertically It is equivalent to rotate 270 degree and mirror horizontally.

Parameters:
src Pointer to the input buffer
src_line_stride Length in bytes of a raster line of the input buffer
width Width in pixels of the region in the input buffer
height Height in pixels of the region in the input buffer
dst Pointer to the output buffer
dst_line_stride Length in bytes of a raster line of the output buffer
Returns:
Standard OPL error code. See enumeration for possible result codes.

References opl_rotate90_vmirror_u16().

Referenced by opl_rotate90_vmirror_u16().

int opl_vmirror_u16 ( const u8 *  src,
int  src_line_stride,
int  width,
int  height,
u8 *  dst,
int  dst_line_stride 
)

Mirror a 16bpp buffer vertically.

Parameters:
src Pointer to the input buffer
src_line_stride Length in bytes of a raster line of the input buffer
width Width in pixels of the region in the input buffer
height Height in pixels of the region in the input buffer
dst Pointer to the output buffer
dst_line_stride Length in bytes of a raster line of the output buffer
Returns:
Standard OPL error code. See enumeration for possible result codes.

References opl_vmirror_u16().

Referenced by opl_vmirror_u16().

footer
©  Freescale Semiconductor, Inc., 2007.  All rights reserved.
Freescale Confidential Proprietary
NDA Required
doxygen