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
bd97ba72
Commit
bd97ba72
authored
Oct 28, 2013
by
Stephen Hutchinson
Committed by
Michael Niedermayer
Oct 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avisynth: Introduce USING_AVISYNTH macro
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
69a042ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
avisynth.c
libavformat/avisynth.c
+5
-4
No files found.
libavformat/avisynth.c
View file @
bd97ba72
...
...
@@ -39,6 +39,7 @@
#include "compat/avisynth/avisynth_c.h"
#include "compat/avisynth/avisynth_c_25.h"
#define AVISYNTH_LIB "avisynth"
#define USING_AVISYNTH
#else
#include <dlfcn.h>
#include "compat/avisynth/avxsynth_c.h"
...
...
@@ -241,7 +242,7 @@ static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st) {
st
->
nb_frames
=
avs
->
vi
->
num_frames
;
switch
(
avs
->
vi
->
pixel_type
)
{
#ifdef
_WIN32
#ifdef
USING_AVISYNTH
case
AVS_CS_YV24
:
st
->
codec
->
pix_fmt
=
AV_PIX_FMT_YUV444P
;
planar
=
1
;
...
...
@@ -359,7 +360,7 @@ static int avisynth_open_file(AVFormatContext *s) {
AviSynthContext
*
avs
=
(
AviSynthContext
*
)
s
->
priv_data
;
AVS_Value
arg
,
val
;
int
ret
;
#ifdef
_WIN32
#ifdef
USING_AVISYNTH
char
filename_ansi
[
MAX_PATH
*
4
];
wchar_t
filename_wc
[
MAX_PATH
*
4
];
#endif
...
...
@@ -367,7 +368,7 @@ static int avisynth_open_file(AVFormatContext *s) {
if
(
ret
=
avisynth_context_create
(
s
))
return
ret
;
#ifdef
_WIN32
#ifdef
USING_AVISYNTH
// Convert UTF-8 to ANSI code page
MultiByteToWideChar
(
CP_UTF8
,
0
,
s
->
filename
,
-
1
,
filename_wc
,
MAX_PATH
*
4
);
WideCharToMultiByte
(
CP_THREAD_ACP
,
0
,
filename_wc
,
-
1
,
filename_ansi
,
MAX_PATH
*
4
,
NULL
,
NULL
);
...
...
@@ -475,7 +476,7 @@ static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt, int dis
src_p
=
avs_get_read_ptr_p
(
frame
,
plane
);
pitch
=
avs_get_pitch_p
(
frame
,
plane
);
#ifdef
_WIN32
#ifdef
USING_AVISYNTH
if
(
avs_library
->
avs_get_version
(
avs
->
clip
)
==
3
)
{
rowsize
=
avs_get_row_size_p_25
(
frame
,
plane
);
planeheight
=
avs_get_height_p_25
(
frame
,
plane
);
...
...
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