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

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

?? ppm.c.svn-base

?? ffmpeg是一個(gè)大項(xiàng)目
?? SVN-BASE
字號(hào):
/* * PPM Video Hook * Copyright (c) 2003 Charles Yates * * This library 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 of the License, or (at your option) any later version. * * This library 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 this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */#include <stdio.h>#include <unistd.h>#include <fcntl.h>#include <sys/types.h>#include <sys/wait.h>#include <ctype.h>#include "framehook.h"#include "avformat.h"/** Bi-directional pipe structure.*/typedef struct rwpipe{    int pid;    FILE *reader;    FILE *writer;}rwpipe;/** Create a bidirectional pipe for the given command.*/static rwpipe *rwpipe_open( int argc, char *argv[] ){    rwpipe *this = av_mallocz( sizeof( rwpipe ) );    if ( this != NULL )    {        int input[ 2 ];        int output[ 2 ];        pipe( input );        pipe( output );        this->pid = fork();        if ( this->pid == 0 )        {#define COMMAND_SIZE 10240            char *command = av_mallocz( COMMAND_SIZE );            int i;            strcpy( command, "" );            for ( i = 0; i < argc; i ++ )            {                pstrcat( command, COMMAND_SIZE, argv[ i ] );                pstrcat( command, COMMAND_SIZE, " " );            }            dup2( output[ 0 ], STDIN_FILENO );            dup2( input[ 1 ], STDOUT_FILENO );            close( input[ 0 ] );            close( input[ 1 ] );            close( output[ 0 ] );            close( output[ 1 ] );            execl("/bin/sh", "sh", "-c", command, (char*)NULL );            exit( 255 );        }        else        {            close( input[ 1 ] );            close( output[ 0 ] );            this->reader = fdopen( input[ 0 ], "r" );            this->writer = fdopen( output[ 1 ], "w" );        }    }    return this;}/** Read data from the pipe.*/static FILE *rwpipe_reader( rwpipe *this ){    if ( this != NULL )        return this->reader;    else        return NULL;}/** Write data to the pipe.*/static FILE *rwpipe_writer( rwpipe *this ){    if ( this != NULL )        return this->writer;    else        return NULL;}/* Read a number from the pipe - assumes PNM style headers.*/static int rwpipe_read_number( rwpipe *rw ){    int value = 0;    int c = 0;    FILE *in = rwpipe_reader( rw );    do    {        c = fgetc( in );        while( c != EOF && !isdigit( c ) && c != '#' )            c = fgetc( in );        if ( c == '#' )            while( c != EOF && c != '\n' )                c = fgetc( in );    }    while ( c != EOF && !isdigit( c ) );    while( c != EOF && isdigit( c ) )    {        value = value * 10 + ( c - '0' );        c = fgetc( in );    }    return value;}/** Read a PPM P6 header.*/static int rwpipe_read_ppm_header( rwpipe *rw, int *width, int *height ){    char line[ 3 ];    FILE *in = rwpipe_reader( rw );    int max;    fgets( line, 3, in );    if ( !strncmp( line, "P6", 2 ) )    {        *width = rwpipe_read_number( rw );        *height = rwpipe_read_number( rw );        max = rwpipe_read_number( rw );        return max != 255 || *width <= 0 || *height <= 0;    }    return 1;}/** Close the pipe and process.*/static void rwpipe_close( rwpipe *this ){    if ( this != NULL )    {        fclose( this->reader );        fclose( this->writer );        waitpid( this->pid, NULL, 0 );        av_free( this );    }}/** Context info for this vhook - stores the pipe and image buffers.*/typedef struct{    rwpipe *rw;    int size1;    char *buf1;    int size2;    char *buf2;}ContextInfo;/** Initialise the context info for this vhook.*/int Configure(void **ctxp, int argc, char *argv[]){    if ( argc > 1 )    {        *ctxp = av_mallocz(sizeof(ContextInfo));        if ( ctxp != NULL && argc > 1 )        {            ContextInfo *info = (ContextInfo *)*ctxp;            info->rw = rwpipe_open( argc - 1, &argv[ 1 ] );            return 0;        }    }    return 1;}/** Process a frame.*/void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width, int height, int64_t pts){    int err = 0;    ContextInfo *ci = (ContextInfo *) ctx;    AVPicture picture1;    AVPicture picture2;    AVPicture *pict = picture;    int out_width;    int out_height;    int i;    uint8_t *ptr = NULL;    FILE *in = rwpipe_reader( ci->rw );    FILE *out = rwpipe_writer( ci->rw );    /* Check that we have a pipe to talk to. */    if ( in == NULL || out == NULL )        err = 1;    /* Convert to RGB24 if necessary */    if ( !err && pix_fmt != PIX_FMT_RGB24 )    {        int size = avpicture_get_size(PIX_FMT_RGB24, width, height);        if ( size != ci->size1 )        {            av_free( ci->buf1 );            ci->buf1 = av_malloc(size);            ci->size1 = size;            err = ci->buf1 == NULL;        }        if ( !err )        {            avpicture_fill(&picture1, ci->buf1, PIX_FMT_RGB24, width, height);            if (img_convert(&picture1, PIX_FMT_RGB24, picture, pix_fmt, width, height) < 0)                err = 1;            pict = &picture1;        }    }    /* Write out the PPM */    if ( !err )    {        ptr = pict->data[ 0 ];        fprintf( out, "P6\n%d %d\n255\n", width, height );        for ( i = 0; !err && i < height; i ++ )        {            err = !fwrite( ptr, width * 3, 1, out );            ptr += pict->linesize[ 0 ];        }        if ( !err )            err = fflush( out );    }    /* Read the PPM returned. */    if ( !err && !rwpipe_read_ppm_header( ci->rw, &out_width, &out_height ) )    {        int size = avpicture_get_size(PIX_FMT_RGB24, out_width, out_height);        if ( size != ci->size2 )        {            av_free( ci->buf2 );            ci->buf2 = av_malloc(size);            ci->size2 = size;            err = ci->buf2 == NULL;        }        if ( !err )        {            avpicture_fill(&picture2, ci->buf2, PIX_FMT_RGB24, out_width, out_height);            ptr = picture2.data[ 0 ];            for ( i = 0; !err && i < out_height; i ++ )            {                err = !fread( ptr, out_width * 3, 1, in );                ptr += picture2.linesize[ 0 ];            }        }    }    /* Convert the returned PPM back to the input format */    if ( !err )    {        /* Actually, this is wrong, since the out_width/out_height returned from the         * filter won't necessarily be the same as width and height - img_resample         * won't scale rgb24, so the only way out of this is to convert to something         * that img_resample does like [which may or may not be pix_fmt], rescale         * and finally convert to pix_fmt... slow, but would provide the most flexibility.         *         * Currently, we take the upper left width/height pixels from the filtered image,         * smaller images are going to be corrupted or cause a crash.         *         * Finally, what should we do in case of this call failing? Up to now, failures         * are gracefully ignored and the original image is returned - in this case, a         * failure may corrupt the input.         */        if (img_convert(picture, pix_fmt, &picture2, PIX_FMT_RGB24, width, height) < 0)        {        }    }}/** Clean up the effect.*/void Release(void *ctx){    ContextInfo *ci;    ci = (ContextInfo *) ctx;    if (ctx)    {        rwpipe_close( ci->rw );        av_free( ci->buf1 );        av_free( ci->buf2 );        av_free(ctx);    }}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久国产免费免费| 日韩成人av影视| 一区二区三区日韩精品| 三级影片在线观看欧美日韩一区二区 | 久久免费精品国产久精品久久久久| 国产日韩欧美一区二区三区乱码 | 国产精品99久久久| 91在线观看视频| 欧美一级片在线看| 欧美国产日韩一二三区| 亚洲香肠在线观看| 国产精品资源在线| 一本大道久久a久久综合婷婷| 7777精品久久久大香线蕉| 久久久美女艺术照精彩视频福利播放| **网站欧美大片在线观看| 丝袜美腿亚洲色图| 成人免费观看男女羞羞视频| 欧美日韩免费电影| 国产欧美精品日韩区二区麻豆天美| 一区二区三区欧美日| 激情综合网av| 欧美吻胸吃奶大尺度电影| 久久久一区二区| 午夜精品久久久久影视| 成人精品视频一区二区三区尤物| 欧美精品日韩一区| 国产精品入口麻豆原神| 免费三级欧美电影| 91在线小视频| 久久影院午夜片一区| 亚洲午夜视频在线观看| 国产a视频精品免费观看| 欧美一区二区三区在线| 亚洲男人天堂av| 丁香婷婷深情五月亚洲| 日韩免费看网站| 亚洲一区二三区| www.久久精品| 久久久久久夜精品精品免费| 日本伊人午夜精品| 在线免费亚洲电影| 成人欧美一区二区三区视频网页| 精品综合免费视频观看| 欧美日韩国产天堂| 一级中文字幕一区二区| 丁香婷婷综合网| 久久综合一区二区| 免费久久精品视频| 欧美日本不卡视频| 亚洲综合免费观看高清完整版在线| 成人性色生活片| 久久亚洲精华国产精华液 | 日韩欧美在线网站| 夜夜精品浪潮av一区二区三区| 国产91色综合久久免费分享| 精品人在线二区三区| 日韩专区一卡二卡| 欧美三级日韩三级| 亚洲一区成人在线| 在线观看欧美日本| 亚洲最大成人综合| 97精品久久久午夜一区二区三区| 亚洲国产电影在线观看| 国产成人精品免费看| 国产亚洲1区2区3区| 国产原创一区二区三区| 精品免费日韩av| 精品制服美女久久| 日韩欧美黄色影院| 精久久久久久久久久久| 日韩无一区二区| 久久精品99国产精品| 欧美成人vr18sexvr| 卡一卡二国产精品 | 国模少妇一区二区三区| 日韩欧美国产午夜精品| 麻豆久久一区二区| 欧美大片在线观看一区二区| 久久国产精品露脸对白| 欧美成人免费网站| 国产精品亚洲一区二区三区在线 | 国产成人精品亚洲日本在线桃色| 久久日一线二线三线suv| 国内不卡的二区三区中文字幕| 亚洲精品在线一区二区| 国产精品亚洲一区二区三区在线 | 成人美女视频在线看| 中文字幕一区在线观看| 97se狠狠狠综合亚洲狠狠| 亚洲综合一区二区精品导航| 欧美日本在线一区| 久久99精品国产麻豆婷婷| 久久精品亚洲精品国产欧美kt∨| 成人的网站免费观看| 亚洲欧美日韩国产成人精品影院 | 日韩电影在线免费看| 日韩欧美激情在线| 成人小视频在线观看| 亚洲精品国产视频| 在线不卡一区二区| 国产一区二区三区在线观看免费 | 成人综合在线观看| 亚洲欧洲综合另类| 欧美日韩一区在线观看| 久久精品国产亚洲a| 日本一区二区电影| 欧美性色aⅴ视频一区日韩精品| 蜜臀av国产精品久久久久| 久久久91精品国产一区二区精品| 91在线观看一区二区| 五月综合激情日本mⅴ| 欧美一级电影网站| 不卡大黄网站免费看| 亚洲国产aⅴ天堂久久| 精品区一区二区| 一本久道久久综合中文字幕| 美女脱光内衣内裤视频久久网站| 欧美经典一区二区三区| 在线观看免费亚洲| 激情六月婷婷综合| 亚洲精品乱码久久久久久| 日韩一区二区精品| 97精品国产露脸对白| 蜜桃视频免费观看一区| 国产精品成人网| 日韩一区二区三区免费观看| 不卡一卡二卡三乱码免费网站| 亚洲电影在线播放| 欧美激情中文不卡| 欧美三级日韩在线| 成人av网站免费观看| 日韩不卡一二三区| 亚洲精品乱码久久久久久黑人 | 国内精品国产三级国产a久久| 一区二区三区蜜桃| 国产婷婷一区二区| 欧美日韩一区精品| 99久久精品久久久久久清纯| 日韩av电影免费观看高清完整版 | 成人免费av网站| 美女性感视频久久| 亚洲最新在线观看| 国产精品热久久久久夜色精品三区| 欧美精品v日韩精品v韩国精品v| www.亚洲人| 黑人精品欧美一区二区蜜桃| 亚洲一本大道在线| 国产精品婷婷午夜在线观看| 欧美成人一级视频| 日本乱人伦一区| 国产成人a级片| 美女视频黄 久久| 亚洲专区一二三| 日韩欧美国产电影| 欧美精品久久99| 一本到不卡免费一区二区| 丁香啪啪综合成人亚洲小说| 日韩**一区毛片| 亚洲一区二区三区影院| 久久综合九色综合97婷婷女人 | 一区二区三区精品视频在线| 国产欧美精品在线观看| 欧美成va人片在线观看| 欧美美女一区二区| 欧美亚洲免费在线一区| 色综合 综合色| 97精品久久久午夜一区二区三区 | 亚洲欧美色综合| 国产精品国产精品国产专区不蜜| 久久久久国产精品麻豆ai换脸 | 成人高清免费观看| 国产一区二区三区美女| 韩国女主播一区| 蜜桃av一区二区| 偷窥少妇高潮呻吟av久久免费| 亚洲欧美韩国综合色| 国产精品久久久久久久久久免费看| 欧美电影免费观看高清完整版在 | 亚洲啪啪综合av一区二区三区| 亚洲国产经典视频| 国产午夜精品一区二区三区四区| 日韩午夜电影在线观看| 51午夜精品国产| 日韩一级完整毛片| 日韩免费性生活视频播放| 884aa四虎影成人精品一区| 7777精品伊人久久久大香线蕉超级流畅| 色94色欧美sute亚洲线路一久| 一本色道久久综合亚洲aⅴ蜜桃| 91网站视频在线观看| 99riav一区二区三区| 日本伦理一区二区| 欧洲精品在线观看| 欧美精品乱码久久久久久| 欧美一区二区不卡视频| 欧美v国产在线一区二区三区| 久久久五月婷婷| 国产女人18水真多18精品一级做| 中文字幕在线不卡|