/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* FILENAME: mlib_ImageChannelExtract_1.c
*
* FUNCTIONS
* mlib_v_ImageChannelExtract_U8_21_A8D1X8
* mlib_v_ImageChannelExtract_U8_21_A8D2X8
* mlib_v_ImageChannelExtract_U8_21_D1
* mlib_v_ImageChannelExtract_U8_21
* mlib_v_ImageChannelExtract_U8_31_A8D1X8
* mlib_v_ImageChannelExtract_U8_31_A8D2X8
* mlib_v_ImageChannelExtract_U8_31_D1
* mlib_v_ImageChannelExtract_U8_31
* mlib_v_ImageChannelExtract_U8_41_A8D1X8
* mlib_v_ImageChannelExtract_U8_41_A8D2X8
* mlib_v_ImageChannelExtract_U8_41_D1
* mlib_v_ImageChannelExtract_U8_41
* mlib_v_ImageChannelExtract_S16_21_A8D1X4
* mlib_v_ImageChannelExtract_S16_21_A8D2X4
* mlib_v_ImageChannelExtract_S16_21_D1
* mlib_v_ImageChannelExtract_S16_21
* mlib_v_ImageChannelExtract_S16_31_A8D1X4
* mlib_v_ImageChannelExtract_S16_31_A8D2X4
* mlib_v_ImageChannelExtract_S16_31_D1
* mlib_v_ImageChannelExtract_S16_31
* mlib_v_ImageChannelExtract_S16_41_A8D1X4
* mlib_v_ImageChannelExtract_S16_41_A8D2X4
* mlib_v_ImageChannelExtract_S16_41_D1
* mlib_v_ImageChannelExtract_S16_41
*
* ARGUMENT
* src pointer to source image data
* dst pointer to destination image data
* slb source image line stride in bytes
* dlb destination image line stride in bytes
* dsize image data size in pixels
* xsize image width in pixels
* ysize image height in lines
* cmask channel mask
*
* DESCRIPTION
* Extract the one selected channel of the source image into the
* 1-channel destination image.
*
* NOTE
* These functions are separated from mlib_ImageChannelExtract.c
* for loop unrolling and structure clarity.
*/
#include "vis_proto.h"
#include "mlib_image.h"
#include "mlib_v_ImageChannelExtract.h"
/***************************************************************/
/***************************************************************/
/***************************************************************/
/* extract one channel from a 2-channel image.
* both source and destination image data are 8-byte aligned.
* xsize is multiple of 8.
*/
{
mlib_s32 i;
if (cmask == 2) {
#pragma pipeloop(0)
for (i = 0; i < dsize / 8; i++) {
}
}
else {
#pragma pipeloop(0)
for (i = 0; i < dsize / 8; i++) {
}
}
}
/***************************************************************/
/* extract one channel from a 2-channel image.
* both source and destination image data are 8-byte aligned.
* xsize is multiple of 8.
*/
{
mlib_s32 i, j;
if (cmask == 2) {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 8; i++) {
}
}
}
else {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 8; i++) {
}
}
}
}
/***************************************************************/
/* extract one channel from a 2-channel image.
*/
{
mlib_s32 i, n;
/* prepare the source address */
/* prepare the destination addresses */
/* calculate the src's offset over dst */
if (cmask == 2) {
}
else {
}
if (((cmask == 2) && (soff % 2 == 0)) || ((cmask == 1) && (soff % 2 != 0))) { /* extract even bytes */
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 16 bytes */
/* extract and store 8 bytes */
}
else {
/* load 32 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
else { /* extract odd bytes */
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes, don't care the garbage at the start point */
/* extract and store 8 bytes */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 16 bytes */
/* extract and store 8 bytes */
}
else {
/* load 32 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
}
/***************************************************************/
/* extract one channel from a 2-channel image.
*/
{
mlib_s32 j;
for (j = 0; j < ysize; j++) {
}
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
/***************************************************************/
{
mlib_s32 i;
if (cmask == 4) {
#pragma pipeloop(0)
for (i = 0; i < dsize / 8; i++) {
}
}
else if (cmask == 2) {
#pragma pipeloop(0)
for (i = 0; i < dsize / 8; i++) {
}
}
else {
#pragma pipeloop(0)
for (i = 0; i < dsize / 8; i++) {
}
}
}
/***************************************************************/
{
mlib_s32 i, j;
if (cmask == 4) {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 8; i++) {
}
}
}
else if (cmask == 2) {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 8; i++) {
}
}
}
else {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 8; i++) {
}
}
}
}
/***************************************************************/
{
mlib_s32 i, n;
/* prepare the source address */
/* prepare the destination addresses */
/* calculate the src's offset over dst */
if (cmask == 4) {
}
else if (cmask == 2) {
}
else {
}
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
/* extract middle channel */
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
else { /* extract right channel */
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
}
/***************************************************************/
{
mlib_s32 j;
for (j = 0; j < ysize; j++) {
}
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
/***************************************************************/
/***************************************************************/
{
mlib_s32 i;
if (cmask == 8) {
#pragma pipeloop(0)
for (i = 0; i < dsize / 8; i++) {
}
}
else if (cmask == 4) {
#pragma pipeloop(0)
for (i = 0; i < dsize / 8; i++) {
}
}
else if (cmask == 2) {
#pragma pipeloop(0)
for (i = 0; i < dsize / 8; i++) {
}
}
else {
#pragma pipeloop(0)
for (i = 0; i < dsize / 8; i++) {
}
}
}
/***************************************************************/
{
mlib_s32 i, j;
if (cmask == 8) {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 8; i++) {
}
}
}
else if (cmask == 4) {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 8; i++) {
}
}
}
else if (cmask == 2) {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 8; i++) {
}
}
}
else {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 8; i++) {
}
}
}
}
/***************************************************************/
{
mlib_s32 i, n;
/* prepare the source address */
/* prepare the destination addresses */
/* calculate the src's offset over dst */
if (cmask == 8) {
}
else if (cmask == 4) {
}
else if (cmask == 2) {
}
else {
}
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
/* extract middle left channel */
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
else { /* extract right channel */
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
}
/***************************************************************/
{
mlib_s32 j;
for (j = 0; j < ysize; j++) {
}
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
/* extract one channel from a 2-channel image.
* both source and destination image data are 8-byte aligned.
* dsize is multiple of 4.
*/
{
mlib_s32 i;
if (cmask == 2) {
#pragma pipeloop(0)
for (i = 0; i < dsize / 4; i++) {
}
}
else {
#pragma pipeloop(0)
for (i = 0; i < dsize / 4; i++) {
}
}
}
/***************************************************************/
{
mlib_s32 i, j;
if (cmask == 2) {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 4; i++) {
}
}
}
else {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 4; i++) {
}
}
}
}
/***************************************************************/
{
mlib_s32 i, n;
/* prepare the source address */
/* prepare the destination addresses */
/* calculate the src's offset over dst */
if (cmask == 2) {
}
else {
}
if (((cmask == 2) && (soff % 4 == 0)) || ((cmask == 1) && (soff % 4 != 0))) { /* extract even words */
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 16 bytes */
/* extract and store 8 bytes */
}
else {
/* load 32 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
else { /* extract odd words */
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes, don't care the garbage at the start point */
/* extract and store 8 bytes */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 16 bytes */
/* extract and store 8 bytes */
}
else {
/* load 32 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
}
/***************************************************************/
{
mlib_s32 j;
for (j = 0; j < ysize; j++) {
}
}
/***************************************************************/
/* extract the left channel */ \
/***************************************************************/
/* extract the middle channel */ \
/***************************************************************/
/* extract the right channel */ \
/***************************************************************/
{
mlib_s32 i;
if (cmask == 4) {
#pragma pipeloop(0)
for (i = 0; i < dsize / 4; i++) {
}
}
else if (cmask == 2) {
#pragma pipeloop(0)
for (i = 0; i < dsize / 4; i++) {
}
}
else {
#pragma pipeloop(0)
for (i = 0; i < dsize / 4; i++) {
}
}
}
/***************************************************************/
{
mlib_s32 i, j;
if (cmask == 4) {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 4; i++) {
}
}
}
else if (cmask == 2) {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 4; i++) {
}
}
}
else {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 4; i++) {
}
}
}
}
/***************************************************************/
{
mlib_s32 i, n;
/* prepare the source address */
/* prepare the destination addresses */
/* calculate the src's offset over dst */
if (cmask == 4) {
}
else if (cmask == 2) {
}
else {
}
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
/* extract middle channel */
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
else { /* extract right channel */
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
}
/***************************************************************/
{
mlib_s32 j;
for (j = 0; j < ysize; j++) {
}
}
/***************************************************************/
/* extract the left channel */ \
/***************************************************************/
/* extract the middle left channel */ \
/***************************************************************/
/* extract the middle right channel */ \
/***************************************************************/
/* extract the right channel */ \
/***************************************************************/
{
mlib_s32 i;
if (cmask == 8) {
#pragma pipeloop(0)
for (i = 0; i < dsize / 4; i++) {
}
}
else if (cmask == 4) {
#pragma pipeloop(0)
for (i = 0; i < dsize / 4; i++) {
}
}
else if (cmask == 2) {
#pragma pipeloop(0)
for (i = 0; i < dsize / 4; i++) {
}
}
else {
#pragma pipeloop(0)
for (i = 0; i < dsize / 4; i++) {
}
}
}
/***************************************************************/
{
mlib_s32 i, j;
if (cmask == 8) {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 4; i++) {
}
}
}
else if (cmask == 4) {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 4; i++) {
}
}
}
else if (cmask == 2) {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 4; i++) {
}
}
}
else {
for (j = 0; j < ysize; j++) {
#pragma pipeloop(0)
for (i = 0; i < xsize / 4; i++) {
}
}
}
}
/***************************************************************/
{
mlib_s32 i, n;
/* prepare the source address */
/* prepare the destination addresses */
/* calculate the src's offset over dst */
if (cmask == 8) {
}
else if (cmask == 4) {
}
else if (cmask == 2) {
}
else {
}
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
else {
/* load 48 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
else { /* extract right channel */
if (off == 0) { /* src and dst have same alignment */
/* generate edge mask for the start point */
/* load 16 bytes */
/* extract, including some garbage at the start point */
/* store 8 bytes result */
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
else {
vis_alignaddr((void *)0, off);
/* generate edge mask for the start point */
if (off < 0) {
/* load 24 bytes */
/* extract and store 8 bytes */
}
/* 8-pixel column loop, emask not needed */
#pragma pipeloop(0)
for (i = 0; i < n; i++) {
}
}
/* end point handling */
}
}
}
}
/***************************************************************/
{
mlib_s32 j;
for (j = 0; j < ysize; j++) {
}
}
/***************************************************************/