|
FFmpeg
|
#include <stdint.h>#include "libavutil/buffer.h"#include "libavutil/channel_layout.h"#include "libavutil/mathematics.h"#include "libavutil/pixfmt.h"#include "avcodec.h"#include "config.h"Go to the source code of this file.
Data Structures | |
| struct | AVCodecInternal |
Macros | |
| #define | FF_SANE_NB_CHANNELS 512U |
| #define | STRIDE_ALIGN 8 |
| #define | FF_MAX_EXTRADATA_SIZE ((1 << 28) - AV_INPUT_BUFFER_PADDING_SIZE) |
| Maximum size in bytes of extradata. More... | |
Functions | |
| 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. More... | |
| unsigned int | ff_toupper4 (unsigned int x) |
| void | ff_color_frame (AVFrame *frame, const int color[4]) |
| static av_always_inline float | ff_exp2fi (int x) |
| 2^(x) for integer x More... | |
| int | avpriv_h264_has_num_reorder_frames (AVCodecContext *avctx) |
| int | avpriv_codec_get_cap_skip_frame_fill_param (const AVCodec *codec) |
| AVCPBProperties * | ff_add_cpb_side_data (AVCodecContext *avctx) |
| Add a CPB properties side data to an encoding context. More... | |
| int | ff_alloc_timecode_sei (const AVFrame *frame, AVRational rate, size_t prefix_len, void **data, size_t *sei_size) |
| Check AVFrame for S12M timecode side data and allocate and fill TC SEI message with timecode info. More... | |
| int64_t | ff_guess_coded_bitrate (AVCodecContext *avctx) |
| Get an estimated video bitrate based on frame size, frame rate and coded bits per pixel. More... | |
| int | ff_int_from_list_or_default (void *ctx, const char *val_name, int val, const int *array_valid_values, int default_value) |
| Check if a value is in the list. More... | |
common internal api header.
Definition in file internal.h.
| #define FF_SANE_NB_CHANNELS 512U |
Definition at line 40 of file internal.h.
| #define STRIDE_ALIGN 8 |
Definition at line 49 of file internal.h.
| #define FF_MAX_EXTRADATA_SIZE ((1 << 28) - AV_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 183 of file internal.h.
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 877 of file utils.c.
Referenced by ff_h263_encode_picture_header(), ff_mpv_encode_init(), and svq1_write_header().
Definition at line 29 of file to_upper4.h.
Referenced by ff_codec_get_id(), ff_mpv_decode_init(), and validate_codec_tag().
Definition at line 409 of file utils.c.
Referenced by h264_field_start().
|
static |
2^(x) for integer x
Definition at line 189 of file internal.h.
Referenced by init_band_stepsize(), and sbr_dequant().
| int avpriv_h264_has_num_reorder_frames | ( | AVCodecContext * | avctx | ) |
Definition at line 57 of file h264dec.c.
Referenced by has_decode_delay_been_guessed().
Definition at line 438 of file utils.c.
Referenced by try_decode_frame().
| AVCPBProperties* ff_add_cpb_side_data | ( | AVCodecContext * | avctx | ) |
Add a CPB properties side data to an encoding context.
Definition at line 1028 of file utils.c.
Referenced by aom_init(), config_enc_params(), ff_mpv_encode_init(), libx265_encode_init(), mpeg_decode_sequence_extension(), nvenc_setup_encoder(), qsv_retrieve_enc_params(), svc_encode_init(), vpx_init(), and X264_init().
| int ff_alloc_timecode_sei | ( | const AVFrame * | frame, |
| AVRational | rate, | ||
| size_t | prefix_len, | ||
| void ** | data, | ||
| size_t * | sei_size | ||
| ) |
Check AVFrame for S12M timecode side data and allocate and fill TC SEI message with timecode info.
| frame | Raw frame to get S12M timecode side data from |
| rate | The frame rate |
| prefix_len | Number of bytes to allocate before SEI message |
| data | Pointer to a variable to store allocated memory Upon return the variable will hold NULL on error or if frame has no S12M timecode info. Otherwise it will point to prefix_len uninitialized bytes followed by *sei_size SEI message |
| sei_size | Pointer to a variable to store generated SEI message length |
Definition at line 1068 of file utils.c.
Referenced by prepare_sei_data_array().
| int64_t ff_guess_coded_bitrate | ( | AVCodecContext * | avctx | ) |
Get an estimated video bitrate based on frame size, frame rate and coded bits per pixel.
Definition at line 1132 of file utils.c.
Referenced by encode_init(), raw_encode_init(), v308_encode_init(), v408_encode_init(), v410_encode_init(), and y41p_encode_init().
| int ff_int_from_list_or_default | ( | void * | ctx, |
| const char * | val_name, | ||
| int | val, | ||
| const int * | array_valid_values, | ||
| int | default_value | ||
| ) |
Check if a value is in the list.
If not, return the default value
| ctx | Context for the log msg |
| val_name | Name of the checked value, for log msg |
| array_valid_values | Array of valid int, ended with INT_MAX |
| default_value | Value return if checked value is not in the array |
Definition at line 1153 of file utils.c.
Referenced by prores_encode_frame().
1.8.17