FFmpeg
h263dec.h
Go to the documentation of this file.
1 /*
2  * H.263 decoder internal header
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
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
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 #ifndef AVCODEC_H263DEC_H
21 #define AVCODEC_H263DEC_H
22 
23 #include "mpegvideo.h"
24 #include "vlc.h"
25 
26 /**
27  * Return value for header parsers if frame is not coded.
28  * */
29 #define FRAME_SKIPPED 100
30 
31 // The defines below define the number of bits that are read at once for
32 // reading vlc values. Changing these may improve speed and data cache needs
33 // be aware though that decreasing them may need the number of stages that is
34 // passed to get_vlc* to be increased.
35 #define H263_MV_VLC_BITS 9
36 #define INTRA_MCBPC_VLC_BITS 6
37 #define INTER_MCBPC_VLC_BITS 7
38 #define CBPY_VLC_BITS 6
39 #define TEX_VLC_BITS 9
40 
43 extern VLCElem ff_h263_cbpy_vlc[];
44 extern VLCElem ff_h263_mv_vlc[];
45 
46 int ff_h263_decode_motion(MpegEncContext * s, int pred, int f_code);
49  int *got_frame, AVPacket *avpkt);
50 void ff_h263_decode_init_vlc(void);
54 
55 /**
56  * Print picture info if FF_DEBUG_PICT_INFO is set.
57  */
59 
62  int16_t block[6][64]);
63 
65 
66 #endif
ff_h263_cbpy_vlc
VLCElem ff_h263_cbpy_vlc[]
Definition: ituh263dec.c:104
ff_h263_decode_mb
int ff_h263_decode_mb(MpegEncContext *s, int16_t block[6][64])
Definition: ituh263dec.c:788
AVFrame
This structure describes decoded (raw) audio or video data.
Definition: frame.h:389
ff_h263_decode_frame
int ff_h263_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: h263dec.c:426
mpegvideo.h
ff_h263_decode_mba
int ff_h263_decode_mba(MpegEncContext *s)
Definition: ituh263dec.c:143
ff_h263_decode_picture_header
int ff_h263_decode_picture_header(MpegEncContext *s)
Definition: ituh263dec.c:1089
ff_h263_decode_gob_header
int ff_h263_decode_gob_header(MpegEncContext *s)
ff_h263_decode_motion
int ff_h263_decode_motion(MpegEncContext *s, int pred, int f_code)
Definition: ituh263dec.c:274
s
#define s(width, name)
Definition: cbs_vp9.c:198
ff_h263_decode_init_vlc
void ff_h263_decode_init_vlc(void)
Definition: ituh263dec.c:137
ff_h263_mv_vlc
VLCElem ff_h263_mv_vlc[]
Definition: ituh263dec.c:105
ff_h263_show_pict_info
void ff_h263_show_pict_info(MpegEncContext *s)
Print picture info if FF_DEBUG_PICT_INFO is set.
Definition: ituh263dec.c:80
ff_h263_intra_MCBPC_vlc
VLCElem ff_h263_intra_MCBPC_vlc[]
Definition: ituh263dec.c:102
VLCElem
Definition: vlc.h:32
ff_intel_h263_decode_picture_header
int ff_intel_h263_decode_picture_header(MpegEncContext *s)
Definition: intelh263dec.c:28
pred
static const float pred[4]
Definition: siprdata.h:259
ff_h263_decode_init
int ff_h263_decode_init(AVCodecContext *avctx)
Definition: h263dec.c:90
frame
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a frame
Definition: filter_design.txt:264
AVCodecContext
main external API structure.
Definition: avcodec.h:451
ff_h263_inter_MCBPC_vlc
VLCElem ff_h263_inter_MCBPC_vlc[]
Definition: ituh263dec.c:103
AVPacket
This structure stores compressed data.
Definition: packet.h:516
vlc.h
ff_h263_resync
int ff_h263_resync(MpegEncContext *s)
Decode the group of blocks / video packet header / slice header (MPEG-4 Studio).
Definition: ituh263dec.c:217
block
The exact code depends on how similar the blocks are and how related they are to the block
Definition: filter_design.txt:207
MpegEncContext
MpegEncContext.
Definition: mpegvideo.h:73