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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qte.cpp

?? VLC Player Source Code
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/***************************************************************************** * qte.cpp : QT Embedded plugin for vlc ***************************************************************************** * Copyright (C) 1998-2003 the VideoLAN team * $Id: 2968e073d9ccc7330e6c369e93c87397de8aa87f $ * * Authors: Gerald Hansink <gerald.hansink@ordina.nl> *          Jean-Paul Saman <jpsaman _at_ videolan _dot_ org> * * This program 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. * * This program 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 this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************//***************************************************************************** * Preamble *****************************************************************************//***************************************************************************** * notes: * - written for ipaq, so hardcoded assumptions specific for ipaq... * - runs full screen * - no "mouse events" handling * - etc. *****************************************************************************/extern "C"{#include <errno.h>                                                 /* ENOMEM */#ifdef HAVE_CONFIG_H# include "config.h"#endif#include <vlc_common.h>#include <vlc_plugin.h>#include <vlc_interface.h>#include <vlc_vout.h>#ifdef HAVE_MACHINE_PARAM_H    /* BSD */#   include <machine/param.h>#   include <sys/types.h>                                  /* typedef ushort */#   include <sys/ipc.h>#endif#ifndef WIN32#   include <netinet/in.h>                            /* BSD: struct in_addr */#endif#ifdef HAVE_SYS_SHM_H#   include <sys/shm.h>                                /* shmget(), shmctl() */#endif} /* extern "C" */#include <qapplication.h>#include <qpainter.h>#ifdef Q_WS_QWS#   define USE_DIRECT_PAINTER#   include <qdirectpainter_qws.h>#   include <qgfxraster_qws.h>#endifextern "C"{#include "qte.h"/***************************************************************************** * Module descriptor *****************************************************************************/#define DISPLAY_TEXT N_("QT Embedded display")#define DISPLAY_LONGTEXT N_( \    "Qt Embedded hardware display to use. " \    "By default VLC will use the value of the DISPLAY environment variable.")/***************************************************************************** * Local prototypes *****************************************************************************/static int  Open      ( vlc_object_t * );static void Close     ( vlc_object_t * );static void Render    ( vout_thread_t *, picture_t * );static void Display   ( vout_thread_t *, picture_t * );static int  Manage    ( vout_thread_t * );static int  Init      ( vout_thread_t * );static void End       ( vout_thread_t * );static int  OpenDisplay ( vout_thread_t * );static void CloseDisplay( vout_thread_t * );static int  NewPicture     ( vout_thread_t *, picture_t * );static void FreePicture    ( vout_thread_t *, picture_t * );static void ToggleFullScreen      ( vout_thread_t * );static void* RunQtThread( vlc_object_t *p_this );} /* extern "C" *//****************************************************************************** Exported prototypes*****************************************************************************/extern "C"{vlc_module_begin();    set_category( CAT_VIDEO );    set_subcategory( SUBCAT_VIDEO_VOUT );//    add_category_hint( N_("QT Embedded"), NULL );//    add_string( "qte-display", "landscape", NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT);    set_description( N_("QT Embedded video output") );    set_capability( "video output", 70 );    add_shortcut( "qte" );    set_callbacks( Open, Close);vlc_module_end();} /* extern "C" *//***************************************************************************** * Seeking function TODO: put this in a generic location ! *****************************************************************************/static inline void vout_Seek( off_t i_seek ){}/***************************************************************************** * Open: allocate video thread output method *****************************************************************************/static int Open( vlc_object_t *p_this ){    vout_thread_t * p_vout = (vout_thread_t *)p_this;    /* Allocate structure */    p_vout->p_sys = (struct vout_sys_t*) malloc( sizeof( struct vout_sys_t ) );    if( p_vout->p_sys == NULL )        return( 1 );    p_vout->pf_init    = Init;    p_vout->pf_end     = End;    p_vout->pf_manage  = Manage;    p_vout->pf_render  = NULL; //Render;    p_vout->pf_display = Display;#ifdef NEED_QTE_MAIN    p_vout->p_sys->p_qte_main =        module_Need( p_this, "gui-helper", "qte", true );    if( p_vout->p_sys->p_qte_main == NULL )    {        free( p_vout->p_sys );        return VLC_ENOMOD;    }#endif    if (OpenDisplay(p_vout))    {        msg_Err( p_vout, "Cannot set up qte video output" );        Close(p_this);        return( -1 );    }    return( 0 );}/***************************************************************************** * CloseVideo: destroy Sys video thread output method ***************************************************************************** * Terminate an output method created by Open *****************************************************************************/static void Close ( vlc_object_t *p_this ){    vout_thread_t * p_vout = (vout_thread_t *)p_this;    msg_Dbg( p_vout, "close" );    if( p_vout->p_sys->p_event )    {        vlc_object_detach( p_vout->p_sys->p_event );        /* Kill RunQtThread */        vlc_object_kill( p_vout->p_sys->p_event );        CloseDisplay(p_vout);        vlc_thread_join( p_vout->p_sys->p_event );        vlc_object_release( p_vout->p_sys->p_event );    }#ifdef NEED_QTE_MAIN    msg_Dbg( p_vout, "releasing gui-helper" );    module_Unneed( p_vout, p_vout->p_sys->p_qte_main );#endif    if( p_vout->p_sys )    {        free( p_vout->p_sys );        p_vout->p_sys = NULL;    }}/***************************************************************************** * Init: initialize video thread output method ***************************************************************************** * This function create the buffers needed by the output thread. It is called * at the beginning of the thread, but also each time the window is resized. *****************************************************************************/static int Init( vout_thread_t *p_vout ){    int         i_index;    picture_t*  p_pic;    int         dd = QPixmap::defaultDepth();    I_OUTPUTPICTURES = 0;    p_vout->output.i_chroma = (dd == 16) ? VLC_FOURCC('R','V','1','6'): VLC_FOURCC('R','V','3','2');    p_vout->output.i_rmask  = 0xf800;    p_vout->output.i_gmask  = 0x07e0;    p_vout->output.i_bmask  = 0x001f;    /* All we have is an RGB image with square pixels */    p_vout->output.i_width  = p_vout->p_sys->i_width;    p_vout->output.i_height = p_vout->p_sys->i_height;    if( !p_vout->b_fullscreen )    {        p_vout->output.i_aspect = p_vout->output.i_width                                   * VOUT_ASPECT_FACTOR                                   / p_vout->output.i_height;    }    else    {        p_vout->output.i_aspect = p_vout->render.i_aspect;    }#if 0    msg_Dbg( p_vout, "Init (h=%d,w=%d,aspect=%d)",p_vout->output.i_height,p_vout->output.i_width,p_vout->output.i_aspect );#endif    /* Try to initialize MAX_DIRECTBUFFERS direct buffers */    while( I_OUTPUTPICTURES < QTE_MAX_DIRECTBUFFERS )    {        p_pic = NULL;        /* Find an empty picture slot */        for( i_index = 0 ; i_index < VOUT_MAX_PICTURES ; i_index++ )        {            if( p_vout->p_picture[ i_index ].i_status == FREE_PICTURE )            {                p_pic = p_vout->p_picture + i_index;                break;            }        }        /* Allocate the picture */        if( p_pic == NULL ||  NewPicture( p_vout, p_pic ) )        {            break;        }        p_pic->i_status = DESTROYED_PICTURE;        p_pic->i_type   = DIRECT_PICTURE;        PP_OUTPUTPICTURE[ I_OUTPUTPICTURES ] = p_pic;        I_OUTPUTPICTURES++;    }    return( 0 );}/***************************************************************************** * Render: render previously calculated output *****************************************************************************/static void Render( vout_thread_t *p_vout, picture_t *p_pic ){    ;}/***************************************************************************** * Display: displays previously rendered output ***************************************************************************** * This function sends the currently rendered image to screen. *****************************************************************************/static void Display( vout_thread_t *p_vout, picture_t *p_pic ){    unsigned int x, y, w, h;    vout_PlacePicture( p_vout, p_vout->output.i_width, p_vout->output.i_height,                       &x, &y, &w, &h );#if 0    msg_Dbg(p_vout, "+qte::Display( p_vout, i_width=%d, i_height=%d, x=%u, y=%u, w=%u, h=%u",        p_vout->output.i_width, p_vout->output.i_height, x, y, w, h );#endif    if(p_vout->p_sys->p_VideoWidget)    {// shameless borrowed from opie mediaplayer....#ifndef USE_DIRECT_PAINTER        msg_Dbg(p_vout, "not using direct painter");        QPainter p(p_vout->p_sys->p_VideoWidget);        /* rotate frame */        int dd      = QPixmap::defaultDepth();        int bytes   = ( dd == 16 ) ? 2 : 4;        int rw = h, rh = w;        QImage rotatedFrame( rw, rh, bytes << 3 );        ushort* in  = (ushort*)p_pic->p_sys->pQImage->bits();        ushort* out = (ushort*)rotatedFrame.bits();        int spl = rotatedFrame.bytesPerLine() / bytes;        for (int x=0; x<h; x++)        {            if ( bytes == 2 )            {                ushort* lout = out++ + (w - 1)*spl;                for (int y=0; y<w; y++)                {                    *lout=*in++;                    lout-=spl;                }            }            else            {                ulong* lout = ((ulong *)out)++ + (w - 1)*spl;                for (int y=0; y<w; y++)                {                    *lout=*((ulong*)in)++;                    lout-=spl;                }            }        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本中文字幕不卡| 麻豆一区二区三区| 精品一区二区日韩| 色婷婷狠狠综合| 久久久久综合网| 日韩精品每日更新| 不卡av在线免费观看| 日韩欧美成人午夜| 亚洲国产美女搞黄色| 成年人网站91| 久久新电视剧免费观看| 亚洲成a天堂v人片| 色噜噜夜夜夜综合网| 国产清纯白嫩初高生在线观看91| 日本成人在线电影网| 91福利在线观看| 国产精品理伦片| 国产久卡久卡久卡久卡视频精品| 欧美一级片在线观看| 亚洲一二三四久久| 一本到一区二区三区| 国产精品区一区二区三| 韩日欧美一区二区三区| 日韩亚洲欧美成人一区| 爽好多水快深点欧美视频| 在线观看视频一区二区欧美日韩| 最近日韩中文字幕| 99久久精品国产毛片| 国产精品久久久久三级| 国产精品综合一区二区| 久久亚区不卡日本| 国产精品1区2区| 久久精品视频免费| 国产成人综合自拍| 中文字幕不卡的av| 99久久精品免费看| 亚洲另类色综合网站| 99久久婷婷国产| 一区二区三区日韩欧美精品| 91国偷自产一区二区开放时间 | 99久久精品一区二区| 国产精品青草久久| 一本在线高清不卡dvd| 亚洲乱码国产乱码精品精小说| 91日韩在线专区| 一区二区三区欧美视频| 欧美欧美午夜aⅴ在线观看| 亚洲成人先锋电影| 日韩一本二本av| 国产精品亚洲第一区在线暖暖韩国| 久久久91精品国产一区二区三区| 成人手机在线视频| 亚洲精品免费在线观看| 欧美疯狂做受xxxx富婆| 久久精品国产一区二区| 国产精品嫩草久久久久| 色妞www精品视频| 日韩一区欧美二区| 精品国产髙清在线看国产毛片| 国产成人av一区二区三区在线 | 精品综合久久久久久8888| 国产亚洲1区2区3区| 91麻豆自制传媒国产之光| 亚洲一二三区视频在线观看| 精品欧美乱码久久久久久 | 日本免费在线视频不卡一不卡二| 欧美日韩精品综合在线| 亚洲一区二区欧美日韩| www.日韩精品| 亚洲另类色综合网站| 国产裸体歌舞团一区二区| 91猫先生在线| 美国毛片一区二区| 国产精品久久免费看| 欧美视频一区二区三区四区 | 亚洲欧美偷拍卡通变态| 777a∨成人精品桃花网| 国产91色综合久久免费分享| 亚洲一区二区免费视频| 中文字幕免费一区| 欧美一区二区三区四区久久| jlzzjlzz亚洲日本少妇| 日本免费新一区视频| 日韩美女精品在线| 麻豆久久一区二区| 国产精品久久国产精麻豆99网站| 狠狠色狠狠色综合日日91app| 日韩美女视频一区| 久久亚洲一级片| 国产精品美女久久久久aⅴ| 69堂亚洲精品首页| 在线观看免费视频综合| 播五月开心婷婷综合| 久久国产三级精品| 无码av免费一区二区三区试看 | 久久国产免费看| 亚洲免费观看高清完整版在线观看熊 | 欧美午夜影院一区| 成人app在线| 国产麻豆午夜三级精品| 免费观看日韩av| 午夜精品成人在线视频| 亚洲一区二区欧美| 亚洲啪啪综合av一区二区三区| 国产日韩欧美不卡| 2023国产精品| 久久久蜜桃精品| 精品久久久久久久久久久久久久久 | 亚洲影院久久精品| 136国产福利精品导航| 国产精品福利电影一区二区三区四区| 欧美精品一区二区久久久| 欧美一激情一区二区三区| 欧美日本国产视频| 欧美卡1卡2卡| 欧美一区二区视频在线观看| 欧美精品在线观看一区二区| 欧美日韩精品久久久| 欧美日韩精品欧美日韩精品 | 偷窥国产亚洲免费视频| 亚洲国产sm捆绑调教视频 | 欧美亚洲国产一区二区三区| 91精品福利视频| 欧美丝袜丝交足nylons图片| 欧美日韩国产乱码电影| 91精品在线免费观看| 精品国内二区三区| 国产午夜亚洲精品不卡 | 精品久久免费看| 久久嫩草精品久久久精品一| 国产日产欧美一区| 亚洲视频在线一区二区| 亚洲一区影音先锋| 日韩精品欧美精品| 精品一区二区三区免费毛片爱| 国产主播一区二区三区| 欧美三级蜜桃2在线观看| 欧美日韩精品一区二区三区四区 | 亚洲婷婷在线视频| 亚洲欧洲美洲综合色网| 一区二区视频在线看| 五月天丁香久久| 精品综合久久久久久8888| 国产一区二区调教| 99精品久久久久久| 欧美狂野另类xxxxoooo| 久久新电视剧免费观看| 亚洲欧美综合另类在线卡通| 亚洲成av人片一区二区梦乃| 国产一区二区三区高清播放| 91丨九色丨尤物| 欧美一二三四在线| 国产精品成人免费| 三级不卡在线观看| 成人av电影免费在线播放| 欧美日韩一级大片网址| 久久人人超碰精品| 亚洲国产精品久久人人爱| 国产一区二区福利视频| 在线亚洲一区观看| 久久久欧美精品sm网站| 日本中文字幕不卡| 91丝袜呻吟高潮美腿白嫩在线观看| 国产成人av一区| 成人精品免费看| 午夜精品免费在线观看| 国产自产高清不卡| 色视频成人在线观看免| 久久综合999| 五月天欧美精品| 97国产一区二区| 久久久久久97三级| 奇米色一区二区三区四区| 一本在线高清不卡dvd| 国产亚洲午夜高清国产拍精品| 亚洲一区二区三区中文字幕| 国产精品1区2区3区在线观看| 91精品欧美久久久久久动漫| 亚洲三级电影网站| 成人免费观看视频| 精品三级在线看| 男女性色大片免费观看一区二区| 91美女精品福利| 中文字幕一区三区| 国产盗摄一区二区三区| 日韩精品一区二区三区中文精品| 亚洲午夜影视影院在线观看| 99久久er热在这里只有精品66| 国产一区91精品张津瑜| 成人av先锋影音| 欧美情侣在线播放| 亚洲成在人线在线播放| 色综合色综合色综合色综合色综合| 国产精品人妖ts系列视频| 国产福利精品一区| 久久精品水蜜桃av综合天堂| 国内精品自线一区二区三区视频| 欧美高清激情brazzers| 亚洲444eee在线观看| 51久久夜色精品国产麻豆|