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

📄 sub_cc.c

📁 自己移植的linux下的流媒体播放器原代码,支持mms协议,支持ftp和http协议.
💻 C
字号:
/* * sub_cc.c - Decoder for Closed Captions * * This decoder relies on MPlayer's OSD to display subtitles. * Be warned that the decoding is somewhat preliminary, though it basically works. *  * Most notably, only the text information is decoded as of now, discarding color, * background and position info (see source below). *  * by Matteo Giani * * uses source from the xine closed captions decoder */#include <stdio.h>#include <stdlib.h>#include <string.h>#include "sub_cc.h"#include "subreader.h"#include "libvo/video_out.h"#include "libvo/sub.h"#define CC_INPUTBUFFER_SIZE 256#define CC_MAX_LINE_LENGTH 64static char chartbl[128];static subtitle buf1,buf2;static subtitle *fb,*bb;static unsigned int cursor_pos=0;static int inited=0;static unsigned char inputbuffer[CC_INPUTBUFFER_SIZE];static unsigned int inputlength;static void build_char_table(void){  int i;  /* first the normal ASCII codes */  for (i = 0; i < 128; i++)    chartbl[i] = (char) i;  /* now the special codes */  chartbl[0x2a] = '

⌨️ 快捷键说明

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