mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-22 07:40:00 +01:00
Initial checkin of veejay 1.4
git-svn-id: svn://code.dyne.org/veejay/trunk@1172 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
59
veejay-current/veejay-server/liblavjpeg/jpegutils.h
Normal file
59
veejay-current/veejay-server/liblavjpeg/jpegutils.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* jpegutils.h: Some Utility programs for dealing with
|
||||
* JPEG encoded images
|
||||
*
|
||||
* Copyright (C) 1999 Rainer Johanni <Rainer@Johanni.de>
|
||||
* Copyright (C) 2001 pHilipp Zabel <pzabel@gmx.de>
|
||||
*
|
||||
* based on jdatasrc.c and jdatadst.c from the Independent
|
||||
* JPEG Group's software by Thomas G. Lane
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
#ifndef __JPEGUTILS_H__
|
||||
#define __JPEGUTILS_H__
|
||||
|
||||
/*
|
||||
* jpeg_data: buffer with input / output jpeg
|
||||
* len: Length of jpeg buffer
|
||||
* itype: LAV_INTER_NONE: Not interlaced
|
||||
* LAV_INTER_TOP_FIRST: Interlaced, top-field-first
|
||||
* LAV_INTER_BOTTOM_FIRST: Interlaced, bottom-field-first
|
||||
* ctype Chroma format for decompression.
|
||||
* Currently always 420 and hence ignored.
|
||||
* dtype DCT Method (
|
||||
* raw0 buffer with input / output raw Y channel
|
||||
* raw1 buffer with input / output raw U/Cb channel
|
||||
* raw2 buffer with input / output raw V/Cr channel
|
||||
* width width of Y channel (width of U/V is width/2)
|
||||
* height height of Y channel (height of U/V is height/2)
|
||||
*/
|
||||
|
||||
int decode_jpeg_raw(unsigned char *jpeg_data, int len,
|
||||
int itype, int ctype,int dct_method, int width, int height,
|
||||
unsigned char *raw0, unsigned char *raw1,
|
||||
unsigned char *raw2);
|
||||
int decode_jpeg_gray_raw(unsigned char *jpeg_data, int len,
|
||||
int itype, int ctype,int dct, int width, int height,
|
||||
unsigned char *raw0, unsigned char *raw1,
|
||||
unsigned char *raw2);
|
||||
int encode_jpeg_raw(unsigned char *jpeg_data, int len, int quality,int dct,
|
||||
int itype, int ctype, int width, int height,
|
||||
unsigned char *raw0, unsigned char *raw1,
|
||||
unsigned char *raw2);
|
||||
/*
|
||||
void jpeg_skip_ff (j_decompress_ptr cinfo);
|
||||
*/
|
||||
#endif
|
||||
Reference in New Issue
Block a user