Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
94e0618b
Commit
94e0618b
authored
Apr 23, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed now unused picture_t fields and associated enums.
They are p_data, i_status, i_type and b_slow.
parent
a114568c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
41 deletions
+4
-41
include/vlc_picture.h
include/vlc_picture.h
+0
-36
modules/video_filter/opencv_wrapper.c
modules/video_filter/opencv_wrapper.c
+1
-1
src/video_output/vout_pictures.c
src/video_output/vout_pictures.c
+3
-4
No files found.
include/vlc_picture.h
View file @
94e0618b
...
@@ -63,11 +63,6 @@ typedef struct picture_release_sys_t picture_release_sys_t;
...
@@ -63,11 +63,6 @@ typedef struct picture_release_sys_t picture_release_sys_t;
/**
/**
* Video picture
* Video picture
*
* Any picture destined to be displayed by a video output thread should be
* stored in this structure from it's creation to it's effective display.
* Picture type and flags should only be modified by the output thread. Note
* that an empty picture MUST have its flags set to 0.
*/
*/
struct
picture_t
struct
picture_t
{
{
...
@@ -76,22 +71,10 @@ struct picture_t
...
@@ -76,22 +71,10 @@ struct picture_t
*/
*/
video_frame_format_t
format
;
video_frame_format_t
format
;
/** Picture data - data can always be freely modified, but p_data may
* NEVER be modified. A direct buffer can be handled as the plugin
* wishes, it can even swap p_pixels buffers. */
uint8_t
*
p_data
;
void
*
p_data_orig
;
/**< pointer before memalign */
void
*
p_data_orig
;
/**< pointer before memalign */
plane_t
p
[
PICTURE_PLANE_MAX
];
/**< description of the planes */
plane_t
p
[
PICTURE_PLANE_MAX
];
/**< description of the planes */
int
i_planes
;
/**< number of allocated planes */
int
i_planes
;
/**< number of allocated planes */
/** \name Type and flags
* Should NOT be modified except by the vout thread
* @{*/
int
i_status
;
/**< picture flags */
int
i_type
;
/**< is picture a direct buffer ? */
bool
b_slow
;
/**< is picture in slow memory ? */
/**@}*/
/** \name Picture management properties
/** \name Picture management properties
* These properties can be modified using the video output thread API,
* These properties can be modified using the video output thread API,
* but should never be written directly */
* but should never be written directly */
...
@@ -300,25 +283,6 @@ VLC_EXPORT( int, picture_Setup, ( picture_t *, vlc_fourcc_t i_chroma, int i_widt
...
@@ -300,25 +283,6 @@ VLC_EXPORT( int, picture_Setup, ( picture_t *, vlc_fourcc_t i_chroma, int i_widt
* Flags used to describe the status of a picture
* Flags used to describe the status of a picture
*****************************************************************************/
*****************************************************************************/
/* Picture type
* FIXME are the values meaningfull ? */
enum
{
EMPTY_PICTURE
=
0
,
/* empty buffer */
MEMORY_PICTURE
=
100
,
/* heap-allocated buffer */
DIRECT_PICTURE
=
200
,
/* direct buffer */
};
/* Picture status */
enum
{
FREE_PICTURE
,
/* free and not allocated */
RESERVED_PICTURE
,
/* allocated and reserved */
READY_PICTURE
,
/* ready for display */
DISPLAYED_PICTURE
,
/* been displayed but is linked */
DESTROYED_PICTURE
,
/* allocated but no more used */
};
/* Quantification type */
/* Quantification type */
enum
enum
{
{
...
...
modules/video_filter/opencv_wrapper.c
View file @
94e0618b
...
@@ -562,7 +562,7 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -562,7 +562,7 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
if
((
p_vout
->
p_sys
->
p_opencv
)
&&
(
p_vout
->
p_sys
->
p_opencv
->
p_module
))
if
((
p_vout
->
p_sys
->
p_opencv
)
&&
(
p_vout
->
p_sys
->
p_opencv
->
p_module
))
p_vout
->
p_sys
->
p_opencv
->
pf_video_filter
(
p_vout
->
p_sys
->
p_opencv
,
&
(
p_vout
->
p_sys
->
hacked_pic
));
p_vout
->
p_sys
->
p_opencv
->
pf_video_filter
(
p_vout
->
p_sys
->
p_opencv
,
&
(
p_vout
->
p_sys
->
hacked_pic
));
//copy the processed image into the output image
//copy the processed image into the output image
if
((
p_vout
->
p_sys
->
p_proc_image
)
&&
(
p_vout
->
p_sys
->
p_proc_image
->
p_data
))
if
((
p_vout
->
p_sys
->
p_proc_image
)
&&
(
p_vout
->
p_sys
->
p_proc_image
->
i_planes
>
0
))
picture_Copy
(
p_outpic
,
p_vout
->
p_sys
->
p_proc_image
);
picture_Copy
(
p_outpic
,
p_vout
->
p_sys
->
p_proc_image
);
}
}
...
...
src/video_output/vout_pictures.c
View file @
94e0618b
...
@@ -144,15 +144,15 @@ static int vout_AllocatePicture( picture_t *p_pic,
...
@@ -144,15 +144,15 @@ static int vout_AllocatePicture( picture_t *p_pic,
i_bytes
+=
p
->
i_pitch
*
p
->
i_lines
;
i_bytes
+=
p
->
i_pitch
*
p
->
i_lines
;
}
}
p_pic
->
p_data
=
vlc_memalign
(
&
p_pic
->
p_data_orig
,
16
,
i_bytes
);
uint8_t
*
p_data
=
vlc_memalign
(
&
p_pic
->
p_data_orig
,
16
,
i_bytes
);
if
(
p_pic
->
p_data
==
NULL
)
if
(
!
p_data
)
{
{
p_pic
->
i_planes
=
0
;
p_pic
->
i_planes
=
0
;
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
/* Fill the p_pixels field for each plane */
/* Fill the p_pixels field for each plane */
p_pic
->
p
[
0
].
p_pixels
=
p_
pic
->
p_
data
;
p_pic
->
p
[
0
].
p_pixels
=
p_data
;
for
(
int
i
=
1
;
i
<
p_pic
->
i_planes
;
i
++
)
for
(
int
i
=
1
;
i
<
p_pic
->
i_planes
;
i
++
)
{
{
p_pic
->
p
[
i
].
p_pixels
=
&
p_pic
->
p
[
i
-
1
].
p_pixels
[
p_pic
->
p
[
i
-
1
].
i_lines
*
p_pic
->
p
[
i
].
p_pixels
=
&
p_pic
->
p
[
i
-
1
].
p_pixels
[
p_pic
->
p
[
i
-
1
].
i_lines
*
...
@@ -373,7 +373,6 @@ picture_t *picture_NewFromResource( const video_format_t *p_fmt, const picture_r
...
@@ -373,7 +373,6 @@ picture_t *picture_NewFromResource( const video_format_t *p_fmt, const picture_r
p_picture
->
format
=
fmt
;
p_picture
->
format
=
fmt
;
p_picture
->
i_refcount
=
1
;
p_picture
->
i_refcount
=
1
;
p_picture
->
pf_release
=
PictureReleaseCallback
;
p_picture
->
pf_release
=
PictureReleaseCallback
;
p_picture
->
i_status
=
RESERVED_PICTURE
;
return
p_picture
;
return
p_picture
;
}
}
...
...
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