libavcodec/internal.h File Reference

common internal api header. More...

#include <stdint.h>
#include "libavutil/mathematics.h"
#include "libavutil/pixfmt.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  InternalBuffer
struct  AVCodecInternal
struct  AVCodecDefault

Defines

#define FF_MAX_EXTRADATA_SIZE   ((1 << 28) - FF_INPUT_BUFFER_PADDING_SIZE)
 Maximum size in bytes of extradata.

Functions

int ff_is_hwaccel_pix_fmt (enum PixelFormat pix_fmt)
 Determine whether pix_fmt is a hardware accelerated format.
AVHWAccelff_find_hwaccel (enum AVCodecID codec_id, enum PixelFormat pix_fmt)
 Return the hardware accelerated codec for codec codec_id and pixel format pix_fmt.
int ff_match_2uint16 (const uint16_t(*tab)[2], int size, int a, int b)
 Return the index into tab at which {a,b} match elements {[0],[1]} of tab.
unsigned int avpriv_toupper4 (unsigned int x)
void ff_init_buffer_info (AVCodecContext *s, AVFrame *frame)
 does needed setup of pkt_pts/pos and such for (re)get_buffer();
void ff_packet_free_side_data (AVPacket *pkt)
 Remove and free all side data from packet.
int avpriv_lock_avformat (void)
int avpriv_unlock_avformat (void)
int ff_alloc_packet2 (AVCodecContext *avctx, AVPacket *avpkt, int size)
 Check AVPacket size and/or allocate data.
int ff_alloc_packet (AVPacket *avpkt, int size)
static av_always_inline int64_t ff_samples_to_time_base (AVCodecContext *avctx, int64_t samples)
 Rescale from sample rate to AVCodecContext.time_base.
int ff_thread_can_start_frame (AVCodecContext *avctx)
int ff_get_logical_cpus (AVCodecContext *avctx)
int avpriv_h264_has_num_reorder_frames (AVCodecContext *avctx)


Detailed Description

common internal api header.

Definition in file internal.h.


Define Documentation

#define FF_MAX_EXTRADATA_SIZE   ((1 << 28) - FF_INPUT_BUFFER_PADDING_SIZE)

Maximum size in bytes of extradata.

This value was chosen such that every bit of the buffer is addressable by a 32-bit signed integer as used by get_bits.

Definition at line 140 of file internal.h.

Referenced by avcodec_open2(), and avformat_find_stream_info().


Function Documentation

int avpriv_h264_has_num_reorder_frames ( AVCodecContext avctx  ) 

Definition at line 77 of file h264.c.

Referenced by has_decode_delay_been_guessed().

int avpriv_lock_avformat ( void   ) 

Definition at line 2491 of file utils.c.

Referenced by ff_tls_deinit(), and ff_tls_init().

unsigned int avpriv_toupper4 ( unsigned int  x  ) 

int avpriv_unlock_avformat ( void   ) 

Definition at line 2500 of file utils.c.

Referenced by ff_tls_deinit(), and ff_tls_init().

int ff_alloc_packet ( AVPacket avpkt,
int  size 
)

Definition at line 1091 of file utils.c.

Referenced by ilbc_encode_frame().

int ff_alloc_packet2 ( AVCodecContext avctx,
AVPacket avpkt,
int  size 
)

Check AVPacket size and/or allocate data.

Encoders supporting AVCodec.encode2() can use this as a convenience to ensure the output packet data is large enough, whether provided by the user or allocated in this function.

Parameters:
avctx the AVCodecContext of the encoder
avpkt the AVPacket If avpkt->data is already set, avpkt->size is checked to ensure it is large enough. If avpkt->data is NULL, a new buffer is allocated. avpkt->size is set to the specified size. All other AVPacket fields will be reset with av_init_packet().
size the minimum required packet size
Returns:
0 on success, negative error code on failure

Definition at line 1054 of file utils.c.

Referenced by a64multi_encode_frame(), aac_encode_frame(), aacPlus_encode_frame(), adx_encode_frame(), alac_encode_frame(), amr_wb_encode_frame(), avui_encode_frame(), bmp_encode_frame(), dnxhd_encode_picture(), encode_frame(), encode_nals(), encode_picture_lossless(), encode_picture_ls(), encode_superframe(), Faac_encode_frame(), ff_alloc_packet(), ff_MPV_encode_picture(), flac_encode_frame(), flashsv2_encode_frame(), flashsv_encode_frame(), gif_encode_frame(), libgsm_encode_frame(), libopenjpeg_encode_frame(), libschroedinger_encode_frame(), mp3lame_encode_frame(), MPA_encode_frame(), oggvorbis_encode_frame(), pam_encode_frame(), pcm_encode_frame(), pcx_encode_frame(), pnm_encode_frame(), prores_encode_frame(), qtrle_encode_frame(), ra144_encode_frame(), raw_encode(), roq_dpcm_encode_frame(), roq_encode_frame(), storeframe(), sunrast_encode_frame(), svq1_encode_frame(), targa_encode_frame(), twolame_encode_frame(), utvideo_encode_frame(), v308_encode_frame(), v408_encode_frame(), v410_encode_frame(), vorbis_encode_frame(), XAVS_frame(), xbm_encode_frame(), xvid_encode_frame(), xwd_encode_frame(), y41p_encode_frame(), and yuv4_encode_frame().

AVHWAccel* ff_find_hwaccel ( enum AVCodecID  codec_id,
enum PixelFormat  pix_fmt 
)

Return the hardware accelerated codec for codec codec_id and pixel format pix_fmt.

Parameters:
codec_id the codec to match
pix_fmt the pixel format to match
Returns:
the hardware accelerated codec, or NULL if none was found.

Definition at line 2460 of file utils.c.

Referenced by decode_slice_header(), ff_h263_decode_init(), vc1_decode_init(), and vcr2_init_sequence().

int ff_get_logical_cpus ( AVCodecContext avctx  ) 

Definition at line 165 of file pthread.c.

Referenced by ff_frame_thread_encoder_init(), frame_thread_init(), and thread_init().

void ff_init_buffer_info ( AVCodecContext s,
AVFrame frame 
)

does needed setup of pkt_pts/pos and such for (re)get_buffer();

Definition at line 305 of file utils.c.

Referenced by audio_get_buffer(), avcodec_default_reget_buffer(), ff_thread_get_buffer(), and video_get_buffer().

int ff_is_hwaccel_pix_fmt ( enum PixelFormat  pix_fmt  ) 

Determine whether pix_fmt is a hardware accelerated format.

Definition at line 398 of file imgconvert.c.

Referenced by avcodec_default_get_format().

int ff_match_2uint16 ( const uint16_t(*)  tab[2],
int  size,
int  a,
int  b 
)

Return the index into tab at which {a,b} match elements {[0],[1]} of tab.

If there is no such matching pair then size is returned.

Definition at line 2412 of file utils.c.

Referenced by ff_h263_encode_picture_header(), ff_MPV_encode_init(), and svq1_write_header().

void ff_packet_free_side_data ( AVPacket pkt  ) 

Remove and free all side data from packet.

Definition at line 30 of file avpacket.c.

Referenced by av_destruct_packet(), avcodec_decode_audio4(), avcodec_decode_video2(), and avcodec_encode_audio().

static av_always_inline int64_t ff_samples_to_time_base ( AVCodecContext avctx,
int64_t  samples 
) [static]

int ff_thread_can_start_frame ( AVCodecContext avctx  ) 

Definition at line 942 of file pthread.c.

Referenced by ff_MPV_frame_start().


Generated on Fri Oct 26 02:50:05 2012 for FFmpeg by  doxygen 1.5.8