Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

opl.h File Reference


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.

Definition in file opl.h.

#include <linux/types.h>

Go to the source code of this file.

Defines

#define BYTES_PER_2PIXEL   (BYTES_PER_PIXEL * 2)
#define BYTES_PER_4PIXEL   (BYTES_PER_PIXEL * 4)
#define BYTES_PER_8PIXEL   (BYTES_PER_PIXEL * 8)
#define BYTES_PER_PIXEL   2
#define BYTES_PER_WORD   4
#define CACHE_LINE_WORDS   8
#define QCIF_Y_HEIGHT   144
#define QCIF_Y_WIDTH   176

Enumerations

enum  opl_error {
  OPLERR_SUCCESS = 0, OPLERR_NULL_PTR, OPLERR_BAD_ARG, OPLERR_DIV_BY_ZERO,
  OPLERR_OVER_FLOW, OPLERR_UNDER_FLOW, OPLERR_MISALIGNED
}

Functions

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.
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.
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.
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.
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.
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.
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.


Generated by  Doxygen 1.6.0   Back to index