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
79053042
Commit
79053042
authored
Dec 26, 2004
by
Rocky Bernstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some cleanup and unification with xine vcd plugin.
parent
8b492795
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
494 additions
and
515 deletions
+494
-515
modules/access/vcdx/access.c
modules/access/vcdx/access.c
+198
-185
modules/access/vcdx/info.c
modules/access/vcdx/info.c
+55
-52
modules/access/vcdx/info.h
modules/access/vcdx/info.h
+1
-1
modules/access/vcdx/intf.c
modules/access/vcdx/intf.c
+11
-10
modules/access/vcdx/intf.h
modules/access/vcdx/intf.h
+1
-1
modules/access/vcdx/vcdplayer.c
modules/access/vcdx/vcdplayer.c
+193
-234
modules/access/vcdx/vcdplayer.h
modules/access/vcdx/vcdplayer.h
+35
-32
No files found.
modules/access/vcdx/access.c
View file @
79053042
This diff is collapsed.
Click to expand it.
modules/access/vcdx/info.c
View file @
79053042
This diff is collapsed.
Click to expand it.
modules/access/vcdx/info.h
View file @
79053042
...
...
@@ -32,7 +32,7 @@
void
VCDMetaInfo
(
access_t
*
p_access
,
/*const*/
char
*
psz_mrl
);
char
*
VCDFormatStr
(
const
access_t
*
p_access
,
vcdplayer_t
*
p_vcd
,
char
*
VCDFormatStr
(
const
access_t
*
p_access
,
vcdplayer_t
*
p_vcd
player
,
const
char
format_str
[],
const
char
*
mrl
,
const
vcdinfo_itemid_t
*
itemid
);
...
...
modules/access/vcdx/intf.c
View file @
79053042
...
...
@@ -93,7 +93,7 @@ RunIntf( intf_thread_t *p_intf )
vlc_object_t
*
p_vout
=
NULL
;
mtime_t
mtime
=
0
;
mtime_t
mlast
=
0
;
vcdplayer_t
*
p_vcd
;
vcdplayer_t
*
p_vcd
player
;
input_thread_t
*
p_input
;
access_t
*
p_access
;
...
...
@@ -109,13 +109,13 @@ RunIntf( intf_thread_t *p_intf )
p_input
=
p_intf
->
p_sys
->
p_input
;
while
(
!
p_intf
->
p_sys
->
p_vcd
)
while
(
!
p_intf
->
p_sys
->
p_vcd
player
)
{
msleep
(
INTF_IDLE_SLEEP
);
}
p_vcd
=
p_intf
->
p_sys
->
p_vcd
;
p_access
=
p_vcd
->
p_access
;
p_vcd
player
=
p_intf
->
p_sys
->
p_vcdplayer
;
p_access
=
p_vcdplayer
->
p_access
;
dbg_print
(
INPUT_DBG_CALL
,
"intf initialized"
);
...
...
@@ -210,13 +210,14 @@ RunIntf( intf_thread_t *p_intf )
case
ACTIONID_NAV_ACTIVATE
:
{
vcdinfo_itemid_t
itemid
;
itemid
.
type
=
p_vcd
->
play_item
.
type
;
itemid
.
type
=
p_vcd
player
->
play_item
.
type
;
dbg_print
(
INPUT_DBG_EVENT
,
"ACTIONID_NAV_ACTIVATE"
);
if
(
vcdplayer_pbc_is_on
(
p_vcd
)
&&
number_addend
!=
0
)
{
lid_t
next_num
=
vcdinfo_selection_get_lid
(
p_vcd
->
vcd
,
p_vcd
->
i_lid
,
if
(
vcdplayer_pbc_is_on
(
p_vcdplayer
)
&&
number_addend
!=
0
)
{
lid_t
next_num
=
vcdinfo_selection_get_lid
(
p_vcdplayer
->
vcd
,
p_vcdplayer
->
i_lid
,
number_addend
);
if
(
VCDINFO_INVALID_LID
!=
next_num
)
{
itemid
.
num
=
next_num
;
...
...
@@ -326,8 +327,8 @@ static int InitThread( intf_thread_t * p_intf )
vlc_mutex_lock
(
&
p_intf
->
change_lock
);
p_intf
->
p_sys
->
p_input
=
p_input
;
p_intf
->
p_sys
->
p_vcd
=
NULL
;
p_intf
->
p_sys
->
p_input
=
p_input
;
p_intf
->
p_sys
->
p_vcd
player
=
NULL
;
p_intf
->
p_sys
->
b_move
=
VLC_FALSE
;
p_intf
->
p_sys
->
b_click
=
VLC_FALSE
;
...
...
modules/access/vcdx/intf.h
View file @
79053042
...
...
@@ -27,7 +27,7 @@
struct
intf_sys_t
{
input_thread_t
*
p_input
;
vcdplayer_t
*
p_vcd
;
vcdplayer_t
*
p_vcd
player
;
vlc_bool_t
b_still
;
/* True if we are in a still frame */
vlc_bool_t
b_infinite_still
;
/* True if still wait time is infinite */
...
...
modules/access/vcdx/vcdplayer.c
View file @
79053042
This diff is collapsed.
Click to expand it.
modules/access/vcdx/vcdplayer.h
View file @
79053042
...
...
@@ -33,7 +33,7 @@
#define INPUT_DBG_EVENT 2
/* input (keyboard/mouse) events */
#define INPUT_DBG_MRL 4
/* MRL parsing */
#define INPUT_DBG_EXT 8
/* Calls from external routines */
#define INPUT_DBG_CALL 16
/*
all
calls */
#define INPUT_DBG_CALL 16
/*
routine
calls */
#define INPUT_DBG_LSN 32
/* LSN changes */
#define INPUT_DBG_PBC 64
/* Playback control */
#define INPUT_DBG_CDIO 128
/* Debugging from CDIO */
...
...
@@ -45,7 +45,7 @@
#define INPUT_DEBUG 1
#if INPUT_DEBUG
#define dbg_print(mask, s, args...) \
if (p_vcd
&& p_vcd
->i_debug & mask) \
if (p_vcd
player && p_vcdplayer
->i_debug & mask) \
msg_Dbg(p_access, "%s: "s, __func__ , ##args)
#else
#define dbg_print(mask, s, args...)
...
...
@@ -65,26 +65,22 @@ typedef struct {
size_t
size
;
/* size in sector units of play item. */
}
vcdplayer_play_item_info_t
;
/* vcdplayer_read return status */
typedef
enum
{
READ_BLOCK
,
READ_STILL_FRAME
,
READ_ERROR
,
READ_END
,
}
vcdplayer_read_status_t
;
/*****************************************************************************
* vcdplayer_t: VCD information
*****************************************************************************/
typedef
struct
thread_vcd_data
_s
typedef
struct
vcdplayer_input
_s
{
vcdinfo_obj_t
*
vcd
;
/* CD device descriptor */
/* User-settable options */
/*------------------------------------------------------------------
User-settable options
--------------------------------------------------------------*/
unsigned
int
i_debug
;
/* Debugging mask */
unsigned
int
i_blocks_per_read
;
/* number of blocks per read */
/* Current State: position */
/*-------------------------------------------------------------
Playback control fields
--------------------------------------------------------------*/
bool
in_still
;
/* true if in still */
int
i_lid
;
/* LID that play item is in. Implies
PBC is on. VCDPLAYER_BAD_ENTRY if
...
...
@@ -98,11 +94,15 @@ typedef struct thread_vcd_data_s
vcdinfo_itemid_t
loop_item
;
/* Where do we loop back to?
Meaningful only in a selection
list */
int
loop_count
;
/* # of times play-item has been
int
i_loop
;
/* # of times play-item has been
played. Meaningful only in a
selection list. */
track_t
i_track
;
/* Current track number */
lsn_t
i_lsn
;
/* Current logical sector number */
track_t
i_track
;
/* current track number */
/*-----------------------------------
location fields
------------------------------------*/
lsn_t
i_lsn
;
/* LSN of where we are right now */
lsn_t
end_lsn
;
/* LSN of end of current
entry/segment/track. This block
can be read (and is not one after
...
...
@@ -118,8 +118,11 @@ typedef struct thread_vcd_data_s
bool
b_valid_ep
;
/* Valid entry points flag */
bool
b_end_of_track
;
/* If the end of track was reached */
/* Information about (S)VCD */
char
*
psz_source
;
/* (S)VCD drive or image filename */
/*--------------------------------------------------------------
(S)VCD Medium information
---------------------------------------------------------------*/
char
*
psz_source
;
/* (S)VCD drive or image filename */
bool
b_svd
;
/* true if we have SVD info */
vlc_meta_t
*
p_meta
;
track_t
i_tracks
;
/* # of playable MPEG tracks. This is
...
...
@@ -133,7 +136,7 @@ typedef struct thread_vcd_data_s
unsigned
int
i_lids
;
/* # of List IDs */
/* Tracks, segment, and entry information. The number of entries for
each is given by the corresponding
num
_* field above. */
each is given by the corresponding
i
_* field above. */
vcdplayer_play_item_info_t
*
track
;
vcdplayer_play_item_info_t
*
segment
;
vcdplayer_play_item_info_t
*
entry
;
...
...
@@ -156,18 +159,23 @@ typedef struct thread_vcd_data_s
}
vcdplayer_t
;
/*!
Get the next play-item in the list given in the LIDs. Note play-item
here refers to list of play-items for a single LID It shouldn't be
confused with a user's list of favorite things to play or the
"next" field of a LID which moves us to a different LID.
*/
bool
vcdplayer_inc_play_item
(
access_t
*
p_access
);
/* vcdplayer_read return status */
typedef
enum
{
READ_BLOCK
,
READ_STILL_FRAME
,
READ_ERROR
,
READ_END
,
}
vcdplayer_read_status_t
;
/* ----------------------------------------------------------------------
Function Prototypes
-----------------------------------------------------------------------*/
/*!
Return true if playback control (PBC) is on
*/
bool
vcdplayer_pbc_is_on
(
const
vcdplayer_t
*
p_
this
);
bool
vcdplayer_pbc_is_on
(
const
vcdplayer_t
*
p_
vcdplayer
);
/*!
Play item assocated with the "default" selection.
...
...
@@ -207,11 +215,6 @@ void vcdplayer_set_origin(access_t *p_access, lsn_t i_lsn, track_t i_track,
void
vcdplayer_play
(
access_t
*
p_access
,
vcdinfo_itemid_t
itemid
);
vcdplayer_read_status_t
vcdplayer_pbc_nav
(
access_t
*
p_access
,
uint8_t
*
wait_time
);
vcdplayer_read_status_t
vcdplayer_non_pbc_nav
(
access_t
*
p_access
,
uint8_t
*
wait_time
);
vcdplayer_read_status_t
vcdplayer_read
(
access_t
*
p_access_t
,
uint8_t
*
p_buf
);
#endif
/* _VCDPLAYER_H_ */
...
...
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