Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Seungha Yang
gst-plugins-bad
Commits
f61bbccb
Commit
f61bbccb
authored
Dec 05, 2018
by
Seungha Yang
🐑
Browse files
nvenc: Use gpointer instead of void*
just convention
parent
30ed3032
Changes
2
Hide whitespace changes
Inline
Side-by-side
sys/nvcodec/gstnvbaseenc.c
View file @
f61bbccb
...
...
@@ -835,7 +835,7 @@ gst_nv_base_enc_bitstream_thread (gpointer user_data)
}
for
(
i
=
0
;
i
<
state
->
n_buffers
;
i
++
)
{
void
*
in_buf
=
state
->
in_bufs
[
i
];
gpointer
in_buf
=
state
->
in_bufs
[
i
];
g_assert
(
in_buf
!=
NULL
);
#if HAVE_NVENC_GST_GL
...
...
@@ -1615,8 +1615,8 @@ _acquire_input_buffer (GstNvBaseEnc * nvenc, gpointer * input)
static
GstFlowReturn
_submit_input_buffer
(
GstNvBaseEnc
*
nvenc
,
GstVideoCodecFrame
*
frame
,
GstVideoFrame
*
vframe
,
void
*
inputBuffer
,
void
*
inputBufferPtr
,
NV_ENC_BUFFER_FORMAT
bufferFormat
,
void
*
outputBufferPtr
)
GstVideoFrame
*
vframe
,
gpointer
inputBuffer
,
gpointer
inputBufferPtr
,
NV_ENC_BUFFER_FORMAT
bufferFormat
,
gpointer
outputBufferPtr
)
{
GstNvBaseEncClass
*
nvenc_class
=
GST_NV_BASE_ENC_GET_CLASS
(
nvenc
);
NV_ENC_PIC_PARAMS
pic_params
=
{
0
,
};
...
...
sys/nvcodec/gstnvbaseenc.h
View file @
f61bbccb
...
...
@@ -73,7 +73,7 @@ typedef struct {
gint
gop_size
;
GstCudaContext
*
cuda_ctx
;
void
*
encoder
;
gpointer
encoder
;
/* the supported input formats */
GValue
*
input_formats
;
/* OBJECT LOCK */
...
...
@@ -103,8 +103,8 @@ typedef struct {
* 0 = none, 1 = fields, 2 = interleaved */
gint
interlace_modes
;
void
*
display
;
/* GstGLDisplay */
void
*
other_context
;
/* GstGLContext */
gpointer
display
;
/* GstGLDisplay */
gpointer
other_context
;
/* GstGLContext */
/* the maximum buffer size the encoder is configured for */
guint
max_encode_width
;
...
...
Write
Preview
Supports
Markdown
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