资源简介
CedarX Recorder说明文档
Libve User Guide
EncoderDemo
代码片段和文件信息
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
// #include
#include
#include
#include
#include “type.h“
#include “drv_display.h“
#include “capture.h“
#define DEV_NAME “/dev/video0“
typedef struct buffer
{
void * start;
size_t length;
}buffer;
int disphd;
unsigned int hlay;
int sel = 0;//which screen 0/1
__disp_layer_info_t layer_para;
__disp_video_fb_t video_fb;
__u32 arg[4];
static int fd = NULL;
struct buffer *buffers = NULL;
static unsigned int n_buffers = 0;
#define CLEAR(x) memset (&(x) 0 sizeof (x))
#define DISP_PREVIEW
#ifdef DISP_PREVIEW
int disp_int(int w int h)
{
/*display start*/
unsigned int preview_left preview_top preview_h preview_w;
preview_left = 80;
preview_top = 0;
preview_h = h;
preview_w = w;
printf(“w: %d h: %d preview_left: %d preview_top: %d preview_h: %d preview_w : %d\n“
w h preview_left preview_top preview_h preview_w);
if((disphd = open(“/dev/disp“O_RDWR)) == -1)
{
printf(“open file /dev/disp fail. \n“);
return 0;
}
arg[0] = 0;
ioctl(disphd DISP_CMD_LCD_ON (void*)arg);
//layer0
arg[0] = 0;
arg[1] = DISP_layer_WORK_MODE_SCALER;
hlay = ioctl(disphd DISP_CMD_layer_REQUEST (void*)arg);
if(hlay == 0)
{
printf(“request layer0 fail\n“);
return 0;
}
printf(“video layer hdl:%d\n“ hlay);
layer_para.mode = DISP_layer_WORK_MODE_SCALER;
layer_para.pipe = 0;
layer_para.fb.addr[0] = 0;//your Y addressmodify this
layer_para.fb.addr[1] = 0; //your C addressmodify this
layer_para.fb.addr[2] = 0;
layer_para.fb.size.width = w;
layer_para.fb.size.height = h;
layer_para.fb.mode = DISP_MOD_NON_MB_UV_COMBINED; //DISP_MOD_NON_MB_PLANAR;
layer_para.fb.format = DISP_FORMAT_YUV420; //DISP_FORMAT_YUV422;
layer_para.fb.br_swap = 0;
layer_para.fb.seq = DISP_SEQ_UVUV;
layer_para.ck_enable = 0;
layer_para.alpha_en = 1;
layer_para.alpha_val = 0xff;
layer_para.src_win.x = 0;
layer_para.src_win.y = 0;
layer_para.src_win.width = w;
layer_para.src_win.height = h;
layer_para.scn_win.x = preview_left;
layer_para.scn_win.y = preview_top;
layer_para.scn_win.width = preview_w;
layer_para.scn_win.height = preview_h;
arg[0] = sel;
arg[1] = hlay;
arg[2] = (__u32)&layer_para;
ioctl(disphdDISP_CMD_layer_SET_PARA(void*)arg);
#if 0
arg[0] = sel;
arg[1] = hlay;
ioctl(disphdDISP_CMD_
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 132577 2011-10-26 15:25 H264硬编码demo\CedarX Recorder说明文档-2011.6.29.pdf
文件 118381 2011-07-07 18:45 H264硬编码demo\EncoderDemo-2011.7.7.rar
文件 299494 2011-10-26 15:30 H264硬编码demo\Libve User Guide-2011.7.6.pdf
文件 132577 2011-10-26 15:25 H264硬编码demo\全志H264硬编码demo\CedarX Recorder说明文档-2011.6.29.pdf
文件 10143 2011-07-06 16:01 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\capture.c
文件 457 2011-07-06 14:23 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\capture.h
....... 8644 2011-07-06 16:06 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\capture.o
文件 58880 2011-07-07 18:37 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\doc\H264encLib简要说明.doc
文件 26658 2011-07-06 14:23 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\drv_display.h
文件 64016 2011-07-07 18:24 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\EncoderDemo
文件 6365 2011-07-06 14:23 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\H264encLibApi.h
文件 89954 2011-07-03 11:18 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\lib\libcedarv.a
文件 6776 2011-06-10 10:50 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\lib\libcedarv_osal.a
文件 10386 2011-06-25 01:30 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\lib\libcedarxalloc.a
....... 144282 2011-07-06 16:05 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\lib\libh264enc.a
文件 3701 2011-07-07 18:24 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\main.c
....... 4620 2011-07-07 18:24 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\main.o
文件 509 2011-07-06 16:06 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\Makefile
文件 2535 2011-07-06 16:01 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\type.h
文件 118381 2011-07-07 18:45 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7.rar
文件 299494 2011-10-26 15:30 H264硬编码demo\全志H264硬编码demo\Libve User Guide-2011.7.6.pdf
目录 0 2011-07-07 18:28 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\doc
目录 0 2011-07-06 15:11 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo\lib
目录 0 2011-07-07 18:29 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7\EncoderDemo
目录 0 2014-03-12 14:58 H264硬编码demo\全志H264硬编码demo\EncoderDemo-2011.7.7
目录 0 2014-03-12 14:58 H264硬编码demo\全志H264硬编码demo
目录 0 2017-01-11 17:09 H264硬编码demo
----------- --------- ---------- ----- ----
1538830 27
............此处省略0个文件信息
- 上一篇:jump4_wxgame.zip
- 下一篇:django 2.0 实现购物车
相关资源
- 使用DirectShow驱动H264/265格式输出的U
- H.264-AVC-ISO_IEC_14496-10
- aac+h264封装MP4
- h264+ffmpeg+opencv开发手册
- v4l2采集+yuyv转yuv420p+h264编码+tcp传输
- h264_JM源码
- dolby杜比5.1测试视频
- 接收RTP包保存为h264文件
- H264+ffmpeg解码+VFW播放
- 播放mp4视频,有声音无图像,AVC(H
- H264编解码rtp发送
- 17754926H264_analsy.rar
- 基于TCP传输的H264流解码和播放
- Windows下利用live555实现H264实时流RTSP发
- h264的视频文件
- H264裸码流文件
- h264视频流解码并通过D3D显示
- H264测试文件 1080P2分30秒和720P1分45秒
- H264的码流分析工具
- 支持 H.265视频重新编码工具ShanaEncod
- 使用DirectShow采集桌面、语音并实时进
- 海思hi3518编码h264源代码
- FFMPEG实现RTSP中数据流解码 并且实时播
- h264 视频文件
- 利用ffmpeg将H264裸流文件封装为MP4文件
- live555实现H264实时流进行RTSP发送
- ffmpeg4+OpenCV3+VS2017 H264编解码
- h264测试视频
- 基于hi3531的live555发送h264
- 从零开始学习音视频编程技术41 H.26
评论
共有 条评论