carlsonlee_freec
码龄14年
关注
提问 私信
  • 博客:23,921
    社区:180
    24,101
    总访问量
  • 22
    原创
  • 979,509
    排名
  • 2
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:浙江省
  • 加入CSDN时间: 2011-01-05
博客简介:

carlsonlee_freec的专栏

博客描述:
Linux Multimedia, CNC application development
查看详细资料
个人成就
  • 获得0次点赞
  • 内容获得1次评论
  • 获得9次收藏
创作历程
  • 22篇
    2011年
成就勋章
创作活动更多

2024 博客之星年度评选报名已开启

博主的专属年度盛宴,一年仅有一次!MAC mini、大疆无人机、华为手表等精美奖品等你来拿!

去参加
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

rs232 library in linux

发布资源 2011.12.31 ·
zip

Windows wavout document

发布资源 2011.12.31 ·
zip

mp2 decoder

发布资源 2011.10.25 ·
zip

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


本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera

#define BPP 4

#define SCALEBITS 10
#define ONE_HALF  (1 << (SCALEBITS - 1))
#define FIX(x)    ((int) ((x) * (1<<SCALEBITS) + 0.5))

原创
发布博客 2011.03.09 ·
1428 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

linux下ALSA播放声音的源程序


author: CarlsonLee(carlsonlee.freec@hotmail.com), 本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera
 
#include <stdio.h>
/* Use the newer ALSA API */
#define ALSA_PCM_NEW_HW_PARAMS_API

#include <a
原创
发布博客 2011.03.09 ·
383 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

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


pdf下载地址:http://www.163disk.com/fileview_190759.html
原创
发布博客 2011.03.09 ·
882 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

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


author: CarlsonLee(carlsonlee.freec@hotmail.com),  本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera

static char * get_evo_cmd (void)
{
    char *tmp = NULL;
    char *retval;
    char *cm
原创
发布博客 2011.03.09 ·
584 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

linux下ALSA录制声音的源程序


author: CarlsonLee(carlsonlee.freec@hotmail.com), 本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera
 
/* Use the newer ALSA API */
#define ALSA_PCM_NEW_HW_PARAMS_API

#include <alsa/asoundlib.h>

原创
发布博客 2011.03.09 ·
955 阅读 ·
0 点赞 ·
0 评论 ·
3 收藏

linux下webcam进行拍照, gstreamer架构


author: CarlsonLee(carlsonlee.freec@hotmail.com),  本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera
#include <glib.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
原创
发布博客 2011.03.09 ·
960 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

linux下webcam进行录像, gstreamer架构


author: CarlsonLee(carlsonlee.freec@hotmail.com), 本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera
#include <glib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
原创
发布博客 2011.03.09 ·
1273 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

YUV420 或 YV12 图像缩放


author: CarlsonLee(carlsonlee.freec@hotmail.com), 本代码是freecamera的一部分,freecamera源代码存在:http://gitorious.org/freecamera

///scale
typedef struct _VSImage
{
    guchar *pixels;
    int width;
  
原创
发布博客 2011.03.09 ·
5285 阅读 ·
0 点赞 ·
0 评论 ·
3 收藏

encode YUV420 to jpeg, using libjpeg


#include <stdlib.h>
#include <stdio.h>
#include "jpeglib.h"
#include <setjmp.h>
#include <glib.h>

gboolean jpeg_enc_yv12(guchar* buffer, gint width, gint height, gint quality, char* filename)
{
 
原创
发布博客 2011.03.09 ·
2193 阅读 ·
0 点赞 ·
1 评论 ·
1 收藏

linux 下 列出所有alsa设备代码



static void device_list(void)
{
    snd_ctl_t *handle;
    int card, err, dev, idx;
    snd_ctl_card_info_t *info;
    snd_pcm_info_t *pcminfo;
    snd_ctl_card_info_alloca(&info);
    snd_pcm_
原创
发布博客 2011.03.09 ·
1614 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

encode YUV420 to ogg, theora codec


#include <stdio.h>
#include <getopt.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <math.h>
#include "theora/theoraenc.h"
原创
发布博客 2011.03.09 ·
637 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

decoder jpeg to rgb 24, using libjpeg


#include <stdio.h>
#include <setjmp.h>
 
#include "jpeglib.h"
#include "jerror.h"
 
struct my_error_mgr  
{
    struct jpeg_error_mgr pub;    /* "public" fields */
    
    
原创
发布博客 2011.03.09 ·
629 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

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


#include <stdio.h>
#include <unistd.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
原创
发布博客 2011.03.09 ·
992 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

test video frame rate & bitrate code in linux


static long get_tick_count()
{
    struct timeval tv;
    gettimeofday(&tv, NULL);
    return (tv.tv_sec * 1000 + tv.tv_usec/1000);
}

static void test_fps_bitrate(int frame_size)
{
    sta
原创
发布博客 2011.03.09 ·
392 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

encode RGB24 to jpeg, using libjpeg



#include <stdio.h>
#include "jpeglib.h"
#include <setjmp.h>

extern JSAMPLE * image_buffer;    /* Points to large array of R,G,B-order data */
extern int image_height;    /* Number of rows in image */
e
原创
发布博客 2011.03.09 ·
733 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

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


ubuntu搭建subversion服务器:(建立一个project_name版本控制服务器)
 
1,安装 subversion,apache2,libapache2-svn(Apache2的Subversion模块)。
sudo apt-get -y install apache2 subversion libapache2-svn
2,增加用户和组 (1,建立subversion组,同时在这里建立用户名)
sud
原创
发布博客 2011.03.09 ·
421 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

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


#include <stdio.h>

typedef signed char         INT8;
typedef signed short        INT16;
typedef signed int          INT32;
typedef unsigned char       UINT8;
typedef unsigned short      UINT16;
typ
原创
发布博客 2011.03.09 ·
594 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多