#include <stdint.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. | |
AVHWAccel * | ff_find_hwaccel (enum CodecID 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 *pic) |
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_packet (AVPacket *avpkt, int size) |
Check AVPacket size and/or allocate data. |
Definition in file internal.h.
#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 120 of file internal.h.
Referenced by avcodec_open2(), and avformat_find_stream_info().
int avpriv_lock_avformat | ( | void | ) |
unsigned int avpriv_toupper4 | ( | unsigned int | x | ) |
Definition at line 1966 of file utils.c.
Referenced by ff_codec_get_id(), mpeg_decode_frame(), MPV_common_init(), and validate_codec_tag().
int avpriv_unlock_avformat | ( | void | ) |
int ff_alloc_packet | ( | 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.
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. All other AVPacket fields will be reset with av_init_packet(). | |
size | the minimum required packet size |
Definition at line 934 of file utils.c.
Referenced by pcm_encode_frame().
AVHWAccel* ff_find_hwaccel | ( | enum CodecID | codec_id, | |
enum PixelFormat | pix_fmt | |||
) |
Return the hardware accelerated codec for codec codec_id and pixel format pix_fmt.
codec_id | the codec to match | |
pix_fmt | the pixel format to match |
Definition at line 1916 of file utils.c.
Referenced by decode_slice_header(), ff_h263_decode_init(), vc1_decode_init(), and vcr2_init_sequence().
void ff_init_buffer_info | ( | AVCodecContext * | s, | |
AVFrame * | pic | |||
) |
does needed setup of pkt_pts/pos and such for (re)get_buffer();
Definition at line 276 of file utils.c.
Referenced by avcodec_default_reget_buffer(), and ff_thread_get_buffer().
int ff_is_hwaccel_pix_fmt | ( | enum PixelFormat | pix_fmt | ) |
Determine whether pix_fmt is a hardware accelerated format.
Definition at line 299 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 1869 of file utils.c.
Referenced by ff_h263_encode_picture_header(), 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 34 of file avpacket.c.
Referenced by av_destruct_packet(), and avcodec_decode_video2().