class EncodeJob

Defined at line 103 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.h

An abstraction of an encode job for one frame. Parameters required for an

EncodeJob to be executed are prepared by an VaapiVideoEncoderDelegate,

while the accelerator-specific callbacks required to set up and execute it

are provided by the accelerator itself, based on these parameters.

Accelerators are also responsible for providing any resources (such as

memory for output, etc.) as needed.

Public Methods

void EncodeJob (scoped_refptr<VideoFrame> input_frame, bool keyframe)

Creates an EncodeJob to encode |input_frame|, which will be executed by

calling ExecuteSetupCallbacks() in VaapiVideoEncoderDelegate::Encode().

If |keyframe| is true, requests this job to produce a keyframe.

Defined at line 38 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.cc

void EncodeJob (scoped_refptr<VideoFrame> input_frame, bool keyframe, VASurfaceID input_surface_id, const gfx::Size & input_surface_size, scoped_refptr<CodecPicture> picture, std::unique_ptr<ScopedVABuffer> coded_buffer)

Constructor for VA-API.

Defined at line 23 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.cc

void ~EncodeJob ()

Defined at line 42 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.cc

std::unique_ptr<EncodeResult> CreateEncodeResult (const BitstreamBufferMetadata & metadata)

Creates EncodeResult with |metadata|. This passes ownership of the

resources owned by EncodeJob and therefore must be called with

std::move().

Defined at line 44 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.cc

base::TimeDelta timestamp ()

Defined at line 50 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.cc

const scoped_refptr<VideoFrame> & input_frame ()

Defined at line 54 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.cc

VABufferID coded_buffer_id ()

VA-API specific methods.

Defined at line 58 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.cc

VASurfaceID input_surface_id ()

Defined at line 62 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.cc

const gfx::Size & input_surface_size ()

Defined at line 66 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.cc

const scoped_refptr<CodecPicture> & picture ()

Defined at line 70 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.cc

void EncodeJob (const EncodeJob & )

Defined at line 114 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.h

EncodeJob & operator= (const EncodeJob & )

Defined at line 115 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.h

void ProduceKeyframe ()

Requests this job to produce a keyframe; requesting a keyframe may not

always result in one being produced by the encoder (e.g. if it would

not fit in the bitrate budget).

Defined at line 127 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.h

bool IsKeyframeRequested ()

Returns true if this job has been requested to produce a keyframe.

Defined at line 130 of file ../../src/media/codec/codecs/vaapi/third_party/chromium/vaapi_video_encoder_delegate.h