History

lavc/vaapi_encode: Change the slice/parameter buffers to dynamic alloc.

Change the slice/parameter buffers to be allocated dynamically.

Jun Zhao committed 9 years ago

Commit e4a6eb71 parent 385cafb2 files · +32 −16Browse files

Showing the changes to libavcodec/vaapi_encode.h (1 of 2 files). Show all

Unified · Split

libavcodec/vaapi_encode.h+2−4
@@ -35,8 +35,6 @@ enum { · 34 unmodified lines
3535 MAX_CONFIG_ATTRIBUTES = 4,
3636 MAX_GLOBAL_PARAMS = 4,
3737 MAX_PICTURE_REFERENCES = 2,
38− MAX_PICTURE_SLICES = 112,
39− MAX_PARAM_BUFFERS = 128,
4038 MAX_REORDER_DELAY = 16,
4139 MAX_PARAM_BUFFER_SIZE = 1024,
4240 };
@@ -73,7 +71,7 @@ typedef struct VAAPIEncodePicture { · 30 unmodified lines
7371 VASurfaceID recon_surface;
7472
7573 int nb_param_buffers;
76− VABufferID param_buffers[MAX_PARAM_BUFFERS];
74+ VABufferID *param_buffers;
7775
7876 AVBufferRef *output_buffer_ref;
7977 VABufferID output_buffer;
@@ -85,7 +83,7 @@ typedef struct VAAPIEncodePicture { · 5 unmodified lines
8583 struct VAAPIEncodePicture *refs[MAX_PICTURE_REFERENCES];
8684
8785 int nb_slices;
88− VAAPIEncodeSlice *slices[MAX_PICTURE_SLICES];
86+ VAAPIEncodeSlice *slices;
8987 } VAAPIEncodePicture;
9088
9189 typedef struct VAAPIEncodeContext {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t