2 * VC3/DNxHD encoder structure definitions and prototypes
3 * Copyright (c) 2007 Baptiste Coudurier <baptiste dot coudurier at smartjog dot com>
5 * VC-3 encoder funded by the British Broadcasting Corporation
7 * This file is part of FFmpeg.
9 * FFmpeg is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * FFmpeg is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with FFmpeg; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 #ifndef AVCODEC_DNXHDENC_H
25 #define AVCODEC_DNXHDENC_H
28 #include "libavcodec/mpegvideo.h"
29 #include "libavcodec/dnxhddata.h"
41 typedef struct DNXHDEncContext
{
42 MpegEncContext m
; ///< Used for quantization dsp functions
46 const CIDEntry
*cid_table
;
47 uint8_t *msip
; ///< Macroblock Scan Indexes Payload
50 struct DNXHDEncContext
*thread
[MAX_THREADS
];
52 unsigned dct_y_offset
;
53 unsigned dct_uv_offset
;
57 DECLARE_ALIGNED_16(DCTELEM
, blocks
[8][64]);
59 int (*qmatrix_c
) [64];
60 int (*qmatrix_l
) [64];
61 uint16_t (*qmatrix_l16
)[2][64];
62 uint16_t (*qmatrix_c16
)[2][64];
83 RCEntry (*mb_rc
)[8160];
85 void (*get_pixels_8x4_sym
)(DCTELEM */
*align
16*/
, const uint8_t *, int);
88 void ff_dnxhd_init_mmx(DNXHDEncContext
*ctx
);
90 #endif /* AVCODEC_DNXHDENC_H */