-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from szlldm/resample_fps
[resampleFps] add frame blending option
- Loading branch information
Showing
5 changed files
with
91 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
avidemux_plugins/ADM_videoFilters6/resampleFps/confResampleFps.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
resampleFps{ | ||
confResampleFps{ | ||
uint32_t:mode | ||
uint32_t:newFpsDen | ||
uint32_t:newFpsNum | ||
bool:blend | ||
} |
15 changes: 7 additions & 8 deletions
15
avidemux_plugins/ADM_videoFilters6/resampleFps/confResampleFps.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
// Automatically generated, do not edit! | ||
#ifndef ADM_confResampleFps_CONF_H | ||
#define ADM_confResampleFps_CONF_H | ||
// automatically generated by admSerialization.py do not edit | ||
#include "string" | ||
#pragma once | ||
typedef struct { | ||
uint32_t mode; | ||
uint32_t newFpsDen; | ||
uint32_t newFpsNum; | ||
uint32_t mode; | ||
uint32_t newFpsDen; | ||
uint32_t newFpsNum; | ||
bool blend; | ||
}confResampleFps; | ||
#endif //confResampleFps | ||
//EOF |
11 changes: 6 additions & 5 deletions
11
avidemux_plugins/ADM_videoFilters6/resampleFps/confResampleFps_desc.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
// Automatically generated, do not edit! | ||
const ADM_paramList confResampleFps_param[]={ | ||
{"mode",offsetof( confResampleFps,mode),"uint32_t",ADM_param_uint32_t}, | ||
{"newFpsDen",offsetof( confResampleFps,newFpsDen),"uint32_t",ADM_param_uint32_t}, | ||
{"newFpsNum",offsetof( confResampleFps,newFpsNum),"uint32_t",ADM_param_uint32_t}, | ||
// automatically generated by admSerialization.py, do not edit! | ||
extern const ADM_paramList confResampleFps_param[]={ | ||
{"mode",offsetof(confResampleFps,mode),"uint32_t",ADM_param_uint32_t}, | ||
{"newFpsDen",offsetof(confResampleFps,newFpsDen),"uint32_t",ADM_param_uint32_t}, | ||
{"newFpsNum",offsetof(confResampleFps,newFpsNum),"uint32_t",ADM_param_uint32_t}, | ||
{"blend",offsetof(confResampleFps,blend),"bool",ADM_param_bool}, | ||
{NULL,0,NULL} | ||
}; |
21 changes: 21 additions & 0 deletions
21
avidemux_plugins/ADM_videoFilters6/resampleFps/confResampleFps_json.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// automatically generated by admSerialization.py, do not edit! | ||
#include "ADM_default.h" | ||
#include "ADM_paramList.h" | ||
#include "ADM_coreJson.h" | ||
#include "confResampleFps.h" | ||
bool confResampleFps_jserialize(const char *file, const confResampleFps *key){ | ||
admJson json; | ||
json.addUint32("mode",key->mode); | ||
json.addUint32("newFpsDen",key->newFpsDen); | ||
json.addUint32("newFpsNum",key->newFpsNum); | ||
json.addBool("blend",key->blend); | ||
return json.dumpToFile(file); | ||
}; | ||
bool confResampleFps_jdeserialize(const char *file, const ADM_paramList *tmpl,confResampleFps *key){ | ||
admJsonToCouple json; | ||
CONFcouple *c=json.readFromFile(file); | ||
if(!c) {ADM_error("Cannot read json file");return false;} | ||
bool r= ADM_paramLoadPartial(c,tmpl,key); | ||
delete c; | ||
return r; | ||
}; |