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
2868035d
Commit
2868035d
authored
Jul 26, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcxenc: get rid of unused PCXContext
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
3838637b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
pcxenc.c
libavcodec/pcxenc.c
+1
-19
No files found.
libavcodec/pcxenc.c
View file @
2868035d
...
...
@@ -31,22 +31,8 @@
#include "libavutil/imgutils.h"
#include "internal.h"
typedef
struct
PCXContext
{
AVFrame
picture
;
}
PCXContext
;
static
const
uint32_t
monoblack_pal
[
16
]
=
{
0x000000
,
0xFFFFFF
};
static
av_cold
int
pcx_encode_init
(
AVCodecContext
*
avctx
)
{
PCXContext
*
s
=
avctx
->
priv_data
;
avcodec_get_frame_defaults
(
&
s
->
picture
);
avctx
->
coded_frame
=
&
s
->
picture
;
return
0
;
}
/**
* PCX run-length encoder
* @param dst output buffer
...
...
@@ -100,8 +86,7 @@ static int pcx_rle_encode( uint8_t *dst, int dst_size,
static
int
pcx_encode_frame
(
AVCodecContext
*
avctx
,
AVPacket
*
pkt
,
const
AVFrame
*
frame
,
int
*
got_packet
)
{
PCXContext
*
s
=
avctx
->
priv_data
;
AVFrame
*
const
pict
=
&
s
->
picture
;
AVFrame
*
const
pict
=
(
AVFrame
*
)
frame
;
const
uint8_t
*
buf_end
;
uint8_t
*
buf
;
...
...
@@ -110,7 +95,6 @@ static int pcx_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
uint32_t
palette256
[
256
];
const
uint8_t
*
src
;
*
pict
=
*
frame
;
pict
->
pict_type
=
AV_PICTURE_TYPE_I
;
pict
->
key_frame
=
1
;
...
...
@@ -216,8 +200,6 @@ AVCodec ff_pcx_encoder = {
.
name
=
"pcx"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_PCX
,
.
priv_data_size
=
sizeof
(
PCXContext
),
.
init
=
pcx_encode_init
,
.
encode2
=
pcx_encode_frame
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[]){
AV_PIX_FMT_RGB24
,
...
...
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