自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

carlsonlee_freec的专栏

Linux Multimedia, CNC application development

  • 博客(22)
  • 资源 (3)
  • 收藏
  • 关注

原创 RGBA转化成YV12 或YUV420格式的源代码

<br />本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera<br /><br />#define BPP 4<br /><br />#define SCALEBITS 10<br />#define ONE_HALF  (1 << (SCALEBITS - 1))<br />#define FIX(x)    ((int) ((x) * (1<<SCALEBITS) + 0.5))<br /><br />

2011-03-09 12:27:00 1357

原创 linux下ALSA播放声音的源程序

<br />author: CarlsonLee([email protected]), 本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera<br /> <br />#include <stdio.h><br />/* Use the newer ALSA API */<br />#define ALSA_PCM_NEW_HW_PARAMS_API<br /><br />#include <a

2011-03-09 12:26:00 336

原创 在linux窗口上显示YUV图像源代码

<br />pdf下载地址:http://www.163disk.com/fileview_190759.html

2011-03-09 12:26:00 822

原创 linux下c代码如何把指定文件作为附件,通过evolution发送邮件

<br />author: CarlsonLee([email protected]),  本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera<br /><br />static char * get_evo_cmd (void) <br />{ <br />    char *tmp = NULL; <br />    char *retval; <br />    char *cm

2011-03-09 12:25:00 553

原创 linux下ALSA录制声音的源程序

<br />author: CarlsonLee([email protected]), 本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera<br /> <br />/* Use the newer ALSA API */<br />#define ALSA_PCM_NEW_HW_PARAMS_API<br /><br />#include <alsa/asoundlib.h><br /><br

2011-03-09 12:25:00 862

原创 linux下webcam进行拍照, gstreamer架构

<br />author: CarlsonLee([email protected]),  本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera<br />#include <glib.h><br />#include <string.h><br />#include <stdlib.h><br />#include <stdio.h><br />#include <unistd.h><br

2011-03-09 12:24:00 884

原创 linux下webcam进行录像, gstreamer架构

<br />author: CarlsonLee([email protected]), 本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera<br />#include <glib.h><br />#include <string.h><br />#include <stdio.h><br />#include <unistd.h><br />#include <stdlib.h><br

2011-03-09 12:23:00 1184

原创 YUV420 或 YV12 图像缩放

<br />author: CarlsonLee([email protected]), 本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera<br /><br />///scale<br />typedef struct _VSImage <br />{<br />    guchar *pixels;<br />    int width;<br />  

2011-03-09 12:22:00 5170

原创 encode YUV420 to jpeg, using libjpeg

<br />#include <stdlib.h><br />#include <stdio.h><br />#include "jpeglib.h"<br />#include <setjmp.h><br />#include <glib.h><br /><br />gboolean jpeg_enc_yv12(guchar* buffer, gint width, gint height, gint quality, char* filename)<br />{<br /> 

2011-03-09 12:20:00 2107 1

原创 linux 下 列出所有alsa设备代码

<br /><br />static void device_list(void)<br />{<br />    snd_ctl_t *handle;<br />    int card, err, dev, idx;<br />    snd_ctl_card_info_t *info;<br />    snd_pcm_info_t *pcminfo;<br />    snd_ctl_card_info_alloca(&info);<br />    snd_pcm_

2011-03-09 12:20:00 1532

原创 encode YUV420 to ogg, theora codec

<br />#include <stdio.h><br />#include <getopt.h><br />#include <unistd.h><br />#include <stdlib.h><br />#include <string.h><br />#include <time.h><br />#include <sys/time.h><br />#include <math.h><br />#include "theora/theoraenc.h"<br />

2011-03-09 12:19:00 588

原创 decoder jpeg to rgb 24, using libjpeg

<br />#include <stdio.h> <br />#include <setjmp.h> <br /> <br />#include "jpeglib.h" <br />#include "jerror.h" <br /> <br />struct my_error_mgr  <br />{ <br />    struct jpeg_error_mgr pub;    /* "public" fields */ <br />     <br />    

2011-03-09 12:18:00 607

原创 linux上获得本地IP地址和MAC地址(get local ip address and mac address)

<br />#include <stdio.h><br />#include <unistd.h><br />#include <netdb.h><br />#include <arpa/inet.h><br />#include <stdlib.h><br />#include <sys/ioctl.h><br />#include <sys/types.h><br />#include <sys/socket.h><br />#include <net/if.h><br

2011-03-09 12:18:00 953

原创 test video frame rate & bitrate code in linux

<br />static long get_tick_count()<br />{<br />    struct timeval tv;<br />    gettimeofday(&tv, NULL);<br />    return (tv.tv_sec * 1000 + tv.tv_usec/1000);<br />}<br /><br />static void test_fps_bitrate(int frame_size)<br />{<br />    sta

2011-03-09 12:17:00 366

原创 encode RGB24 to jpeg, using libjpeg

<br /><br />#include <stdio.h><br />#include "jpeglib.h"<br />#include <setjmp.h><br /><br />extern JSAMPLE * image_buffer;    /* Points to large array of R,G,B-order data */<br />extern int image_height;    /* Number of rows in image */<br />e

2011-03-09 12:17:00 669

原创 ubuntu搭建subversion服务器, build svn server in ubuntu

<br />ubuntu搭建subversion服务器:(建立一个project_name版本控制服务器) <br /> <br />1,安装 subversion,apache2,libapache2-svn(Apache2的Subversion模块)。 <br />sudo apt-get -y install apache2 subversion libapache2-svn <br />2,增加用户和组 (1,建立subversion组,同时在这里建立用户名) <br />sud

2011-03-09 12:16:00 387

原创 读取 bmp 文件头信息, read bmp infomation

<br />#include <stdio.h><br /><br />typedef signed char         INT8; <br />typedef signed short        INT16; <br />typedef signed int          INT32; <br />typedef unsigned char       UINT8; <br />typedef unsigned short      UINT16; <br />typ

2011-03-09 12:15:00 562

原创 读取 wav文件 头信息, Read wav file information

<br />#include <stdio.h><br /><br />typedef signed char         INT8; <br />typedef signed short        INT16; <br />typedef signed int          INT32; <br />typedef unsigned char       UINT8; <br />typedef unsigned short      UINT16; <br />typ

2011-03-09 12:15:00 746

原创 Linux 下录制和播放 声音, record & play audio in linux

<br />#include <unistd.h><br />#include <fcntl.h><br />#include <sys/types.h><br />#include <sys/ioctl.h><br />#include <stdlib.h><br />#include <stdio.h><br />#include <linux/soundcard.h><br /><br />#define LENGTH 3    /* how many seconds of

2011-03-09 12:14:00 593

原创 使用 directfb绘制图像(draw image with directfb)

<br />/********************************************************************** <br />** Copyright (C) 2010 FreeC ORG.  All rights reserved. <br />** Author: Carlson Lee. <br />** <br />** This file is part of FreeC. <br />** <br />** This file m

2011-03-09 12:13:00 593

原创 把音频数据保存 wav文件, save audio data to wav file

<br />/* this play_buffer holds the digitized audio */<br />//unsigned char buf[LENGTH*RATE*SIZE*CHANNELS/8];<br />typedef unsigned char   BYTE;<br />typedef unsigned short  WORD;<br />typedef unsigned int  DWORD;<br />typedef unsigned int  FOURC

2011-03-09 12:12:00 1254

原创 aec in speex

<br />#include <speex/speex_echo.h><br />#include <speex/speex_preprocess.h><br /><br />static SpeexEchoState *echo_state = NULL;<br />static SpeexPreprocessState *denoise_state;<br />static pthread_mutex_t mutex_aec;<br />static char* rec_buffer

2011-03-09 12:10:00 516

rs232 library in linux

the rs232 code in linux.

2011-12-31

Windows wavout document

使用wavout函数来进行声音的播放和录制

2011-12-31

mp2 decoder

mp2 audio decoder source code

2011-10-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除