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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? yuv2rgb_altivec.c.svn-base

?? ffmpeg最新源碼
?? SVN-BASE
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
/* * AltiVec acceleration for colorspace conversion * * copyright (C) 2004 Marc Hoffman <marc.hoffman@analog.com> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * FFmpeg 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 for more details. * * You should have received a copy of the GNU General Public License * along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *//*Convert I420 YV12 to RGB in various formats,  it rejects images that are not in 420 formats,  it rejects images that don't have widths of multiples of 16,  it rejects images that don't have heights of multiples of 2.Reject defers to C simulation code.Lots of optimizations to be done here.1. Need to fix saturation code. I just couldn't get it to fly with packs   and adds, so we currently use max/min to clip.2. The inefficient use of chroma loading needs a bit of brushing up.3. Analysis of pipeline stalls needs to be done. Use shark to identify   pipeline stalls.MODIFIED to calculate coeffs from currently selected color space.MODIFIED core to be a macro where you specify the output format.ADDED UYVY conversion which is never called due to some thing in swscale.CORRECTED algorithim selection to be strict on input formats.ADDED runtime detection of AltiVec.ADDED altivec_yuv2packedX vertical scl + RGB converterMarch 27,2004PERFORMANCE ANALYSISThe C version uses 25% of the processor or ~250Mips for D1 video rawvideoused as test.The AltiVec version uses 10% of the processor or ~100Mips for D1 videosame sequence.720 * 480 * 30  ~10MPSso we have roughly 10 clocks per pixel. This is too high, something hasto be wrong.OPTIMIZED clip codes to utilize vec_max and vec_packs removing theneed for vec_min.OPTIMIZED DST OUTPUT cache/DMA controls. We are pretty much guaranteed to havethe input video frame, it was just decompressed so it probably resides in L1caches. However, we are creating the output video stream. This needs to use theDSTST instruction to optimize for the cache. We couple this with the fact thatwe are not going to be visiting the input buffer again so we mark it LeastRecently Used. This shaves 25% of the processor cycles off.Now memcpy is the largest mips consumer in the system, probably dueto the inefficient X11 stuff.GL libraries seem to be very slow on this machine 1.33Ghz PB runningJaguar, this is not the case for my 1Ghz PB.  I thought it might bea versioning issue, however I have libGL.1.2.dylib for bothmachines. (We need to figure this out now.)GL2 libraries work now with patch for RGB32.NOTE: quartz vo driver ARGB32_to_RGB24 consumes 30% of the processor.Integrated luma prescaling adjustment for saturation/contrast/brightnessadjustment.*/#include <stdio.h>#include <stdlib.h>#include <string.h>#include <inttypes.h>#include <assert.h>#include "config.h"#ifdef HAVE_MALLOC_H#include <malloc.h>#endif#include "rgb2rgb.h"#include "swscale.h"#include "swscale_internal.h"#undef PROFILE_THE_BEAST#undef INC_SCALINGtypedef unsigned char ubyte;typedef signed char   sbyte;/* RGB interleaver, 16 planar pels 8-bit samples per channel in   homogeneous vector registers x0,x1,x2 are interleaved with the   following technique:      o0 = vec_mergeh (x0,x1);      o1 = vec_perm (o0, x2, perm_rgb_0);      o2 = vec_perm (o0, x2, perm_rgb_1);      o3 = vec_mergel (x0,x1);      o4 = vec_perm (o3,o2,perm_rgb_2);      o5 = vec_perm (o3,o2,perm_rgb_3);  perm_rgb_0:   o0(RG).h v1(B) --> o1*              0   1  2   3   4             rgbr|gbrg|brgb|rgbr             0010 0100 1001 0010             0102 3145 2673 894A  perm_rgb_1:   o0(RG).h v1(B) --> o2              0   1  2   3   4             gbrg|brgb|bbbb|bbbb             0100 1001 1111 1111             B5CD 6EF7 89AB CDEF  perm_rgb_2:   o3(RG).l o2(rgbB.l) --> o4*              0   1  2   3   4             gbrg|brgb|rgbr|gbrg             1111 1111 0010 0100             89AB CDEF 0182 3945  perm_rgb_2:   o3(RG).l o2(rgbB.l) ---> o5*              0   1  2   3   4             brgb|rgbr|gbrg|brgb             1001 0010 0100 1001             a67b 89cA BdCD eEFf*/staticconst vector unsigned char  perm_rgb_0 = (const vector unsigned char)AVV(0x00,0x01,0x10,0x02,0x03,0x11,0x04,0x05,                                               0x12,0x06,0x07,0x13,0x08,0x09,0x14,0x0a),  perm_rgb_1 = (const vector unsigned char)AVV(0x0b,0x15,0x0c,0x0d,0x16,0x0e,0x0f,0x17,                                               0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f),  perm_rgb_2 = (const vector unsigned char)AVV(0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,                                               0x00,0x01,0x18,0x02,0x03,0x19,0x04,0x05),  perm_rgb_3 = (const vector unsigned char)AVV(0x1a,0x06,0x07,0x1b,0x08,0x09,0x1c,0x0a,                                               0x0b,0x1d,0x0c,0x0d,0x1e,0x0e,0x0f,0x1f);#define vec_merge3(x2,x1,x0,y0,y1,y2)       \do {                                        \    typeof(x0) o0,o2,o3;                    \        o0 = vec_mergeh (x0,x1);            \        y0 = vec_perm (o0, x2, perm_rgb_0); \        o2 = vec_perm (o0, x2, perm_rgb_1); \        o3 = vec_mergel (x0,x1);            \        y1 = vec_perm (o3,o2,perm_rgb_2);   \        y2 = vec_perm (o3,o2,perm_rgb_3);   \} while(0)#define vec_mstbgr24(x0,x1,x2,ptr)      \do {                                    \    typeof(x0) _0,_1,_2;                \    vec_merge3 (x0,x1,x2,_0,_1,_2);     \    vec_st (_0, 0, ptr++);              \    vec_st (_1, 0, ptr++);              \    vec_st (_2, 0, ptr++);              \}  while (0);#define vec_mstrgb24(x0,x1,x2,ptr)      \do {                                    \    typeof(x0) _0,_1,_2;                \    vec_merge3 (x2,x1,x0,_0,_1,_2);     \    vec_st (_0, 0, ptr++);              \    vec_st (_1, 0, ptr++);              \    vec_st (_2, 0, ptr++);              \}  while (0);/* pack the pixels in rgb0 format   msb R   lsb 0*/#define vec_mstrgb32(T,x0,x1,x2,x3,ptr)                                       \do {                                                                          \    T _0,_1,_2,_3;                                                            \    _0 = vec_mergeh (x0,x1);                                                  \    _1 = vec_mergeh (x2,x3);                                                  \    _2 = (T)vec_mergeh ((vector unsigned short)_0,(vector unsigned short)_1); \    _3 = (T)vec_mergel ((vector unsigned short)_0,(vector unsigned short)_1); \    vec_st (_2, 0*16, (T *)ptr);                                              \    vec_st (_3, 1*16, (T *)ptr);                                              \    _0 = vec_mergel (x0,x1);                                                  \    _1 = vec_mergel (x2,x3);                                                  \    _2 = (T)vec_mergeh ((vector unsigned short)_0,(vector unsigned short)_1); \    _3 = (T)vec_mergel ((vector unsigned short)_0,(vector unsigned short)_1); \    vec_st (_2, 2*16, (T *)ptr);                                              \    vec_st (_3, 3*16, (T *)ptr);                                              \    ptr += 4;                                                                 \}  while (0);/*  | 1     0       1.4021   | | Y |  | 1    -0.3441 -0.7142   |x| Cb|  | 1     1.7718  0        | | Cr|  Y:      [-128 127]  Cb/Cr : [-128 127]  typical yuv conversion work on Y: 0-255 this version has been optimized for jpeg decode.*/#define vec_unh(x) \    (vector signed short) \        vec_perm(x,(typeof(x))AVV(0),\                 (vector unsigned char)AVV(0x10,0x00,0x10,0x01,0x10,0x02,0x10,0x03,\                                           0x10,0x04,0x10,0x05,0x10,0x06,0x10,0x07))#define vec_unl(x) \    (vector signed short) \        vec_perm(x,(typeof(x))AVV(0),\                 (vector unsigned char)AVV(0x10,0x08,0x10,0x09,0x10,0x0A,0x10,0x0B,\                                           0x10,0x0C,0x10,0x0D,0x10,0x0E,0x10,0x0F))#define vec_clip_s16(x) \    vec_max (vec_min (x, (vector signed short)AVV(235,235,235,235,235,235,235,235)),\                         (vector signed short)AVV( 16, 16, 16, 16, 16, 16, 16, 16))#define vec_packclp(x,y) \    (vector unsigned char)vec_packs \        ((vector unsigned short)vec_max (x,(vector signed short) AVV(0)), \         (vector unsigned short)vec_max (y,(vector signed short) AVV(0)))//#define out_pixels(a,b,c,ptr) vec_mstrgb32(typeof(a),((typeof (a))AVV(0)),a,a,a,ptr)static inline void cvtyuvtoRGB (SwsContext *c,                                vector signed short Y, vector signed short U, vector signed short V,                                vector signed short *R, vector signed short *G, vector signed short *B){    vector signed   short vx,ux,uvx;    Y = vec_mradds (Y, c->CY, c->OY);    U  = vec_sub (U,(vector signed short)                    vec_splat((vector signed short)AVV(128),0));    V  = vec_sub (V,(vector signed short)                    vec_splat((vector signed short)AVV(128),0));    //   ux  = (CBU*(u<<c->CSHIFT)+0x4000)>>15;    ux = vec_sl (U, c->CSHIFT);    *B = vec_mradds (ux, c->CBU, Y);    // vx  = (CRV*(v<<c->CSHIFT)+0x4000)>>15;    vx = vec_sl (V, c->CSHIFT);    *R = vec_mradds (vx, c->CRV, Y);    // uvx = ((CGU*u) + (CGV*v))>>15;    uvx = vec_mradds (U, c->CGU, Y);    *G  = vec_mradds (V, c->CGV, uvx);}/*  ------------------------------------------------------------------------------  CS converters  ------------------------------------------------------------------------------*/#define DEFCSP420_CVT(name,out_pixels)                                  \static int altivec_##name (SwsContext *c,                               \                           unsigned char **in, int *instrides,          \                           int srcSliceY,        int srcSliceH,         \                           unsigned char **oplanes, int *outstrides)    \{                                                                       \    int w = c->srcW;                                                    \    int h = srcSliceH;                                                  \    int i,j;                                                            \    int instrides_scl[3];                                               \    vector unsigned char y0,y1;                                         \                                                                        \    vector signed char  u,v;                                            \                                                                        \    vector signed short Y0,Y1,Y2,Y3;                                    \    vector signed short U,V;                                            \    vector signed short vx,ux,uvx;                                      \    vector signed short vx0,ux0,uvx0;                                   \    vector signed short vx1,ux1,uvx1;                                   \    vector signed short R0,G0,B0;                                       \    vector signed short R1,G1,B1;                                       \    vector unsigned char R,G,B;                                         \                                                                        \    vector unsigned char *y1ivP, *y2ivP, *uivP, *vivP;                  \    vector unsigned char align_perm;                                    \                                                                        \    vector signed short                                                 \        lCY  = c->CY,                                                   \        lOY  = c->OY,                                                   \        lCRV = c->CRV,                                                  \        lCBU = c->CBU,                                                  \        lCGU = c->CGU,                                                  \        lCGV = c->CGV;                                                  \                                                                        \    vector unsigned short lCSHIFT = c->CSHIFT;                          \                                                                        \    ubyte *y1i   = in[0];                                               \    ubyte *y2i   = in[0]+instrides[0];                                  \    ubyte *ui    = in[1];                                               \    ubyte *vi    = in[2];                                               \                                                                        \    vector unsigned char *oute                                          \        = (vector unsigned char *)                                      \            (oplanes[0]+srcSliceY*outstrides[0]);                       \

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆精品国产自产在线观看一区 | 欧美日韩国产高清一区| 成人黄色a**站在线观看| 国产一区二区电影| 国产成人综合在线播放| 国精品**一区二区三区在线蜜桃 | 欧美一区二区在线免费播放| 欧美精三区欧美精三区| 欧美另类z0zxhd电影| 91精品国产黑色紧身裤美女| 欧美另类videos死尸| 欧美一卡二卡在线| 精品国产免费人成电影在线观看四季| 日韩欧美国产午夜精品| 精品捆绑美女sm三区| 久久久久97国产精华液好用吗| 国产色婷婷亚洲99精品小说| 国产精品久久久久久户外露出 | 亚洲人成在线播放网站岛国| 亚洲男人的天堂在线aⅴ视频| 一区二区三区资源| 偷偷要91色婷婷| 精品亚洲porn| 成人av高清在线| 91美女在线观看| 欧美三级资源在线| 制服丝袜日韩国产| 国产综合一区二区| 成人精品一区二区三区四区| 国产精品18久久久久久久网站| 国产一区免费电影| 国产成人无遮挡在线视频| 成人精品免费视频| 99精品一区二区| 欧洲日韩一区二区三区| 欧美日韩dvd在线观看| 欧美一区二区私人影院日本| 精品国产sm最大网站免费看| 久久精品欧美日韩精品| 国产精品私房写真福利视频| 中文字幕字幕中文在线中不卡视频| 亚洲三级理论片| 天天免费综合色| 激情综合一区二区三区| 国产高清在线精品| 99在线精品观看| www.一区二区| 色婷婷久久久亚洲一区二区三区 | 国产精品卡一卡二| 亚洲欧洲综合另类| 午夜精品福利在线| 极品美女销魂一区二区三区| 9人人澡人人爽人人精品| 在线观看成人免费视频| 91麻豆精品国产91久久久久久| 26uuu久久天堂性欧美| 国产精品久久久久久久久免费桃花| 亚洲午夜激情网站| 国产一区三区三区| 在线影院国内精品| 欧美色中文字幕| 国产亚洲欧洲一区高清在线观看| 久久午夜色播影院免费高清| 一区二区视频免费在线观看| 麻豆成人综合网| 99久久精品国产精品久久| 91精品国产乱码| 成人免费小视频| 蜜臀久久久99精品久久久久久| 成人精品免费视频| 91精品国产乱码久久蜜臀| 欧美国产丝袜视频| 日本女优在线视频一区二区| 99re这里只有精品6| 日韩午夜av电影| 亚洲激情综合网| 国产精品夜夜爽| 欧美久久久久免费| 亚洲精品一二三四区| 国产精品影视在线观看| 欧美性生活大片视频| 精品国产成人在线影院| 夜夜精品视频一区二区| 高清国产一区二区| 欧美一区二区播放| 亚洲韩国精品一区| av在线综合网| 久久亚区不卡日本| 日本一道高清亚洲日美韩| 成人av集中营| 久久天堂av综合合色蜜桃网| 视频在线观看一区二区三区| 91麻豆免费看| 国产精品久久久一本精品| 久久99国产精品尤物| 欧美综合在线视频| 亚洲天堂网中文字| 成人黄色一级视频| 久久影院电视剧免费观看| 日韩国产欧美三级| 在线观看国产日韩| 亚洲精品日产精品乱码不卡| 不卡一区二区中文字幕| 久久精品一区蜜桃臀影院| 久久精品国产精品青草| 欧美高清视频一二三区| 亚洲永久精品国产| 在线影院国内精品| 一区二区三区在线免费视频| 91天堂素人约啪| 2022国产精品视频| 蜜桃久久精品一区二区| 91精品国产色综合久久不卡蜜臀 | 一区二区中文视频| fc2成人免费人成在线观看播放| 久久久美女毛片| 国产一区二区精品久久99| 精品免费日韩av| 免费看精品久久片| 91精品国产综合久久久久久| 图片区小说区区亚洲影院| 欧美精品久久久久久久多人混战 | 视频一区二区三区中文字幕| 91精彩视频在线观看| 国产高清精品在线| 国产精品乡下勾搭老头1| 捆绑调教美女网站视频一区| 日韩三级在线免费观看| 国产乱对白刺激视频不卡| 日韩电影在线一区| 捆绑紧缚一区二区三区视频| 精品国产一区二区三区久久久蜜月| 精品一区二区三区视频在线观看 | 波多野结衣亚洲| 国产精品美女久久久久av爽李琼 | 1区2区3区精品视频| 91社区在线播放| 国产精品不卡在线观看| 日本黄色一区二区| 亚洲午夜免费福利视频| 欧美一区二区三区婷婷月色| 韩国毛片一区二区三区| 中文字幕精品一区二区精品绿巨人| 99久久精品国产观看| 亚洲综合精品久久| 欧美一区二区三区小说| 日韩影院免费视频| 中文字幕不卡在线观看| 色哟哟国产精品| 日韩激情视频网站| 久久在线免费观看| 99久久综合国产精品| 婷婷久久综合九色综合伊人色| 日韩欧美的一区二区| 蜜臂av日日欢夜夜爽一区| www国产亚洲精品久久麻豆| 国产高清精品久久久久| 综合亚洲深深色噜噜狠狠网站| 在线不卡的av| 粉嫩av一区二区三区粉嫩| 亚洲国产中文字幕| 久久奇米777| 色婷婷亚洲精品| 蜜臀av性久久久久蜜臀aⅴ| 欧美精品一区二| 91麻豆蜜桃一区二区三区| 美国三级日本三级久久99| 欧美成va人片在线观看| 色综合天天综合网国产成人综合天| 亚洲国产毛片aaaaa无费看| 亚洲精品一区二区三区精华液| av亚洲精华国产精华精| 视频一区视频二区在线观看| 中文字幕第一页久久| 欧美高清视频一二三区| 成人精品国产福利| 丝袜亚洲精品中文字幕一区| 精品欧美一区二区在线观看| 欧美视频三区在线播放| 国产 日韩 欧美大片| 日韩成人一区二区三区在线观看| 国产欧美一区二区精品久导航| 欧美日韩中文字幕一区| 床上的激情91.| 肉肉av福利一精品导航| 亚洲欧美偷拍另类a∨色屁股| 日韩精品一区二区在线观看| 色婷婷国产精品| 国产成人亚洲综合a∨猫咪| 亚洲一区二区三区爽爽爽爽爽| 欧美zozo另类异族| 欧美午夜电影在线播放| av成人老司机| 国产黄色成人av| 久色婷婷小香蕉久久| 午夜视频一区二区三区| 亚洲免费在线看| 国产精品短视频| 国产亚洲1区2区3区| 日韩欧美一区二区在线视频|