Go to the documentation of this file.
49 int chroma_w, chroma_h;
51 if (chroma_w == 1 && chroma_h == 1) {
55 }
else if (chroma_w == 1 && chroma_h == 0) {
57 }
else if (chroma_w == 0 && chroma_h == 0) {
69 int vt_extradata_size;
70 uint8_t *vt_extradata;
73 vt_extradata_size = 1 + 3 + 6 + 2;
74 vt_extradata =
av_malloc(vt_extradata_size);
98 av_assert0(p - vt_extradata == vt_extradata_size);
100 data = CFDataCreate(kCFAllocatorDefault, vt_extradata, vt_extradata_size);
130 .
p.
name =
"vp9_videotoolbox",
AVPixelFormat
Pixel format.
int ff_videotoolbox_common_end_frame(AVCodecContext *avctx, AVFrame *frame)
enum AVColorSpace colorspace
YUV colorspace type.
int ff_videotoolbox_uninit(AVCodecContext *avctx)
AVHWAccel p
The public AVHWAccel.
This structure describes decoded (raw) audio or video data.
enum AVColorTransferCharacteristic color_trc
Color Transfer Characteristic.
@ AVCOL_RANGE_JPEG
Full range content.
int av_pix_fmt_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift)
Utility function to access log2_chroma_w log2_chroma_h from the pixel format AVPixFmtDescriptor.
int ff_videotoolbox_common_init(AVCodecContext *avctx)
enum AVColorPrimaries color_primaries
Chromaticity coordinates of the source primaries.
#define av_assert0(cond)
assert() equivalent, that is always enabled.
enum AVColorRange color_range
MPEG vs JPEG YUV range.
@ AVCHROMA_LOC_LEFT
MPEG-2/4 4:2:0, H.264 default for 4:2:0.
struct AVCodecInternal * internal
Private context used for internal data.
int level
Encoding level descriptor.
int ff_videotoolbox_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
void * hwaccel_priv_data
hwaccel-specific private data
AVChromaLocation
Location of chroma samples.
const char * name
Name of the hardware accelerated codec.
@ AV_PIX_FMT_VIDEOTOOLBOX
hardware decoding through Videotoolbox
enum AVChromaLocation chroma_sample_location
This defines the location of chroma samples.
main external API structure.
the frame and frame reference mechanism is intended to as much as expensive copies of that data while still allowing the filters to produce correct results The data is stored in buffers represented by AVFrame structures Several references can point to the same frame buffer
enum AVPixelFormat sw_pix_fmt
Nominal unaccelerated pixel format, see AV_PIX_FMT_xxx.