Loading media/codec2/components/avc/C2SoftAvcEnc.cpp +5 −3 Original line number Original line Diff line number Diff line Loading @@ -40,7 +40,7 @@ namespace android { namespace { namespace { constexpr char COMPONENT_NAME[] = "c2.android.avc.encoder"; constexpr char COMPONENT_NAME[] = "c2.android.avc.encoder"; constexpr uint32_t kMinOutBufferSize = 524288; void ParseGop( void ParseGop( const C2StreamGopTuning::output &gop, const C2StreamGopTuning::output &gop, uint32_t *syncInterval, uint32_t *iInterval, uint32_t *maxBframes) { uint32_t *syncInterval, uint32_t *iInterval, uint32_t *maxBframes) { Loading Loading @@ -440,8 +440,7 @@ C2SoftAvcEnc::C2SoftAvcEnc( mSignalledError(false), mSignalledError(false), mCodecCtx(nullptr), mCodecCtx(nullptr), mOutBlock(nullptr), mOutBlock(nullptr), // TODO: output buffer size mOutBufferSize(kMinOutBufferSize) { mOutBufferSize(524288) { // If dump is enabled, then open create an empty file // If dump is enabled, then open create an empty file GENERATE_FILE_NAMES(); GENERATE_FILE_NAMES(); Loading Loading @@ -951,6 +950,9 @@ c2_status_t C2SoftAvcEnc::initEncoder() { mStride = width; mStride = width; // Assume worst case output buffer size to be equal to number of bytes in input mOutBufferSize = std::max(width * height * 3 / 2, kMinOutBufferSize); // TODO // TODO mIvVideoColorFormat = IV_YUV_420P; mIvVideoColorFormat = IV_YUV_420P; Loading Loading
media/codec2/components/avc/C2SoftAvcEnc.cpp +5 −3 Original line number Original line Diff line number Diff line Loading @@ -40,7 +40,7 @@ namespace android { namespace { namespace { constexpr char COMPONENT_NAME[] = "c2.android.avc.encoder"; constexpr char COMPONENT_NAME[] = "c2.android.avc.encoder"; constexpr uint32_t kMinOutBufferSize = 524288; void ParseGop( void ParseGop( const C2StreamGopTuning::output &gop, const C2StreamGopTuning::output &gop, uint32_t *syncInterval, uint32_t *iInterval, uint32_t *maxBframes) { uint32_t *syncInterval, uint32_t *iInterval, uint32_t *maxBframes) { Loading Loading @@ -440,8 +440,7 @@ C2SoftAvcEnc::C2SoftAvcEnc( mSignalledError(false), mSignalledError(false), mCodecCtx(nullptr), mCodecCtx(nullptr), mOutBlock(nullptr), mOutBlock(nullptr), // TODO: output buffer size mOutBufferSize(kMinOutBufferSize) { mOutBufferSize(524288) { // If dump is enabled, then open create an empty file // If dump is enabled, then open create an empty file GENERATE_FILE_NAMES(); GENERATE_FILE_NAMES(); Loading Loading @@ -951,6 +950,9 @@ c2_status_t C2SoftAvcEnc::initEncoder() { mStride = width; mStride = width; // Assume worst case output buffer size to be equal to number of bytes in input mOutBufferSize = std::max(width * height * 3 / 2, kMinOutBufferSize); // TODO // TODO mIvVideoColorFormat = IV_YUV_420P; mIvVideoColorFormat = IV_YUV_420P; Loading