Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
316c088d
Commit
316c088d
authored
13 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
Codec.h: removed unused function
parent
be6314a0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemon/src/Codec.h
+1
-31
1 addition, 31 deletions
daemon/src/Codec.h
with
1 addition
and
31 deletions
daemon/src/Codec.h
+
1
−
31
View file @
316c088d
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#ifndef __SFL_CODEC_H__
#ifndef __SFL_CODEC_H__
#define __SFL_CODEC_H__
#define __SFL_CODEC_H__
#include
<cc++/
digest.h>
#include
<cc++/
config.h>
// for types
/**
/**
* Interface for both audio codecs as well as video codecs.
* Interface for both audio codecs as well as video codecs.
...
@@ -65,36 +65,6 @@ class Codec
...
@@ -65,36 +65,6 @@ class Codec
* @return The bitrate for which this codec is configured // TODO deal with VBR case.
* @return The bitrate for which this codec is configured // TODO deal with VBR case.
*/
*/
virtual
double
getBitRate
()
const
=
0
;
virtual
double
getBitRate
()
const
=
0
;
/**
* Build a unique hash code for identifying the codec uniquely.
* Note that if multiple implementations of codec are provided,
* one should override this function in order to avoid conflicting
* hash codes.
*
* Hash code is a CRC32 digest made from :
* MIME "." MIME SUBTYPE "." PAYLOAD TYPE "." PAYLOAD CLOCKRATE
*
* @return a unique hash code identifying this codec.
*/
virtual
std
::
string
hashCode
()
const
{
ost
::
CRC32Digest
digest
;
std
::
ostringstream
os
;
os
<<
getMimeType
()
<<
"."
<<
getMimeSubtype
()
<<
"."
<<
getPayloadType
()
<<
"."
<<
getClockRate
();
std
::
string
concat
=
os
.
str
();
digest
.
putDigest
(
(
const
unsigned
char
*
)
concat
.
c_str
(),
concat
.
length
());
std
::
ostringstream
buffer
;
buffer
<<
digest
;
return
buffer
.
str
();
}
};
};
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment