Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d5300df1
Commit
d5300df1
authored
Jan 11, 2000
by
Vincent Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modifs diverses et variees. Le mode FB compile (mais ne fait rien).
parent
4c83ad1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
10 deletions
+17
-10
Makefile
Makefile
+3
-1
include/video.h
include/video.h
+10
-5
src/video_output/video_output.c
src/video_output/video_output.c
+4
-4
No files found.
Makefile
View file @
d5300df1
...
...
@@ -198,10 +198,12 @@ video_decoder_obj = video_decoder_ref/video_decoder.o \
# video_decoder/vdec_motion.o
misc_obj
=
misc/mtime.o
\
misc/xutils.o
\
misc/rsc_files.o
\
misc/netutils.o
ifeq
($(VIDEO),X11)
misc_obj
+=
misc/xutils.o
endif
ifeq
($(ARCH),MMX)
ASM_OBJ
=
video_decoder_ref/idctmmx.o
\
...
...
include/video.h
View file @
d5300df1
...
...
@@ -11,6 +11,11 @@
* "mtime.h"
*******************************************************************************/
/*******************************************************************************
* yuv_data_t: type for storing one Y, U or V sample.
*******************************************************************************/
typedef
s16
yuv_data_t
;
/*******************************************************************************
* picture_t: video picture
*******************************************************************************
...
...
@@ -47,16 +52,16 @@ typedef struct
* p_v data pointers refers to different areas of p_data, and should not
* be freed */
byte_t
*
p_data
;
/* picture data */
byte_t
*
p_y
;
/* pointer to beginning of Y image in p_data */
byte_t
*
p_u
;
/* pointer to beginning of U image in p_data */
byte_t
*
p_v
;
/* pointer to beginning of V image in p_data */
yuv_data_t
*
p_y
;
/* pointer to beginning of Y image in p_data */
yuv_data_t
*
p_u
;
/* pointer to beginning of U image in p_data */
yuv_data_t
*
p_v
;
/* pointer to beginning of V image in p_data */
}
picture_t
;
/* Pictures types */
#define EMPTY_PICTURE 0
/* picture slot is empty and available */
#define YUV_42
2_PICTURE 100
/* 4:2:2
YUV picture */
#define YUV_4
42_PICTURE 101
/* 4:4
:2 YUV picture */
#define YUV_42
0_PICTURE 100
/* 4:2:0
YUV picture */
#define YUV_4
22_PICTURE 101
/* 4:2
:2 YUV picture */
#define YUV_444_PICTURE 102
/* 4:4:4 YUV picture */
/* Pictures status */
...
...
src/video_output/video_output.c
View file @
d5300df1
...
...
@@ -248,13 +248,13 @@ picture_t *vout_CreatePicture( vout_thread_t *p_vout, int i_type,
/* Allocate memory */
switch
(
i_type
)
{
case
YUV_42
2
_PICTURE
:
/* YUV picture: 3*16 ?? bits per pixel */
case
YUV_4
4
2_PICTURE
:
case
YUV_42
0
_PICTURE
:
/* YUV picture: 3*16 ?? bits per pixel */
case
YUV_4
2
2_PICTURE
:
case
YUV_444_PICTURE
:
p_free_picture
->
p_data
=
malloc
(
3
*
i_height
*
i_bytes_per_line
);
p_free_picture
->
p_y
=
p_free_picture
->
p_data
;
p_free_picture
->
p_u
=
(
byte_t
*
)
p_free_picture
->
p_data
+
i_height
*
i_bytes_per_line
;
p_free_picture
->
p_v
=
(
byte_t
*
)
p_free_picture
->
p_data
+
i_height
*
i_bytes_per_line
*
2
;
p_free_picture
->
p_u
=
p_free_picture
->
p_data
+
i_height
*
i_bytes_per_line
;
p_free_picture
->
p_v
=
p_free_picture
->
p_data
+
i_height
*
i_bytes_per_line
*
2
;
break
;
#ifdef DEBUG
default:
...
...
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