分为板子运行程序(c语言),pc机运行程序(Qt),完成了板子lcd显示并通过ethernet传输到电脑上然后再显示出来。
上位机通过qt编写
jz2440
摄像头为支持uvc的mjpeg输出格式的摄像头。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-07-22 18:07 camera-server
目录 0 2015-07-22 21:25 camera-servercamera-server
文件 407 2015-07-22 17:13 camera-servercamera-servercamera-server.pro
文件 18593 2015-07-22 21:25 camera-servercamera-servercamera-server.pro.user
文件 5549 2015-07-22 21:25 camera-servercamera-servercameraserver.cpp
文件 826 2015-07-22 17:14 camera-servercamera-servercameraserver.h
文件 3802 2015-07-22 18:18 camera-servercamera-servercameraserver.ui
文件 5992 2013-12-09 05:08 camera-servercamera-serverjconfig.h
文件 5992 2013-12-09 05:08 camera-servercamera-serverjconfig.txt
文件 15371 2013-09-17 16:20 camera-servercamera-serverjmorecfg.h
文件 50479 2015-07-22 15:50 camera-servercamera-serverjpeglib.h
文件 187 2015-07-18 16:55 camera-servercamera-servermain.cpp
文件 9029 2015-07-22 15:45 camera-servercamera-servermjpeg2rgb.c
文件 915 2015-07-22 15:47 camera-servercamera-servermjpeg2rgb.h
文件 202 2015-07-22 15:37 camera-servercamera-server hread.cpp
文件 248 2015-07-22 15:37 camera-servercamera-server hread.h
目录 0 2015-07-22 17:14 camera-serverdebug
目录 0 2015-07-22 17:58 camera-serverdebugdebug
文件 181760 2015-07-22 17:58 camera-serverdebugdebugcamera-server.exe
文件 638 2015-07-22 17:58 camera-serverdebugdebugcamera-server.exe.embed.manifest
文件 107 2015-07-22 17:58 camera-serverdebugdebugcamera-server.exe_manifest.rc
文件 704 2015-07-22 17:14 camera-serverdebugdebugcamera-server.exe_manifest.res
文件 1953928 2015-07-22 17:58 camera-serverdebugdebugcamera-server.ilk
文件 3715072 2015-07-22 17:58 camera-serverdebugdebugcamera-server.pdb
文件 650601 2015-07-22 17:58 camera-serverdebugdebugcameraserver.obj
文件 255284 2015-07-22 17:14 camera-serverdebugdebugmain.obj
文件 3736 2015-07-22 17:14 camera-serverdebugdebugmoc_cameraserver.cpp
文件 259679 2015-07-22 17:14 camera-serverdebugdebugmoc_cameraserver.obj
文件 21413 2015-07-22 17:14 camera-serverdebugMakefile
文件 73118 2015-07-22 17:14 camera-serverdebugMakefile.Debug
文件 72008 2015-07-22 17:14 camera-serverdebugMakefile.Release
............此处省略45个文件信息
/*
* 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-servercamera-server
文件 407 2015-07-22 17:13 camera-servercamera-servercamera-server.pro
文件 18593 2015-07-22 21:25 camera-servercamera-servercamera-server.pro.user
文件 5549 2015-07-22 21:25 camera-servercamera-servercameraserver.cpp
文件 826 2015-07-22 17:14 camera-servercamera-servercameraserver.h
文件 3802 2015-07-22 18:18 camera-servercamera-servercameraserver.ui
文件 5992 2013-12-09 05:08 camera-servercamera-serverjconfig.h
文件 5992 2013-12-09 05:08 camera-servercamera-serverjconfig.txt
文件 15371 2013-09-17 16:20 camera-servercamera-serverjmorecfg.h
文件 50479 2015-07-22 15:50 camera-servercamera-serverjpeglib.h
文件 187 2015-07-18 16:55 camera-servercamera-servermain.cpp
文件 9029 2015-07-22 15:45 camera-servercamera-servermjpeg2rgb.c
文件 915 2015-07-22 15:47 camera-servercamera-servermjpeg2rgb.h
文件 202 2015-07-22 15:37 camera-servercamera-server hread.cpp
文件 248 2015-07-22 15:37 camera-servercamera-server hread.h
目录 0 2015-07-22 17:14 camera-serverdebug
目录 0 2015-07-22 17:58 camera-serverdebugdebug
文件 181760 2015-07-22 17:58 camera-serverdebugdebugcamera-server.exe
文件 638 2015-07-22 17:58 camera-serverdebugdebugcamera-server.exe.em
文件 107 2015-07-22 17:58 camera-serverdebugdebugcamera-server.exe_manifest.rc
文件 704 2015-07-22 17:14 camera-serverdebugdebugcamera-server.exe_manifest.res
文件 1953928 2015-07-22 17:58 camera-serverdebugdebugcamera-server.ilk
文件 3715072 2015-07-22 17:58 camera-serverdebugdebugcamera-server.pdb
文件 650601 2015-07-22 17:58 camera-serverdebugdebugcameraserver.obj
文件 255284 2015-07-22 17:14 camera-serverdebugdebugmain.obj
文件 3736 2015-07-22 17:14 camera-serverdebugdebugmoc_cameraserver.cpp
文件 259679 2015-07-22 17:14 camera-serverdebugdebugmoc_cameraserver.obj
文件 21413 2015-07-22 17:14 camera-serverdebugMakefile
文件 73118 2015-07-22 17:14 camera-serverdebugMakefile.Debug
文件 72008 2015-07-22 17:14 camera-serverdebugMakefile.Release
............此处省略45个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)