OLD | NEW |
1 /* | 1 /* |
2 * H263 internal header | 2 * H263 internal header |
3 * | 3 * |
4 * This file is part of FFmpeg. | 4 * This file is part of FFmpeg. |
5 * | 5 * |
6 * FFmpeg is free software; you can redistribute it and/or | 6 * FFmpeg is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
10 * | 10 * |
11 * FFmpeg is distributed in the hope that it will be useful, | 11 * FFmpeg is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Lesser General Public License for more details. | 14 * Lesser General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU Lesser General Public | 16 * You should have received a copy of the GNU Lesser General Public |
17 * License along with FFmpeg; if not, write to the Free Software | 17 * License along with FFmpeg; if not, write to the Free Software |
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
19 */ | 19 */ |
20 #ifndef AVCODEC_H263_H | 20 #ifndef AVCODEC_H263_H |
21 #define AVCODEC_H263_H | 21 #define AVCODEC_H263_H |
22 | 22 |
| 23 #include <stdint.h> |
| 24 #include "libavutil/rational.h" |
| 25 #include "get_bits.h" |
| 26 #include "mpegvideo.h" |
| 27 #include "rl.h" |
| 28 |
23 // The defines below define the number of bits that are read at once for | 29 // The defines below define the number of bits that are read at once for |
24 // reading vlc values. Changing these may improve speed and data cache needs | 30 // reading vlc values. Changing these may improve speed and data cache needs |
25 // be aware though that decreasing them may need the number of stages that is | 31 // be aware though that decreasing them may need the number of stages that is |
26 // passed to get_vlc* to be increased. | 32 // passed to get_vlc* to be increased. |
27 #define INTRA_MCBPC_VLC_BITS 6 | 33 #define INTRA_MCBPC_VLC_BITS 6 |
28 #define INTER_MCBPC_VLC_BITS 7 | 34 #define INTER_MCBPC_VLC_BITS 7 |
29 #define CBPY_VLC_BITS 6 | 35 #define CBPY_VLC_BITS 6 |
30 #define TEX_VLC_BITS 9 | 36 #define TEX_VLC_BITS 9 |
31 | 37 |
32 extern const AVRational ff_h263_pixel_aspect[16]; | 38 extern const AVRational ff_h263_pixel_aspect[16]; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 void h263_encode_picture_header(MpegEncContext *s, int picture_number); | 78 void h263_encode_picture_header(MpegEncContext *s, int picture_number); |
73 void h263_encode_gob_header(MpegEncContext * s, int mb_line); | 79 void h263_encode_gob_header(MpegEncContext * s, int mb_line); |
74 int16_t *h263_pred_motion(MpegEncContext * s, int block, int dir, | 80 int16_t *h263_pred_motion(MpegEncContext * s, int block, int dir, |
75 int *px, int *py); | 81 int *px, int *py); |
76 void h263_encode_init(MpegEncContext *s); | 82 void h263_encode_init(MpegEncContext *s); |
77 void h263_decode_init_vlc(MpegEncContext *s); | 83 void h263_decode_init_vlc(MpegEncContext *s); |
78 int h263_decode_picture_header(MpegEncContext *s); | 84 int h263_decode_picture_header(MpegEncContext *s); |
79 int ff_h263_decode_gob_header(MpegEncContext *s); | 85 int ff_h263_decode_gob_header(MpegEncContext *s); |
80 void ff_h263_update_motion_val(MpegEncContext * s); | 86 void ff_h263_update_motion_val(MpegEncContext * s); |
81 void ff_h263_loop_filter(MpegEncContext * s); | 87 void ff_h263_loop_filter(MpegEncContext * s); |
82 void ff_set_qscale(MpegEncContext * s, int qscale); | |
83 int ff_h263_decode_mba(MpegEncContext *s); | 88 int ff_h263_decode_mba(MpegEncContext *s); |
84 void ff_h263_encode_mba(MpegEncContext *s); | 89 void ff_h263_encode_mba(MpegEncContext *s); |
85 void ff_init_qscale_tab(MpegEncContext *s); | 90 void ff_init_qscale_tab(MpegEncContext *s); |
86 int h263_pred_dc(MpegEncContext * s, int n, int16_t **dc_val_ptr); | 91 int h263_pred_dc(MpegEncContext * s, int n, int16_t **dc_val_ptr); |
87 void h263_pred_acdc(MpegEncContext * s, DCTELEM *block, int n); | 92 void h263_pred_acdc(MpegEncContext * s, DCTELEM *block, int n); |
88 | 93 |
89 | 94 |
90 /** | 95 /** |
91 * Prints picture info if FF_DEBUG_PICT_INFO is set. | 96 * Prints picture info if FF_DEBUG_PICT_INFO is set. |
92 */ | 97 */ |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 return cbp; | 242 return cbp; |
238 } | 243 } |
239 | 244 |
240 static inline void memsetw(short *tab, int val, int n) | 245 static inline void memsetw(short *tab, int val, int n) |
241 { | 246 { |
242 int i; | 247 int i; |
243 for(i=0;i<n;i++) | 248 for(i=0;i<n;i++) |
244 tab[i] = val; | 249 tab[i] = val; |
245 } | 250 } |
246 #endif | 251 #endif |
OLD | NEW |