小编xuf*_*fan的帖子

如何将动态DLL转换为静态库?

我写了一个程序helloworld.exe; 这取决于a.dll.我没有a.dll的源代码,这是一个动态的dll.如何将其更改为静态库,以便将其链接到helloworld.exe?

c++ dll linker static-libraries

16
推荐指数
2
解决办法
1万
查看次数

如何在android上更快地将RGB565转换为YUV420SP?

我需要显示一个jpeg图片,并将其转换为YUV420SP.首先我使用SkBitmap来解析jpeg并显示它,然后我使用下面的代码将RGB565转换为YUV420SP,但它花费75ms来转换640*480 RGB565图片,所以任何人都知道更快的方式将RGB565转换为YUV420SP的android?或者更快的方式将jpeg文件转换为YUV420SP在android上?

// Convert from RGB to YUV420
int RGB2YUV_YR[256], RGB2YUV_YG[256], RGB2YUV_YB[256];
int RGB2YUV_UR[256], RGB2YUV_UG[256], RGB2YUV_UBVR[256];
int RGB2YUV_VG[256], RGB2YUV_VB[256];

//
// Table used for RGB to YUV420 conversion
//
void InitLookupTable()
{
    static bool hasInited = false;
    if(hasInited)
        return ;
    hasInited = true;
    int i;
    for (i = 0; i < 256; i++)
        RGB2YUV_YR[i] = (float) 65.481 * (i << 8);
    for (i = 0; i < 256; i++)
        RGB2YUV_YG[i] = (float) 128.553 * (i << 8);
    for (i = …
Run Code Online (Sandbox Code Playgroud)

rgb android jpeg arm yuv

4
推荐指数
1
解决办法
5033
查看次数

标签 统计

android ×1

arm ×1

c++ ×1

dll ×1

jpeg ×1

linker ×1

rgb ×1

static-libraries ×1

yuv ×1