Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
aa66ede8
Commit
aa66ede8
authored
Aug 19, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/dmo/*: flag sync-points in the video encoder.
parent
c2e7b762
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
modules/codec/dmo/dmo.c
modules/codec/dmo/dmo.c
+9
-1
modules/codec/dmo/dmo.h
modules/codec/dmo/dmo.h
+2
-2
No files found.
modules/codec/dmo/dmo.c
View file @
aa66ede8
...
...
@@ -755,7 +755,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_in
=
CMediaBufferCreate
(
p_block
,
p_block
->
i_buffer
,
VLC_TRUE
);
i_result
=
p_sys
->
p_dmo
->
vt
->
ProcessInput
(
p_sys
->
p_dmo
,
0
,
(
IMediaBuffer
*
)
p_in
,
DMO_INPUT_DATA_BUFFER_SYNCPOINT
,
(
IMediaBuffer
*
)
p_in
,
DMO_INPUT_DATA_BUFFER
F
_SYNCPOINT
,
0
,
0
);
p_in
->
vt
->
Release
(
(
IUnknown
*
)
p_in
);
...
...
@@ -1506,6 +1506,14 @@ static block_t *EncodeBlock( encoder_t *p_enc, void *p_data )
#endif
}
if
(
p_enc
->
fmt_out
.
i_cat
==
VIDEO_ES
)
{
if
(
db
.
dwStatus
&
DMO_OUTPUT_DATA_BUFFERF_SYNCPOINT
)
p_block_out
->
i_flags
|=
BLOCK_FLAG_TYPE_I
;
else
p_block_out
->
i_flags
|=
BLOCK_FLAG_TYPE_P
;
}
p_block_out
->
i_dts
=
p_block_out
->
i_pts
=
i_pts
;
block_ChainAppend
(
&
p_chain
,
p_block_out
);
}
...
...
modules/codec/dmo/dmo.h
View file @
aa66ede8
...
...
@@ -50,10 +50,10 @@ typedef struct _IMediaObject IMediaObject;
#define STDCALL __stdcall
#endif
#define DMO_INPUT_DATA_BUFFER_SYNCPOINT 1
#define DMO_INPUT_DATA_BUFFER
F
_SYNCPOINT 1
#define DMO_INPUT_DATA_BUFFERF_TIME 2
#define DMO_INPUT_DATA_BUFFERF_TIMELENGTH 4
#define DMO_OUTPUT_DATA_BUFFER_SYNCPOINT 1
#define DMO_OUTPUT_DATA_BUFFER
F
_SYNCPOINT 1
#define DMO_OUTPUT_DATA_BUFFERF_TIME 2
#define DMO_OUTPUT_DATA_BUFFERF_TIMELENGTH 4
#define DMO_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER 1
...
...
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