资源简介
分为板子运行程序(c语言),pc机运行程序(Qt),完成了板子lcd显示并通过ethernet传输到电脑上然后再显示出来。
上位机通过qt编写
jz2440
摄像头为支持uvc的mjpeg输出格式的摄像头。
代码片段和文件信息
/*
* jdatasrc.c
*
* Copyright (C) 1994-1996 Thomas G. Lane.
* Modified 2009-2011 by Guido Vollbeding.
* This file is part of the Independent JPEG Group‘s software.
* For conditions of distribution and use see the accompanying README file.
*
* This file contains decompression data source routines for the case of
* reading JPEG data from memory or from a file (or any stdio stream).
* While these routines are sufficient for most applications
* some will want to use a different source manager.
* IMPORTANT: we assume that fread() will correctly transcribe an array of
* JOCTETs from 8-bit-wide elements on external storage. If char is wider
* than 8 bits on your machine you may need to do some tweaking.
*/
/* this is not a core library module so it doesn‘t define JPEG_INTERNALS */
#include “jinclude.h“
#include “jpeglib.h“
#include “jerror.h“
#include “mjpeg2rgb.h“
/* Expanded data source object for stdio input */
typedef struct {
struct jpeg_source_mgr pub; /* public fields */
FILE * infile; /* source stream */
JOCTET * buffer; /* start of buffer */
boolean start_of_file; /* have we gotten any data yet? */
} my_source_mgr;
typedef my_source_mgr * my_src_ptr;
#define INPUT_BUF_SIZE 4096 /* choose an efficiently fread‘able size */
/*
* Initialize source --- called by jpeg_read_header
* before any data is actually read.
*/
METHODDEF(void)
init_source (j_decompress_ptr cinfo)
{
my_src_ptr src = (my_src_ptr) cinfo->src;
/* We reset the empty-input-file flag for each image
* but we don‘t clear the input buffer.
* This is correct behavior for reading a series of images from one source.
*/
src->start_of_file = TRUE;
}
METHODDEF(void)
init_mem_source (j_decompress_ptr cinfo)
{
/* no work necessary here */
}
/*
* Fill the input buffer --- called whenever buffer is emptied.
*
* In typical applications this should read fresh data into the buffer
* (ignoring the current state of next_input_byte & bytes_in_buffer)
* reset the pointer & count to the start of the buffer and return TRUE
* indicating that the buffer has been reloaded. It is not necessary to
* fill the buffer entirely only to obtain at least one more byte.
*
* There is no such thing as an EOF return. If the end of the file has been
* reached the routine has a choice of ERREXIT() or inserting fake data into
* the buffer. In most cases generating a warning message and inserting a
* fake EOI marker is the best course of action --- this will allow the
* decompressor to output however much of the image is there. However
* the resulting error message is misleading if the real problem is an empty
* input file so we handle that case specially.
*
* In applications that need to be able to suspend compression due to input
* not being available yet a FALSE return indicates that no more data can be
* obtained right now but more may be forthcoming later. In this situation
* the decompressor will return to its caller (
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-07-22 18:07 camera-server\
目录 0 2015-07-22 21:25 camera-server\camera-server\
文件 407 2015-07-22 17:13 camera-server\camera-server\camera-server.pro
文件 18593 2015-07-22 21:25 camera-server\camera-server\camera-server.pro.user
文件 5549 2015-07-22 21:25 camera-server\camera-server\cameraserver.cpp
文件 826 2015-07-22 17:14 camera-server\camera-server\cameraserver.h
文件 3802 2015-07-22 18:18 camera-server\camera-server\cameraserver.ui
文件 5992 2013-12-09 05:08 camera-server\camera-server\jconfig.h
文件 5992 2013-12-09 05:08 camera-server\camera-server\jconfig.txt
文件 15371 2013-09-17 16:20 camera-server\camera-server\jmorecfg.h
文件 50479 2015-07-22 15:50 camera-server\camera-server\jpeglib.h
文件 187 2015-07-18 16:55 camera-server\camera-server\main.cpp
文件 9029 2015-07-22 15:45 camera-server\camera-server\mjpeg2rgb.c
文件 915 2015-07-22 15:47 camera-server\camera-server\mjpeg2rgb.h
文件 202 2015-07-22 15:37 camera-server\camera-server\thread.cpp
文件 248 2015-07-22 15:37 camera-server\camera-server\thread.h
目录 0 2015-07-22 17:14 camera-server\debug\
目录 0 2015-07-22 17:58 camera-server\debug\debug\
文件 181760 2015-07-22 17:58 camera-server\debug\debug\camera-server.exe
文件 638 2015-07-22 17:58 camera-server\debug\debug\camera-server.exe.em
文件 107 2015-07-22 17:58 camera-server\debug\debug\camera-server.exe_manifest.rc
文件 704 2015-07-22 17:14 camera-server\debug\debug\camera-server.exe_manifest.res
文件 1953928 2015-07-22 17:58 camera-server\debug\debug\camera-server.ilk
文件 3715072 2015-07-22 17:58 camera-server\debug\debug\camera-server.pdb
文件 650601 2015-07-22 17:58 camera-server\debug\debug\cameraserver.obj
文件 255284 2015-07-22 17:14 camera-server\debug\debug\main.obj
文件 3736 2015-07-22 17:14 camera-server\debug\debug\moc_cameraserver.cpp
文件 259679 2015-07-22 17:14 camera-server\debug\debug\moc_cameraserver.obj
文件 21413 2015-07-22 17:14 camera-server\debug\Makefile
文件 73118 2015-07-22 17:14 camera-server\debug\Makefile.Debug
文件 72008 2015-07-22 17:14 camera-server\debug\Makefile.Release
............此处省略45个文件信息
相关资源
- Qt Quick核心编程
- Vs2015+Qt5.8+Opencv读取大恒水晶 MER-131摄
- 基于深度学习的人脸识别系统
- C++GUI QT4 高清版 155MB
- mfcDll工程+qt工程.rar
- C++ Qt设计模式第2版(中英文版)+源码
- C++.GUI.Qt.4编程(第二版)
- C++(qt)游戏实战项目:坦克大战(源
- Qt5.9C++开发指南 源码 资源.zip
- Qt5.9 c++开发指南.part1.rar
- C++GUI QT4编程PDF+源码
- c++&qt;视频会议软件源码
- C++ Qt设计模式第2版高清PDF 带书签
- Opencv3.4+VS2017+MFC对话框打开摄像头、截
- C++编程思想两卷合订本.pdf 电子书(完
- 基于MFC海康威视摄像头Demo含抓图显示
- MFC 使用Opencv调用摄像头并显示画面,
- VS2019编译完成的paho.mqtt.cpp库
- 基于QT5开发漂亮的串口调试助手源码
- qt c++ 开发的俄罗斯方块
- opmapcontrol 一个开源的基于qt的2d地图库
- QTQTabWidget文字垂直显示Demo源码
- C++传递自定义类型作为参数到Qml
- QtQuick实现的涂鸦板
- qt 滑屏翻页效果C++程序
- c++ qt 静态函数中发信号
- linux下QT调用讯飞sdk
- C++、QT学习记录
- QT编写的计算器小程序
- 基于Qt的学生报账系统
评论
共有 条评论