⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 video_fifo.c

📁 vlc stand 0.1.99 ist sehr einfach
💻 C
字号:
/***************************************************************************** * video_fifo.c : video FIFO management ***************************************************************************** * Copyright (C) 1999, 2000 VideoLAN * * Authors: * * 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., 59 Temple Place - Suite 330, Boston, MA  02111, USA. *****************************************************************************//***************************************************************************** * Preamble *****************************************************************************/#include "defs.h"#include <sys/types.h>                        /* on BSD, uio.h needs types.h */#include <sys/uio.h>                                             /* "input.h */#include "config.h"#include "common.h"#include "threads.h"#include "mtime.h"#include "plugins.h"#include "intf_msg.h"#include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */#include "input.h"#include "input_netlist.h"#include "decoder_fifo.h"#include "video.h"#include "video_output.h"#include "vdec_idct.h"#include "video_decoder.h"#include "vdec_motion.h"#include "vpar_blocks.h"#include "vpar_headers.h"#include "vpar_synchro.h"#include "video_parser.h"#include "video_fifo.h"/***************************************************************************** * vpar_InitFIFO : initialize the video FIFO *****************************************************************************/void vpar_InitFIFO( vpar_thread_t * p_vpar ){#ifdef VDEC_SMP    int                 i_dummy;#endif    p_vpar->vfifo.p_vpar = p_vpar;#ifdef VDEC_SMP    /* Initialize mutex and cond */    vlc_mutex_init( &p_vpar->vfifo.lock );    vlc_cond_init( &p_vpar->vfifo.wait );    vlc_mutex_init( &p_vpar->vbuffer.lock );    /* Initialize FIFO properties */    p_vpar->vfifo.i_start = p_vpar->vfifo.i_end = 0;    /* Initialize buffer properties */    p_vpar->vbuffer.i_index = VFIFO_SIZE; /* all structures are available */    for( i_dummy = 0; i_dummy < VFIFO_SIZE + 1; i_dummy++ )    {        p_vpar->vbuffer.pp_mb_free[i_dummy] = p_vpar->vbuffer.p_macroblocks                                               + i_dummy;    }#endif}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -