~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/h264data.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc, Andrew Starr-Bochicchio, Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081226001006-2040ls9680bd1blt
Tags: 1.1.7-0.2ubuntu1
[ Andrew Starr-Bochicchio ]
* Merge from debian-multimedia (LP: #298547), Ubuntu Changes:
 - For ffmpeg-related build-deps, fix versionized dependencies
   as the ubuntu versioning is different than debian-multimedia's.

[ Lionel Le Folgoc ]
* LP: #311412 is fixed since the 1.1.7~rc1-0.1 revision.
* debian/patches/03_ffmpeg.diff: updated to fix FTBFS due to libswscale API
  change (cherry-pick from Gentoo #234383).

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * You should have received a copy of the GNU Lesser General Public
18
18
 * License along with FFmpeg; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
 
 *
21
20
 */
22
21
 
23
22
/**
27
26
 * @author Michael Niedermayer <michaelni@gmx.at>
28
27
 */
29
28
 
30
 
#define VERT_PRED             0
31
 
#define HOR_PRED              1
32
 
#define DC_PRED               2
33
 
#define DIAG_DOWN_LEFT_PRED   3
34
 
#define DIAG_DOWN_RIGHT_PRED  4
35
 
#define VERT_RIGHT_PRED       5
36
 
#define HOR_DOWN_PRED         6
37
 
#define VERT_LEFT_PRED        7
38
 
#define HOR_UP_PRED           8
39
 
 
40
 
#define LEFT_DC_PRED          9
41
 
#define TOP_DC_PRED           10
42
 
#define DC_128_PRED           11
43
 
 
44
 
 
45
 
#define DC_PRED8x8            0
46
 
#define HOR_PRED8x8           1
47
 
#define VERT_PRED8x8          2
48
 
#define PLANE_PRED8x8         3
49
 
 
50
 
#define LEFT_DC_PRED8x8       4
51
 
#define TOP_DC_PRED8x8        5
52
 
#define DC_128_PRED8x8        6
 
29
#ifndef FFMPEG_H264DATA_H
 
30
#define FFMPEG_H264DATA_H
 
31
 
 
32
#include <stdint.h>
 
33
#include "mpegvideo.h"
 
34
#include "rational.h"
 
35
 
53
36
 
54
37
#define EXTENDED_SAR          255
55
38
 
71
54
NAL_AUXILIARY_SLICE=19
72
55
};
73
56
 
74
 
static const AVRational pixel_aspect[14]={
 
57
static const AVRational pixel_aspect[17]={
75
58
 {0, 1},
76
59
 {1, 1},
77
60
 {12, 11},
86
69
 {15, 11},
87
70
 {64, 33},
88
71
 {160,99},
 
72
 {4, 3},
 
73
 {3, 2},
 
74
 {2, 1},
89
75
};
90
76
 
91
77
static const uint8_t golomb_to_pict_type[5]=
92
 
{P_TYPE, B_TYPE, I_TYPE, SP_TYPE, SI_TYPE};
 
78
{FF_P_TYPE, FF_B_TYPE, FF_I_TYPE, FF_SP_TYPE, FF_SI_TYPE};
93
79
 
94
80
static const uint8_t pict_type_to_golomb[7]=
95
81
{-1, 2, 0, 1, -1, 4, 3};
538
524
   24,25,27,28,30,32,33,35
539
525
}};
540
526
 
541
 
static const int dequant4_coeff_init[6][3]={
 
527
static const uint8_t dequant4_coeff_init[6][3]={
542
528
  {10,13,16},
543
529
  {11,14,18},
544
530
  {13,16,20},
547
533
  {18,23,29},
548
534
};
549
535
 
550
 
static const int dequant8_coeff_init_scan[16] = {
 
536
static const uint8_t dequant8_coeff_init_scan[16] = {
551
537
  0,3,4,3, 3,1,5,1, 4,5,2,5, 3,1,5,1
552
538
};
553
 
static const int dequant8_coeff_init[6][6]={
 
539
static const uint8_t dequant8_coeff_init[6][6]={
554
540
  {20,18,32,19,25,24},
555
541
  {22,19,35,21,28,26},
556
542
  {26,23,42,24,33,31},
618
604
 
619
605
 
620
606
/* Deblocking filter (p153) */
621
 
static const int alpha_table[52*3] = {
 
607
static const uint8_t alpha_table[52*3] = {
622
608
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
623
609
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
624
610
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
634
620
   255,255,255,255,255,255,255,255,255,255,255,255,255,
635
621
   255,255,255,255,255,255,255,255,255,255,255,255,255,
636
622
};
637
 
static const int beta_table[52*3] = {
 
623
static const uint8_t beta_table[52*3] = {
638
624
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
639
625
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
640
626
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
650
636
    18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
651
637
    18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
652
638
};
653
 
static const int tc0_table[52*3][3] = {
 
639
static const uint8_t tc0_table[52*3][3] = {
654
640
    { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 },
655
641
    { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 },
656
642
    { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 },
682
668
 
683
669
/* Cabac pre state table */
684
670
 
685
 
static const int cabac_context_init_I[460][2] =
 
671
static const int8_t cabac_context_init_I[460][2] =
686
672
{
687
673
    /* 0 - 10 */
688
674
    { 20, -15 }, {  2, 54 },  {  3,  74 }, { 20, -15 },
851
837
    {  29,   9 }, {  35,  20 }, {  29,  36 }, {  14,  67 }
852
838
};
853
839
 
854
 
static const int cabac_context_init_PB[3][460][2] =
 
840
static const int8_t cabac_context_init_PB[3][460][2] =
855
841
{
856
842
    /* i_cabac_init_idc == 0 */
857
843
    {
1321
1307
        {  31,  12 }, {  37,  23 }, {  31,  38 }, {  20,  64 },
1322
1308
    }
1323
1309
};
 
1310
 
 
1311
#endif /* FFMPEG_H264DATA_H */