2012-03-04 00:53:59 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2011-2012 Derek Buitenhuis
|
|
|
|
*
|
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg 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;
|
|
|
|
* version 2 of the License.
|
|
|
|
*
|
|
|
|
* FFmpeg 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 FFmpeg; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Known FOURCCs:
|
2013-06-09 12:08:03 +00:00
|
|
|
* 'ULY0' (YCbCr 4:2:0), 'ULY2' (YCbCr 4:2:2), 'ULRG' (RGB), 'ULRA' (RGBA),
|
|
|
|
* 'ULH0' (YCbCr 4:2:0 BT.709), 'ULH2' (YCbCr 4:2:2 BT.709)
|
2012-03-04 00:53:59 +00:00
|
|
|
*/
|
|
|
|
|
2012-05-09 07:06:06 +00:00
|
|
|
#ifndef AVCODEC_LIBUTVIDEO_H
|
|
|
|
#define AVCODEC_LIBUTVIDEO_H
|
|
|
|
|
2012-03-04 00:53:59 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <utvideo/utvideo.h>
|
|
|
|
#include <utvideo/Codec.h>
|
|
|
|
|
2013-03-08 22:42:24 +00:00
|
|
|
/*
|
|
|
|
* Ut Video version 12.0.0 changed the RGB format names and removed
|
|
|
|
* the _WIN names, so if the new names are absent, define them
|
|
|
|
* against the old names so compatibility with pre-v12 versions
|
|
|
|
* is maintained.
|
|
|
|
*/
|
|
|
|
#if !defined(UTVF_NFCC_BGR_BU)
|
|
|
|
#define UTVF_NFCC_BGR_BU UTVF_RGB24_WIN
|
2013-01-15 00:15:10 +00:00
|
|
|
#endif
|
|
|
|
|
2013-03-08 22:42:24 +00:00
|
|
|
#if !defined(UTVF_NFCC_BGRA_BU)
|
|
|
|
#define UTVF_NFCC_BGRA_BU UTVF_RGB32_WIN
|
2013-01-15 00:15:10 +00:00
|
|
|
#endif
|
|
|
|
|
2013-06-09 12:08:03 +00:00
|
|
|
/*
|
|
|
|
* Ut Video version 13.0.1 introduced new BT.709 variants.
|
|
|
|
* Special-case these and only use them if v13 is detected.
|
|
|
|
*/
|
|
|
|
#if defined(UTVF_HDYC)
|
|
|
|
#define UTV_BT709
|
|
|
|
#endif
|
|
|
|
|
2012-03-04 00:53:59 +00:00
|
|
|
typedef struct {
|
|
|
|
uint32_t version;
|
|
|
|
uint32_t original_format;
|
|
|
|
uint32_t frameinfo_size;
|
|
|
|
uint32_t flags;
|
|
|
|
} UtVideoExtra;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
CCodec *codec;
|
|
|
|
unsigned int buf_size;
|
|
|
|
uint8_t *buffer;
|
|
|
|
} UtVideoContext;
|
2012-05-09 07:06:06 +00:00
|
|
|
|
|
|
|
#endif /* AVCODEC_LIBUTVIDEO_H */
|