Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
fdc91863
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fdc91863
编写于
4月 14, 2012
作者:
D
Diego Biurrun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
libschroedinger: Switch to function names more in line with Libav style.
上级
9cef0669
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
12 deletion
+12
-12
libavcodec/libschroedinger.c
libavcodec/libschroedinger.c
+2
-2
libavcodec/libschroedingerdec.c
libavcodec/libschroedingerdec.c
+5
-5
libavcodec/libschroedingerenc.c
libavcodec/libschroedingerenc.c
+5
-5
未找到文件。
libavcodec/libschroedinger.c
浏览文件 @
fdc91863
...
...
@@ -163,7 +163,7 @@ int ff_get_schro_frame_format (SchroChromaFormat schro_pix_fmt,
return
-
1
;
}
static
void
FreeSchroF
rame
(
SchroFrame
*
frame
,
void
*
priv
)
static
void
free_schro_f
rame
(
SchroFrame
*
frame
,
void
*
priv
)
{
AVPicture
*
p_pic
=
priv
;
...
...
@@ -195,7 +195,7 @@ SchroFrame *ff_create_schro_frame(AVCodecContext *avccontext,
p_frame
->
format
=
schro_frame_fmt
;
p_frame
->
width
=
y_width
;
p_frame
->
height
=
y_height
;
schro_frame_set_free_callback
(
p_frame
,
FreeSchroF
rame
,
(
void
*
)
p_pic
);
schro_frame_set_free_callback
(
p_frame
,
free_schro_f
rame
,
(
void
*
)
p_pic
);
for
(
i
=
0
;
i
<
3
;
++
i
)
{
p_frame
->
components
[
i
].
width
=
i
?
uv_width
:
y_width
;
...
...
libavcodec/libschroedingerdec.c
浏览文件 @
fdc91863
...
...
@@ -75,14 +75,14 @@ static void libschroedinger_decode_buffer_free(SchroBuffer *schro_buf,
av_freep
(
&
priv
);
}
static
void
SchroParseContextI
nit
(
SchroParseUnitContext
*
parse_ctx
,
const
uint8_t
*
buf
,
int
buf_size
)
static
void
parse_context_i
nit
(
SchroParseUnitContext
*
parse_ctx
,
const
uint8_t
*
buf
,
int
buf_size
)
{
parse_ctx
->
buf
=
buf
;
parse_ctx
->
buf_size
=
buf_size
;
}
static
SchroBuffer
*
FindNextSchroParseU
nit
(
SchroParseUnitContext
*
parse_ctx
)
static
SchroBuffer
*
find_next_parse_u
nit
(
SchroParseUnitContext
*
parse_ctx
)
{
SchroBuffer
*
enc_buf
=
NULL
;
int
next_pu_offset
=
0
;
...
...
@@ -219,7 +219,7 @@ static int libschroedinger_decode_frame(AVCodecContext *avccontext,
*
data_size
=
0
;
SchroParseContextI
nit
(
&
parse_ctx
,
buf
,
buf_size
);
parse_context_i
nit
(
&
parse_ctx
,
buf
,
buf_size
);
if
(
!
buf_size
)
{
if
(
!
p_schro_params
->
eos_signalled
)
{
state
=
schro_decoder_push_end_of_stream
(
decoder
);
...
...
@@ -229,7 +229,7 @@ static int libschroedinger_decode_frame(AVCodecContext *avccontext,
/* Loop through all the individual parse units in the input buffer */
do
{
if
((
enc_buf
=
FindNextSchroParseU
nit
(
&
parse_ctx
)))
{
if
((
enc_buf
=
find_next_parse_u
nit
(
&
parse_ctx
)))
{
/* Push buffer into decoder. */
if
(
SCHRO_PARSE_CODE_IS_PICTURE
(
enc_buf
->
data
[
4
])
&&
SCHRO_PARSE_CODE_NUM_REFS
(
enc_buf
->
data
[
4
])
>
0
)
...
...
libavcodec/libschroedingerenc.c
浏览文件 @
fdc91863
...
...
@@ -79,7 +79,7 @@ typedef struct SchroEncoderParams {
/**
* Works out Schro-compatible chroma format.
*/
static
int
SetSchroChromaF
ormat
(
AVCodecContext
*
avccontext
)
static
int
set_chroma_f
ormat
(
AVCodecContext
*
avccontext
)
{
int
num_formats
=
sizeof
(
schro_pixel_format_map
)
/
sizeof
(
schro_pixel_format_map
[
0
]);
...
...
@@ -128,7 +128,7 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext)
p_schro_params
->
format
->
width
=
avccontext
->
width
;
p_schro_params
->
format
->
height
=
avccontext
->
height
;
if
(
SetSchroChromaF
ormat
(
avccontext
)
==
-
1
)
if
(
set_chroma_f
ormat
(
avccontext
)
==
-
1
)
return
-
1
;
if
(
avccontext
->
color_primaries
==
AVCOL_PRI_BT709
)
{
...
...
@@ -258,7 +258,7 @@ static SchroFrame *libschroedinger_frame_from_data(AVCodecContext *avccontext,
return
in_frame
;
}
static
void
SchroedingerFreeF
rame
(
void
*
data
)
static
void
libschroedinger_free_f
rame
(
void
*
data
)
{
FFSchroEncodedFrame
*
enc_frame
=
data
;
...
...
@@ -411,7 +411,7 @@ static int libschroedinger_encode_frame(AVCodecContext *avccontext, AVPacket *pk
error:
/* free frame */
SchroedingerFreeF
rame
(
p_frame_output
);
libschroedinger_free_f
rame
(
p_frame_output
);
return
ret
;
}
...
...
@@ -425,7 +425,7 @@ static int libschroedinger_encode_close(AVCodecContext *avccontext)
/* Free data in the output frame queue. */
ff_schro_queue_free
(
&
p_schro_params
->
enc_frame_queue
,
SchroedingerFreeF
rame
);
libschroedinger_free_f
rame
);
/* Free the encoder buffer. */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录