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
160df979
Commit
160df979
authored
Jul 10, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/tiffenc: apply misc doxy fixes
parent
6c3b3cfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
tiffenc.c
libavcodec/tiffenc.c
+19
-17
No files found.
libavcodec/tiffenc.c
View file @
160df979
...
@@ -79,7 +79,8 @@ typedef struct TiffEncoderContext {
...
@@ -79,7 +79,8 @@ typedef struct TiffEncoderContext {
/**
/**
* Check free space in buffer
* Check free space in buffer.
*
* @param s Tiff context
* @param s Tiff context
* @param need Needed bytes
* @param need Needed bytes
* @return 0 - ok, 1 - no free space
* @return 0 - ok, 1 - no free space
...
@@ -95,13 +96,13 @@ static inline int check_size(TiffEncoderContext * s, uint64_t need)
...
@@ -95,13 +96,13 @@ static inline int check_size(TiffEncoderContext * s, uint64_t need)
}
}
/**
/**
* Put n values to buffer
* Put n values to buffer
.
*
*
* @param p
P
ointer to pointer to output buffer
* @param p
p
ointer to pointer to output buffer
* @param n
N
umber of values
* @param n
n
umber of values
* @param val
P
ointer to values
* @param val
p
ointer to values
* @param type
T
ype of values
* @param type
t
ype of values
* @param flip =0 - normal copy, >0 - flip
* @param flip =
0 - normal copy, >0 - flip
*/
*/
static
void
tnput
(
uint8_t
**
p
,
int
n
,
const
uint8_t
*
val
,
enum
TiffTypes
type
,
static
void
tnput
(
uint8_t
**
p
,
int
n
,
const
uint8_t
*
val
,
enum
TiffTypes
type
,
int
flip
)
int
flip
)
...
@@ -116,11 +117,12 @@ static void tnput(uint8_t ** p, int n, const uint8_t * val, enum TiffTypes type,
...
@@ -116,11 +117,12 @@ static void tnput(uint8_t ** p, int n, const uint8_t * val, enum TiffTypes type,
/**
/**
* Add entry to directory in tiff header.
* Add entry to directory in tiff header.
*
* @param s Tiff context
* @param s Tiff context
* @param tag
T
ag that identifies the entry
* @param tag
t
ag that identifies the entry
* @param type
E
ntry type
* @param type
e
ntry type
* @param count
T
he number of values
* @param count
t
he number of values
* @param ptr_val
P
ointer to values
* @param ptr_val
p
ointer to values
*/
*/
static
void
add_entry
(
TiffEncoderContext
*
s
,
static
void
add_entry
(
TiffEncoderContext
*
s
,
enum
TiffTags
tag
,
enum
TiffTypes
type
,
int
count
,
enum
TiffTags
tag
,
enum
TiffTypes
type
,
int
count
,
...
@@ -153,14 +155,14 @@ static void add_entry1(TiffEncoderContext * s,
...
@@ -153,14 +155,14 @@ static void add_entry1(TiffEncoderContext * s,
}
}
/**
/**
* Encode one strip in tiff file
* Encode one strip in tiff file
.
*
*
* @param s Tiff context
* @param s Tiff context
* @param src
I
nput buffer
* @param src
i
nput buffer
* @param dst
O
utput buffer
* @param dst
o
utput buffer
* @param n
S
ize of input buffer
* @param n
s
ize of input buffer
* @param compr
C
ompression method
* @param compr
c
ompression method
* @return
Number of output bytes. If an output error is encountered, -1
returned
* @return
number of output bytes. If an output error is encountered, -1 is
returned
*/
*/
static
int
encode_strip
(
TiffEncoderContext
*
s
,
const
int8_t
*
src
,
static
int
encode_strip
(
TiffEncoderContext
*
s
,
const
int8_t
*
src
,
uint8_t
*
dst
,
int
n
,
int
compr
)
uint8_t
*
dst
,
int
n
,
int
compr
)
...
...
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