• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

libavcodec/dnxhdenc.h

Go to the documentation of this file.
00001 /*
00002  * VC3/DNxHD encoder structure definitions and prototypes
00003  * Copyright (c) 2007 Baptiste Coudurier <baptiste dot coudurier at smartjog dot com>
00004  *
00005  * VC-3 encoder funded by the British Broadcasting Corporation
00006  *
00007  * This file is part of FFmpeg.
00008  *
00009  * FFmpeg is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Lesser General Public
00011  * License as published by the Free Software Foundation; either
00012  * version 2.1 of the License, or (at your option) any later version.
00013  *
00014  * FFmpeg is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017  * Lesser General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU Lesser General Public
00020  * License along with FFmpeg; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00022  */
00023 
00024 #ifndef AVCODEC_DNXHDENC_H
00025 #define AVCODEC_DNXHDENC_H
00026 
00027 #include <stdint.h>
00028 #include "libavcodec/mpegvideo.h"
00029 #include "libavcodec/dnxhddata.h"
00030 
00031 typedef struct {
00032     uint16_t mb;
00033     int value;
00034 } RCCMPEntry;
00035 
00036 typedef struct {
00037     int ssd;
00038     int bits;
00039 } RCEntry;
00040 
00041 typedef struct DNXHDEncContext {
00042     MpegEncContext m; 
00043 
00044     AVFrame frame;
00045     int cid;
00046     const CIDEntry *cid_table;
00047     uint8_t *msip; 
00048     uint32_t *slice_size;
00049 
00050     struct DNXHDEncContext *thread[MAX_THREADS];
00051 
00052     unsigned dct_y_offset;
00053     unsigned dct_uv_offset;
00054     int interlaced;
00055     int cur_field;
00056 
00057     DECLARE_ALIGNED_16(DCTELEM, blocks[8][64]);
00058 
00059     int      (*qmatrix_c)     [64];
00060     int      (*qmatrix_l)     [64];
00061     uint16_t (*qmatrix_l16)[2][64];
00062     uint16_t (*qmatrix_c16)[2][64];
00063 
00064     unsigned frame_bits;
00065     uint8_t *src[3];
00066 
00067     uint32_t *vlc_codes;
00068     uint8_t  *vlc_bits;
00069     uint16_t *run_codes;
00070     uint8_t  *run_bits;
00071 
00073     unsigned slice_bits;
00074     unsigned qscale;
00075     unsigned lambda;
00076 
00077     unsigned thread_size;
00078 
00079     uint16_t *mb_bits;
00080     uint8_t  *mb_qscale;
00081 
00082     RCCMPEntry *mb_cmp;
00083     RCEntry   (*mb_rc)[8160];
00084 
00085     void (*get_pixels_8x4_sym)(DCTELEM */*align 16*/, const uint8_t *, int);
00086 } DNXHDEncContext;
00087 
00088 void ff_dnxhd_init_mmx(DNXHDEncContext *ctx);
00089 
00090 #endif /* AVCODEC_DNXHDENC_H */

Generated on Tue Nov 4 2014 12:59:21 for ffmpeg by  doxygen 1.7.1