Skip to content

Commit 471b059

Browse files
committed
Update plusplayer and replace plusplayer-wrapper with capi
1 parent 6a94a00 commit 471b059

File tree

84 files changed

+3905
-1176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+3905
-1176
lines changed

packages/video_player_avplay/tizen/inc/plusplayer/plusplayer_wrapper.h

Lines changed: 0 additions & 665 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/**
2+
* @file
3+
* @brief AppInfo related enums
4+
* @interfacetype Platform
5+
* @privlevel None-privilege
6+
* @privilege None
7+
* @product TV, AV, B2B
8+
* @version 8.0
9+
* @SDK_Support N
10+
* @remark This is a group of C style display releted data structures
11+
* and enums.
12+
* @see The display related enum values and data structures will be
13+
* converted by this managed C version types to avoid binary
14+
* compatibility.
15+
*
16+
* Copyright (c) 2025 Samsung Electronics Co., Ltd All Rights Reserved
17+
*
18+
* Licensed under the Apache License, Version 2.0 (the "License");
19+
* you may not use this file except in compliance with the License.
20+
* You may obtain a copy of the License at
21+
*
22+
* http://www.apache.org/licenses/LICENSE-2.0
23+
*
24+
* Unless required by applicable law or agreed to in writing, software
25+
* distributed under the License is distributed on an "AS IS" BASIS,
26+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27+
* See the License for the specific language governing permissions and
28+
* limitations under the License.
29+
*/
30+
31+
#ifndef __PLUSPLAYER_PLUSPLAYER_CAPI_APPINFO_H__
32+
#define __PLUSPLAYER_PLUSPLAYER_CAPI_APPINFO_H__
33+
34+
#ifdef __cplusplus
35+
extern "C" {
36+
#endif
37+
38+
/**
39+
* @brief Player app information.
40+
*/
41+
typedef struct {
42+
char* id; /**< App id */
43+
char* version; /**< App version */
44+
char* type; /**< App type. ex)"MSE", "HTML5", etc.. */
45+
char* extra_data; /**< Extra field for future use */
46+
} plusplayer_app_info_s;
47+
48+
#ifdef __cplusplus
49+
} // extern "C"
50+
#endif
51+
52+
#endif // __PLUSPLAYER_PLUSPLAYER_CAPI_APPINFO_H__
Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
/**
2+
* @file
3+
* @brief Subtitle Attribute Enums and structures.
4+
* @interfacetype Platform
5+
* @privlevel None-privilege
6+
* @privilege None
7+
* @product TV, AV, B2B
8+
* @version 8.0
9+
* @SDK_Support N
10+
* @remark This is a group of C style Subtitle Attribute related enums
11+
* and structures.
12+
* @see Subtitle Attribute enum conversion and structures.
13+
*
14+
* Copyright (c) 2025 Samsung Electronics Co., Ltd All Rights Reserved
15+
*
16+
* Licensed under the Apache License, Version 2.0 (the "License");
17+
* you may not use this file except in compliance with the License.
18+
* You may obtain a copy of the License at
19+
*
20+
* http://www.apache.org/licenses/LICENSE-2.0
21+
*
22+
* Unless required by applicable law or agreed to in writing, software
23+
* distributed under the License is distributed on an "AS IS" BASIS,
24+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25+
* See the License for the specific language governing permissions and
26+
* limitations under the License.
27+
*/
28+
29+
#ifndef __PLUSPLAYER_PLUSPLAYER_CAPI_ATTRIBUTE_H__
30+
#define __PLUSPLAYER_PLUSPLAYER_CAPI_ATTRIBUTE_H__
31+
32+
#ifdef __cplusplus
33+
extern "C" {
34+
#endif
35+
36+
#include <stdint.h>
37+
38+
/**
39+
* @brief Enumeration for supported subtitle attributes
40+
*/
41+
typedef enum {
42+
PLUSPLAYER_SUBTITLE_ATTR_REGION_XPOS, /**< float type */
43+
PLUSPLAYER_SUBTITLE_ATTR_REGION_YPOS, /**< float type */
44+
PLUSPLAYER_SUBTITLE_ATTR_REGION_WIDTH, /**< float type */
45+
PLUSPLAYER_SUBTITLE_ATTR_REGION_HEIGHT, /**< float type */
46+
PLUSPLAYER_SUBTITLE_ATTR_WINDOW_XPADDING, /**< float type */
47+
PLUSPLAYER_SUBTITLE_ATTR_WINDOW_YPADDING, /**< float type */
48+
PLUSPLAYER_SUBTITLE_ATTR_WINDOW_LEFT_MARGIN, /**< int type */
49+
PLUSPLAYER_SUBTITLE_ATTR_WINDOW_RIGHT_MARGIN, /**< int type */
50+
PLUSPLAYER_SUBTITLE_ATTR_WINDOW_TOP_MARGIN, /**< int type */
51+
PLUSPLAYER_SUBTITLE_ATTR_WINDOW_BOTTOM_MARGIN, /**< int type */
52+
PLUSPLAYER_SUBTITLE_ATTR_WINDOW_BG_COLOR, /**< int type */
53+
PLUSPLAYER_SUBTITLE_ATTR_WINDOW_OPACITY, /**< float type */
54+
PLUSPLAYER_SUBTITLE_ATTR_WINDOW_SHOW_BG, /**< how to show window background,
55+
uint type */
56+
PLUSPLAYER_SUBTITLE_ATTR_FONT_FAMILY, /**< char* type */
57+
PLUSPLAYER_SUBTITLE_ATTR_FONT_SIZE, /**< float type */
58+
PLUSPLAYER_SUBTITLE_ATTR_FONT_WEIGHT, /**< int type */
59+
PLUSPLAYER_SUBTITLE_ATTR_FONT_STYLE, /**< int type */
60+
PLUSPLAYER_SUBTITLE_ATTR_FONT_COLOR, /**< int type */
61+
PLUSPLAYER_SUBTITLE_ATTR_FONT_BG_COLOR, /**< int type */
62+
PLUSPLAYER_SUBTITLE_ATTR_FONT_OPACITY, /**< float type */
63+
PLUSPLAYER_SUBTITLE_ATTR_FONT_BG_OPACITY, /**< float type */
64+
PLUSPLAYER_SUBTITLE_ATTR_FONT_TEXT_OUTLINE_COLOR, /**< int type */
65+
PLUSPLAYER_SUBTITLE_ATTR_FONT_TEXT_OUTLINE_THICKNESS, /**< int type */
66+
PLUSPLAYER_SUBTITLE_ATTR_FONT_TEXT_OUTLINE_BLUR_RADIUS, /**< int type */
67+
PLUSPLAYER_SUBTITLE_ATTR_FONT_VERTICAL_ALIGN, /**< int type */
68+
PLUSPLAYER_SUBTITLE_ATTR_FONT_HORIZONTAL_ALIGN, /**< int type */
69+
PLUSPLAYER_SUBTITLE_ATTR_RAW_SUBTITLE, /**< char* type */
70+
PLUSPLAYER_SUBTITLE_ATTR_WEBVTT_CUE_LINE, /**< float type */
71+
PLUSPLAYER_SUBTITLE_ATTR_WEBVTT_CUE_LINE_NUM, /**< int type */
72+
PLUSPLAYER_SUBTITLE_ATTR_WEBVTT_CUE_LINE_ALIGN, /**< int type */
73+
PLUSPLAYER_SUBTITLE_ATTR_WEBVTT_CUE_ALIGN, /**< int type */
74+
PLUSPLAYER_SUBTITLE_ATTR_WEBVTT_CUE_SIZE, /**< float type */
75+
PLUSPLAYER_SUBTITLE_ATTR_WEBVTT_CUE_POSITION, /**< float type */
76+
PLUSPLAYER_SUBTITLE_ATTR_WEBVTT_CUE_POSITION_ALIGN, /**< int type */
77+
PLUSPLAYER_SUBTITLE_ATTR_WEBVTT_CUE_VERTICAL, /**< int type */
78+
PLUSPLAYER_SUBTITLE_ATTR_TIMESTAMP,
79+
PLUSPLAYER_SUBTITLE_ATTR_EXTSUB_INDEX /**< File index of external subtitle */
80+
} plusplayer_subtitle_attr_e;
81+
82+
/**
83+
* @brief Enumeration for player supported subtitle types
84+
*/
85+
typedef enum {
86+
PLUSPLAYER_SUBTITLE_TYPE_TEXT, /**< subtitle type text */
87+
PLUSPLAYER_SUBTITLE_TYPE_PICTURE, /**< subtitle type picture */
88+
PLUSPLAYER_SUBTITLE_TYPE_TTML, /**< subtitle type ttml */
89+
} plusplayer_subtitle_type_e;
90+
91+
/**
92+
* @brief Enumeration for player supported subtitle attribute data types
93+
*/
94+
typedef enum {
95+
PLUSPLAYER_SUBTITLE_ATTR_TYPE_BOOL, /**< subtitle attribute data type bool */
96+
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FLOAT, /**< subtitle attribute data type float
97+
*/
98+
PLUSPLAYER_SUBTITLE_ATTR_TYPE_DOUBLE, /**< subtitle attribute data type double
99+
*/
100+
PLUSPLAYER_SUBTITLE_ATTR_TYPE_STRING, /**< subtitle attribute data type string
101+
*/
102+
PLUSPLAYER_SUBTITLE_ATTR_TYPE_INT, /**< subtitle attribute data type int */
103+
PLUSPLAYER_SUBTITLE_ATTR_TYPE_UINT, /**< subtitle attribute data type uint */
104+
PLUSPLAYER_SUBTITLE_ATTR_TYPE_INT64, /**< subtitle attribute data type int64
105+
*/
106+
PLUSPLAYER_SUBTITLE_ATTR_TYPE_UINT64 /**< subtitle attribute data type uint64
107+
*/
108+
} plusplayer_subtitle_attr_type_e;
109+
110+
/**
111+
* @brief structure definition of subtitle attribute
112+
*/
113+
typedef struct {
114+
/**
115+
* @brief Subtitle attribute.
116+
*/
117+
plusplayer_subtitle_attr_e attr;
118+
119+
/**
120+
* @brief Subtitle attribute data type.
121+
*/
122+
plusplayer_subtitle_attr_type_e dtype;
123+
124+
/**
125+
* @brief Start time.
126+
*/
127+
uint32_t start_time;
128+
129+
/**
130+
* @brief Stop time.
131+
*/
132+
uint32_t stop_time;
133+
134+
/**
135+
* @brief Subtitle attribute value. It can be float, int32, char*,
136+
* unsigned int.
137+
*/
138+
union {
139+
/**
140+
* @brief Floating type subtitle attribute value.
141+
*/
142+
float float_value;
143+
144+
/**
145+
* @brief 32bit integer type subtitle atribute value.
146+
*/
147+
int32_t int32_value;
148+
149+
/**
150+
* @brief String type subtitle atribute value.
151+
*/
152+
const char* str_value;
153+
154+
/**
155+
* @brief Unsigned 32bit integer type subtitle attribute value.
156+
*/
157+
uint32_t uint32_value;
158+
159+
/**
160+
* @brief Unsigned 64bit integer type subtitle attribute value.
161+
*/
162+
uint64_t uint64_value;
163+
164+
/**
165+
* @brief 64bit integer type subtitle attribute value.
166+
*/
167+
int64_t int64_value;
168+
169+
/**
170+
* @brief Double type subtitle attribute value.
171+
*/
172+
double double_value;
173+
} value;
174+
175+
/**
176+
* @brief Extra subtitle attribute index.
177+
*/
178+
int extsub_index;
179+
} plusplayer_subtitle_attr_s;
180+
181+
#ifdef __cplusplus
182+
} // extern "C"
183+
#endif
184+
185+
#endif // __PLUSPLAYER_PLUSPLAYER_CAPI_ATTRIBUTE_H__
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
/**
2+
* @file
3+
* @brief Display related enums
4+
* @interfacetype Platform
5+
* @privlevel None-privilege
6+
* @privilege None
7+
* @product TV, AV, B2B
8+
* @version 8.0
9+
* @SDK_Support N
10+
* @remark This is a group of C style display releted data structures
11+
* and enums.
12+
* @see The display related enum values and data structures will be
13+
* converted by this managed C version types to avoid binary
14+
* compatibility.
15+
*
16+
* Copyright (c) 2025 Samsung Electronics Co., Ltd All Rights Reserved
17+
*
18+
* Licensed under the Apache License, Version 2.0 (the "License");
19+
* you may not use this file except in compliance with the License.
20+
* You may obtain a copy of the License at
21+
*
22+
* http://www.apache.org/licenses/LICENSE-2.0
23+
*
24+
* Unless required by applicable law or agreed to in writing, software
25+
* distributed under the License is distributed on an "AS IS" BASIS,
26+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27+
* See the License for the specific language governing permissions and
28+
* limitations under the License.
29+
*/
30+
31+
#ifndef __PLUSPLAYER_PLUSPLAYER_CAPI_DISPLAY_H__
32+
#define __PLUSPLAYER_PLUSPLAYER_CAPI_DISPLAY_H__
33+
34+
#ifdef __cplusplus
35+
extern "C" {
36+
#endif
37+
38+
/**
39+
* @brief Enumerations for controlling the still mode activation
40+
*/
41+
typedef enum {
42+
PLUSPLAYER_STILL_MODE_NONE, /**< Still mode is not set */
43+
PLUSPLAYER_STILL_MODE_OFF, /**< Still mode is deactivated */
44+
PLUSPLAYER_STILL_MODE_ON /**< Still mode is activated */
45+
} plusplayer_still_mode_e;
46+
47+
/**
48+
* @brief Enumerations for the display mode
49+
*/
50+
typedef enum {
51+
PLUSPLAYER_DISPLAY_MODE_LETTER_BOX, /**< Letterboxing mode */
52+
PLUSPLAYER_DISPLAY_MODE_ORIGIN_SIZE, /**< Original size */
53+
PLUSPLAYER_DISPLAY_MODE_FULL_SCREEN, /**< Full screen */
54+
PLUSPLAYER_DISPLAY_MODE_CROPPED_FULL, /**< Cropped full screen */
55+
PLUSPLAYER_DISPLAY_MODE_ORIGIN_OR_LETTER, /**< Origin or letterbox */
56+
PLUSPLAYER_DISPLAY_MODE_DST_ROI, /**< Destination ROI */
57+
PLUSPLAYER_DISPLAY_MODE_AUTO_ASPECT_RATIO, /**< Auto aspect ratio */
58+
PLUSPLAYER_DISPLAY_MODE_ROI_AUTO_ASPECT_RATIO /**< ROI auto aspect ratio */
59+
} plusplayer_display_mode_e;
60+
61+
/**
62+
* @brief Enumeration of display types
63+
*/
64+
typedef enum {
65+
PLUSPLAYER_DISPLAY_TYPE_NONE, /**< No display type specified */
66+
PLUSPLAYER_DISPLAY_TYPE_OVERLAY, /**< Overlay display type */
67+
PLUSPLAYER_DISPLAY_TYPE_EVAS, /**< EVAS-based display */
68+
PLUSPLAYER_DISPLAY_TYPE_MIXER, /**< Mixer display type */
69+
PLUSPLAYER_DISPLAY_TYPE_OVERLAYSYNCUI /**< Overlay with synchronized UI */
70+
} plusplayer_display_type_e;
71+
72+
/**
73+
* @brief Enumeration for display rotation types
74+
*/
75+
typedef enum {
76+
PLUSPLAYER_DISPLAY_ROTATION_TYPE_NONE, /**< No rotation applied */
77+
PLUSPLAYER_DISPLAY_ROTATION_TYPE_90, /**< Rotate 90 degrees clockwise */
78+
PLUSPLAYER_DISPLAY_ROTATION_TYPE_180, /**< Rotate 180 degrees */
79+
PLUSPLAYER_DISPLAY_ROTATION_TYPE_270 /**< Rotate 270 degrees clockwise */
80+
} plusplayer_display_rotation_type_e;
81+
82+
/**
83+
* @brief struct for geometry
84+
*/
85+
typedef struct {
86+
/**
87+
* @brief start X position of Display window. [Default = 0]
88+
*/
89+
int x;
90+
/**
91+
* @brief start Y position of Display window. [Default = 0]
92+
*/
93+
int y;
94+
/**
95+
* @brief Width of Display window. [Default = 1920]
96+
*/
97+
int width;
98+
/**
99+
* @brief Height of Display window. [Default = 1080]
100+
*/
101+
int height;
102+
} plusplayer_geometry_s;
103+
104+
#ifdef __cplusplus
105+
} // extern "C"
106+
#endif
107+
108+
#endif // __PLUSPLAYER_PLUSPLAYER_CAPI_DISPLAY_H__

0 commit comments

Comments
 (0)