mjpeg_avi_filewriter.h

来自「ADI blackfin DSP的基于device friver的jpeg压缩算」· C头文件 代码 · 共 73 行

H
73
字号
/*****************************************************************************
Copyright(c) 2005 Analog Devices, Inc.  All Rights Reserved. This software is 
proprietary and confidential to Analog Devices, Inc. and its licensors.
******************************************************************************

$RCSfile: MJPEG_AVI_FileWriter.h,v $
$Revision: 1.1 $
$Date: 2006/07/17 07:18:19 $

Project:	MJPEG Encoder
Title:		MJPEG Video Encoder AVI file writer header
Author(s):	K.R.
Revised by: 

Description : AVI FILE writer functions exposed

References:
	
******************************************************************************
Tab Setting:			4
Target Processor:		Blackfin
Target Tools Revision:	VDSP++ 4.0
******************************************************************************

Modification History:
====================
$Log: MJPEG_AVI_FileWriter.h,v $
Revision 1.1  2006/07/17 07:18:19  bmk
JPEG-MJPEG User access files


******************************************************************************/

#ifndef _MJPEG_AVI_FILE_WRITER_
#define _MJPEG_AVI_FILE_WRITER_

#include "MJPEG_AVI_FileWriter_exp_header.h"

#include <stdio.h>

typedef struct
{
    FILE *filePtr;
    FILE *indexFilePtr;
    MJPEG_AVI_MainAVIHeader avih;
    uint32 ListmoviChunkOffset;
    uint32 ListhdrlChunkOffset;
    uint32 avihChunkOffset;
    uint32 writingDataStarted;
} tMJPEG_AVI_FileWrite;

#define tMJPEG_AVI_FILEHANDLE tMJPEG_AVI_FileWrite*


typedef struct
{
    tMJPEG_AVI_FILEHANDLE AVIFileHandle;
    tMJPEG_AVI_STREAMINFO AVIStreamInfo;
    uint16 streamId;
} tMJPEG_AVI_StreamWrite;

#define tMJPEG_AVI_STREAMHANDLEWRITE tMJPEG_AVI_StreamWrite*

/* Flags for index */
#define MJPEG_AVIIF_LIST          0x00000001L // chunk is a 'LIST'
#define MJPEG_AVIIF_KEYFRAME      0x00000010L // this frame is a key frame.

#define MJPEG_AVIIF_NOTIME	    0x00000100L // this frame doesn't take any time
#define MJPEG_AVIIF_COMPUSE       0x0FFF0000L // these bits are for compressor use

#endif /* _MJPEG_AVI_FILE_WRITER_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?