Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
578b911b
Commit
578b911b
authored
Jan 09, 2016
by
Aman Gupta
Committed by
Clément Bœsch
Jan 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "lavc/ccaption_dec: implement "erase non displayed memory""
This reverts commit
26abdd61
.
parent
23a50c8a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
ccaption_dec.c
libavcodec/ccaption_dec.c
+7
-8
No files found.
libavcodec/ccaption_dec.c
View file @
578b911b
...
@@ -361,9 +361,12 @@ static void handle_pac(CCaptionSubContext *ctx, uint8_t hi, uint8_t lo)
...
@@ -361,9 +361,12 @@ static void handle_pac(CCaptionSubContext *ctx, uint8_t hi, uint8_t lo)
}
}
}
}
static
void
handle_erase
(
CCaptionSubContext
*
ctx
,
int64_t
pts
,
int
n_screen
)
/**
* @param pts it is required to set end time
*/
static
void
handle_edm
(
CCaptionSubContext
*
ctx
,
int64_t
pts
)
{
{
struct
Screen
*
screen
=
ctx
->
screen
+
n
_screen
;
struct
Screen
*
screen
=
ctx
->
screen
+
ctx
->
active
_screen
;
reap_screen
(
ctx
,
pts
);
reap_screen
(
ctx
,
pts
);
screen
->
row_used
=
0
;
screen
->
row_used
=
0
;
...
@@ -371,7 +374,7 @@ static void handle_erase(CCaptionSubContext *ctx, int64_t pts, int n_screen)
...
@@ -371,7 +374,7 @@ static void handle_erase(CCaptionSubContext *ctx, int64_t pts, int n_screen)
static
void
handle_eoc
(
CCaptionSubContext
*
ctx
,
int64_t
pts
)
static
void
handle_eoc
(
CCaptionSubContext
*
ctx
,
int64_t
pts
)
{
{
handle_e
rase
(
ctx
,
pts
,
ctx
->
active_screen
);
handle_e
dm
(
ctx
,
pts
);
ctx
->
active_screen
=
!
ctx
->
active_screen
;
ctx
->
active_screen
=
!
ctx
->
active_screen
;
ctx
->
cursor_column
=
0
;
ctx
->
cursor_column
=
0
;
}
}
...
@@ -452,7 +455,7 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint
...
@@ -452,7 +455,7 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint
break
;
break
;
case
0x2c
:
case
0x2c
:
/* erase display memory */
/* erase display memory */
handle_e
rase
(
ctx
,
pts
,
ctx
->
active_screen
);
handle_e
dm
(
ctx
,
pts
);
break
;
break
;
case
0x2d
:
case
0x2d
:
/* carriage return */
/* carriage return */
...
@@ -461,10 +464,6 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint
...
@@ -461,10 +464,6 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint
roll_up
(
ctx
);
roll_up
(
ctx
);
ctx
->
cursor_column
=
0
;
ctx
->
cursor_column
=
0
;
break
;
break
;
case
0x2e
:
/* erase non displayed memory */
handle_erase
(
ctx
,
pts
,
!
ctx
->
active_screen
);
break
;
case
0x2f
:
case
0x2f
:
/* end of caption */
/* end of caption */
ff_dlog
(
ctx
,
"handle_eoc
\n
"
);
ff_dlog
(
ctx
,
"handle_eoc
\n
"
);
...
...
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