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
4b4f62a0
Commit
4b4f62a0
authored
Apr 15, 2013
by
Vianney BOYER
Committed by
Jean-Baptiste Kempf
Apr 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Puzzle: main filter update
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
b9730ca6
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
754 additions
and
261 deletions
+754
-261
modules/video_filter/Modules.am
modules/video_filter/Modules.am
+10
-2
modules/video_filter/puzzle.c
modules/video_filter/puzzle.c
+666
-259
modules/video_filter/puzzle.h
modules/video_filter/puzzle.h
+78
-0
No files found.
modules/video_filter/Modules.am
View file @
4b4f62a0
...
@@ -52,6 +52,16 @@ if HAVE_GCRYPT
...
@@ -52,6 +52,16 @@ if HAVE_GCRYPT
libvlc_LTLIBRARIES += libremoteosd_plugin.la
libvlc_LTLIBRARIES += libremoteosd_plugin.la
endif
endif
libpuzzle_plugin_la_SOURCES = \
puzzle.c puzzle.h \
puzzle_bezier.c puzzle_bezier.h \
puzzle_lib.c puzzle_lib.h \
puzzle_mgt.c puzzle_mgt.h \
puzzle_pce.c puzzle_pce.h
libpuzzle_plugin_la_CFLAGS = $(AM_CFLAGS)
libpuzzle_plugin_la_LIBADD = $(AM_LIBADD)
libvlc_LTLIBRARIES += libpuzzle_plugin.la
SOURCES_magnify = magnify.c
SOURCES_magnify = magnify.c
SOURCES_wave = wave.c
SOURCES_wave = wave.c
SOURCES_ripple = ripple.c
SOURCES_ripple = ripple.c
...
@@ -75,7 +85,6 @@ SOURCES_rotate = \
...
@@ -75,7 +85,6 @@ SOURCES_rotate = \
$(motion_extra) \
$(motion_extra) \
$(NULL)
$(NULL)
SOURCES_puzzle = puzzle.c
SOURCES_colorthres = colorthres.c
SOURCES_colorthres = colorthres.c
SOURCES_extract = extract.c
SOURCES_extract = extract.c
SOURCES_sharpen = sharpen.c
SOURCES_sharpen = sharpen.c
...
@@ -149,7 +158,6 @@ libvlc_LTLIBRARIES += \
...
@@ -149,7 +158,6 @@ libvlc_LTLIBRARIES += \
libmotiondetect_plugin.la \
libmotiondetect_plugin.la \
libposterize_plugin.la \
libposterize_plugin.la \
libpsychedelic_plugin.la \
libpsychedelic_plugin.la \
libpuzzle_plugin.la \
libripple_plugin.la \
libripple_plugin.la \
librotate_plugin.la \
librotate_plugin.la \
librss_plugin.la \
librss_plugin.la \
...
...
modules/video_filter/puzzle.c
View file @
4b4f62a0
This diff is collapsed.
Click to expand it.
modules/video_filter/puzzle.h
0 → 100644
View file @
4b4f62a0
/*****************************************************************************
* puzzle.h : Puzzle game
*****************************************************************************
* Copyright (C) 2005-2009 VLC authors and VideoLAN
* Copyright (C) 2013 Vianney Boyer
* $Id$
*
* Authors: Vianney Boyer <vlcvboyer -at- gmail -dot- com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef VLC_PUZZLE_H
#define VLC_PUZZLE_H 1
#include "puzzle_mgt.h"
struct
filter_sys_t
{
bool
b_init
;
bool
b_bake_request
;
bool
b_shape_init
;
bool
b_change_param
;
bool
b_finished
;
bool
b_shuffle_rqst
;
bool
b_mouse_drag
;
bool
b_mouse_mvt
;
param_t
s_allocated
;
param_t
s_current_param
;
param_t
s_new_param
;
uint32_t
i_done_count
,
i_tmp_done_count
;
int32_t
i_mouse_drag_pce
;
int32_t
i_mouse_x
,
i_mouse_y
;
int16_t
i_pointed_pce
;
int8_t
i_mouse_action
;
uint32_t
i_solve_acc_loop
,
i_solve_grp_loop
,
i_calc_corn_loop
;
int32_t
i_magnet_accuracy
;
int32_t
*
pi_group_qty
;
int32_t
*
pi_order
;
/* array which contains final pieces location (used in BASIC GAME MODE) */
puzzle_array_t
***
ps_puzzle_array
;
/* array [row][col][plane] preset of location & size of each piece in the original image */
piece_shape_t
**
ps_pieces_shapes
;
/* array [each piece type (PCE_TYPE_NBR * negative * 4: top...)][each plane] of piece definition */
piece_t
*
ps_pieces
;
/* list [piece] of pieces data. */
piece_t
*
ps_pieces_tmp
;
/* used when sorting layers */
puzzle_plane_t
*
ps_desk_planes
;
puzzle_plane_t
*
ps_pict_planes
;
uint8_t
i_preview_pos
;
int32_t
i_selected
;
vlc_mutex_t
lock
,
pce_lock
;
int32_t
i_auto_shuffle_countdown_val
,
i_auto_solve_countdown_val
;
point_t
**
ps_bezier_pts_H
;
};
picture_t
*
Filter
(
filter_t
*
,
picture_t
*
);
int
puzzle_Callback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
int
puzzle_mouse
(
filter_t
*
,
vlc_mouse_t
*
,
const
vlc_mouse_t
*
,
const
vlc_mouse_t
*
);
#endif
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