-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Libflac seems to have linking configured differently from other codecs. - To expedite getting a MSVC/Windows build working we can disable FLAC functionality entirely. - b/362229054: Add a TODO that we should fix the build and enable FLAC on Windows. - Drive-by: Clean some nearby BUILD targets. PiperOrigin-RevId: 670995412
- Loading branch information
Showing
2 changed files
with
49 additions
and
6 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
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,41 @@ | ||
/* | ||
* Copyright (c) 2024, Alliance for Open Media. All rights reserved | ||
* | ||
* This source code is subject to the terms of the BSD 3-Clause Clear License | ||
* and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear | ||
* License was not distributed with this source code in the LICENSE file, you | ||
* can obtain it at www.aomedia.org/license/software-license/bsd-3-c-c. If the | ||
* Alliance for Open Media Patent License 1.0 was not distributed with this | ||
* source code in the PATENTS file, you can obtain it at | ||
* www.aomedia.org/license/patent. | ||
*/ | ||
#include <cstdint> | ||
#include <memory> | ||
#include <vector> | ||
|
||
#include "absl/status/status.h" | ||
#include "iamf/cli/codec/flac_encoder.h" | ||
|
||
namespace iamf_tools { | ||
|
||
FlacEncoder::~FlacEncoder() {} | ||
|
||
absl::Status FlacEncoder::EncodeAudioFrame( | ||
int /*input_bit_depth*/, | ||
const std::vector<std::vector<int32_t>>& /*samples*/, | ||
std::unique_ptr<AudioFrameWithData> /*partial_audio_frame_with_data*/) { | ||
return absl::UnimplementedError( | ||
"Encoding FLAC on native Windows is not yet implemented."); | ||
} | ||
|
||
absl::Status FlacEncoder::Finalize() { | ||
return absl::UnimplementedError( | ||
"Encoding FLAC on native Windows is not yet implemented."); | ||
} | ||
|
||
absl::Status FlacEncoder::InitializeEncoder() { | ||
return absl::UnimplementedError( | ||
"Encoding FLAC on native Windows is not yet implemented."); | ||
} | ||
|
||
} // namespace iamf_tools |