亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? rgb.h

?? symbian 下的helix player源代碼
?? H
字號:
/* ***** BEGIN LICENSE BLOCK *****
 * Source last modified: $Id: rgb.h,v 1.3.8.1 2004/07/09 01:59:56 hubbe Exp $
 * 
 * Portions Copyright (c) 1995-2004 RealNetworks, Inc. All Rights Reserved.
 * 
 * The contents of this file, and the files included with this file,
 * are subject to the current version of the RealNetworks Public
 * Source License (the "RPSL") available at
 * http://www.helixcommunity.org/content/rpsl unless you have licensed
 * the file under the current version of the RealNetworks Community
 * Source License (the "RCSL") available at
 * http://www.helixcommunity.org/content/rcsl, in which case the RCSL
 * will apply. You may also obtain the license terms directly from
 * RealNetworks.  You may not use this file except in compliance with
 * the RPSL or, if you have a valid RCSL with RealNetworks applicable
 * to this file, the RCSL.  Please see the applicable RPSL or RCSL for
 * the rights, obligations and limitations governing use of the
 * contents of the file.
 * 
 * Alternatively, the contents of this file may be used under the
 * terms of the GNU General Public License Version 2 or later (the
 * "GPL") in which case the provisions of the GPL are applicable
 * instead of those above. If you wish to allow use of your version of
 * this file only under the terms of the GPL, and not to allow others
 * to use your version of this file under the terms of either the RPSL
 * or RCSL, indicate your decision by deleting the provisions above
 * and replace them with the notice and other provisions required by
 * the GPL. If you do not delete the provisions above, a recipient may
 * use your version of this file under the terms of any one of the
 * RPSL, the RCSL or the GPL.
 * 
 * This file is part of the Helix DNA Technology. RealNetworks is the
 * developer of the Original Code and owns the copyrights in the
 * portions it created.
 * 
 * This file, and the files included with this file, is distributed
 * and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY
 * KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS
 * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET
 * ENJOYMENT OR NON-INFRINGEMENT.
 * 
 * Technology Compatibility Kit Test Suite(s) Location:
 *    http://www.helixcommunity.org/content/tck
 * 
 * Contributor(s):
 * 
 * ***** END LICENSE BLOCK ***** */

#ifndef __RGB_H__
#define __RGB_H__   1

#ifdef __cplusplus
extern "C" {
#endif

/*
 * RGB formats supported:
 *
 *  RGB32   - 32-bit 8:8:8 RGB
 *  BGR32   - 32-bit 8:8:8 RGB (R&B swapped)
 *  RGB24   - 24-bit 8:8:8 RGB
 *  RGB565  - 16-bit 5:6:5 RGB
 *  RGB555  - 16-bit 5:5:5 RGB
 *  RGB8    -  8-bit palettized RGB
 */
#define RGB32_ID            0
#define BGR32_ID            1
#define RGB24_ID            2
#define RGB565_ID           3
#define RGB555_ID           4
#define RGB8_ID             5

#define RGB_FORMATS         6

/*
 * Generic format ID:
 */
#define ID(f)               f##_ID

/*
 * Bytes per pixel (bpp) constants:
 */
#define RGB32_BPP           4
#define BGR32_BPP           4
#define RGB24_BPP           3
#define RGB565_BPP          2
#define RGB555_BPP          2
#define RGB8_BPP            1

/*
 * Generic pixel depth:
 */
#define BPP(f)              f##_BPP



/*
 * Internal pixel representations.
 * We will use 3 different types of temporary pixel variables
 * based on the following classification:
 *  1. Pixels with power of 2-aligned depth and bit-packed RGB fields:
 *      RGB32,BGR32,RGB565,RGB555 - use 1 full register to store RGB fields
 *      (we will use name RGBX for generalized macros dealing
 *       with these formats)
 *  2. Pixels with misaligned depth:
 *      RGB24 - use 3 8-bit registers to store R,G,and B components
 *  3. Paletized pixels:
 *      RGB8 - use 1 full register to store palette index
 */
#define RGBX_PIXEL(a)       register unsigned int a##_rgb
#define RGB32_PIXEL(a)      RGBX_PIXEL(a)
#define BGR32_PIXEL(a)      RGBX_PIXEL(a)
#define RGB24_PIXEL(a)      register unsigned char a##_b, a##_g, a##_r
#define RGB565_PIXEL(a)     RGBX_PIXEL(a)
#define RGB555_PIXEL(a)     RGBX_PIXEL(a)
#define RGB8_PIXEL(a)       register unsigned int a##_idx

/*
 * Generic pixel declaration:
 */
#define PIXEL(f,a)          f##_PIXEL(a)

/*
 * Load/store/copy pixel macros:
 * (s/d - source/destination pointers; sa/da - source/dest. pixel vars)
 */
#define RGBX_LOAD(s,a,t)    a##_rgb=*(t*)(s)
#define RGBX_STORE(d,a,t)   *(t*)(d)=a##_rgb
#define RGBX_COPY(da,sa)    da##_rgb=sa##_rgb

#define RGB32_LOAD(s,a)     RGBX_LOAD(s,a,unsigned int)
#define RGB32_STORE(d,a)    RGBX_STORE(d,a,unsigned int)
#define RGB32_COPY(da,sa)   RGBX_COPY(da,sa)

#define BGR32_LOAD(s,a)     RGBX_LOAD(s,a,unsigned int)
#define BGR32_STORE(d,a)    RGBX_STORE(d,a,unsigned int)
#define BGR32_COPY(da,sa)   RGBX_COPY(da,sa)

#define RGB24_LOAD(s,a)     a##_b=(s)[0], a##_g=(s)[1], a##_r=(s)[2]
#define RGB24_STORE(d,a)    (d)[0]=a##_b, (d)[1]=a##_g, (d)[2]=a##_r
#define RGB24_COPY(da,sa)   da##_b=sa##_b, da##_g=sa##_g, da##_r=sa##_r

#define RGB565_LOAD(s,a)    RGBX_LOAD(s,a,unsigned short)
#define RGB565_STORE(d,a)   RGBX_STORE(d,a,unsigned short)
#define RGB565_COPY(da,sa)  RGBX_COPY(da,sa)

#define RGB555_LOAD(s,a)    RGBX_LOAD(s,a,unsigned short)
#define RGB555_STORE(d,a)   RGBX_STORE(d,a,unsigned short)
#define RGB555_COPY(da,sa)  RGBX_COPY(da,sa)

#define RGB8_LOAD(s,a)      a##_idx=(s)[0]
#define RGB8_STORE(d,a)     (d)[0]=a##_idx
#define RGB8_COPY(da,sa)    da##_idx=sa##_idx

/*
 * Generic pixel load/store/copy macros:
 */
#define LOAD(f,s,a)         f##_LOAD(s,a)
#define STORE(f,d,a)        f##_STORE(d,a)
#define COPY(f,da,sa)       f##_COPY(da,sa)

/*
 * R,G,B fields bit-packing:
 * (RGB32,BGR32,RGB565,and RGB555 formats only)
 */
#define RGB32_R_START       16
#define RGB32_R_BITS        8
#define RGB32_G_START       8
#define RGB32_G_BITS        8
#define RGB32_B_START       0
#define RGB32_B_BITS        8

#define BGR32_R_START       0
#define BGR32_R_BITS        8
#define BGR32_G_START       8
#define BGR32_G_BITS        8
#define BGR32_B_START       16
#define BGR32_B_BITS        8

#define RGB565_R_START      11
#define RGB565_R_BITS       5
#define RGB565_G_START      5
#define RGB565_G_BITS       6
#define RGB565_B_START      0
#define RGB565_B_BITS       5

#define RGB555_R_START      10
#define RGB555_R_BITS       5
#define RGB555_G_START      5
#define RGB555_G_BITS       5
#define RGB555_B_START      0
#define RGB555_B_BITS       5

/*
 * Generic bit-packing macros:
 */
#define START(f,x)          f##_##x##_START
#define BITS(f,x)           f##_##x##_BITS

/*
 * Fields extraction/assignment macros.
 *
 * Here we will largely rely on compiler's ability to get rid of
 * unexecuted branches and glue subsequent constant shifts and
 * masks together. This assumption works well for MSVC, Watcom,
 * and Zortech (Symantec) compilers, but some others may fail.
 *
 * If you are using compiler not listed above, please check the
 * assembly output to make sure that the code is well optimized.
 * If the compiler leaves comparisons and multiple shifts/masks
 * in places of RGBX_GET_X() and RGBX_SET(), you would have to
 * reimplement and optimize all these instances manually, using
 * the appropriate pixel/field-type related constants.
 */
#define NORM(s) ((s) & 0x1F) /* shuts compiler up */
#define RGBX_GET_X(f,x,a)   \
    ((START(f,x)+BITS(f,x)<8)   \
    ? ((a##_rgb << NORM(8-(START(f,x)+BITS(f,x)))) & (0x100-(1U<<(8-BITS(f,x))))) \
    : ((a##_rgb >> NORM((START(f,x)+BITS(f,x))-8)) & (0x100-(1U<<(8-BITS(f,x))))))
#define RGBX_X(f,x,v)       \
    ((START(f,x)+BITS(f,x)<8)   \
    ? (((v) & (0x100-(1U<<(8-BITS(f,x))))) >> NORM(8-(START(f,x)+BITS(f,x))))   \
    : (((v) & (0x100-(1U<<(8-BITS(f,x))))) << NORM((START(f,x)+BITS(f,x))-8)))
#define RGBX_SET(f,a,r,g,b) \
    a##_rgb = RGBX_X(f,R,r) | RGBX_X(f,G,g) | RGBX_X(f,B,b)

#define RGB32_GET_R(a)      RGBX_GET_X(RGB32,R,a)
#define RGB32_GET_G(a)      RGBX_GET_X(RGB32,G,a)
#define RGB32_GET_B(a)      RGBX_GET_X(RGB32,B,a)
#define RGB32_SET(a,r,g,b)  RGBX_SET(  RGB32,a,r,g,b)

#define BGR32_GET_R(a)      RGBX_GET_X(BGR32,R,a)
#define BGR32_GET_G(a)      RGBX_GET_X(BGR32,G,a)
#define BGR32_GET_B(a)      RGBX_GET_X(BGR32,B,a)
#define BGR32_SET(a,r,g,b)  RGBX_SET(  BGR32,a,r,g,b)

#define RGB24_GET_R(a)      (a##_r)
#define RGB24_GET_G(a)      (a##_g)
#define RGB24_GET_B(a)      (a##_b)
#define RGB24_SET(a,r,g,b)  a##_b=(b), a##_g=(g), a##_r=(r)

#define RGB565_GET_R(a)     RGBX_GET_X(RGB565,R,a)
#define RGB565_GET_G(a)     RGBX_GET_X(RGB565,G,a)
#define RGB565_GET_B(a)     RGBX_GET_X(RGB565,B,a)
#define RGB565_SET(a,r,g,b) RGBX_SET(  RGB565,a,r,g,b)

#define RGB555_GET_R(a)     RGBX_GET_X(RGB555,R,a)
#define RGB555_GET_G(a)     RGBX_GET_X(RGB555,G,a)
#define RGB555_GET_B(a)     RGBX_GET_X(RGB555,B,a)
#define RGB555_SET(a,r,g,b) RGBX_SET(  RGB555,a,r,g,b)

#define RGB8_GET_R(a)       PAL_GET_R(a##_idx)
#define RGB8_GET_G(a)       PAL_GET_G(a##_idx)
#define RGB8_GET_B(a)       PAL_GET_B(a##_idx)
#define RGB8_SET(a,r,g,b)   a##_idx=PMAP_GET(r,g,b)

/*
 * Generic field extraction/assignment macros:
 */
#define GET_R(f,a)          f##_GET_R(a)
#define GET_G(f,a)          f##_GET_G(a)
#define GET_B(f,a)          f##_GET_B(a)
#define SET(f,a,r,g,b)      f##_SET(a,r,g,b)

/*
 * Generic pixel-format converter:
 * (sf/sa - source pixel format/name; df/da - dest. pixel format/name)
 */
#define CONVERT(df,da,sf,sa) SET(df,da,GET_R(sf,sa),GET_G(sf,sa),GET_B(sf,sa))

/*
 * Generic pixel load and convert macro:
 */
#define LOAD_CONVERT(df,da,sf,s)            \
    /* do we have the same format? */       \
    if (ID(df) == ID(sf)) {                 \
        /* just load pixel */               \
        LOAD(df,s,da);                      \
    } else {                                \
        /* load & convert pixel: */         \
        PIXEL(sf,sa);                       \
        LOAD(sf,s,sa);                      \
        CONVERT(df,da,sf,sa);               \
    }

/*
 * Get the average value of two pixels:
 * (da=(sa+sb)/2)
 */
#define RGBX_AVERAGE(f,da,sa,sb)    \
    da##_rgb = (((sa##_rgb^sb##_rgb)>>1)    \
        & (((1U<<(START(f,R)+BITS(f,R)-1))-(1U<<START(f,R)))  \
          |((1U<<(START(f,G)+BITS(f,G)-1))-(1U<<START(f,G)))  \
          |((1U<<(START(f,B)+BITS(f,B)-1))-(1U<<START(f,B)))))\
        + (sa##_rgb&sb##_rgb)
#define RGB32_AVERAGE(da,sa,sb) RGBX_AVERAGE(RGB32,da,sa,sb)
#define BGR32_AVERAGE(da,sa,sb) RGBX_AVERAGE(BGR32,da,sa,sb)
#define RGB24_AVERAGE(da,sa,sb) \
    SET(RGB24,da,((GET_R(RGB24,sa)+GET_R(RGB24,sb))>>1),    \
                 ((GET_G(RGB24,sa)+GET_G(RGB24,sb))>>1),    \
                 ((GET_B(RGB24,sa)+GET_B(RGB24,sb))>>1))
#define RGB565_AVERAGE(da,sa,sb) RGBX_AVERAGE(RGB565,da,sa,sb)
#define RGB555_AVERAGE(da,sa,sb) RGBX_AVERAGE(RGB555,da,sa,sb)
#define RGB8_AVERAGE(da,sa,sb)  \
    SET(RGB8,da,((GET_R(RGB8,sa)+GET_R(RGB8,sb))>>1),       \
                ((GET_G(RGB8,sa)+GET_G(RGB8,sb))>>1),       \
                ((GET_B(RGB8,sa)+GET_B(RGB8,sb))>>1))

/*
 * Generic two pixels' average:
 */
#define AVERAGE(f,da,sa,sb) f##_AVERAGE(da,sa,sb)

/*
 * Loads a pixel and averages it with another one:
 * (da = (sa+[s])/2)
 */
#define LOAD_AVERAGE(f,da,sa,s)             \
    {                                       \
        /* load & convert pixel: */         \
        PIXEL(f,sb);                        \
        LOAD(f,s,sb);                       \
        AVERAGE(f,da,sa,sb);                \
    }

#ifdef __cplusplus
}
#endif

#endif /* __RGB_H__ */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲乱码精品一二三四区日韩在线| 国产欧美日韩久久| 欧美日韩成人综合天天影院 | 337p日本欧洲亚洲大胆精品 | 日韩欧美在线影院| 国产精品午夜在线| 奇米888四色在线精品| 国产suv精品一区二区三区| 在线观看免费视频综合| 26uuu国产日韩综合| 国产麻豆9l精品三级站| 777xxx欧美| 亚洲一区在线观看网站| 成人福利视频网站| 欧美一区二区三区在线看 | 一区二区三区中文字幕在线观看| 免费观看一级特黄欧美大片| 欧美不卡视频一区| 日韩激情视频在线观看| 91亚洲午夜精品久久久久久| 亚洲黄色性网站| 欧洲一区二区三区在线| 免费看欧美美女黄的网站| 久久久综合精品| 热久久久久久久| 国产精品午夜久久| 欧美三日本三级三级在线播放| 亚洲欧美精品午睡沙发| 丁香五精品蜜臀久久久久99网站 | 欧美一区二区播放| 国产毛片精品国产一区二区三区| 国产精品久久久久久久久久久免费看 | 高清国产一区二区三区| 亚洲综合视频网| 久久亚洲影视婷婷| 欧美日韩一区二区欧美激情 | 高清不卡一区二区| 亚洲一区二区三区视频在线| 日韩免费成人网| 经典三级一区二区| 精品国产乱码久久久久久图片| 久久99国产精品久久99果冻传媒| 国产精品三级久久久久三级| 91精品国产综合久久精品app| 国产精品一区二区视频| 欧美国产1区2区| 99热在这里有精品免费| 亚洲精品日日夜夜| 国产亚洲精品7777| 色婷婷一区二区| 一区二区三区四区激情| 久久久99精品久久| 91精品免费观看| 日本国产一区二区| 日本美女视频一区二区| 欧美一区二区三区公司| 日本高清无吗v一区| 福利电影一区二区| 免费成人你懂的| 亚洲国产一二三| 精品99999| 欧美一级黄色大片| 欧美人与禽zozo性伦| 91九色最新地址| av成人老司机| 成人精品免费看| 午夜精品视频一区| 久久久另类综合| 2023国产精品| 日韩免费看网站| 日韩午夜电影在线观看| 欧美日韩电影在线播放| 在线精品视频小说1| 色综合亚洲欧洲| 久久99国产精品免费| 美女www一区二区| 亚洲日本在线a| 欧美mv日韩mv国产网站app| 欧美丰满高潮xxxx喷水动漫| 国产成人精品免费| 污片在线观看一区二区| 午夜精品久久久久久不卡8050| 亚洲精品视频自拍| 亚洲资源中文字幕| 性久久久久久久久久久久| 中文字幕精品一区二区精品绿巨人| 精品电影一区二区三区| 久久久亚洲综合| 国产欧美日产一区| 成人免费在线观看入口| 精品国产乱码久久久久久免费| 日韩小视频在线观看专区| 欧美tickling挠脚心丨vk| 精品999在线播放| 中文字幕+乱码+中文字幕一区| 日本一区二区成人| 亚洲柠檬福利资源导航| 亚洲国产综合视频在线观看| 日韩中文字幕1| 久久国内精品视频| 三级亚洲高清视频| 久久成人精品无人区| 国产99久久精品| 欧美在线一二三| 欧美一区二区三区四区五区| 精品1区2区在线观看| 国产精品久久久久aaaa| 亚洲国产日韩在线一区模特| 美腿丝袜亚洲一区| 岛国一区二区在线观看| 欧美日韩一区 二区 三区 久久精品| 91麻豆精品国产综合久久久久久| 精品国产一区二区亚洲人成毛片| 亚洲国产精品激情在线观看| 一区二区三区在线观看欧美| 麻豆精品视频在线观看视频| www.日韩av| 3d成人动漫网站| 国产精品福利一区| 日韩黄色一级片| www.欧美精品一二区| 欧美日韩精品一区二区天天拍小说| 精品国产污污免费网站入口| 亚洲色图在线播放| 精品一区中文字幕| 91麻豆国产精品久久| 精品国产91久久久久久久妲己| 日韩理论片网站| 欧美日本一道本| 欧美激情一区二区在线| 亚洲gay无套男同| thepron国产精品| 日韩三级免费观看| 一区二区三区日韩精品视频| 韩国精品免费视频| 国产高清在线观看免费不卡| 欧美亚洲一区二区在线| 制服丝袜日韩国产| 国产精品成人网| 久久99国产精品久久| 欧美日韩亚洲国产综合| 国产精品国产三级国产三级人妇 | 青草av.久久免费一区| 99国产精品国产精品毛片| 色婷婷综合久色| 国产精品入口麻豆原神| 韩国一区二区三区| 欧美一区在线视频| 亚洲愉拍自拍另类高清精品| 99久久婷婷国产综合精品电影| 精品国产一区a| 蜜桃久久久久久久| 欧美日韩国产成人在线免费| 亚洲精品成a人| 9色porny自拍视频一区二区| 国产午夜精品在线观看| 捆绑变态av一区二区三区| 欧美疯狂性受xxxxx喷水图片| 亚洲免费在线视频| 99久久精品免费| 国产精品成人一区二区三区夜夜夜| 国产精品影视在线| 欧美xxx久久| 老汉av免费一区二区三区 | 日韩视频国产视频| 日产国产欧美视频一区精品| 欧美日韩一区中文字幕| 一区二区三区四区在线播放| 色狠狠一区二区| 一区av在线播放| 在线看不卡av| 国产成人精品一区二| 久久久久综合网| 成人精品亚洲人成在线| 中文文精品字幕一区二区| 成人午夜av在线| 1000部国产精品成人观看| 91麻豆国产在线观看| 一区二区三区欧美日| 欧美天堂亚洲电影院在线播放| 亚洲成人免费视| 日韩一区二区三区在线观看| 九九精品视频在线看| 久久亚洲捆绑美女| 高清不卡在线观看av| 综合av第一页| 欧美亚洲另类激情小说| 日韩在线一区二区三区| 精品国产三级电影在线观看| 国产精品自拍在线| 亚洲色欲色欲www| 欧美日韩国产综合一区二区 | 综合av第一页| 欧美色男人天堂| 久久er99精品| 亚洲欧洲av色图| 欧美精品 日韩| 国产精品一区二区在线观看网站| 成人欧美一区二区三区| 欧美高清激情brazzers|