Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
a1cd4191
Commit
a1cd4191
authored
Mar 12, 2021
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/vaapi_encode: use AVCodecContext.get_encode_buffer()
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
238e08b1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
7 deletions
+12
-7
vaapi_encode.c
libavcodec/vaapi_encode.c
+1
-1
vaapi_encode_h264.c
libavcodec/vaapi_encode_h264.c
+2
-1
vaapi_encode_h265.c
libavcodec/vaapi_encode_h265.c
+2
-1
vaapi_encode_mjpeg.c
libavcodec/vaapi_encode_mjpeg.c
+1
-1
vaapi_encode_mpeg2.c
libavcodec/vaapi_encode_mpeg2.c
+2
-1
vaapi_encode_vp8.c
libavcodec/vaapi_encode_vp8.c
+2
-1
vaapi_encode_vp9.c
libavcodec/vaapi_encode_vp9.c
+2
-1
No files found.
libavcodec/vaapi_encode.c
View file @
a1cd4191
...
...
@@ -650,7 +650,7 @@ static int vaapi_encode_output(AVCodecContext *avctx,
for
(
buf
=
buf_list
;
buf
;
buf
=
buf
->
next
)
total_size
+=
buf
->
size
;
err
=
av_new_packet
(
pkt
,
total_size
);
err
=
ff_get_encode_buffer
(
avctx
,
pkt
,
total_size
,
0
);
ptr
=
pkt
->
data
;
if
(
err
<
0
)
...
...
libavcodec/vaapi_encode_h264.c
View file @
a1cd4191
...
...
@@ -1334,7 +1334,8 @@ AVCodec ff_h264_vaapi_encoder = {
.
receive_packet
=
&
ff_vaapi_encode_receive_packet
,
.
close
=
&
vaapi_encode_h264_close
,
.
priv_class
=
&
vaapi_encode_h264_class
,
.
capabilities
=
AV_CODEC_CAP_DELAY
|
AV_CODEC_CAP_HARDWARE
,
.
capabilities
=
AV_CODEC_CAP_DELAY
|
AV_CODEC_CAP_HARDWARE
|
AV_CODEC_CAP_DR1
,
.
caps_internal
=
FF_CODEC_CAP_INIT_CLEANUP
,
.
defaults
=
vaapi_encode_h264_defaults
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[])
{
...
...
libavcodec/vaapi_encode_h265.c
View file @
a1cd4191
...
...
@@ -1312,7 +1312,8 @@ AVCodec ff_hevc_vaapi_encoder = {
.
receive_packet
=
&
ff_vaapi_encode_receive_packet
,
.
close
=
&
vaapi_encode_h265_close
,
.
priv_class
=
&
vaapi_encode_h265_class
,
.
capabilities
=
AV_CODEC_CAP_DELAY
|
AV_CODEC_CAP_HARDWARE
,
.
capabilities
=
AV_CODEC_CAP_DELAY
|
AV_CODEC_CAP_HARDWARE
|
AV_CODEC_CAP_DR1
,
.
caps_internal
=
FF_CODEC_CAP_INIT_CLEANUP
,
.
defaults
=
vaapi_encode_h265_defaults
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[])
{
...
...
libavcodec/vaapi_encode_mjpeg.c
View file @
a1cd4191
...
...
@@ -562,7 +562,7 @@ AVCodec ff_mjpeg_vaapi_encoder = {
.
receive_packet
=
&
ff_vaapi_encode_receive_packet
,
.
close
=
&
vaapi_encode_mjpeg_close
,
.
priv_class
=
&
vaapi_encode_mjpeg_class
,
.
capabilities
=
AV_CODEC_CAP_HARDWARE
,
.
capabilities
=
AV_CODEC_CAP_HARDWARE
|
AV_CODEC_CAP_DR1
,
.
caps_internal
=
FF_CODEC_CAP_INIT_CLEANUP
,
.
defaults
=
vaapi_encode_mjpeg_defaults
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[])
{
...
...
libavcodec/vaapi_encode_mpeg2.c
View file @
a1cd4191
...
...
@@ -698,7 +698,8 @@ AVCodec ff_mpeg2_vaapi_encoder = {
.
receive_packet
=
&
ff_vaapi_encode_receive_packet
,
.
close
=
&
vaapi_encode_mpeg2_close
,
.
priv_class
=
&
vaapi_encode_mpeg2_class
,
.
capabilities
=
AV_CODEC_CAP_DELAY
|
AV_CODEC_CAP_HARDWARE
,
.
capabilities
=
AV_CODEC_CAP_DELAY
|
AV_CODEC_CAP_HARDWARE
|
AV_CODEC_CAP_DR1
,
.
caps_internal
=
FF_CODEC_CAP_INIT_CLEANUP
,
.
defaults
=
vaapi_encode_mpeg2_defaults
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[])
{
...
...
libavcodec/vaapi_encode_vp8.c
View file @
a1cd4191
...
...
@@ -255,7 +255,8 @@ AVCodec ff_vp8_vaapi_encoder = {
.
receive_packet
=
&
ff_vaapi_encode_receive_packet
,
.
close
=
&
ff_vaapi_encode_close
,
.
priv_class
=
&
vaapi_encode_vp8_class
,
.
capabilities
=
AV_CODEC_CAP_DELAY
|
AV_CODEC_CAP_HARDWARE
,
.
capabilities
=
AV_CODEC_CAP_DELAY
|
AV_CODEC_CAP_HARDWARE
|
AV_CODEC_CAP_DR1
,
.
caps_internal
=
FF_CODEC_CAP_INIT_CLEANUP
,
.
defaults
=
vaapi_encode_vp8_defaults
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[])
{
...
...
libavcodec/vaapi_encode_vp9.c
View file @
a1cd4191
...
...
@@ -289,7 +289,8 @@ AVCodec ff_vp9_vaapi_encoder = {
.
receive_packet
=
&
ff_vaapi_encode_receive_packet
,
.
close
=
&
ff_vaapi_encode_close
,
.
priv_class
=
&
vaapi_encode_vp9_class
,
.
capabilities
=
AV_CODEC_CAP_DELAY
|
AV_CODEC_CAP_HARDWARE
,
.
capabilities
=
AV_CODEC_CAP_DELAY
|
AV_CODEC_CAP_HARDWARE
|
AV_CODEC_CAP_DR1
,
.
caps_internal
=
FF_CODEC_CAP_INIT_CLEANUP
,
.
defaults
=
vaapi_encode_vp9_defaults
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[])
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment