mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-18 05:40:02 +01:00
60 lines
2.5 KiB
C
60 lines
2.5 KiB
C
/*
|
|
* 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
|