~ubuntu-branches/ubuntu/jaunty/avidemux/jaunty

« back to all changes in this revision

Viewing changes to avidemux/ADM_infoExtractor/ADM_h264_tag.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-02-17 23:41:46 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20090217234146-eakx254awuch4wgw
Tags: 1:2.4.4-0.0ubuntu1
* Merge from debian multimedia, Ubuntu remaining changes:
  - debian/control:
    + Build-Depends on newer libx264-dev.
    + Don't Build-Depends on ccache and libamrnb-dev.
    + Build-Depends on libpulse-dev.
    + Fixed small typo in avidemux description.
  - Don't use ccache.
  - Drop patch to fix build with newer x264, it has been merged by upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                      NAL TYPE for H264
3
 
                      
4
 
**************************************************************************/
5
 
/***************************************************************************
6
 
 *                                                                         *
7
 
 *   This program is free software; you can redistribute it and/or modify  *
8
 
 *   it under the terms of the GNU General Public License as published by  *
9
 
 *   the Free Software Foundation; either version 2 of the License, or     *
10
 
 *   (at your option) any later version.                                   *
11
 
 *                                                                         *
12
 
 ***************************************************************************/
13
 
#ifndef ADM_H264_TAG_H
14
 
#define ADM_H264_TAG_H
15
 
#define NAL_NON_IDR       1
16
 
#define NAL_IDR           5
17
 
#define NAL_SEI           6
18
 
#define NAL_SPS           7
19
 
#define NAL_PPS           8
20
 
#define NAL_AU_DELIMITER  9
21
 
#define NAL_FILLER        12
22
 
#endif
23
 
//EOF
 
1
/***************************************************************************
 
2
                      NAL TYPE for H264
 
3
                      
 
4
**************************************************************************/
 
5
/***************************************************************************
 
6
 *                                                                         *
 
7
 *   This program is free software; you can redistribute it and/or modify  *
 
8
 *   it under the terms of the GNU General Public License as published by  *
 
9
 *   the Free Software Foundation; either version 2 of the License, or     *
 
10
 *   (at your option) any later version.                                   *
 
11
 *                                                                         *
 
12
 ***************************************************************************/
 
13
#ifndef ADM_H264_TAG_H
 
14
#define ADM_H264_TAG_H
 
15
#define NAL_NON_IDR       1
 
16
#define NAL_IDR           5
 
17
#define NAL_SEI           6
 
18
#define NAL_SPS           7
 
19
#define NAL_PPS           8
 
20
#define NAL_AU_DELIMITER  9
 
21
#define NAL_FILLER        12
 
22
 
 
23
typedef struct AspectRatio {
 
24
    int num;
 
25
    int den;
 
26
} AspectRatio;
 
27
 
 
28
const AspectRatio pixel_aspect[17] = {
 
29
        {0, 1},
 
30
        {1, 1},
 
31
        {12, 11},
 
32
        {10, 11},
 
33
        {16, 11},
 
34
        {40, 33},
 
35
        {24, 11},
 
36
        {20, 11},
 
37
        {32, 11},
 
38
        {80, 33},
 
39
        {18, 11},
 
40
        {15, 11},
 
41
        {64, 33},
 
42
        {160,99},
 
43
        {4, 3},
 
44
        {3, 2},
 
45
        {2, 1},
 
46
};
 
47
 
 
48
typedef struct h264SpsInfo
 
49
{
 
50
        int width;
 
51
        int height;
 
52
        int fps1000;
 
53
        int darNum;             // Display Aspect Ratio numerator
 
54
        int darDen;             // Display Aspect Ratio denominator
 
55
        int log2MaxFrameNumber;
 
56
        int frameMbsOnlyFlag;
 
57
} h264SpsInfo;
 
58
 
 
59
typedef enum h264PictureType
 
60
{
 
61
        FRAME,
 
62
        TOP_FIELD,
 
63
        BOTTOM_FIELD
 
64
} h264PictureType;
 
65
 
 
66
typedef struct h264SliceHeader
 
67
{
 
68
        int sliceType;
 
69
        int frameNumber;
 
70
        h264PictureType pictureType;
 
71
} h264SliceHeader;
 
72
#endif
 
73
//EOF