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

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

?? lzo.c

?? ffmpeg移植到symbian的全部源代碼
?? C
字號:
/* * LZO 1x decompression * Copyright (c) 2006 Reimar Doeffinger * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser 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 */#include "common.h"//! avoid e.g. MPlayers fast_memcpy, it slows things down here#undef memcpy#include <string.h>#include "lzo.h"//! define if we may write up to 12 bytes beyond the output buffer#define OUTBUF_PADDED 1//! define if we may read up to 8 bytes beyond the input buffer#define INBUF_PADDED 1typedef struct LZOContext {    const uint8_t *in, *in_end;    uint8_t *out_start, *out, *out_end;    int error;} LZOContext;/** * \brief read one byte from input buffer, avoiding overrun * \return byte read */static inline int get_byte(LZOContext *c) {    if (c->in < c->in_end)        return *c->in++;    c->error |= LZO_INPUT_DEPLETED;    return 1;}#ifdef INBUF_PADDED#define GETB(c) (*(c).in++)#else#define GETB(c) get_byte(&(c))#endif/** * \brief decode a length value in the coding used by lzo * \param x previous byte value * \param mask bits used from x * \return decoded length value */static inline int get_len(LZOContext *c, int x, int mask) {    int cnt = x & mask;    if (!cnt) {        while (!(x = get_byte(c))) cnt += 255;        cnt += mask + x;    }    return cnt;}//#define UNALIGNED_LOADSTORE#define BUILTIN_MEMCPY#ifdef UNALIGNED_LOADSTORE#define COPY2(d, s) *(uint16_t *)(d) = *(uint16_t *)(s);#define COPY4(d, s) *(uint32_t *)(d) = *(uint32_t *)(s);#elif defined(BUILTIN_MEMCPY)#define COPY2(d, s) memcpy(d, s, 2);#define COPY4(d, s) memcpy(d, s, 4);#else#define COPY2(d, s) (d)[0] = (s)[0]; (d)[1] = (s)[1];#define COPY4(d, s) (d)[0] = (s)[0]; (d)[1] = (s)[1]; (d)[2] = (s)[2]; (d)[3] = (s)[3];#endif/** * \brief copy bytes from input to output buffer with checking * \param cnt number of bytes to copy, must be >= 0 */static inline void copy(LZOContext *c, int cnt) {    register const uint8_t *src = c->in;    register uint8_t *dst = c->out;    if (cnt > c->in_end - src) {        cnt = FFMAX(c->in_end - src, 0);        c->error |= LZO_INPUT_DEPLETED;    }    if (cnt > c->out_end - dst) {        cnt = FFMAX(c->out_end - dst, 0);        c->error |= LZO_OUTPUT_FULL;    }#if defined(INBUF_PADDED) && defined(OUTBUF_PADDED)    COPY4(dst, src);    src += 4;    dst += 4;    cnt -= 4;    if (cnt > 0)#endif        memcpy(dst, src, cnt);    c->in = src + cnt;    c->out = dst + cnt;}/** * \brief copy previously decoded bytes to current position * \param back how many bytes back we start * \param cnt number of bytes to copy, must be >= 0 * * cnt > back is valid, this will copy the bytes we just copied, * thus creating a repeating pattern with a period length of back. */static inline void copy_backptr(LZOContext *c, int back, int cnt) {    register const uint8_t *src = &c->out[-back];    register uint8_t *dst = c->out;    if (src < c->out_start || src > dst) {        c->error |= LZO_INVALID_BACKPTR;        return;    }    if (cnt > c->out_end - dst) {        cnt = FFMAX(c->out_end - dst, 0);        c->error |= LZO_OUTPUT_FULL;    }    if (back == 1) {        memset(dst, *src, cnt);        dst += cnt;    } else {#ifdef OUTBUF_PADDED        COPY2(dst, src);        COPY2(dst + 2, src + 2);        src += 4;        dst += 4;        cnt -= 4;        if (cnt > 0) {            COPY2(dst, src);            COPY2(dst + 2, src + 2);            COPY2(dst + 4, src + 4);            COPY2(dst + 6, src + 6);            src += 8;            dst += 8;            cnt -= 8;        }#endif        if (cnt > 0) {            int blocklen = back;            while (cnt > blocklen) {                memcpy(dst, src, blocklen);                dst += blocklen;                cnt -= blocklen;                blocklen <<= 1;            }            memcpy(dst, src, cnt);        }        dst += cnt;    }    c->out = dst;}/** * \brief decode LZO 1x compressed data * \param out output buffer * \param outlen size of output buffer, number of bytes left are returned here * \param in input buffer * \param inlen size of input buffer, number of bytes left are returned here * \return 0 on success, otherwise error flags, see lzo.h * * make sure all buffers are appropriately padded, in must provide * LZO_INPUT_PADDING, out must provide LZO_OUTPUT_PADDING additional bytes */int lzo1x_decode(void *out, int *outlen, const void *in, int *inlen) {    int state= 0;    int x;    LZOContext c;    c.in = in;    c.in_end = (const uint8_t *)in + *inlen;    c.out = c.out_start = out;    c.out_end = (uint8_t *)out + * outlen;    c.error = 0;    x = GETB(c);    if (x > 17) {        copy(&c, x - 17);        x = GETB(c);        if (x < 16) c.error |= LZO_ERROR;    }    if (c.in > c.in_end)        c.error |= LZO_INPUT_DEPLETED;    while (!c.error) {        int cnt, back;        if (x > 15) {            if (x > 63) {                cnt = (x >> 5) - 1;                back = (GETB(c) << 3) + ((x >> 2) & 7) + 1;            } else if (x > 31) {                cnt = get_len(&c, x, 31);                x = GETB(c);                back = (GETB(c) << 6) + (x >> 2) + 1;            } else {                cnt = get_len(&c, x, 7);                back = (1 << 14) + ((x & 8) << 11);                x = GETB(c);                back += (GETB(c) << 6) + (x >> 2);                if (back == (1 << 14)) {                    if (cnt != 1)                        c.error |= LZO_ERROR;                    break;                }            }        } else if(!state){                cnt = get_len(&c, x, 15);                copy(&c, cnt + 3);                x = GETB(c);                if (x > 15)                    continue;                cnt = 1;                back = (1 << 11) + (GETB(c) << 2) + (x >> 2) + 1;        } else {                cnt = 0;                back = (GETB(c) << 2) + (x >> 2) + 1;        }        copy_backptr(&c, back, cnt + 2);        state=        cnt = x & 3;        copy(&c, cnt);        x = GETB(c);    }    *inlen = c.in_end - c.in;    if (c.in > c.in_end)        *inlen = 0;    *outlen = c.out_end - c.out;    return c.error;}#ifdef TEST#include <stdio.h>#include <lzo/lzo1x.h>#include "log.h"#define MAXSZ (10*1024*1024)int main(int argc, char *argv[]) {    FILE *in = fopen(argv[1], "rb");    uint8_t *orig = av_malloc(MAXSZ + 16);    uint8_t *comp = av_malloc(2*MAXSZ + 16);    uint8_t *decomp = av_malloc(MAXSZ + 16);    size_t s = fread(orig, 1, MAXSZ, in);    lzo_uint clen = 0;    long tmp[LZO1X_MEM_COMPRESS];    int inlen, outlen;    int i;    av_log_level = AV_LOG_DEBUG;    lzo1x_999_compress(orig, s, comp, &clen, tmp);    for (i = 0; i < 300; i++) {START_TIMER        inlen = clen; outlen = MAXSZ;#ifdef LIBLZO        if (lzo1x_decompress_safe(comp, inlen, decomp, &outlen, NULL))#elif defined(LIBLZO_UNSAFE)        if (lzo1x_decompress(comp, inlen, decomp, &outlen, NULL))#else        if (lzo1x_decode(decomp, &outlen, comp, &inlen))#endif            av_log(NULL, AV_LOG_ERROR, "decompression error\n");STOP_TIMER("lzod")    }    if (memcmp(orig, decomp, s))        av_log(NULL, AV_LOG_ERROR, "decompression incorrect\n");    else        av_log(NULL, AV_LOG_ERROR, "decompression ok\n");    return 0;}#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产人伦精品一区二区| 欧美三级韩国三级日本一级| 日韩欧美不卡在线观看视频| 日韩电影免费一区| 欧美一区二区三区婷婷月色| 男人的j进女人的j一区| 日韩欧美一级二级| 国产伦精品一区二区三区视频青涩 | 亚洲欧美日韩国产综合在线| 94-欧美-setu| 亚洲国产综合视频在线观看| 6080国产精品一区二区| 极品少妇xxxx精品少妇偷拍| 中文字幕乱码久久午夜不卡| 色999日韩国产欧美一区二区| 亚洲成av人片一区二区| 精品美女一区二区三区| 99久久久国产精品免费蜜臀| 国产91精品一区二区麻豆网站| 中文字幕电影一区| 欧美在线高清视频| 久久97超碰色| 亚洲综合999| 精品va天堂亚洲国产| jlzzjlzz亚洲日本少妇| 日韩精品乱码av一区二区| 久久久久综合网| 欧美午夜理伦三级在线观看| 精久久久久久久久久久| 亚洲欧美日韩久久| 久久久久久久综合色一本| 在线观看av一区| 国产精品资源在线看| 亚洲综合无码一区二区| 久久久久国产一区二区三区四区| 欧美怡红院视频| 国产91对白在线观看九色| 三级一区在线视频先锋 | 亚洲天堂av一区| 欧美一区二区视频观看视频| www.欧美精品一二区| 狂野欧美性猛交blacked| 亚洲免费资源在线播放| 久久综合色8888| 欧美精品在线一区二区| 91女厕偷拍女厕偷拍高清| 国产一区二区三区免费观看| 午夜国产不卡在线观看视频| √…a在线天堂一区| 久久在线观看免费| 678五月天丁香亚洲综合网| 色综合久久久久| 91精品久久久久久久久99蜜臂| 不卡一区二区在线| 黄色精品一二区| 美女网站视频久久| 视频在线观看国产精品| 亚洲精品久久久久久国产精华液| 久久久久久影视| 精品粉嫩aⅴ一区二区三区四区| 欧美无砖专区一中文字| 色偷偷久久人人79超碰人人澡| 九九九精品视频| 美女久久久精品| 蜜桃av噜噜一区| 久久激情五月激情| 奇米影视一区二区三区| 日本在线不卡一区| 视频一区中文字幕国产| 亚洲大尺度视频在线观看| 夜夜嗨av一区二区三区| 中文字幕一区二区三区av| 国产精品日韩成人| 国产欧美久久久精品影院| 国产亚洲欧美激情| 中文av一区二区| 最近中文字幕一区二区三区| 国产精品天美传媒| 一区在线播放视频| 国产精品国产自产拍在线| 国产精品免费网站在线观看| 国产精品视频你懂的| 国产精品三级久久久久三级| 国产精品美女久久久久久久久| 国产精品不卡在线| 一卡二卡三卡日韩欧美| 亚洲成人在线观看视频| 日本午夜一本久久久综合| 日本午夜精品一区二区三区电影| 日本不卡不码高清免费观看| 另类成人小视频在线| 国产精品1区2区3区在线观看| 丰满岳乱妇一区二区三区| 91麻豆国产精品久久| 欧美日韩免费在线视频| 欧美一激情一区二区三区| 久久女同性恋中文字幕| 亚洲欧洲另类国产综合| 亚洲综合一区二区精品导航| 毛片不卡一区二区| 顶级嫩模精品视频在线看| 色婷婷av一区二区三区软件| 欧美精品一二三四| 久久久久国产免费免费 | 国产校园另类小说区| 国产精品久久久久三级| 一区二区三区免费观看| 日韩电影在线看| 国产69精品久久99不卡| 欧美日韩视频第一区| 欧美经典一区二区三区| 亚洲综合一二三区| 国产成+人+日韩+欧美+亚洲| 欧美日韩五月天| 日本一区二区三区dvd视频在线| 亚洲已满18点击进入久久| 国产自产高清不卡| 欧美性欧美巨大黑白大战| 久久九九影视网| 亚洲国产精品久久人人爱蜜臀 | 久久综合狠狠综合久久激情| 综合欧美亚洲日本| 久久66热偷产精品| 欧美丝袜丝交足nylons图片| 国产午夜亚洲精品羞羞网站| 婷婷六月综合网| 福利视频网站一区二区三区| 欧美疯狂性受xxxxx喷水图片| 国产欧美精品国产国产专区| 日韩高清中文字幕一区| 波多野结衣在线一区| 日韩一区二区精品在线观看| 亚洲一区二三区| 成人美女视频在线看| 日韩一区二区三区视频在线观看| 一区二区三区自拍| av午夜精品一区二区三区| 日韩精品一区二| 日韩中文字幕不卡| 欧美羞羞免费网站| 亚洲视频一区在线| 成人性生交大合| 精品国产乱子伦一区| 五月激情综合网| 欧美艳星brazzers| 亚洲免费高清视频在线| 成人一区二区在线观看| 久久亚区不卡日本| 免费在线观看不卡| 欧美裸体bbwbbwbbw| 亚洲最大色网站| 色婷婷亚洲综合| 日韩码欧中文字| www.亚洲色图| 国产精品嫩草影院av蜜臀| 国产盗摄一区二区三区| 精品粉嫩超白一线天av| 狠狠色丁香久久婷婷综合丁香| 欧美一区二区高清| 视频一区欧美精品| 在线电影院国产精品| 午夜精品爽啪视频| 91精品国产综合久久国产大片| 亚洲成人福利片| 欧美高清视频不卡网| 日韩国产一二三区| 欧美精品一二三| 日本欧美在线看| 欧美成人aa大片| 国产一区二区三区综合| 久久日韩精品一区二区五区| 国产一区二区三区四区在线观看| 精品日韩成人av| 国产1区2区3区精品美女| 欧美高清一级片在线观看| 成人免费视频播放| 亚洲欧洲在线观看av| 色婷婷精品久久二区二区蜜臂av | 欧美精品一区二区三区高清aⅴ| 秋霞电影网一区二区| 精品伦理精品一区| 从欧美一区二区三区| 中文字幕一区二区三区在线播放| 91麻豆精品一区二区三区| 亚洲自拍偷拍九九九| 日韩三级在线观看| 国产成人免费视频精品含羞草妖精| 国产色产综合产在线视频| 99在线热播精品免费| 午夜精品久久久久久| 精品剧情v国产在线观看在线| 国产精品18久久久久| 亚洲欧美日韩小说| 欧美一区二区三区视频在线观看| 久久精品国产秦先生| 最新日韩在线视频| 555夜色666亚洲国产免| 激情综合色丁香一区二区| 国产精品久久福利| 欧美群妇大交群的观看方式|