FFmpeg
Macros | Functions
h264_slice.c File Reference

H.264 / AVC / MPEG-4 part10 codec. More...

#include "libavutil/avassert.h"
#include "libavutil/display.h"
#include "libavutil/imgutils.h"
#include "libavutil/stereo3d.h"
#include "libavutil/timer.h"
#include "internal.h"
#include "cabac.h"
#include "cabac_functions.h"
#include "error_resilience.h"
#include "avcodec.h"
#include "h264.h"
#include "h264dec.h"
#include "h264data.h"
#include "h264chroma.h"
#include "h264_mvpred.h"
#include "h264_ps.h"
#include "golomb.h"
#include "mathops.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "rectangle.h"
#include "thread.h"

Macros

#define IN_RANGE(a, b, size)   (((void*)(a) >= (void*)(b)) && ((void*)(a) < (void*)((b) + (size))))
 
#define REBASE_PICTURE(pic, new_ctx, old_ctx)
 
#define TRANSPOSE(x)   ((x) >> 2) | (((x) << 2) & 0xF)
 
#define TRANSPOSE(x)   ((x) >> 3) | (((x) & 7) << 3)
 
#define HWACCEL_MAX
 

Functions

int ff_h264_update_thread_context (AVCodecContext *dst, const AVCodecContext *src)
 
int ff_h264_queue_decode_slice (H264Context *h, const H2645NAL *nal)
 Submit a slice for decoding. More...
 
int ff_h264_get_slice_type (const H264SliceContext *sl)
 Reconstruct bitstream slice_type.
 
int ff_h264_execute_decode_slices (H264Context *h)
 Call decode_slice() for each context. More...
 

Detailed Description

H.264 / AVC / MPEG-4 part10 codec.

Author
Michael Niedermayer micha.nosp@m.elni.nosp@m.@gmx..nosp@m.at

Macro Definition Documentation

§ HWACCEL_MAX

#define HWACCEL_MAX
Value:
(CONFIG_H264_DXVA2_HWACCEL + \
(CONFIG_H264_D3D11VA_HWACCEL * 2) + \
CONFIG_H264_NVDEC_HWACCEL + \
CONFIG_H264_VAAPI_HWACCEL + \
CONFIG_H264_VIDEOTOOLBOX_HWACCEL + \
CONFIG_H264_VDPAU_HWACCEL)

§ REBASE_PICTURE

#define REBASE_PICTURE (   pic,
  new_ctx,
  old_ctx 
)
Value:
(((pic) && (pic) >= (old_ctx)->DPB && \
(pic) < (old_ctx)->DPB + H264_MAX_PICTURE_COUNT) ? \
&(new_ctx)->DPB[(pic) - (old_ctx)->DPB] : NULL)
Decoded Picture Buffer (DPB).
Definition: vaapi_h264.c:82

Function Documentation

§ ff_h264_execute_decode_slices()

int ff_h264_execute_decode_slices ( H264Context h)

Call decode_slice() for each context.

Parameters
hh264 master context

§ ff_h264_queue_decode_slice()

int ff_h264_queue_decode_slice ( H264Context h,
const H2645NAL nal 
)

Submit a slice for decoding.

Parse the slice header, starting a new field/frame if necessary. If any slices are queued for the previous field, they are decoded.