ref: f91bd8b1edceda02250ecee5f3c7c941f7ec44af
parent: 8228ea64cbf01dd6c7e8fa39e10a3a57975ef2c6
parent: 47806671375976a8dc6e998acda6345c66816fcd
author: guangwei <GuangweiWang@users.noreply.github.com>
date: Wed Jun 28 10:23:33 EDT 2017
Merge pull request #2774 from huili2/add_profile_enc_console add profile in enc command
--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -418,6 +418,7 @@
printf (" The options below are layer-based: (need to be set with layer id)\n");
printf (" -lconfig (Layer) (spatial layer configure file)\n");
printf (" -drec (Layer) (reconstruction file);example: -drec 0 rec.yuv. Setting the reconstruction file, this will only functioning when dumping reconstruction is enabled\n");
+ printf (" -dprofile (Layer) (layer profile);example: -dprofile 0 66. Setting the layer profile, this should be the same for all layers\n");
printf (" -dw (Layer) (output width)\n");
printf (" -dh (Layer) (output height)\n");
printf (" -frout (Layer) (output frame rate)\n");
@@ -559,6 +560,10 @@
if (-1 == ParseLayerConfig (cRdLayerCfg, iLayer, pSvcParam, sFileSet)) {
return 1;
}
+ } else if (!strcmp (pCommand, "-dprofile") && (n + 1 < argc)) {
+ unsigned int iLayer = atoi (argv[n++]);
+ SSpatialLayerConfig* pDLayer = &pSvcParam.sSpatialLayers[iLayer];
+ pDLayer->uiProfileIdc = (EProfileIdc) atoi (argv[n++]);
} else if (!strcmp (pCommand, "-drec") && (n + 1 < argc)) {
unsigned int iLayer = atoi (argv[n++]);
const unsigned int iLen = (int) strlen (argv[n]);